mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
sh2 drc, fix sh2 reg enum usage
This commit is contained in:
parent
fde25b40fe
commit
7082729e06
2 changed files with 2 additions and 5 deletions
|
@ -109,10 +109,6 @@ static int insns_compiled, hash_collisions, host_insn_count;
|
||||||
#define GET_Rn() \
|
#define GET_Rn() \
|
||||||
((op >> 8) & 0x0f)
|
((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 T 0x00000001
|
||||||
#define S 0x00000002
|
#define S 0x00000002
|
||||||
#define I 0x000000f0
|
#define I 0x000000f0
|
||||||
|
|
|
@ -9,7 +9,8 @@ typedef enum {
|
||||||
SHR_R0 = 0, SHR_SP = 15,
|
SHR_R0 = 0, SHR_SP = 15,
|
||||||
SHR_PC, SHR_PPC, SHR_PR, SHR_SR,
|
SHR_PC, SHR_PPC, SHR_PR, SHR_SR,
|
||||||
SHR_GBR, SHR_VBR, SHR_MACH, SHR_MACL,
|
SHR_GBR, SHR_VBR, SHR_MACH, SHR_MACL,
|
||||||
SH2_REGS // register set size
|
SH2_REGS, // register set size
|
||||||
|
SHR_T = 29, SHR_MEM = 30, SHR_TMP = 31, // drc specific pseudo regs
|
||||||
} sh2_reg_e;
|
} sh2_reg_e;
|
||||||
#define SHR_R(n) (SHR_R0+(n))
|
#define SHR_R(n) (SHR_R0+(n))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue