cc8b06751df67b0de21536826bfba0bda8d5772b
[pcsx_rearmed.git] / libpcsxcore / 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 DISABLE_TLB 1
12
13 /* ARM calling convention:
14    r0-r3, r12: caller-save
15    r4-r11: callee-save */
16
17 #define ARG1_REG 0
18 #define ARG2_REG 1
19 #define ARG3_REG 2
20 #define ARG4_REG 3
21
22 /* GCC register naming convention:
23    r10 = sl (base)
24    r11 = fp (frame pointer)
25    r12 = ip (scratch)
26    r13 = sp (stack pointer)
27    r14 = lr (link register)
28    r15 = pc (program counter) */
29
30 #define FP 11
31 #define LR 14
32 #define HOST_TEMPREG 14
33
34 // Note: FP is set to &dynarec_local when executing generated code.
35 // Thus the local variables are actually global and not on the stack.
36
37 extern char *invc_ptr;
38
39 #define BASE_ADDR 0x7000000 // Code generator target address
40 #define TARGET_SIZE_2 24 // 2^24 = 16 megabytes
41
42 // This is defined in linkage_arm.s, but gcc -O3 likes this better
43 #define rdram ((unsigned int *)0x80000000)