Skip to content

Commit

Permalink
Use Zvl/Zve to communicate VLEN/ELEN to target in debug tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Jun 20, 2024
1 parent 1d3c10c commit 00ab5f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file added debug/test
Binary file not shown.
5 changes: 3 additions & 2 deletions debug/testlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand All @@ -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"
Expand Down

0 comments on commit 00ab5f0

Please sign in to comment.