JitArm64: Fix divwx BindToRegister condition

a is being used both as an immediate and as a register here.
Since it's being used as a register, it must be loaded.
This commit is contained in:
JosJuice 2022-10-01 19:29:41 +02:00
parent 487a11fd2c
commit 8902d2fe3a

View File

@ -1433,7 +1433,7 @@ void JitArm64::divwx(UGeckoInstruction inst)
{
const u32 dividend = gpr.GetImm(a);
gpr.BindToRegister(d, d == b);
gpr.BindToRegister(d, d == a || d == b);
ARM64Reg RB = gpr.R(b);
ARM64Reg RD = gpr.R(d);