Permalink
Browse files

Jit_SystemRegisters: mtfsfx

  • Loading branch information...
MerryMage committed Oct 15, 2018
1 parent 192f8ba commit 62484141f2e9a26d0885b18c9e8e909437049aa4
Showing with 7 additions and 3 deletions.
  1. +7 −3 Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp
@@ -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));

0 comments on commit 6248414

Please sign in to comment.