sync_qemu_models_i386: Generate missing -v1 variants

QEMU supports -v1 variant of any CPU model even though the list of
versions is not defined (i.e., even if { .version = 1 } item is
missing).

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Jiri Denemark 2024-11-28 13:40:16 +01:00
parent 19b56603c4
commit 8bc6ebb495

View File

@ -484,6 +484,9 @@ def expand_model(outdir, model):
print(result['name'])
yield result
if len(versions) == 0:
versions.append({".version": "1"})
name = result["name"]
for version in versions:
result = copy.deepcopy(result)