mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 06:08:50 +00:00
JIT: fix regression in timer patch
This commit is contained in:
parent
b583879c2a
commit
068b5c26f4
1 changed files with 3 additions and 0 deletions
|
@ -192,6 +192,8 @@ void Jit64::mfspr(UGeckoInstruction inst)
|
||||||
js.downcountAmount++;
|
js.downcountAmount++;
|
||||||
js.skipnext = true;
|
js.skipnext = true;
|
||||||
gpr.Lock(d, n);
|
gpr.Lock(d, n);
|
||||||
|
gpr.BindToRegister(d, false);
|
||||||
|
gpr.BindToRegister(n, false);
|
||||||
if (iIndex == SPR_TL)
|
if (iIndex == SPR_TL)
|
||||||
MOV(32, gpr.R(d), R(EAX));
|
MOV(32, gpr.R(d), R(EAX));
|
||||||
if (nextIndex == SPR_TL)
|
if (nextIndex == SPR_TL)
|
||||||
|
@ -205,6 +207,7 @@ void Jit64::mfspr(UGeckoInstruction inst)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gpr.Lock(d);
|
gpr.Lock(d);
|
||||||
|
gpr.BindToRegister(d, false);
|
||||||
if (iIndex == SPR_TU)
|
if (iIndex == SPR_TU)
|
||||||
SHR(64, R(RAX), Imm8(32));
|
SHR(64, R(RAX), Imm8(32));
|
||||||
MOV(32, gpr.R(d), R(EAX));
|
MOV(32, gpr.R(d), R(EAX));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue