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:
Fiora 2014-09-25 21:45:25 -07:00
parent 0a1855d2ca
commit f9ab25152c

View File

@ -589,6 +589,10 @@ void Jit64::boolX(UGeckoInstruction inst)
gpr.BindToRegister(a, false, true);
MOV(32, gpr.R(a), gpr.R(s));
}
else if (inst.Rc)
{
gpr.BindToRegister(a, true, false);
}
needs_test = true;
}
else if ((inst.SUBOP10 == 476 /* nandx */) || (inst.SUBOP10 == 124 /* norx */))
@ -599,6 +603,10 @@ void Jit64::boolX(UGeckoInstruction inst)
gpr.BindToRegister(a, false, true);
MOV(32, gpr.R(a), gpr.R(s));
}
else if (inst.Rc)
{
gpr.BindToRegister(a, true, true);
}
else
{
gpr.KillImmediate(a, true, true);