Merge pull request #7493 from dolphin-emu/revert-7491-SPR_HID0
Revert "Jit_SystemRegisters: Correct behaviour for mtspr SPR_HID0"
This commit is contained in:
commit
ff17e2f174
|
@ -238,9 +238,9 @@ void Jit64::mtspr(UGeckoInstruction inst)
|
||||||
|
|
||||||
case SPR_HID0:
|
case SPR_HID0:
|
||||||
{
|
{
|
||||||
MOV(32, R(RSCRATCH), gpr.R(d));
|
gpr.BindToRegister(d, true, false);
|
||||||
BTR(32, R(RSCRATCH), Imm8(31 - 20)); // ICFI
|
BTR(32, gpr.R(d), Imm8(31 - 20)); // ICFI
|
||||||
MOV(32, PPCSTATE(spr[iIndex]), R(RSCRATCH));
|
MOV(32, PPCSTATE(spr[iIndex]), gpr.R(d));
|
||||||
FixupBranch dont_reset_icache = J_CC(CC_NC);
|
FixupBranch dont_reset_icache = J_CC(CC_NC);
|
||||||
BitSet32 regs = CallerSavedRegistersInUse();
|
BitSet32 regs = CallerSavedRegistersInUse();
|
||||||
ABI_PushRegistersAndAdjustStack(regs, 0);
|
ABI_PushRegistersAndAdjustStack(regs, 0);
|
||||||
|
|
Loading…
Reference in New Issue