notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49e4b97
)
drc: fix some table math
author
notaz
<notasas@gmail.com>
Sat, 8 Jul 2023 14:53:56 +0000
(17:53 +0300)
committer
notaz
<notasas@gmail.com>
Sat, 8 Jul 2023 21:22:04 +0000
(
00:22
+0300)
libretro/pcsx_rearmed#713
libpcsxcore/new_dynarec/pcsxmem.c
patch
|
blob
|
blame
|
history
diff --git
a/libpcsxcore/new_dynarec/pcsxmem.c
b/libpcsxcore/new_dynarec/pcsxmem.c
index
69a4c99
..
a32b418
100644
(file)
--- a/
libpcsxcore/new_dynarec/pcsxmem.c
+++ b/
libpcsxcore/new_dynarec/pcsxmem.c
@@
-47,7
+47,8
@@
void map_item(uintptr_t *out, const void *h, uintptr_t flag)
// size must be power of 2, at least 4k
#define map_l1_mem(tab, i, addr, size, base) \
- map_item(&tab[((addr)>>12) + i], (u8 *)(base) - (u32)(addr) - ((i << 12) & ~(size - 1)), 0)
+ map_item(&tab[((addr)>>12) + i], \
+ (u8 *)(base) - (u32)((addr) + ((i << 12) & ~(size - 1))), 0)
#define IOMEM32(a) (((a) & 0xfff) / 4)
#define IOMEM16(a) (0x1000/4 + (((a) & 0xfff) / 2))