mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +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;
|
||||
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
|
||||
MOV(32, R(RSCRATCH), fpr.R(b));
|
||||
MOV(32, R(RSCRATCH), Rb);
|
||||
|
||||
MOV(32, R(RSCRATCH2), PPCSTATE(fpscr));
|
||||
AND(32, R(RSCRATCH), Imm32(mask));
|
||||
|
|
Loading…
Add table
Reference in a new issue