7 #define HAVE_CMOV_IMM 1
8 #define HAVE_CONDITIONAL_CALL 1
9 #define RAM_SIZE 0x200000
11 /* ARM calling convention:
12 r0-r3, r12: caller-save
13 r4-r11: callee-save */
15 /* GCC register naming convention:
17 r11 = fp (frame pointer)
19 r13 = sp (stack pointer)
20 r14 = lr (link register)
21 r15 = pc (program counter) */
25 #define HOST_TEMPREG 14
27 // Note: FP is set to &dynarec_local when executing generated code.
28 // Thus the local variables are actually global and not on the stack.
30 extern char *invc_ptr;
32 #define TARGET_SIZE_2 24 // 2^24 = 16 megabytes
34 // Code generator target address
35 #if defined(BASE_ADDR_FIXED)
36 // "round" address helpful for debug
37 // this produces best code, but not many platforms allow it,
38 // only use if you are sure this range is always free
39 #define BASE_ADDR_ 0x1000000
40 #define translation_cache (u_char *)BASE_ADDR_
41 #elif defined(BASE_ADDR_DYNAMIC)
42 // for platforms that can't just use .bss buffer, like vita
43 // otherwise better to use the next option for closer branches
44 extern u_char *translation_cache;
46 // using a static buffer in .bss
47 extern u_char translation_cache[1 << TARGET_SIZE_2];