summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-17 16:33:32 +0200
committerGitHub <noreply@github.com>2018-07-17 16:33:32 +0200
commit88a3140c9b20b2f079f915842b4f30bdc800a53a (patch)
tree8fdcadf90977f58f0d1c14ed09a9313ba88d72d9 /src/core/hle/kernel
parentMerge pull request #672 from SciresM/to_address_fix (diff)
parentscheduler: Clear exclusive state when switching contexts (diff)
downloadyuzu-88a3140c9b20b2f079f915842b4f30bdc800a53a.tar
yuzu-88a3140c9b20b2f079f915842b4f30bdc800a53a.tar.gz
yuzu-88a3140c9b20b2f079f915842b4f30bdc800a53a.tar.bz2
yuzu-88a3140c9b20b2f079f915842b4f30bdc800a53a.tar.lz
yuzu-88a3140c9b20b2f079f915842b4f30bdc800a53a.tar.xz
yuzu-88a3140c9b20b2f079f915842b4f30bdc800a53a.tar.zst
yuzu-88a3140c9b20b2f079f915842b4f30bdc800a53a.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