Jit_SystemRegisters: Use MConst for constants

This commit is contained in:
MerryMage 2017-03-19 12:39:47 +00:00
parent 0fe234ec9b
commit 8b93baefb7
1 changed files with 3 additions and 3 deletions

View File

@ -623,7 +623,7 @@ void Jit64::mcrfs(UGeckoInstruction inst)
}
AND(32, R(RSCRATCH), Imm32(mask));
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, PPCSTATE(cr_val[inst.CRFD]), R(RSCRATCH));
}
@ -664,7 +664,7 @@ static const u32 s_fpscr_to_mxcsr[] = {
// Needs value of FPSCR in RSCRATCH.
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));
LDMXCSR(MComplex(RSCRATCH2, RSCRATCH, SCALE_4, 0));
}
@ -730,7 +730,7 @@ void Jit64::mtfsfix(UGeckoInstruction inst)
// Field 7 contains NI and RN.
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)