mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 08:09:19 +00:00
Jit_SystemRegisters: mtfsfx
This commit is contained in:
parent
192f8ba6f1
commit
62484141f2
1 changed files with 7 additions and 3 deletions
|
@ -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));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue