Add Missing EncodeRegTo64 in JitArm64::dcbx

ARM64FloatEmitter::ABI_PushRegisters expects an XReg temporary, not a WReg.
This commit is contained in:
mitaclaw 2024-01-30 03:06:32 -08:00
parent 559ea0593c
commit 45481620b8

View File

@ -890,7 +890,7 @@ void JitArm64::dcbx(UGeckoInstruction inst)
gprs_to_push[DecodeReg(loop_counter)] = false;
ABI_PushRegisters(gprs_to_push);
m_float_emit.ABI_PushRegisters(fprs_to_push, WA);
m_float_emit.ABI_PushRegisters(fprs_to_push, EncodeRegTo64(WA));
// For efficiency, effective_addr and loop_counter are already in W1 and W2 respectively
if (make_loop)
@ -904,7 +904,7 @@ void JitArm64::dcbx(UGeckoInstruction inst)
effective_addr);
}
m_float_emit.ABI_PopRegisters(fprs_to_push, WA);
m_float_emit.ABI_PopRegisters(fprs_to_push, EncodeRegTo64(WA));
ABI_PopRegisters(gprs_to_push);
FixupBranch near_addr = B();