mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
JIT: fix bugs with ComputeRC in branch merging patch
We really, really need to be sure the input to ComputeRC is a register.
This commit is contained in:
parent
0a1855d2ca
commit
f9ab25152c
@ -589,6 +589,10 @@ void Jit64::boolX(UGeckoInstruction inst)
|
|||||||
gpr.BindToRegister(a, false, true);
|
gpr.BindToRegister(a, false, true);
|
||||||
MOV(32, gpr.R(a), gpr.R(s));
|
MOV(32, gpr.R(a), gpr.R(s));
|
||||||
}
|
}
|
||||||
|
else if (inst.Rc)
|
||||||
|
{
|
||||||
|
gpr.BindToRegister(a, true, false);
|
||||||
|
}
|
||||||
needs_test = true;
|
needs_test = true;
|
||||||
}
|
}
|
||||||
else if ((inst.SUBOP10 == 476 /* nandx */) || (inst.SUBOP10 == 124 /* norx */))
|
else if ((inst.SUBOP10 == 476 /* nandx */) || (inst.SUBOP10 == 124 /* norx */))
|
||||||
@ -599,6 +603,10 @@ void Jit64::boolX(UGeckoInstruction inst)
|
|||||||
gpr.BindToRegister(a, false, true);
|
gpr.BindToRegister(a, false, true);
|
||||||
MOV(32, gpr.R(a), gpr.R(s));
|
MOV(32, gpr.R(a), gpr.R(s));
|
||||||
}
|
}
|
||||||
|
else if (inst.Rc)
|
||||||
|
{
|
||||||
|
gpr.BindToRegister(a, true, true);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gpr.KillImmediate(a, true, true);
|
gpr.KillImmediate(a, true, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user