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:
7ed05f8
)
sh2 drc, fix arm32 ld/st offset for -256
author
kub
<derkub@gmail.com>
Sun, 14 Nov 2021 20:16:51 +0000
(21:16 +0100)
committer
kub
<derkub@gmail.com>
Sun, 14 Nov 2021 20:17:58 +0000
(21:17 +0100)
cpu/sh2/compiler.c
patch
|
blob
|
blame
|
history
diff --git
a/cpu/sh2/compiler.c
b/cpu/sh2/compiler.c
index
bb2206c
..
7e622cd
100644
(file)
--- a/
cpu/sh2/compiler.c
+++ b/
cpu/sh2/compiler.c
@@
-2615,7
+2615,7
@@
static uptr split_address(uptr la, uptr mask, s32 *offs)
// arm32 offset has an add/sub flag and an unsigned 8 bit value, which only
// allows values of [-255...255]. the value -256 thus can't be used.
if (*offs + sign == 0) {
- la
+
= sign;
+ la
-
= sign;
*offs += sign;
}
#endif