diff --git a/debug/test b/debug/test new file mode 100755 index 000000000..9b7273772 Binary files /dev/null and b/debug/test differ diff --git a/debug/testlib.py b/debug/testlib.py index 1f107be3f..41d9ceaef 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -134,6 +134,9 @@ def command(self, target, halted, timeout, with_jtag_gdb): else: isa = f"RV{self.harts[0].xlen}G" + if 'V' in isa[2:]: + isa += f"_Zvl{self.vlen}b_Zve{self.elen}d" + cmd += ["--isa", isa] cmd += ["--dm-auth"] @@ -159,8 +162,6 @@ def command(self, target, halted, timeout, with_jtag_gdb): if not self.support_haltgroups: cmd.append("--dm-no-halt-groups") - if 'V' in isa[2:]: - cmd.append(f"--varch=vlen:{self.vlen},elen:{self.elen}") assert len(set(t.ram for t in self.harts)) == 1, \ "All spike harts must have the same RAM layout"