DYNAREC: More work on DIV, no effect
[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 IMM_PREFETCH 1
12 #define HAVE_CONDITIONAL_CALL 1
13 #define RAM_OFFSET 1
14
15 /* ARM calling convention:
16    r0-r3, r12: caller-save
17    r4-r11: callee-save */
18
19 #define ARG1_REG 0
20 #define ARG2_REG 1
21 #define ARG3_REG 2
22 #define ARG4_REG 3
23
24 /* GCC register naming convention:
25    r10 = sl (base)
26    r11 = fp (frame pointer)
27    r12 = ip (scratch)
28    r13 = sp (stack pointer)
29    r14 = lr (link register)
30    r15 = pc (program counter) */
31
32 #define FP 11
33 #define LR 14
34 #define HOST_TEMPREG 14
35
36 // Note: FP is set to &dynarec_local when executing generated code.
37 // Thus the local variables are actually global and not on the stack.
38
39 extern char *invc_ptr;
40 extern char extra_memory[33554432];
41
42 #define BASE_ADDR ((int)(&extra_memory))
43 //#define TARGET_SIZE_2 24 // 2^24 = 16 megabytes
44 #define TARGET_SIZE_2 25 // 2^25 = 32 megabytes