From 8438371941eb2979aa1eea3c7e9b3ed850539a1b Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 20 Jan 2013 21:07:57 -0800 Subject: [PATCH] Read memory in the jit dispatcher same as lw. Just for consistency. One less op, maybe faster, probably same. --- Core/MIPS/x86/Asm.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Core/MIPS/x86/Asm.cpp b/Core/MIPS/x86/Asm.cpp index 36816f24b4..8ddb13e9e8 100644 --- a/Core/MIPS/x86/Asm.cpp +++ b/Core/MIPS/x86/Asm.cpp @@ -99,8 +99,7 @@ void AsmRoutineManager::Generate(MIPSState *mips, MIPSComp::Jit *jit) #ifdef _M_IX86 AND(32, R(EAX), Imm32(Memory::MEMVIEW32_MASK)); _assert_msg_(CPU, Memory::base != 0, "Memory base bogus"); - MOV(32, R(EDX), Imm32((u32)Memory::base)); - MOV(32, R(EAX), MComplex(EDX, EAX, SCALE_1, 0)); + MOV(32, R(EAX), MDisp(EAX, (u32)Memory::base)); #elif _M_X64 MOV(32, R(EAX), MComplex(RBX, RAX, SCALE_1, 0)); #endif