extern int arm_cpu_type;

extern int arm_cpu_speed, arm_mem_speed;
extern int arm_has_swp;
extern int arm_has_cp15;

extern void cache_flush();

extern void arm_clock_i(int cycles);

extern void cache_read_timing(uint32_t addr, int is_n_cycle, int is_merged_fetch);
extern void cache_write_timing(uint32_t addr, int is_n_cycle);

#define ARM_USER_MODE (!(armregs[15] & 3))

extern uint32_t rotatelookup[4096];

void recalc_min_timer(void);
