Permalink
Browse files

Jit_SystemRegisters: mtmsr

  • Loading branch information...
MerryMage committed Oct 15, 2018
1 parent 1d86749 commit 5fa6df8c1e3c58f57224ef132d45cf168e4be277
Showing with 4 additions and 5 deletions.
  1. +4 −5 Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp
@@ -388,13 +388,12 @@ void Jit64::mtmsr(UGeckoInstruction inst)
{
INSTRUCTION_START
JITDISABLE(bJITSystemRegistersOff);
if (!gpr.R(inst.RS).IsImm())

{
gpr.Lock(inst.RS);
gpr.BindToRegister(inst.RS, true, false);
RCOpArg Rs = gpr.BindOrImm(inst.RS, RCMode::Read);
RegCache::Realize(Rs);
MOV(32, PPCSTATE(msr), Rs);
}
MOV(32, PPCSTATE(msr), gpr.R(inst.RS));
gpr.UnlockAll();
gpr.Flush();
fpr.Flush();

0 comments on commit 5fa6df8

Please sign in to comment.