From 415ad94dbe0b673aaa7206e51184f2a90a452d5b Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Tue, 18 Aug 2015 15:05:27 +0200 Subject: [PATCH] Interpreter: fix undefined bits of mffs Lioncash tested this on hardware. --- .../Core/PowerPC/Interpreter/Interpreter_SystemRegisters.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_SystemRegisters.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_SystemRegisters.cpp index 7258959467..08f165bcde 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_SystemRegisters.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_SystemRegisters.cpp @@ -448,11 +448,10 @@ void Interpreter::mcrfs(UGeckoInstruction _inst) void Interpreter::mffsx(UGeckoInstruction _inst) { // load from FPSCR - // This may or may not be accurate - but better than nothing, I guess // TODO(ector): grab all overflow flags etc and set them in FPSCR UpdateFPSCR(); - riPS0(_inst.FD) = (u64)FPSCR.Hex; + riPS0(_inst.FD) = 0xFFF8000000000000 | FPSCR.Hex; if (_inst.Rc) PanicAlert("mffsx: inst_.Rc");