mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
Fixes Issue 1077.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3820 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -390,8 +390,10 @@ static OpArg regBuildMemAddress(RegInfo& RI, InstLoc I, InstLoc AI,
|
|||||||
return M((void*)addr);
|
return M((void*)addr);
|
||||||
#else
|
#else
|
||||||
// 64-bit
|
// 64-bit
|
||||||
if (Profiled)
|
if (Profiled) {
|
||||||
return MDisp(RBX, addr);
|
RI.Jit->LEA(32, EAX, M((void*)addr));
|
||||||
|
return MComplex(RBX, EAX, SCALE_1, 0);
|
||||||
|
}
|
||||||
return M((void*)addr);
|
return M((void*)addr);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -430,8 +432,8 @@ static OpArg regBuildMemAddress(RegInfo& RI, InstLoc I, InstLoc AI,
|
|||||||
#ifdef _M_IX86
|
#ifdef _M_IX86
|
||||||
return MDisp(baseReg, (u32)Memory::base + offset + ProfileOffset);
|
return MDisp(baseReg, (u32)Memory::base + offset + ProfileOffset);
|
||||||
#else
|
#else
|
||||||
RI.Jit->LEA(32, EAX, MDisp(baseReg, offset + ProfileOffset));
|
RI.Jit->LEA(32, EAX, MDisp(baseReg, offset));
|
||||||
return MComplex(RBX, EAX, 1, 0);
|
return MComplex(RBX, EAX, SCALE_1, 0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
return MDisp(baseReg, offset);
|
return MDisp(baseReg, offset);
|
||||||
|
Reference in New Issue
Block a user