DRC: reworked scan_block (fix register usage masks, better block and literals detection)

This commit is contained in:
kub 2019-03-25 20:23:04 +01:00
parent 32feba7458
commit b804d9543b
3 changed files with 162 additions and 85 deletions

View file

@ -5,7 +5,7 @@ typedef signed short s16;
typedef unsigned int u32;
typedef signed int s32;
#define DRC_TCACHE_SIZE (2*1024*1024)
#define DRC_TCACHE_SIZE (4*1024*1024)
extern u8 *tcache;

View file

@ -686,7 +686,7 @@ enum { xAX = 0, xCX, xDX, xBX, xSP, xBP, xSI, xDI };
case 0: rd = xDI; break; \
case 1: rd = xSI; break; \
case 2: rd = xDX; break; \
case 2: rd = xBX; break; \
case 3: rd = xBX; break; \
}
#define emith_sh2_drc_entry() { \