From f7b133b39a09526f4eb42203bcad45f82940d107 Mon Sep 17 00:00:00 2001 From: JMC47 Date: Tue, 22 Aug 2017 06:28:57 -0400 Subject: [PATCH] Fix JIT64 mtmsr - PIE support caused the codesize to get bigger, breaking an optimization. This forces the emitter to use a 32bit pointer instead of an 8bit one, fixing the issue at the expense of efficiency. --- Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp index 5b68fae157..e3a694b71b 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp @@ -403,7 +403,7 @@ void Jit64::mtmsr(UGeckoInstruction inst) // external exceptions when going out of mtmsr in order to execute delayed // interrupts as soon as possible. TEST(32, PPCSTATE(msr), Imm32(0x8000)); - FixupBranch eeDisabled = J_CC(CC_Z); + FixupBranch eeDisabled = J_CC(CC_Z, true); TEST(32, PPCSTATE(Exceptions), Imm32(EXCEPTION_EXTERNAL_INT | EXCEPTION_PERFORMANCE_MONITOR | EXCEPTION_DECREMENTER));