Skip to content

Commit

Permalink
Revert "Jit_SystemRegisters: Correct behaviour for mtspr SPR_HID0"
Browse files Browse the repository at this point in the history
  • Loading branch information
delroth authored Oct 13, 2018
1 parent 2bdee9b commit 2508f6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ void Jit64::mtspr(UGeckoInstruction inst)

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

0 comments on commit 2508f6c

Please sign in to comment.