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:
b106e5c
)
sh2 drc, tiny optimization for x86
author
kub
<derkub@gmail.com>
Thu, 15 Apr 2021 22:18:58 +0000
(
00:18
+0200)
committer
kub
<derkub@gmail.com>
Thu, 15 Apr 2021 22:18:58 +0000
(
00:18
+0200)
cpu/sh2/compiler.c
patch
|
blob
|
blame
|
history
diff --git
a/cpu/sh2/compiler.c
b/cpu/sh2/compiler.c
index
8a46f43
..
1adfe83
100644
(file)
--- a/
cpu/sh2/compiler.c
+++ b/
cpu/sh2/compiler.c
@@
-2661,6
+2661,10
@@
static int emit_get_rbase_and_offs(SH2 *sh2, sh2_reg_e r, int rmode, s32 *offs)
} else {
// known fixed host address
la = split_address(la + ((a + *offs) & mask), omask, offs);
+ if (la == 0) {
+ la = *offs;
+ *offs = 0;
+ }
hr = rcache_get_tmp();
emith_move_r_ptr_imm(hr, la);
}