57871462 |
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 |
0bbd1454 |
8 | #define HAVE_CONDITIONAL_CALL 1 |
4cb76aa4 |
9 | #define RAM_SIZE 0x200000 |
3d624f89 |
10 | |
57871462 |
11 | /* ARM calling convention: |
12 | r0-r3, r12: caller-save |
13 | r4-r11: callee-save */ |
14 | |
57871462 |
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 | |
57871462 |
32 | #define TARGET_SIZE_2 24 // 2^24 = 16 megabytes |
33 | |
2a014d73 |
34 | struct tramp_insns |
35 | { |
36 | u_int ldrpc; |
37 | }; |
38 | |