From 8c466e1a62cb74fc423574075a2d852583db3186 Mon Sep 17 00:00:00 2001 From: LinesPrower Date: Fri, 17 Jul 2009 13:50:51 +0000 Subject: [PATCH] Fixes Issue 1077. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3820 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/PowerPC/Jit64IL/IR_X86.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/Src/PowerPC/Jit64IL/IR_X86.cpp b/Source/Core/Core/Src/PowerPC/Jit64IL/IR_X86.cpp index d3abb65c5c..9d1f05c389 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64IL/IR_X86.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64IL/IR_X86.cpp @@ -390,8 +390,10 @@ static OpArg regBuildMemAddress(RegInfo& RI, InstLoc I, InstLoc AI, return M((void*)addr); #else // 64-bit - if (Profiled) - return MDisp(RBX, addr); + if (Profiled) { + RI.Jit->LEA(32, EAX, M((void*)addr)); + return MComplex(RBX, EAX, SCALE_1, 0); + } return M((void*)addr); #endif } @@ -430,8 +432,8 @@ static OpArg regBuildMemAddress(RegInfo& RI, InstLoc I, InstLoc AI, #ifdef _M_IX86 return MDisp(baseReg, (u32)Memory::base + offset + ProfileOffset); #else - RI.Jit->LEA(32, EAX, MDisp(baseReg, offset + ProfileOffset)); - return MComplex(RBX, EAX, 1, 0); + RI.Jit->LEA(32, EAX, MDisp(baseReg, offset)); + return MComplex(RBX, EAX, SCALE_1, 0); #endif } return MDisp(baseReg, offset);