mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Jit_SystemRegisters: Correct behaviour for mtspr SPR_HID0
BTR modifies its argument
This commit is contained in:
parent
22c63433a2
commit
e7a65c31a8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user