aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMerry <[email protected]>2023-05-07 23:03:32 +0100
committerMerry <[email protected]>2023-05-07 23:03:39 +0100
commit7da378033a7764f955516f75194856d87bbcd7a5 (patch)
tree3a03489216e3541ccaebfab52a2083186ba0e2cd
parentd5c2b473a831ca9e2a93bda30dc131b4fee7314f (diff)
downloaddynarmic-7da378033a7764f955516f75194856d87bbcd7a5.tar.gz
dynarmic-7da378033a7764f955516f75194856d87bbcd7a5.zip
spin_lock: Invalidate runtime generated code
Not doing this can result in cache related heisenbugs.
-rw-r--r--src/dynarmic/common/spin_lock_arm64.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dynarmic/common/spin_lock_arm64.cpp b/src/dynarmic/common/spin_lock_arm64.cpp
index db58accb..65b11d2d 100644
--- a/src/dynarmic/common/spin_lock_arm64.cpp
+++ b/src/dynarmic/common/spin_lock_arm64.cpp
@@ -68,6 +68,7 @@ void SpinLockImpl::Initialize() {
code.RET();
mem.protect();
+ mem.invalidate_all();
}
} // namespace