Skip to content

Commit

Permalink
Fix wrong parse script
Browse files Browse the repository at this point in the history
If test --with-arch=rv32imc_zve128x
NameError: name 'arch' is not defined

Signed-off-by: Kwanghoon Son <[email protected]>
  • Loading branch information
KwangSon committed Dec 16, 2022
1 parent 29d02b7 commit 7dec1e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/march-to-cpu-opt
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ def get_vlen(ext_dict):
if ext == 'v':
vlen = max(vlen, 128)
elif (ext.startswith('zvl') and ext[-1] == 'b'):
zvlen = int(arch[3:-1])
zvlen = int(ext[3:-1])
vlen = max(vlen, zvlen)
elif ext.startswith("zve"):
zvelen = int(arch[3:-1])
zvelen = int(ext[3:-1])
vlen = max(vlen, zvelen)
return vlen

Expand Down

0 comments on commit 7dec1e8

Please sign in to comment.