From 3b72e04485d2d1aafdf57e8803cce9b0e73b1a45 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Tue, 12 Nov 2019 16:57:10 -0800 Subject: Add --priv option to control which privilege modes are available Signed-off-by: Chih-Min Chao --- riscv/processor.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'riscv/processor.h') diff --git a/riscv/processor.h b/riscv/processor.h index b80131c..7972c13 100644 --- a/riscv/processor.h +++ b/riscv/processor.h @@ -307,8 +307,8 @@ static int cto(reg_t val) class processor_t : public abstract_device_t { public: - processor_t(const char* isa, const char* varch, simif_t* sim, uint32_t id, - bool halt_on_reset=false); + processor_t(const char* isa, const char* priv, const char* varch, + simif_t* sim, uint32_t id, bool halt_on_reset=false); ~processor_t(); void set_debug(bool value); @@ -475,8 +475,9 @@ private: friend class clint_t; friend class extension_t; - void parse_varch_string(const char* isa); - void parse_isa_string(const char* isa); + void parse_varch_string(const char*); + void parse_priv_string(const char*); + void parse_isa_string(const char*); void build_opcode_map(); void register_base_instructions(); insn_func_t decode_insn(insn_t insn); -- cgit v1.1