Jit_SystemRegisters: mtmsr
This commit is contained in:
parent
1d867493d9
commit
5fa6df8c1e
|
@ -388,13 +388,12 @@ void Jit64::mtmsr(UGeckoInstruction inst)
|
||||||
{
|
{
|
||||||
INSTRUCTION_START
|
INSTRUCTION_START
|
||||||
JITDISABLE(bJITSystemRegistersOff);
|
JITDISABLE(bJITSystemRegistersOff);
|
||||||
if (!gpr.R(inst.RS).IsImm())
|
|
||||||
{
|
{
|
||||||
gpr.Lock(inst.RS);
|
RCOpArg Rs = gpr.BindOrImm(inst.RS, RCMode::Read);
|
||||||
gpr.BindToRegister(inst.RS, true, false);
|
RegCache::Realize(Rs);
|
||||||
|
MOV(32, PPCSTATE(msr), Rs);
|
||||||
}
|
}
|
||||||
MOV(32, PPCSTATE(msr), gpr.R(inst.RS));
|
|
||||||
gpr.UnlockAll();
|
|
||||||
gpr.Flush();
|
gpr.Flush();
|
||||||
fpr.Flush();
|
fpr.Flush();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue