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:
fde25b4
)
sh2 drc, fix sh2 reg enum usage
author
kub
<derkub@gmail.com>
Sun, 1 Nov 2020 21:55:48 +0000
(22:55 +0100)
committer
kub
<derkub@gmail.com>
Sun, 1 Nov 2020 21:55:48 +0000
(22:55 +0100)
cpu/sh2/compiler.c
patch
|
blob
|
blame
|
history
cpu/sh2/sh2.h
patch
|
blob
|
blame
|
history
diff --git
a/cpu/sh2/compiler.c
b/cpu/sh2/compiler.c
index
93c6891
..
9da6184
100644
(file)
--- a/
cpu/sh2/compiler.c
+++ b/
cpu/sh2/compiler.c
@@
-109,10
+109,6
@@
static int insns_compiled, hash_collisions, host_insn_count;
#define GET_Rn() \
((op >> 8) & 0x0f)
-#define SHR_T 30 // separate T for not-used detection
-#define SHR_MEM 31
-#define SHR_TMP -1
-
#define T 0x00000001
#define S 0x00000002
#define I 0x000000f0
diff --git
a/cpu/sh2/sh2.h
b/cpu/sh2/sh2.h
index
eab5268
..
1c777f8
100644
(file)
--- a/
cpu/sh2/sh2.h
+++ b/
cpu/sh2/sh2.h
@@
-9,7
+9,8
@@
typedef enum {
SHR_R0 = 0, SHR_SP = 15,
\r
SHR_PC, SHR_PPC, SHR_PR, SHR_SR,
\r
SHR_GBR, SHR_VBR, SHR_MACH, SHR_MACL,
\r
- SH2_REGS // register set size
\r
+ SH2_REGS, // register set size
\r
+ SHR_T = 29, SHR_MEM = 30, SHR_TMP = 31, // drc specific pseudo regs
\r
} sh2_reg_e;
\r
#define SHR_R(n) (SHR_R0+(n))
\r
\r