Skip to content

Commit 67e205c

Browse files
committed
Restrict spike to vlen <= 4096
1 parent 3b6a8fa commit 67e205c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

disasm/isa_parser.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,10 @@ isa_parser_t::isa_parser_t(const char* str, const char *priv)
457457
}
458458
#endif
459459

460+
if (vlen > 4096) {
461+
bad_isa_string(str, "Spike does not currently support VLEN > 4096b");
462+
}
463+
460464
if ((vlen != 0) ^ (elen != 0)) {
461465
bad_isa_string(str, "Invalid Zvl/Zve configuration");
462466
}

0 commit comments

Comments
 (0)