Skip to content
Snippets Groups Projects
Unverified Commit 4bbb22a4 authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #3195 from FernandoS27/clear-exclusive

CpuCore: Clear exclusive state after doing a run in dynarmic.
parents d49ed4a4 40cd4df5
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,8 @@ void Cpu::RunLoop(bool tight_loop) {
} else {
arm_interface->Step();
}
// We are stopping a run, exclusive state must be cleared
arm_interface->ClearExclusiveState();
}
core_timing.Advance();
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment