We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4f97aa + 52c4f06 commit 5007e11Copy full SHA for 5007e11
scripts/march-to-cpu-opt
@@ -13,6 +13,9 @@ EXT_OPTS = {
13
"zve64f": "Zve64f=true",
14
"zfh": "Zfh=true",
15
"zfhmin": "Zfhmin=true",
16
+ "zhinx": "zhinx=true",
17
+ "zfinx": "zfinx=true",
18
+ "zdinx": "zdinx=true",
19
}
20
21
SUPPORTTED_EXTS = "iemafdcbvph"
@@ -124,9 +127,15 @@ def conver_arch_to_qemu_cpu_opt(march):
124
127
if vlen != 0:
125
128
cpu_opt.append("vlen=%d" % vlen)
126
129
130
+ disable_all_fd = False
131
for ext in ext_dict.keys():
132
if ext in EXT_OPTS:
133
cpu_opt.append(EXT_OPTS[ext])
134
+ if ext in ['zhinx', 'zfinx', 'zdinx']:
135
+ disable_all_fd = True
136
+ if disable_all_fd:
137
+ cpu_opt.append("f=false")
138
+ cpu_opt.append("d=false")
139
return ",".join(cpu_opt)
140
141
def selftest():
0 commit comments