[Jit] don't recompile with slow memory

This commit is contained in:
Ced2911
2014-03-02 11:34:46 -08:00
committed by Unknown W. Brackets
parent 41373f29cf
commit 4483c6002e
3 changed files with 20 additions and 0 deletions
+6
View File
@@ -1,4 +1,5 @@
#include "Common/ChunkFile.h"
#include "Core/Config.h"
#include "Core/Core.h"
#include "Core/CoreTiming.h"
#include "Core/MIPS/MIPS.h"
@@ -43,6 +44,7 @@ void Jit::SetRegToEffectiveAddress(PpcGen::PPCReg r, int rs, s16 offset) {
}
void Jit::Comp_ITypeMem(MIPSOpcode op) {
CONDITIONAL_DISABLE;
int offset = (signed short)(op&0xFFFF);
bool load = false;
int rt = _RT;
@@ -53,6 +55,10 @@ void Jit::Comp_ITypeMem(MIPSOpcode op) {
return;
}
if (!g_Config.bFastMemory) {
DISABLE;
}
u32 iaddr = gpr.IsImm(rs) ? offset + gpr.GetImm(rs) : 0xFFFFFFFF;
bool doCheck = false;