From 52c4f06bacfba420623b5c524e14549e2915e43b Mon Sep 17 00:00:00 2001 From: Kito Cheng Date: Thu, 1 Dec 2022 23:48:26 +0800 Subject: Support testing zdinx/zfinx/zhinx. - We don't set correct qemu option for zdinx/zfinx/zhinx, this patch is fixing the march-to-cpu-opt, which is a script translate -march string to qemu options. --- scripts/march-to-cpu-opt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'scripts') diff --git a/scripts/march-to-cpu-opt b/scripts/march-to-cpu-opt index 44511ea..58f6db3 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(): -- cgit v1.1