diff options
author | Kwanghoon Son <kwangson@yahoo.com> | 2022-12-16 14:34:32 +0900 |
---|---|---|
committer | Kwanghoon Son <kwangson@yahoo.com> | 2022-12-16 14:37:11 +0900 |
commit | 7dec1e8a3fb1fdd53e60fac6be9ea2051a342355 (patch) | |
tree | 4eadd9168b0672e9277f692e1b716be1256a6f13 /scripts | |
parent | 29d02b75fb6c0b664af56011d8292d1e71c96913 (diff) | |
download | riscv-gnu-toolchain-7dec1e8a3fb1fdd53e60fac6be9ea2051a342355.zip riscv-gnu-toolchain-7dec1e8a3fb1fdd53e60fac6be9ea2051a342355.tar.gz riscv-gnu-toolchain-7dec1e8a3fb1fdd53e60fac6be9ea2051a342355.tar.bz2 |
Fix wrong parse script
If test --with-arch=rv32imc_zve128x
NameError: name 'arch' is not defined
Signed-off-by: Kwanghoon Son <kwangson@yahoo.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/march-to-cpu-opt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/march-to-cpu-opt b/scripts/march-to-cpu-opt index 44511ea..0f3f08d 100755 --- a/scripts/march-to-cpu-opt +++ b/scripts/march-to-cpu-opt @@ -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 |