drc: use correct RAM size
[pcsx_rearmed.git] / libpcsxcore / new_dynarec / assem_arm.h
CommitLineData
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
8#define CORTEX_A8_BRANCH_PREDICTION_HACK 1
9#define USE_MINI_HT 1
10//#define REG_PREFETCH 1
94d23bb9 11#define DISABLE_TLB 1
3d624f89 12//#define MUPEN64
13#define FORCE32 1
14#define DISABLE_COP1 1
7139f3c8 15#define PCSX 1
4cb76aa4 16#define RAM_SIZE 0x200000
3d624f89 17
18#ifdef FORCE32
19#define REG_SHIFT 2
20#else
21#define REG_SHIFT 3
22#endif
57871462 23
24/* ARM calling convention:
25 r0-r3, r12: caller-save
26 r4-r11: callee-save */
27
28#define ARG1_REG 0
29#define ARG2_REG 1
30#define ARG3_REG 2
31#define ARG4_REG 3
32
33/* GCC register naming convention:
34 r10 = sl (base)
35 r11 = fp (frame pointer)
36 r12 = ip (scratch)
37 r13 = sp (stack pointer)
38 r14 = lr (link register)
39 r15 = pc (program counter) */
40
41#define FP 11
42#define LR 14
43#define HOST_TEMPREG 14
44
45// Note: FP is set to &dynarec_local when executing generated code.
46// Thus the local variables are actually global and not on the stack.
47
48extern char *invc_ptr;
49
7139f3c8 50#define BASE_ADDR 0x1000000 // Code generator target address
57871462 51#define TARGET_SIZE_2 24 // 2^24 = 16 megabytes
52
53// This is defined in linkage_arm.s, but gcc -O3 likes this better
54#define rdram ((unsigned int *)0x80000000)