Skip to content

Commit

Permalink
Update isa_parser.cc
Browse files Browse the repository at this point in the history
strlen of "zvl" is 3, not 4

Signed-off-by: dxtao29 <[email protected]>
  • Loading branch information
ddwolf authored Sep 20, 2024
1 parent 52aff02 commit be8bdbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disasm/isa_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ isa_parser_t::isa_parser_t(const char* str, const char *priv)
} else if (ext_str.substr(0, 3) == "zvl") {
reg_t new_vlen;
try {
new_vlen = std::stol(ext_str.substr(3, ext_str.size() - 4));
new_vlen = std::stol(ext_str.substr(3, ext_str.size() - 3));
} catch (std::logic_error& e) {
new_vlen = 0;
}
Expand Down

0 comments on commit be8bdbf

Please sign in to comment.