From 40cd4df5842e90e2e946bc30a80d15e897288a52 Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Thu, 5 Dec 2019 16:04:32 -0400 Subject: CpuCore: Clear exclusive state after doing a run in dynarmic. This commit corrects an error in which a Core could remain with an exclusive state after running, leaving space for possible race conditions between changing cores. --- src/core/hle/kernel/scheduler.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/core/hle') diff --git a/src/core/hle/kernel/scheduler.cpp b/src/core/hle/kernel/scheduler.cpp index 3f5192087..d36fcd7d9 100644 --- a/src/core/hle/kernel/scheduler.cpp +++ b/src/core/hle/kernel/scheduler.cpp @@ -458,7 +458,6 @@ void Scheduler::SwitchContext() { cpu_core.LoadContext(new_thread->GetContext()); cpu_core.SetTlsAddress(new_thread->GetTLSAddress()); cpu_core.SetTPIDR_EL0(new_thread->GetTPIDR_EL0()); - cpu_core.ClearExclusiveState(); } else { current_thread = nullptr; // Note: We do not reset the current process and current page table when idling because -- cgit v1.2.3