diff --git a/pcsx2/x86/iR3000A.cpp b/pcsx2/x86/iR3000A.cpp index 65169553df..48002285d3 100644 --- a/pcsx2/x86/iR3000A.cpp +++ b/pcsx2/x86/iR3000A.cpp @@ -49,7 +49,7 @@ u32 s_psxrecblocks[] = {0}; uptr psxRecLUT[0x10000]; uptr psxhwLUT[0x10000]; -#define HWADDR(mem) (psxhwLUT[mem >> 16] + (mem)) +static __fi u32 HWADDR(u32 mem) { return psxhwLUT[mem >> 16] + mem; } static RecompiledCodeReserve* recMem = NULL; diff --git a/pcsx2/x86/ix86-32/iR5900-32.cpp b/pcsx2/x86/ix86-32/iR5900-32.cpp index 9028d63b13..29f0bb9cab 100644 --- a/pcsx2/x86/ix86-32/iR5900-32.cpp +++ b/pcsx2/x86/ix86-32/iR5900-32.cpp @@ -53,7 +53,7 @@ u32 maxrecmem = 0; static __aligned16 uptr recLUT[_64kb]; static __aligned16 uptr hwLUT[_64kb]; -#define HWADDR(mem) (hwLUT[mem >> 16] + (mem)) +static __fi u32 HWADDR(u32 mem) { return hwLUT[mem >> 16] + mem; } u32 s_nBlockCycles = 0; // cycles of current block recompiling