From e006204543dd0b83a5b97fb08646d8b7089737b3 Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Thu, 8 Aug 2019 17:05:38 -0400 Subject: [PATCH] target/riscv: Set privledge spec 1.11.0 as default Set the priv spec version 1.11.0 as the default and allow selecting it via the command line. Backports commit e3147506b02edcdd7c14ebb41a10fcc3027dcc5c from qemu --- qemu/target/riscv/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/target/riscv/cpu.c b/qemu/target/riscv/cpu.c index a263defa..cbffc3a5 100644 --- a/qemu/target/riscv/cpu.c +++ b/qemu/target/riscv/cpu.c @@ -106,7 +106,7 @@ static void riscv_any_cpu_init(struct uc_struct *uc, Object *obj, void *opaque) { CPURISCVState *env = &RISCV_CPU(uc, obj)->env; set_misa(env, RVXLEN | RVI | RVM | RVA | RVF | RVD | RVC | RVU); - set_versions(env, USER_VERSION_2_02_0, PRIV_VERSION_1_10_0); + set_versions(env, USER_VERSION_2_02_0, PRIV_VERSION_1_11_0); set_resetvec(env, DEFAULT_RSTVEC); }