notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ea898e
)
Fix SH2 DRC for x86 (32 bit) builds
author
David Guillen Fandos
<david@davidgf.net>
Mon, 16 Aug 2021 16:01:58 +0000
(18:01 +0200)
committer
David Guillen Fandos
<david@davidgf.net>
Mon, 16 Aug 2021 16:03:34 +0000
(18:03 +0200)
Turns out it doesn't work on my machine, perhaps due to newer gcc
being... unlucky! See issue #27 for more info.
Also, this fixes issue #27.
pico/32x/memory.c
patch
|
blob
|
blame
|
history
diff --git
a/pico/32x/memory.c
b/pico/32x/memory.c
index
d49cd2a
..
fe7bc07
100644
(file)
--- a/
pico/32x/memory.c
+++ b/
pico/32x/memory.c
@@
-1868,7
+1868,7
@@
static void REGPARM(3) sh2_write32_rom(u32 a, u32 d, SH2 *sh2)
sh2_write16_rom(a + 2, d, sh2);
}
-typedef u32 (sh2_read_handler)(u32 a, SH2 *sh2);
+typedef u32
REGPARM(2)
(sh2_read_handler)(u32 a, SH2 *sh2);
typedef void REGPARM(3) (sh2_write_handler)(u32 a, u32 d, SH2 *sh2);
#define SH2MAP_ADDR2OFFS_R(a) \