Skip to content

Commit 55ee3a5

Browse files
committed
Make Zba + Zbb + Zbs imply B in misa
1 parent b06c1e7 commit 55ee3a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

disasm/isa_parser.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ isa_parser_t::isa_parser_t(const char* str, const char *priv)
347347
extension_table[EXT_ZBA] = true;
348348
extension_table[EXT_ZBB] = true;
349349
extension_table[EXT_ZBS] = true;
350+
} else if (extension_table[EXT_ZBA] && extension_table[EXT_ZBB] && extension_table[EXT_ZBS]) {
351+
extension_table['B'] = true;
350352
}
351353

352354
if (extension_table['C']) {

0 commit comments

Comments
 (0)