From f92ccd5058b4e0ccea43831190c85b3652d97c56 Mon Sep 17 00:00:00 2001 From: Skyler Saleh Date: Sun, 21 Mar 2021 11:06:32 -0700 Subject: [PATCH] Apple M1: Fix bug that could cause crash with MMU Added a Common::JITPageWriteDisableExecuteEnable() that could be missed when a memory exception is triggered by the running game. --- Source/Core/Core/PowerPC/JitArm64/Jit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/Core/PowerPC/JitArm64/Jit.cpp b/Source/Core/Core/PowerPC/JitArm64/Jit.cpp index 8e9ece7615..0a7caf1e3e 100644 --- a/Source/Core/Core/PowerPC/JitArm64/Jit.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/Jit.cpp @@ -623,6 +623,7 @@ void JitArm64::Jit(u32) NPC = nextPC; PowerPC::ppcState.Exceptions |= EXCEPTION_ISI; PowerPC::CheckExceptions(); + Common::JITPageWriteDisableExecuteEnable(); WARN_LOG_FMT(POWERPC, "ISI exception at {:#010x}", nextPC); return; }