From 3c73d0d1f14841e437f3c8ddc94a1628e30002be Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Thu, 14 Nov 2013 00:36:06 -0800 Subject: [PATCH] armjit: Read fpu control regs other than 0/31 as 0. Always seem to give zero, regardless of the value of fcr31, etc. --- Core/MIPS/ARM/ArmCompFPU.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/MIPS/ARM/ArmCompFPU.cpp b/Core/MIPS/ARM/ArmCompFPU.cpp index 47ec38c4cf..df7cf69013 100644 --- a/Core/MIPS/ARM/ArmCompFPU.cpp +++ b/Core/MIPS/ARM/ArmCompFPU.cpp @@ -351,6 +351,9 @@ void Jit::Comp_mxc1(MIPSOpcode op) #endif } else if (fs == 0) { gpr.SetImm(rt, MIPSState::FCR0_VALUE); + } else { + // Unsupported regs are always 0. + gpr.SetImm(rt, 0); } return;