Jit64: Use 5 byte jump in mtmsr for the CP interrupt check.

WriteExternalExceptionExit() can write more than the maximum offset of the small jump.
This commit is contained in:
Admiral H. Curtiss 2023-02-16 19:26:19 +01:00
parent f004080382
commit 0c48324c75
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB
1 changed files with 1 additions and 1 deletions

View File

@ -460,7 +460,7 @@ void Jit64::mtmsr(UGeckoInstruction inst)
auto& system = Core::System::GetInstance();
MOV(64, R(RSCRATCH), ImmPtr(&system.GetProcessorInterface().m_interrupt_cause));
TEST(32, MatR(RSCRATCH), Imm32(ProcessorInterface::INT_CAUSE_CP));
FixupBranch cpInt = J_CC(CC_NZ);
FixupBranch cpInt = J_CC(CC_NZ, true);
MOV(32, PPCSTATE(pc), Imm32(js.compilerPC + 4));
WriteExternalExceptionExit();