aboutsummaryrefslogtreecommitdiff
path: root/src/core/core_cpu.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-12-05 16:04:32 -0400
committerFernandoS27 <fsahmkow27@gmail.com>2019-12-05 18:08:59 -0400
commit2624ac7ae8fa7c15c30752f1e4628f7bea902926 (patch)
tree1f95b440a879c7058d7bc0c7289b428d4bb51b7b /src/core/core_cpu.cpp
parenta13e5afa5a4658fa5ef2a21441069db171f9e55c (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/core_cpu.cpp')
-rw-r--r--src/core/core_cpu.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/core_cpu.cpp b/src/core/core_cpu.cpp
index cf3fe0b0b0..630cd4feb0 100644
--- a/src/core/core_cpu.cpp
+++ b/src/core/core_cpu.cpp
@@ -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();