From a11208ec6db98722579c047a78717408db1463be Mon Sep 17 00:00:00 2001 From: Jaklyy <102590697+Jaklyy@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:02:17 -0400 Subject: [PATCH] oops --- src/ARM.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ARM.cpp b/src/ARM.cpp index ac3fe200..f97c26e2 100644 --- a/src/ARM.cpp +++ b/src/ARM.cpp @@ -523,9 +523,11 @@ void ARM::TriggerIRQ() UpdateMode(oldcpsr, CPSR); R_IRQ[2] = oldcpsr; +#ifdef JIT_ENABLED if constexpr (mode == CPUExecuteMode::JIT) R[14] = R[15] + (oldcpsr & 0x20 ? 2 : 0); else +#endif R[14] = R[15] - (oldcpsr & 0x20 ? 0 : 4); JumpTo(ExceptionBase + 0x18);