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 */
16 #define xA7 17 /* syscall number for RVI ABI */
17 #define xT0 5 /* syscall number for RVE ABI */