jit: Lock around changes to the jit pointer.

This commit is contained in:
Unknown W. Brackets committed 2021-11-28 10:04:22 -08:00
1 parent 0c6c2fb47a
commit b8ab7f39df
17 files changed
+87 -33

No files matched your search

+1
View File
@@ -1476,6 +1476,7 @@ void __KernelLoadContext(PSPThreadContext *ctx, bool vfpuEnabled) {
}
memcpy(currentMIPS->other, ctx->other, sizeof(ctx->other));
// Not locking here, we assume the jit isn't switched during execution.
if (MIPSComp::jit) {
// When thread switching, we must update the rounding mode if cached in the jit.
MIPSComp::jit->UpdateFCR31();