diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-12-05 16:04:32 -0400 |
|---|---|---|
| committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-12-05 18:08:59 -0400 |
| commit | 2624ac7ae8fa7c15c30752f1e4628f7bea902926 (patch) | |
| tree | 1f95b440a879c7058d7bc0c7289b428d4bb51b7b /src/core/hle/kernel/scheduler.cpp | |
| parent | a13e5afa5a4658fa5ef2a21441069db171f9e55c (diff) | |
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.
Diffstat (limited to 'src/core/hle/kernel/scheduler.cpp')
| -rw-r--r-- | src/core/hle/kernel/scheduler.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/hle/kernel/scheduler.cpp b/src/core/hle/kernel/scheduler.cpp index 3f51920878..d36fcd7d99 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 |
