mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-07 16:18:04 -04:00
sh2 drc, minor optimization for x86 backend
This commit is contained in:
parent
c1812e1a85
commit
cb4379b3bf
2 changed files with 7 additions and 7 deletions
|
@ -50,9 +50,10 @@ u16 scan_block(u32 base_pc, int is_slave, u8 *op_flags, u32 *end_pc,
|
|||
#elif defined(__powerpc__) || defined(__ppc__) || defined(__PPC__)
|
||||
#define DRC_SR_REG "r28"
|
||||
#define DRC_REG_LL 0 // no ABI for __ILP32__
|
||||
#elif defined(__i386__)
|
||||
#define DRC_SR_REG "edi"
|
||||
#define DRC_REG_LL 0 // 32 bit
|
||||
//i386 only has 8 registers and reserving one of them causes too much spilling
|
||||
//#elif defined(__i386__)
|
||||
//#define DRC_SR_REG "edi"
|
||||
//#define DRC_REG_LL 0 // 32 bit
|
||||
#elif defined(__x86_64__)
|
||||
#define DRC_SR_REG "rbx"
|
||||
#define DRC_REG_LL (__ILP32__ || _WIN32)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue