From be8bdbfaba4f994899511c29f4d888a8b38f4778 Mon Sep 17 00:00:00 2001 From: dxtao29 Date: Fri, 20 Sep 2024 18:15:09 +0800 Subject: [PATCH] Update isa_parser.cc strlen of "zvl" is 3, not 4 Signed-off-by: dxtao29 --- disasm/isa_parser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disasm/isa_parser.cc b/disasm/isa_parser.cc index 95ef8fb0b6..ca9ea0b69c 100644 --- a/disasm/isa_parser.cc +++ b/disasm/isa_parser.cc @@ -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; }