From 2f29894d9fed9ccabac4bb74ec9a58520599e647 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 26 Jun 2018 01:14:18 -0300 Subject: [PATCH] Set PC value on SvcCall aswell --- Ryujinx.HLE/OsHle/Kernel/SvcHandler.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Ryujinx.HLE/OsHle/Kernel/SvcHandler.cs b/Ryujinx.HLE/OsHle/Kernel/SvcHandler.cs index 5b6279e3d..e05073fda 100644 --- a/Ryujinx.HLE/OsHle/Kernel/SvcHandler.cs +++ b/Ryujinx.HLE/OsHle/Kernel/SvcHandler.cs @@ -94,6 +94,8 @@ namespace Ryujinx.HLE.OsHle.Kernel { AThreadState ThreadState = (AThreadState)sender; + Process.GetThread(ThreadState.Tpidr).LastPc = e.Position; + if (SvcFuncs.TryGetValue(e.Id, out SvcFunc Func)) { Ns.Log.PrintDebug(LogClass.KernelSvc, $"{Func.Method.Name} called.");