drc/gte: add some stall handling
[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
10 /* ARM calling convention:
11    r0-r3, r12: caller-save
12    r4-r11: callee-save */
13
14 /* GCC register naming convention:
15    r10 = sl (base)
16    r11 = fp (frame pointer)
17    r12 = ip (scratch)
18    r13 = sp (stack pointer)
19    r14 = lr (link register)
20    r15 = pc (program counter) */
21
22 #define FP 11
23 #define LR 14
24 #define HOST_TEMPREG 14
25
26 // Note: FP is set to &dynarec_local when executing generated code.
27 // Thus the local variables are actually global and not on the stack.
28
29 extern char *invc_ptr;
30
31 #define TARGET_SIZE_2 24 // 2^24 = 16 megabytes
32
33 struct tramp_insns
34 {
35   u_int ldrpc;
36 };
37