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