From 995fb0f8b26fc695581a61be390b4ca049632d0a Mon Sep 17 00:00:00 2001 From: Ced2911 Date: Tue, 3 Dec 2013 16:00:41 +0100 Subject: [PATCH] [PPC] update/fix --- Core/MIPS/PPC/PpcCompFpu.cpp | 10 +++++----- Core/MIPS/PPC/PpcCompLoadStore.cpp | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) 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. + } }