Fix Pikmin PAL not booting thanks to LordMark for figuring it out ! :D

Added "AccurateFCMP" ini setting which fixes Nights, Paper Mario games...

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4042 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
sl1nk3.s
2009-08-24 04:04:10 +00:00
parent 9fcb1db34f
commit 944844bfba
12 changed files with 38 additions and 18 deletions

View File

@ -44,6 +44,7 @@ void SCoreStartupParameter::LoadDefaults()
bDSPThread = true;
bLockThreads = true;
bEnableFPRF = false;
bAccurateFCMP = false;
bWii = false;
SelectedLanguage = 0;
iTLBHack = 0;

View File

@ -57,6 +57,9 @@ struct SCoreStartupParameter
bool bJITBranchOff;
bool bJITProfiledReJIT;
bool bEnableFPRF;
bool bAccurateFCMP;
bool bUseDualCore;
bool bDSPThread;
bool bSkipIdle;
@ -65,7 +68,6 @@ struct SCoreStartupParameter
bool bUseFastMem;
bool bLockThreads;
bool bOptimizeQuantizers;
bool bEnableFPRF;
bool bEnableCheats;
bool bEnableIsoCache;

View File

@ -210,7 +210,7 @@ void Jit64::Init()
jo.enableFastMem = false;
#endif
jo.assumeFPLoadFromMem = true;
jo.fpAccurateFcmp = false;
jo.fpAccurateFcmp = Core::GetStartupParameter().bEnableFPRF || Core::GetStartupParameter().bAccurateFCMP;
jo.optimizeGatherPipe = true;
jo.fastInterrupts = false;
jo.accurateSinglePrecision = true;

View File

@ -205,9 +205,10 @@ void Jit64::fmrx(UGeckoInstruction inst)
fpr.LoadToX64(d, true); // we don't want to destroy the high bit
MOVSD(fpr.RX(d), fpr.R(b));
}
void Jit64::fcmpx(UGeckoInstruction inst)
{
// TODO : this causes crashes in Nights, and broken graphics in Paper Mario, Super Paper Mario
INSTRUCTION_START;
if(Core::g_CoreStartupParameter.bJITOff || jo.fpAccurateFcmp
|| Core::g_CoreStartupParameter.bJITFloatingPointOff) {