Skip to content
Permalink
Browse files
Merge pull request #7491 from MerryMage/SPR_HID0
Jit_SystemRegisters: Correct behaviour for mtspr SPR_HID0
  • Loading branch information
Tilka committed Oct 13, 2018
2 parents 1fe40c5 + e7a65c3 commit 58361d8
Showing 1 changed file with 3 additions and 3 deletions.
@@ -238,9 +238,9 @@ void Jit64::mtspr(UGeckoInstruction inst)

case SPR_HID0:
{
gpr.BindToRegister(d, true, false);
BTR(32, gpr.R(d), Imm8(31 - 20)); // ICFI
MOV(32, PPCSTATE(spr[iIndex]), gpr.R(d));
MOV(32, R(RSCRATCH), gpr.R(d));
BTR(32, R(RSCRATCH), Imm8(31 - 20)); // ICFI
MOV(32, PPCSTATE(spr[iIndex]), R(RSCRATCH));
FixupBranch dont_reset_icache = J_CC(CC_NC);
BitSet32 regs = CallerSavedRegistersInUse();
ABI_PushRegistersAndAdjustStack(regs, 0);

0 comments on commit 58361d8

Please sign in to comment.