recompiler: use a function to replace HWADDR macro

This commit is contained in:
Gregory Hainaut 2016-09-07 19:33:26 +02:00
parent c448c2becb
commit b3d31869d6
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ u32 s_psxrecblocks[] = {0};
uptr psxRecLUT[0x10000]; uptr psxRecLUT[0x10000];
uptr psxhwLUT[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; static RecompiledCodeReserve* recMem = NULL;

View File

@ -53,7 +53,7 @@ u32 maxrecmem = 0;
static __aligned16 uptr recLUT[_64kb]; static __aligned16 uptr recLUT[_64kb];
static __aligned16 uptr hwLUT[_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 u32 s_nBlockCycles = 0; // cycles of current block recompiling