overhaul of the register cache (improves generated code by some 10+%)

This commit is contained in:
kub 2019-04-01 23:39:58 +02:00
parent e267031a50
commit 4f4e9bf3bd
4 changed files with 1455 additions and 667 deletions

View file

@ -31,8 +31,10 @@ void scan_block(unsigned int base_pc, int is_slave,
// XXX MUST match definitions in cpu/sh2/compiler.c
#if defined(__arm__)
#define DRC_SR_REG r10
#elif defined(__i386__) || defined(__x86_64__)
#elif defined(__i386__)
#define DRC_SR_REG edi
#elif defined(__x86_64__)
#define DRC_SR_REG ebx
#else
#warning "direct DRC register access not available for this host"
#endif