1
0
Fork 1
forked from suyu/suyu

hle: kernel: physical_core: Clear exclusive state after each run.

- This is closer to pre-multicore behavior, and works a bit better.
This commit is contained in:
bunnei 2020-12-01 20:53:51 -08:00
parent 7e5d0f1fe3
commit c10a37e5b6
3 changed files with 7 additions and 0 deletions

View file

@ -294,6 +294,9 @@ void ARM_Dynarmic_32::InvalidateCacheRange(VAddr addr, std::size_t size) {
}
void ARM_Dynarmic_32::ClearExclusiveState() {
if (!jit) {
return;
}
jit->ClearExclusiveState();
}

View file

@ -330,6 +330,9 @@ void ARM_Dynarmic_64::InvalidateCacheRange(VAddr addr, std::size_t size) {
}
void ARM_Dynarmic_64::ClearExclusiveState() {
if (!jit) {
return;
}
jit->ClearExclusiveState();
}

View file

@ -37,6 +37,7 @@ void PhysicalCore::Initialize([[maybe_unused]] bool is_64_bit) {
void PhysicalCore::Run() {
arm_interface->Run();
arm_interface->ClearExclusiveState();
}
void PhysicalCore::Idle() {