summaryrefslogtreecommitdiffstats
path: root/target/riscv/cpu.h
diff options
context:
space:
mode:
authorPalmer Dabbelt2019-06-24 10:59:05 +0200
committerPalmer Dabbelt2019-06-26 07:31:21 +0200
commit50fba816cd226001bec3e495c39879deb2fa5432 (patch)
tree0a8b056c8e90559d6a59fe53c53a8607617c08e4 /target/riscv/cpu.h
parenttarget/riscv: Add support for disabling/enabling Counters (diff)
downloadqemu-50fba816cd226001bec3e495c39879deb2fa5432.tar.gz
qemu-50fba816cd226001bec3e495c39879deb2fa5432.tar.xz
qemu-50fba816cd226001bec3e495c39879deb2fa5432.zip
RISC-V: Add support for the Zifencei extension
fence.i has been split out of the base ISA as part of the ratification process. This patch adds a Zifencei argument, which disables the fence.i instruction. Signed-off-by: Palmer Dabbelt <palmer@sifive.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'target/riscv/cpu.h')
-rw-r--r--target/riscv/cpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h
index 4d4e0f89e2..ba551cd308 100644
--- a/target/riscv/cpu.h
+++ b/target/riscv/cpu.h
@@ -223,6 +223,7 @@ typedef struct RISCVCPU {
bool ext_s;
bool ext_u;
bool ext_counters;
+ bool ext_ifencei;
char *priv_spec;
char *user_spec;