Browse Source
Merge pull request #1162 from riscv-collab/fix-zhinx
Support testing zdinx/zfinx/zhinx.
pull/1171/head
Kito Cheng
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
0 deletions
-
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(): |
|
|
|
|