From: Philippe Mathieu-Daudé Date: Thu, 16 Jan 2025 14:59:42 +0000 (+0100) Subject: hw/arm/virt: Remove VirtMachineClass::smbios_old_sys_ver field X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=50e5b00067a7cf9a4770ed826b95a3add1c344a4;p=thirdparty%2Fqemu.git hw/arm/virt: Remove VirtMachineClass::smbios_old_sys_ver field The VirtMachineClass::smbios_old_sys_ver field was only used by virt-2.11 machine, which got removed. Remove it and simplify virt_build_smbios(). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Reviewed-by: Richard Henderson Signed-off-by: Peter Maydell --- diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 4b21f3226f..3488bc4fb9 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -1699,7 +1699,6 @@ static void virt_build_smbios(VirtMachineState *vms) { MachineClass *mc = MACHINE_GET_CLASS(vms); MachineState *ms = MACHINE(vms); - VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(vms); uint8_t *smbios_tables, *smbios_anchor; size_t smbios_tables_len, smbios_anchor_len; struct smbios_phys_mem_area mem_array; @@ -1709,8 +1708,7 @@ static void virt_build_smbios(VirtMachineState *vms) product = "KVM Virtual Machine"; } - smbios_set_defaults("QEMU", product, - vmc->smbios_old_sys_ver ? "1.0" : mc->name); + smbios_set_defaults("QEMU", product, mc->name); /* build the array of physical mem area from base_memmap */ mem_array.address = vms->memmap[VIRT_MEM].base; diff --git a/include/hw/arm/virt.h b/include/hw/arm/virt.h index 9c531e28d0..b2cc012a40 100644 --- a/include/hw/arm/virt.h +++ b/include/hw/arm/virt.h @@ -118,7 +118,6 @@ typedef enum VirtGICType { struct VirtMachineClass { MachineClass parent; bool no_tcg_its; - bool smbios_old_sys_ver; bool no_highmem_compact; bool no_highmem_ecam; bool no_ged; /* Machines < 4.2 have no support for ACPI GED device */