Skip to content

Commit

Permalink
Merge pull request #1561 from demin-han/master
Browse files Browse the repository at this point in the history
Fix order of H extension in ISA string
  • Loading branch information
aswaterman authored Jan 9, 2024
2 parents 5fa1cd5 + 40baa01 commit d6f622e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion disasm/disasm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2390,7 +2390,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()) +
"gqchv_zfh_zba_zbb_zbc_zbs_zcb_zicbom_zicboz_zicond_zkn_zkr_zks_svinval_zcmop_zimop";
"gqcvh_zfh_zba_zbb_zbc_zbs_zcb_zicbom_zicboz_zicond_zkn_zkr_zks_svinval_zcmop_zimop";
isa_parser_t fallback_isa(fallback_isa_string.c_str(), DEFAULT_PRIV);
add_instructions(&fallback_isa);

Expand Down
2 changes: 1 addition & 1 deletion disasm/isa_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static void bad_priv_string(const char* priv)
isa_parser_t::isa_parser_t(const char* str, const char *priv)
{
isa_string = strtolower(str);
const char* all_subsets = "mafdqchpv";
const char* all_subsets = "mafdqcpvh";

if (isa_string.compare(0, 4, "rv32") == 0)
max_xlen = 32;
Expand Down

0 comments on commit d6f622e

Please sign in to comment.