mirror of
https://github.com/azahar-emu/dynarmic.git
synced 2026-05-05 02:32:43 +02:00
spin_lock: Invalidate runtime generated code
Not doing this can result in cache related heisenbugs.
This commit is contained in:
@@ -68,6 +68,7 @@ void SpinLockImpl::Initialize() {
|
||||
code.RET();
|
||||
|
||||
mem.protect();
|
||||
mem.invalidate_all();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user