mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 23:59:27 +01:00
commit
bbae0424a1
@ -635,7 +635,7 @@ void Jit64::mcrfs(UGeckoInstruction inst)
|
|||||||
u32 mask = 0xF << shift;
|
u32 mask = 0xF << shift;
|
||||||
|
|
||||||
// Only clear exception bits (but not FEX/VX).
|
// Only clear exception bits (but not FEX/VX).
|
||||||
mask &= 0x9FF87000;
|
mask &= FPSCR_FX | FPSCR_ANY_X;
|
||||||
|
|
||||||
MOV(32, R(RSCRATCH), PPCSTATE(fpscr));
|
MOV(32, R(RSCRATCH), PPCSTATE(fpscr));
|
||||||
if (cpu_info.bBMI1)
|
if (cpu_info.bBMI1)
|
||||||
@ -649,7 +649,7 @@ void Jit64::mcrfs(UGeckoInstruction inst)
|
|||||||
SHR(32, R(RSCRATCH2), Imm8(shift));
|
SHR(32, R(RSCRATCH2), Imm8(shift));
|
||||||
AND(32, R(RSCRATCH2), Imm32(0xF));
|
AND(32, R(RSCRATCH2), Imm32(0xF));
|
||||||
}
|
}
|
||||||
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, MConst(PowerPC::ConditionRegister::s_crTable));
|
LEA(64, RSCRATCH, MConst(PowerPC::ConditionRegister::s_crTable));
|
||||||
MOV(64, R(RSCRATCH), MComplex(RSCRATCH, RSCRATCH2, SCALE_8, 0));
|
MOV(64, R(RSCRATCH), MComplex(RSCRATCH, RSCRATCH2, SCALE_8, 0));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user