summaryrefslogtreecommitdiffstats
path: root/src/core/arm/dynarmic
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-01-31 00:52:23 +0100
committerLioncash <mathew1800@gmail.com>2020-01-31 00:52:25 +0100
commit472319e573d7151e790c08aa9fae6dcaf6bf1932 (patch)
tree74b9f22b5574f39fbabaa767a2452ded7a15cc9f /src/core/arm/dynarmic
parentMerge pull request #3353 from FernandoS27/aries (diff)
downloadyuzu-472319e573d7151e790c08aa9fae6dcaf6bf1932.tar
yuzu-472319e573d7151e790c08aa9fae6dcaf6bf1932.tar.gz
yuzu-472319e573d7151e790c08aa9fae6dcaf6bf1932.tar.bz2
yuzu-472319e573d7151e790c08aa9fae6dcaf6bf1932.tar.lz
yuzu-472319e573d7151e790c08aa9fae6dcaf6bf1932.tar.xz
yuzu-472319e573d7151e790c08aa9fae6dcaf6bf1932.tar.zst
yuzu-472319e573d7151e790c08aa9fae6dcaf6bf1932.zip
Diffstat (limited to 'src/core/arm/dynarmic')
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/arm/dynarmic/arm_dynarmic.cpp b/src/core/arm/dynarmic/arm_dynarmic.cpp
index f468e57e4..791640a3a 100644
--- a/src/core/arm/dynarmic/arm_dynarmic.cpp
+++ b/src/core/arm/dynarmic/arm_dynarmic.cpp
@@ -15,6 +15,7 @@
#include "core/core_timing_util.h"
#include "core/gdbstub/gdbstub.h"
#include "core/hle/kernel/process.h"
+#include "core/hle/kernel/scheduler.h"
#include "core/hle/kernel/svc.h"
#include "core/hle/kernel/vm_manager.h"
#include "core/memory.h"
@@ -87,7 +88,7 @@ public:
if (GDBStub::IsServerEnabled()) {
parent.jit->HaltExecution();
parent.SetPC(pc);
- Kernel::Thread* thread = Kernel::GetCurrentThread();
+ Kernel::Thread* const thread = parent.system.CurrentScheduler().GetCurrentThread();
parent.SaveContext(thread->GetContext());
GDBStub::Break();
GDBStub::SendTrap(thread, 5);