7 #define HAVE_CMOV_IMM 1
8 #define CORTEX_A8_BRANCH_PREDICTION_HACK 1
10 //#define REG_PREFETCH 1
11 #define HAVE_CONDITIONAL_CALL 1
12 #define RAM_SIZE 0x200000
14 #ifndef __ARM_ARCH_7A__
15 //#undef CORTEX_A8_BRANCH_PREDICTION_HACK
19 #ifndef BASE_ADDR_FIXED
20 #define BASE_ADDR_FIXED 0
25 /* ARM calling convention:
26 r0-r3, r12: caller-save
27 r4-r11: callee-save */
34 /* GCC register naming convention:
36 r11 = fp (frame pointer)
38 r13 = sp (stack pointer)
39 r14 = lr (link register)
40 r15 = pc (program counter) */
44 #define HOST_TEMPREG 14
46 // Note: FP is set to &dynarec_local when executing generated code.
47 // Thus the local variables are actually global and not on the stack.
49 extern char *invc_ptr;
51 #define TARGET_SIZE_2 24 // 2^24 = 16 megabytes
53 // Code generator target address
55 // "round" address helpful for debug
56 #define BASE_ADDR 0x1000000
58 extern char translation_cache[1 << TARGET_SIZE_2];
59 #define BASE_ADDR (u_int)translation_cache