Slight correction to r2164.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2165 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
magumagu9 2009-02-08 23:07:47 +00:00
parent 935eb226ca
commit 622f396d8a

View File

@ -966,11 +966,11 @@ static OpArg regBuildMemAddress(RegInfo& RI, InstLoc I, InstLoc AI,
unsigned ProfileOffset = 0) {
if (isImm(*AI)) {
unsigned addr = RI.Build->GetImmValue(AI);
if (Memory::IsRAMAddress(addr)) {
#ifdef _M_IX86
// 32-bit
if (Memory::IsRAMAddress(addr)) {
if (dest)
*dest = regFindFreeReg(RI);
#ifdef _M_IX86
// 32-bit
if (Profiled)
return M((void*)((u8*)Memory::base + (addr & Memory::MEMVIEW32_MASK)));
return M((void*)addr);