@samitouri / QOSamiQemu / commits / f5c74c2a49

hw/core/machine: Remove the hw_compat_4_0[] array

The hw_compat_4_0[] array was only used by the pc-q35-4.0 and pc-i440fx-4.0 machines, which got removed. Remove it. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20260307154202.86309-5-philmd@linaro.org>

Philippe Mathieu-Daudé committed May 2, 2025 at 00:00 UTC f5c74c2a49d849415247a996ec0e01835af28a9d
2 files changed -15
hw/core/machine.c
-12
@@ -209,18 +209,6 @@ GlobalProperty hw_compat_4_1[] = {
209 };
210 const size_t hw_compat_4_1_len = G_N_ELEMENTS(hw_compat_4_1);
211
212 -GlobalProperty hw_compat_4_0[] = {
213 - { "VGA", "edid", "false" },
214 - { "secondary-vga", "edid", "false" },
215 - { "bochs-display", "edid", "false" },
216 - { "virtio-vga", "edid", "false" },
217 - { "virtio-gpu-device", "edid", "false" },
218 - { "virtio-device", "use-started", "false" },
219 - { "virtio-balloon-device", "qemu-4-0-config-size", "true" },
220 - { "pl031", "migrate-tick-offset", "false" },
221 -};
222 -const size_t hw_compat_4_0_len = G_N_ELEMENTS(hw_compat_4_0);
223 -
212 MachineState *current_machine;
213
214 static char *machine_get_kernel(Object *obj, Error **errp)
include/hw/core/boards.h
-3
@@ -864,7 +864,4 @@ extern const size_t hw_compat_4_2_len;
864 extern GlobalProperty hw_compat_4_1[];
865 extern const size_t hw_compat_4_1_len;
866
867 -extern GlobalProperty hw_compat_4_0[];
868 -extern const size_t hw_compat_4_0_len;
869 -
867 #endif