diff --git a/qemu/target/riscv/cpu.h b/qemu/target/riscv/cpu.h index 45a3721f..e5122665 100644 --- a/qemu/target/riscv/cpu.h +++ b/qemu/target/riscv/cpu.h @@ -125,6 +125,10 @@ struct CPURISCVState { uint32_t features; +#ifdef CONFIG_USER_ONLY + uint32_t elf_flags; +#endif + #ifndef CONFIG_USER_ONLY target_ulong priv; target_ulong resetvec; diff --git a/qemu/target/riscv/cpu_user.h b/qemu/target/riscv/cpu_user.h index c2199610..52d380aa 100644 --- a/qemu/target/riscv/cpu_user.h +++ b/qemu/target/riscv/cpu_user.h @@ -10,4 +10,5 @@ #define xA4 14 #define xA5 15 #define xA6 16 -#define xA7 17 /* syscall number goes here */ +#define xA7 17 /* syscall number for RVI ABI */ +#define xT0 5 /* syscall number for RVE ABI */