notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gpu_neon: fix some missing ebuf updates
[pcsx_rearmed.git]
/
libpcsxcore
/
psxmem.h
diff --git
a/libpcsxcore/psxmem.h
b/libpcsxcore/psxmem.h
index
a52472c
..
4e95c4d
100644
(file)
--- a/
libpcsxcore/psxmem.h
+++ b/
libpcsxcore/psxmem.h
@@
-116,12
+116,17
@@
extern u8 **psxMemWLUT;
extern u8 **psxMemRLUT;
extern int cache_isolated;
extern u8 **psxMemRLUT;
extern int cache_isolated;
+#ifndef DISABLE_MEM_LUTS
+#define DISABLE_MEM_LUTS 0
+#endif
+
static inline void * psxm_lut(u32 mem, int write, u8 **lut)
{
if (!DISABLE_MEM_LUTS) {
void *ptr = lut[mem >> 16];
static inline void * psxm_lut(u32 mem, int write, u8 **lut)
{
if (!DISABLE_MEM_LUTS) {
void *ptr = lut[mem >> 16];
- return ptr == INVALID_PTR ? INVALID_PTR : ptr + (u16)mem;
+ return ptr == INVALID_PTR ? INVALID_PTR
+ : (void *)((uintptr_t)ptr + (u16)mem);
}
if (mem >= 0xa0000000)
}
if (mem >= 0xa0000000)