6b3c672c876cb2396d8629cbaaf3e880e83d1e9a
[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 HAVE_CONDITIONAL_CALL 1
9 #define RAM_SIZE 0x200000
10
11 /* ARM calling convention:
12    r0-r3, r12: caller-save
13    r4-r11: callee-save */
14
15 /* GCC register naming convention:
16    r10 = sl (base)
17    r11 = fp (frame pointer)
18    r12 = ip (scratch)
19    r13 = sp (stack pointer)
20    r14 = lr (link register)
21    r15 = pc (program counter) */
22
23 #define FP 11
24 #define LR 14
25 #define HOST_TEMPREG 14
26
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.
29
30 extern char *invc_ptr;
31
32 #define TARGET_SIZE_2 24 // 2^24 = 16 megabytes
33
34 struct tramp_insns
35 {
36   u_int ldrpc;
37 };
38