Merge remote-tracking branch 'remotes/stefanha-gitlab/tags/tracing-pull-request'...
[qemu/ar7.git] / target / riscv / cpu_user.h
blob02afad608b445fdc7567b486ab896afdc3f74ff8
1 #ifndef TARGET_RISCV_CPU_USER_H
2 #define TARGET_RISCV_CPU_USER_H
4 #define xRA 1 /* return address (aka link register) */
5 #define xSP 2 /* stack pointer */
6 #define xGP 3 /* global pointer */
7 #define xTP 4 /* thread pointer */
9 #define xA0 10 /* gpr[10-17] are syscall arguments */
10 #define xA1 11
11 #define xA2 12
12 #define xA3 13
13 #define xA4 14
14 #define xA5 15
15 #define xA6 16
16 #define xA7 17 /* syscall number for RVI ABI */
17 #define xT0 5 /* syscall number for RVE ABI */
19 #endif