From bfe5f9276ec8e8d1a7ae4535fa7dc36cb7967096 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 8 Dec 2014 01:49:59 -0800 Subject: [PATCH] jit: Re-disable clobbered thing. No idea what's wrong... --- Core/MIPS/ARM/ArmRegCache.cpp | 3 ++- Core/MIPS/x86/RegCache.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/MIPS/ARM/ArmRegCache.cpp b/Core/MIPS/ARM/ArmRegCache.cpp index f1334edee7..c037134ddb 100644 --- a/Core/MIPS/ARM/ArmRegCache.cpp +++ b/Core/MIPS/ARM/ArmRegCache.cpp @@ -295,7 +295,8 @@ allocate: if (bestToSpill != INVALID_REG) { // ERROR_LOG(JIT, "Out of registers at PC %08x - spills register %i.", mips_->pc, bestToSpill); - if (clobbered) { + // TODO: Broken somehow in Dante's Inferno, but most games work. Bad flags in MIPSTables somewhere? + if (clobbered && false) { DiscardR(ar[bestToSpill].mipsReg); } else { FlushArmReg(bestToSpill); diff --git a/Core/MIPS/x86/RegCache.cpp b/Core/MIPS/x86/RegCache.cpp index c8cef7ccb7..f69c9305a9 100644 --- a/Core/MIPS/x86/RegCache.cpp +++ b/Core/MIPS/x86/RegCache.cpp @@ -174,7 +174,8 @@ X64Reg GPRRegCache::GetFreeXReg() } if (bestToSpill != INVALID_REG) { - if (clobbered) { + // TODO: Broken somehow in Dante's Inferno, but most games work. Bad flags in MIPSTables somewhere? + if (clobbered && false) { DiscardRegContentsIfCached(xregs[bestToSpill].mipsReg); } else { StoreFromRegister(xregs[bestToSpill].mipsReg);