diff options
author | Alistair Francis <alistair.francis@wdc.com> | 2019-06-17 18:31:05 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2019-06-24 01:03:45 -0700 |
commit | 6729dbbd420696fcf69cf2c86bdfc66e072058ce (patch) | |
tree | 2c1dd04c6f40039f19ea6207bfde085660833b7f | |
parent | c1fb65e63cfca4506a14b084afd0eca2dc464fe8 (diff) | |
download | qemu-6729dbbd420696fcf69cf2c86bdfc66e072058ce.zip qemu-6729dbbd420696fcf69cf2c86bdfc66e072058ce.tar.gz qemu-6729dbbd420696fcf69cf2c86bdfc66e072058ce.tar.bz2 |
target/riscv: Add the privledge spec version 1.11.0
Add support for the ratified RISC-V privledge spec.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
-rw-r--r-- | target/riscv/cpu.h | 1 | ||||
-rw-r--r-- | target/riscv/insn_trans/trans_privileged.inc.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 5eb9cab..d559d28 100644 --- a/target/riscv/cpu.h +++ b/target/riscv/cpu.h @@ -81,6 +81,7 @@ enum { #define USER_VERSION_2_02_0 0x00020200 #define PRIV_VERSION_1_09_1 0x00010901 #define PRIV_VERSION_1_10_0 0x00011000 +#define PRIV_VERSION_1_11_0 0x00011100 #define TRANSLATE_PMP_FAIL 2 #define TRANSLATE_FAIL 1 diff --git a/target/riscv/insn_trans/trans_privileged.inc.c b/target/riscv/insn_trans/trans_privileged.inc.c index 664d6ba..c5e4b3e 100644 --- a/target/riscv/insn_trans/trans_privileged.inc.c +++ b/target/riscv/insn_trans/trans_privileged.inc.c @@ -90,7 +90,7 @@ static bool trans_wfi(DisasContext *ctx, arg_wfi *a) static bool trans_sfence_vma(DisasContext *ctx, arg_sfence_vma *a) { #ifndef CONFIG_USER_ONLY - if (ctx->priv_ver == PRIV_VERSION_1_10_0) { + if (ctx->priv_ver >= PRIV_VERSION_1_10_0) { gen_helper_tlb_flush(cpu_env); return true; } |