Jit64: Use ImmPtr for mtcrf.
Only a small overhead, but PIE compatible.
This commit is contained in:
parent
8189ef432b
commit
d26709f713
|
@ -483,6 +483,7 @@ void Jit64::mtcrf(UGeckoInstruction inst)
|
|||
}
|
||||
else
|
||||
{
|
||||
MOV(64, R(RSCRATCH2), ImmPtr(m_crTable));
|
||||
gpr.Lock(inst.RS);
|
||||
gpr.BindToRegister(inst.RS, true, false);
|
||||
for (int i = 0; i < 8; i++)
|
||||
|
@ -494,7 +495,7 @@ void Jit64::mtcrf(UGeckoInstruction inst)
|
|||
SHR(32, R(RSCRATCH), Imm8(28 - (i * 4)));
|
||||
if (i != 0)
|
||||
AND(32, R(RSCRATCH), Imm8(0xF));
|
||||
MOV(64, R(RSCRATCH), MScaled(RSCRATCH, SCALE_8, (u32)(u64)m_crTable));
|
||||
MOV(64, R(RSCRATCH), MComplex(RSCRATCH2, RSCRATCH, SCALE_8, 0));
|
||||
MOV(64, PPCSTATE(cr_val[i]), R(RSCRATCH));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue