Skip to content

Commit

Permalink
Fix JIT64 mtmsr - PIE support caused the codesize
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JMC47 committed Aug 22, 2017
1 parent 9cdf4b5 commit f7b133b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp
Expand Up @@ -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));
Expand Down

0 comments on commit f7b133b

Please sign in to comment.