diff options
author | Rupert Swarbrick <rswarbrick@gmail.com> | 2022-03-11 21:44:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-11 13:44:54 -0800 |
commit | 59ec157568d2a52feeec568ac042362db1c5ddbc (patch) | |
tree | 802e4fd68f756a543b02bf763d029051f4404fc7 /disasm | |
parent | 29dca8b846250a015e84b36e40f4bd1b57bf55fa (diff) | |
download | spike-59ec157568d2a52feeec568ac042362db1c5ddbc.zip spike-59ec157568d2a52feeec568ac042362db1c5ddbc.tar.gz spike-59ec157568d2a52feeec568ac042362db1c5ddbc.tar.bz2 |
Incorporate supported privilege levels into isa_parser_t (#940)
These affect the "max_isa" value (now exposed as get_max_isa()) and
feel like they're similar to the other computations done in
isa_parser_t.
Diffstat (limited to 'disasm')
-rw-r--r-- | disasm/disasm.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disasm/disasm.cc b/disasm/disasm.cc index beb18c2..52dede6 100644 --- a/disasm/disasm.cc +++ b/disasm/disasm.cc @@ -2032,7 +2032,7 @@ disassembler_t::disassembler_t(const isa_parser_t *isa) // next-highest priority: other instructions in same base ISA std::string fallback_isa_string = std::string("rv") + std::to_string(isa->get_max_xlen()) + "gcv_zfh_zba_zbb_zbc_zbs_zkn_zkr_zks_xbitmanip"; - isa_parser_t fallback_isa(fallback_isa_string.c_str()); + isa_parser_t fallback_isa(fallback_isa_string.c_str(), DEFAULT_PRIV); add_instructions(&fallback_isa); // finally: instructions with known opcodes but unknown arguments |