a9db4f87c709eb31b2f6932ceec41911f24fa9a2
[mupen64plus-pandora.git] / source / mupen64plus-core / src / r4300 / new_dynarec / assem_arm.h
1 #define HOST_REGS 13
2 #define HOST_CCREG 10
3 #define HOST_BTREG 8
4 #define EXCLUDE_REG 11
5
6 #define HOST_IMM8 1
7 #define HAVE_CMOV_IMM 1
8 #define CORTEX_A8_BRANCH_PREDICTION_HACK 1
9 #define USE_MINI_HT 1
10 //#define REG_PREFETCH 1
11 #define HAVE_CONDITIONAL_CALL 1
12 #define RAM_OFFSET 1
13
14 /* ARM calling convention:
15    r0-r3, r12: caller-save
16    r4-r11: callee-save */
17
18 #define ARG1_REG 0
19 #define ARG2_REG 1
20 #define ARG3_REG 2
21 #define ARG4_REG 3
22
23 /* GCC register naming convention:
24    r10 = sl (base)
25    r11 = fp (frame pointer)
26    r12 = ip (scratch)
27    r13 = sp (stack pointer)
28    r14 = lr (link register)
29    r15 = pc (program counter) */
30
31 #define FP 11
32 #define LR 14
33 #define HOST_TEMPREG 14
34
35 // Note: FP is set to &dynarec_local when executing generated code.
36 // Thus the local variables are actually global and not on the stack.
37
38 extern char *invc_ptr;
39 extern char extra_memory[33554432];
40
41 #define BASE_ADDR ((int)(&extra_memory))
42 //#define TARGET_SIZE_2 24 // 2^24 = 16 megabytes
43 #define TARGET_SIZE_2 25 // 2^25 = 32 megabytes