diff --git a/Core/MIPS/PPC/PpcCompFpu.cpp b/Core/MIPS/PPC/PpcCompFpu.cpp index b52c131495..c8af1db478 100644 --- a/Core/MIPS/PPC/PpcCompFpu.cpp +++ b/Core/MIPS/PPC/PpcCompFpu.cpp @@ -426,11 +426,11 @@ void Jit::Comp_mxc1(MIPSOpcode op) { // RT = RT | SREG OR(_rt, _rt, SREG); - } - else if (fs == 0) - { - gpr.MapReg(rt, MAP_DIRTY | MAP_NOINIT); - LWZ(gpr.R(rt), CTXREG, offsetof(MIPSState, fcr0)); + } else if (fs == 0) { + gpr.SetImm(rt, MIPSState::FCR0_VALUE); + } else { + // Unsupported regs are always 0. + gpr.SetImm(rt, 0); } return; diff --git a/Core/MIPS/PPC/PpcCompLoadStore.cpp b/Core/MIPS/PPC/PpcCompLoadStore.cpp index a83c53ce7c..11b08af00b 100644 --- a/Core/MIPS/PPC/PpcCompLoadStore.cpp +++ b/Core/MIPS/PPC/PpcCompLoadStore.cpp @@ -145,10 +145,10 @@ void Jit::Comp_ITypeMem(MIPSOpcode op) { return ; } } -} -void Jit::Comp_Cache(MIPSOpcode op) { - CONDITIONAL_DISABLE; - // TODO: Could use this as a hint, and technically required to handle icache, etc. - // But right now Int_Cache does nothing, so let's not even call it. + void Jit::Comp_Cache(MIPSOpcode op) { + CONDITIONAL_DISABLE; + // TODO: Could use this as a hint, and technically required to handle icache, etc. + // But right now Int_Cache does nothing, so let's not even call it. + } }