drc: lots of new debug code
[picodrive.git] / cpu / sh2 / compiler.h
CommitLineData
e898de13 1int sh2_drc_init(SH2 *sh2);
2void sh2_drc_finish(SH2 *sh2);
23686515 3void sh2_drc_mem_setup(SH2 *sh2);
c18edb34 4void sh2_drc_flush_all(void);
f4bb5d6b 5void sh2_drc_wcheck_ram(unsigned int a, int val, int cpuid);
6void sh2_drc_wcheck_da(unsigned int a, int val, int cpuid);
679af8a3 7
00faec9c 8#define BLOCK_CYCLE_LIMIT 128
9
10#define OP_FLAGS(pc) op_flags[((pc) - (base_pc)) / 2]
11#define OF_DELAY_OP (1 << 0)
12#define OF_TARGET (1 << 1)
13
14void scan_block(unsigned int base_pc, int is_slave,
15 unsigned char *op_flags, unsigned int *end_pc);