Skip to content

Commit b06c1e7

Browse files
committed
Make Zaamo + Zalrsc imply A in misa
1 parent 3192ee4 commit b06c1e7

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
@@ -339,6 +339,8 @@ isa_parser_t::isa_parser_t(const char* str, const char *priv)
339339
if (extension_table['A']) {
340340
extension_table[EXT_ZAAMO] = true;
341341
extension_table[EXT_ZALRSC] = true;
342+
} else if (extension_table[EXT_ZAAMO] && extension_table[EXT_ZALRSC]) {
343+
extension_table['A'] = true;
342344
}
343345

344346
if (extension_table['B']) {

0 commit comments

Comments
 (0)