diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2022-12-16 14:52:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-16 14:52:08 +0800 |
commit | 5007e114b8616ea40178a65cb0ed178d5c92130b (patch) | |
tree | 0ce48da6bb63dcbd169831c1b265fe0691bfb57a | |
parent | a4f97aab32d19ba58d5fc45071bf956a35e22942 (diff) | |
parent | 52c4f06bacfba420623b5c524e14549e2915e43b (diff) | |
download | riscv-gnu-toolchain-5007e114b8616ea40178a65cb0ed178d5c92130b.zip riscv-gnu-toolchain-5007e114b8616ea40178a65cb0ed178d5c92130b.tar.gz riscv-gnu-toolchain-5007e114b8616ea40178a65cb0ed178d5c92130b.tar.bz2 |
Merge pull request #1162 from riscv-collab/fix-zhinx
Support testing zdinx/zfinx/zhinx.
-rwxr-xr-x | scripts/march-to-cpu-opt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/march-to-cpu-opt b/scripts/march-to-cpu-opt index 0f3f08d..b2ed288 100755 --- a/scripts/march-to-cpu-opt +++ b/scripts/march-to-cpu-opt @@ -13,6 +13,9 @@ EXT_OPTS = { "zve64f": "Zve64f=true", "zfh": "Zfh=true", "zfhmin": "Zfhmin=true", + "zhinx": "zhinx=true", + "zfinx": "zfinx=true", + "zdinx": "zdinx=true", } SUPPORTTED_EXTS = "iemafdcbvph" @@ -124,9 +127,15 @@ def conver_arch_to_qemu_cpu_opt(march): if vlen != 0: cpu_opt.append("vlen=%d" % vlen) + disable_all_fd = False for ext in ext_dict.keys(): if ext in EXT_OPTS: cpu_opt.append(EXT_OPTS[ext]) + if ext in ['zhinx', 'zfinx', 'zdinx']: + disable_all_fd = True + if disable_all_fd: + cpu_opt.append("f=false") + cpu_opt.append("d=false") return ",".join(cpu_opt) def selftest(): |