summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2018-07-16 12:24:00 +0200
committerMerryMage <MerryMage@users.noreply.github.com>2018-07-16 12:24:00 +0200
commit56cc1c11ecad9e7ea2a36fbb74852a7579b53802 (patch)
tree67eb03302858cccb8f5cb8ec3d2989fb6149d163 /src/core/hle/kernel
parentMerge pull request #669 from lioncash/dynarmic (diff)
downloadyuzu-56cc1c11ecad9e7ea2a36fbb74852a7579b53802.tar
yuzu-56cc1c11ecad9e7ea2a36fbb74852a7579b53802.tar.gz
yuzu-56cc1c11ecad9e7ea2a36fbb74852a7579b53802.tar.bz2
yuzu-56cc1c11ecad9e7ea2a36fbb74852a7579b53802.tar.lz
yuzu-56cc1c11ecad9e7ea2a36fbb74852a7579b53802.tar.xz
yuzu-56cc1c11ecad9e7ea2a36fbb74852a7579b53802.tar.zst
yuzu-56cc1c11ecad9e7ea2a36fbb74852a7579b53802.zip
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/scheduler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/kernel/scheduler.cpp b/src/core/hle/kernel/scheduler.cpp
index 11c2cb69e..ca8807e19 100644
--- a/src/core/hle/kernel/scheduler.cpp
+++ b/src/core/hle/kernel/scheduler.cpp
@@ -85,6 +85,7 @@ void Scheduler::SwitchContext(Thread* new_thread) {
cpu_core->LoadContext(new_thread->context);
cpu_core->SetTlsAddress(new_thread->GetTLSAddress());
+ cpu_core->ClearExclusiveState();
} else {
current_thread = nullptr;
// Note: We do not reset the current process and current page table when idling because