aboutsummaryrefslogtreecommitdiff
path: root/target/riscv/cpu.h
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@sifive.com>2019-06-24 01:59:05 -0700
committerPalmer Dabbelt <palmer@sifive.com>2019-06-25 22:31:21 -0700
commit50fba816cd226001bec3e495c39879deb2fa5432 (patch)
tree0a8b056c8e90559d6a59fe53c53a8607617c08e4 /target/riscv/cpu.h
parent0a13a5b856ebb59dec6d165b87a0ba0e1e2dd952 (diff)
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;