mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-15 19:59:53 +00:00
Jit64: Avoid passing immediate to non-immediate parameter
Call `UseNoImm` instead of `Use` on parameter `a` of `MultiplyImmediate` since `Ra` gets passed to `IMUL` which asserts that parameter is not an immediate.
This commit is contained in:
parent
df3c68bcf7
commit
c2d277c5d1
@ -1172,7 +1172,7 @@ void Jit64::subfx(UGeckoInstruction inst)
|
||||
|
||||
void Jit64::MultiplyImmediate(u32 imm, int a, int d, bool overflow)
|
||||
{
|
||||
RCOpArg Ra = gpr.Use(a, RCMode::Read);
|
||||
RCOpArg Ra = gpr.UseNoImm(a, RCMode::Read);
|
||||
RCX64Reg Rd = gpr.Bind(d, RCMode::Write);
|
||||
RegCache::Realize(Ra, Rd);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user