mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
Jit_SystemRegisters: mtfsfx
This commit is contained in:
@ -753,10 +753,14 @@ void Jit64::mtfsfx(UGeckoInstruction inst)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int b = inst.FB;
|
int b = inst.FB;
|
||||||
if (fpr.R(b).IsSimpleReg())
|
|
||||||
MOVQ_xmm(R(RSCRATCH), fpr.RX(b));
|
RCOpArg Rb = fpr.Use(b, RCMode::Read);
|
||||||
|
RegCache::Realize(Rb);
|
||||||
|
|
||||||
|
if (Rb.IsSimpleReg())
|
||||||
|
MOVQ_xmm(R(RSCRATCH), Rb.GetSimpleReg());
|
||||||
else
|
else
|
||||||
MOV(32, R(RSCRATCH), fpr.R(b));
|
MOV(32, R(RSCRATCH), Rb);
|
||||||
|
|
||||||
MOV(32, R(RSCRATCH2), PPCSTATE(fpscr));
|
MOV(32, R(RSCRATCH2), PPCSTATE(fpscr));
|
||||||
AND(32, R(RSCRATCH), Imm32(mask));
|
AND(32, R(RSCRATCH), Imm32(mask));
|
||||||
|
Reference in New Issue
Block a user