diff options
author | Alistair Francis | 2019-05-07 00:49:53 +0200 |
---|---|---|
committer | Palmer Dabbelt | 2019-06-24 08:44:41 +0200 |
commit | b55d7d34f6adf7bd246ae2eabf2d66eb5e024a68 (patch) | |
tree | 110aa673d0c0ad9ae4af2606a507c4c170eb73ab /target/riscv/cpu.h | |
parent | Merge remote-tracking branch 'remotes/amarkovic/tags/mips-queue-jun-21-2019' ... (diff) | |
download | qemu-b55d7d34f6adf7bd246ae2eabf2d66eb5e024a68.tar.gz qemu-b55d7d34f6adf7bd246ae2eabf2d66eb5e024a68.tar.xz qemu-b55d7d34f6adf7bd246ae2eabf2d66eb5e024a68.zip |
target/riscv: Allow setting ISA extensions via CPU props
This patch allows us to enable/disable the RISC-V ISA extensions from
the QEMU command line. This works with the rv32 and rv64 machines. The
idea is that in the future we can now add extensions and leave them
disabled by default until enabled by the user.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'target/riscv/cpu.h')
-rw-r--r-- | target/riscv/cpu.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 6c5de37b25..b47cde5017 100644 --- a/target/riscv/cpu.h +++ b/target/riscv/cpu.h @@ -211,6 +211,17 @@ typedef struct RISCVCPU { /* Configuration Settings */ struct { + bool ext_i; + bool ext_e; + bool ext_g; + bool ext_m; + bool ext_a; + bool ext_f; + bool ext_d; + bool ext_c; + bool ext_s; + bool ext_u; + char *priv_spec; char *user_spec; bool mmu; |