Commit 63b65d8748 for qemu.org
commit 63b65d87483393ab36259c151c58ef008a745daa
Author: Thomas Huth <thuth@redhat.com>
Date: Fri Nov 27 15:40:58 2026 +0100
hw/i386: Remove the code of the obsolete pc-q35-4.1 and pc-i440fx-4.1 machines
These machines have been disabled already since they are older
than 6 years. Let's clean up the related code now.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Message-ID: <20261127144059.278754-2-thuth@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index 4737eb471c..d14a821064 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -182,9 +182,6 @@ GlobalProperty pc_compat_4_2[] = {
};
const size_t pc_compat_4_2_len = G_N_ELEMENTS(pc_compat_4_2);
-GlobalProperty pc_compat_4_1[] = {};
-const size_t pc_compat_4_1_len = G_N_ELEMENTS(pc_compat_4_1);
-
/*
* @PC_FW_DATA:
* Size of the chunk of memory at the top of RAM for the BIOS ACPI tables
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index 446590e4e5..6d04d1c75b 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -622,15 +622,6 @@ static void pc_i440fx_machine_4_2_options(MachineClass *m)
DEFINE_I440FX_MACHINE(4, 2);
-static void pc_i440fx_machine_4_1_options(MachineClass *m)
-{
- pc_i440fx_machine_4_2_options(m);
- compat_props_add(m->compat_props, hw_compat_4_1, hw_compat_4_1_len);
- compat_props_add(m->compat_props, pc_compat_4_1, pc_compat_4_1_len);
-}
-
-DEFINE_I440FX_MACHINE(4, 1);
-
#ifdef CONFIG_XEN
static void xenfv_machine_4_2_options(MachineClass *m)
{
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
index c3ce9c5649..e6a6c711f4 100644
--- a/hw/i386/pc_q35.c
+++ b/hw/i386/pc_q35.c
@@ -598,12 +598,3 @@ static void pc_q35_machine_4_2_options(MachineClass *m)
}
DEFINE_Q35_MACHINE(4, 2);
-
-static void pc_q35_machine_4_1_options(MachineClass *m)
-{
- pc_q35_machine_4_2_options(m);
- compat_props_add(m->compat_props, hw_compat_4_1, hw_compat_4_1_len);
- compat_props_add(m->compat_props, pc_compat_4_1, pc_compat_4_1_len);
-}
-
-DEFINE_Q35_MACHINE(4, 1);
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index 844ae83578..4aa5b02fe3 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -277,9 +277,6 @@ extern const size_t pc_compat_5_0_len;
extern GlobalProperty pc_compat_4_2[];
extern const size_t pc_compat_4_2_len;
-extern GlobalProperty pc_compat_4_1[];
-extern const size_t pc_compat_4_1_len;
-
#define DEFINE_PC_MACHINE_EXTENDED(suffix, namestr, initfn, optsfn, issecure) \
static void pc_machine_##suffix##_class_init(ObjectClass *oc, \
const void *data) \