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/core_cpu.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/core_cpu.cpp') diff --git a/src/core/core_cpu.cpp b/src/core/core_cpu.cpp index cf3fe0b0b..630cd4feb 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(); -- cgit v1.2.3