drc: starting arm64 support
[pcsx_rearmed.git] / libpcsxcore / new_dynarec / assem_arm64.h
CommitLineData
be516ebe 1#define HOST_REGS 29
2#define HOST_BTREG 27
3#define EXCLUDE_REG -1
4
5#define HOST_IMM8 1
6#define HAVE_CMOV_IMM 1
7#define RAM_SIZE 0x200000
8
9//#define REG_SHIFT 2
10
11/* calling convention:
12 r0 -r17: caller-save
13 r19-r29: callee-save */
14
15#define ARG1_REG 0
16#define ARG2_REG 1
17#define ARG3_REG 2
18#define ARG4_REG 3
19
20#define LR 30
21#define HOST_TEMPREG LR
22
23// Note: FP is set to &dynarec_local when executing generated code.
24// Thus the local variables are actually global and not on the stack.
25#define FP 29
26#define rFP x29
27
28#define HOST_CCREG 28
29#define rCC w28
30
31#ifndef __ASSEMBLER__
32
33extern char *invc_ptr;
34
35#define TARGET_SIZE_2 24 // 2^24 = 16 megabytes
36
37// Code generator target address
38#if defined(BASE_ADDR_DYNAMIC)
39 // for platforms that can't just use .bss buffer (are there any on arm64?)
40 extern u_char *translation_cache;
41#else
42 // using a static buffer in .bss
43 extern u_char translation_cache[1 << TARGET_SIZE_2];
44#endif
45
46#endif // !__ASSEMBLY__