Permalink
Browse files

Merge pull request #7494 from MerryMage/SPR_HID0

Jit_SystemRegisters: Correct behaviour for mtspr SPR_HID0 (Redux)
  • Loading branch information...
Tilka committed Oct 14, 2018
2 parents ff17e2f + 93ec976 commit 4b14fa40a6d06a6673de5e31919965974a38c434
Showing with 4 additions and 4 deletions.
  1. +4 −4 Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp
@@ -238,16 +238,16 @@ 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);
ABI_CallFunction(DoICacheReset);
ABI_PopRegistersAndAdjustStack(regs, 0);
SetJumpTarget(dont_reset_icache);
break;
return;
}
default:

0 comments on commit 4b14fa4

Please sign in to comment.