mirror of https://github.com/PCSX2/pcsx2.git
recompiler: use a function to replace HWADDR macro
This commit is contained in:
parent
c448c2becb
commit
b3d31869d6
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue