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:
6c5784f
)
sh2 drc, fix for MIPS EABI
author
kub
<derkub@gmail.com>
Wed, 13 Jan 2021 22:14:00 +0000
(23:14 +0100)
committer
kub
<derkub@gmail.com>
Wed, 13 Jan 2021 22:14:00 +0000
(23:14 +0100)
cpu/sh2/compiler.h
patch
|
blob
|
blame
|
history
diff --git
a/cpu/sh2/compiler.h
b/cpu/sh2/compiler.h
index
bc12819
..
0f4148f
100644
(file)
--- a/
cpu/sh2/compiler.h
+++ b/
cpu/sh2/compiler.h
@@
-43,7
+43,7
@@
u16 scan_block(u32 base_pc, int is_slave, u8 *op_flags, u32 *end_pc,
#define DRC_REG_LL (__ILP32__ || _WIN32)
#elif defined(__mips__)
#define DRC_SR_REG "s6"
-#define DRC_REG_LL (_MIPS_SIM == _ABIN32)
+#define DRC_REG_LL (_MIPS_S
ZPTR > _MIPS_SZLONG) // (_MIPS_S
IM == _ABIN32)
#elif defined(__riscv__) || defined(__riscv)
#define DRC_SR_REG "s11"
#define DRC_REG_LL 0 // no ABI for (__ILP32__ && __riscv_xlen != 32)