Jit_SystemRegisters: Use MConst for constants
This commit is contained in:
parent
0fe234ec9b
commit
8b93baefb7
|
@ -623,7 +623,7 @@ void Jit64::mcrfs(UGeckoInstruction inst)
|
||||||
}
|
}
|
||||||
AND(32, R(RSCRATCH), Imm32(mask));
|
AND(32, R(RSCRATCH), Imm32(mask));
|
||||||
MOV(32, PPCSTATE(fpscr), R(RSCRATCH));
|
MOV(32, PPCSTATE(fpscr), R(RSCRATCH));
|
||||||
LEA(64, RSCRATCH, M(m_crTable.data()));
|
LEA(64, RSCRATCH, MConst(m_crTable));
|
||||||
MOV(64, R(RSCRATCH), MComplex(RSCRATCH, RSCRATCH2, SCALE_8, 0));
|
MOV(64, R(RSCRATCH), MComplex(RSCRATCH, RSCRATCH2, SCALE_8, 0));
|
||||||
MOV(64, PPCSTATE(cr_val[inst.CRFD]), R(RSCRATCH));
|
MOV(64, PPCSTATE(cr_val[inst.CRFD]), R(RSCRATCH));
|
||||||
}
|
}
|
||||||
|
@ -664,7 +664,7 @@ static const u32 s_fpscr_to_mxcsr[] = {
|
||||||
// Needs value of FPSCR in RSCRATCH.
|
// Needs value of FPSCR in RSCRATCH.
|
||||||
void Jit64::UpdateMXCSR()
|
void Jit64::UpdateMXCSR()
|
||||||
{
|
{
|
||||||
LEA(64, RSCRATCH2, M(&s_fpscr_to_mxcsr));
|
LEA(64, RSCRATCH2, MConst(s_fpscr_to_mxcsr));
|
||||||
AND(32, R(RSCRATCH), Imm32(7));
|
AND(32, R(RSCRATCH), Imm32(7));
|
||||||
LDMXCSR(MComplex(RSCRATCH2, RSCRATCH, SCALE_4, 0));
|
LDMXCSR(MComplex(RSCRATCH2, RSCRATCH, SCALE_4, 0));
|
||||||
}
|
}
|
||||||
|
@ -730,7 +730,7 @@ void Jit64::mtfsfix(UGeckoInstruction inst)
|
||||||
|
|
||||||
// Field 7 contains NI and RN.
|
// Field 7 contains NI and RN.
|
||||||
if (inst.CRFD == 7)
|
if (inst.CRFD == 7)
|
||||||
LDMXCSR(M(&s_fpscr_to_mxcsr[imm & 7]));
|
LDMXCSR(MConst(s_fpscr_to_mxcsr, imm & 7));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Jit64::mtfsfx(UGeckoInstruction inst)
|
void Jit64::mtfsfx(UGeckoInstruction inst)
|
||||||
|
|
Loading…
Reference in New Issue