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
15 #define DISABLE_COP1 1
17 #define RAM_SIZE 0x200000
19 #ifndef __ARM_ARCH_7A__
20 //#undef CORTEX_A8_BRANCH_PREDICTION_HACK
24 #ifndef BASE_ADDR_FIXED
25 #define BASE_ADDR_FIXED 0
34 /* ARM calling convention:
35 r0-r3, r12: caller-save
36 r4-r11: callee-save */
43 /* GCC register naming convention:
45 r11 = fp (frame pointer)
47 r13 = sp (stack pointer)
48 r14 = lr (link register)
49 r15 = pc (program counter) */
53 #define HOST_TEMPREG 14
55 // Note: FP is set to &dynarec_local when executing generated code.
56 // Thus the local variables are actually global and not on the stack.
58 extern char *invc_ptr;
60 #define TARGET_SIZE_2 24 // 2^24 = 16 megabytes
62 // Code generator target address
64 // "round" address helpful for debug
65 #define BASE_ADDR 0x1000000
67 extern char translation_cache[1 << TARGET_SIZE_2];
68 #define BASE_ADDR (u_int)translation_cache