This commit is contained in:
Jaklyy 2024-09-24 21:02:17 -04:00
parent 3065141ed7
commit a11208ec6d

View File

@ -523,9 +523,11 @@ void ARM::TriggerIRQ()
UpdateMode(oldcpsr, CPSR); UpdateMode(oldcpsr, CPSR);
R_IRQ[2] = oldcpsr; R_IRQ[2] = oldcpsr;
#ifdef JIT_ENABLED
if constexpr (mode == CPUExecuteMode::JIT) if constexpr (mode == CPUExecuteMode::JIT)
R[14] = R[15] + (oldcpsr & 0x20 ? 2 : 0); R[14] = R[15] + (oldcpsr & 0x20 ? 2 : 0);
else else
#endif
R[14] = R[15] - (oldcpsr & 0x20 ? 0 : 4); R[14] = R[15] - (oldcpsr & 0x20 ? 0 : 4);
JumpTo(ExceptionBase + 0x18); JumpTo(ExceptionBase + 0x18);