Revert "Jit_SystemRegisters: Correct behaviour for mtspr SPR_HID0"

This commit is contained in:
Pierre Bourdon 2018-10-13 20:04:30 +02:00 committed by GitHub
parent 2bdee9b80b
commit 2508f6c621
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);