From 486445c6c7c4409afbdb1f585e56ecb12cf5f855 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Sun, 19 Jul 2009 10:28:22 +0000 Subject: [PATCH] Turn fpAccurateFcmp off by default. Shouldn't cause any problems and should give you a small speedup (a few fps in ZWW for example) with the regular JIT. Let me know if anything breaks. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3849 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp | 2 +- Source/Core/Core/Src/PowerPC/Jit64/Jit.h | 2 +- Source/Core/Core/Src/PowerPC/Jit64/Jit_FloatingPoint.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp b/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp index 81b219566a..f43905faab 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp @@ -210,7 +210,7 @@ void Jit64::Init() jo.enableFastMem = false; #endif jo.assumeFPLoadFromMem = true; - jo.fpAccurateFlags = true; + jo.fpAccurateFcmp = Core::GetStartupParameter().bEnableFPRF; jo.optimizeGatherPipe = true; jo.fastInterrupts = false; jo.accurateSinglePrecision = true; diff --git a/Source/Core/Core/Src/PowerPC/Jit64/Jit.h b/Source/Core/Core/Src/PowerPC/Jit64/Jit.h index 64b221c578..e52fe0777d 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64/Jit.h +++ b/Source/Core/Core/Src/PowerPC/Jit64/Jit.h @@ -131,7 +131,7 @@ private: bool optimizeStack; bool assumeFPLoadFromMem; bool enableBlocklink; - bool fpAccurateFlags; + bool fpAccurateFcmp; bool enableFastMem; bool optimizeGatherPipe; bool fastInterrupts; diff --git a/Source/Core/Core/Src/PowerPC/Jit64/Jit_FloatingPoint.cpp b/Source/Core/Core/Src/PowerPC/Jit64/Jit_FloatingPoint.cpp index b46defb57c..5fa6f3794d 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64/Jit_FloatingPoint.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64/Jit_FloatingPoint.cpp @@ -211,7 +211,7 @@ void Jit64::fcmpx(UGeckoInstruction inst) if(Core::g_CoreStartupParameter.bJITOff || Core::g_CoreStartupParameter.bJITFloatingPointOff) {Default(inst); return;} // turn off from debugger INSTRUCTION_START; - if (jo.fpAccurateFlags) + if (jo.fpAccurateFcmp) { Default(inst); return;