summaryrefslogtreecommitdiffstats
path: root/hw/i386/pc_piix.c
diff options
context:
space:
mode:
authorMarc-André Lureau2018-12-12 16:36:30 +0100
committerMarc-André Lureau2019-01-07 13:18:41 +0100
commit43df70a9ddfc40961188bf1c6f67fed3b899b8da (patch)
treeb1438ab3cfbeaac120df707d6f61d730ba13a2bd /hw/i386/pc_piix.c
parentcompat: replace PC_COMPAT_2_12 & HW_COMPAT_2_12 macros (diff)
downloadqemu-43df70a9ddfc40961188bf1c6f67fed3b899b8da.tar.gz
qemu-43df70a9ddfc40961188bf1c6f67fed3b899b8da.tar.xz
qemu-43df70a9ddfc40961188bf1c6f67fed3b899b8da.zip
compat: replace PC_COMPAT_2_11 & HW_COMPAT_2_11 macros
Use static arrays instead. Suggested-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Acked-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/i386/pc_piix.c')
-rw-r--r--hw/i386/pc_piix.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index fd3906cda6..aeb51a2772 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -472,12 +472,9 @@ DEFINE_I440FX_MACHINE(v2_12, "pc-i440fx-2.12", NULL,
static void pc_i440fx_2_11_machine_options(MachineClass *m)
{
- static GlobalProperty compat[] = {
- PC_COMPAT_2_11
- };
-
pc_i440fx_2_12_machine_options(m);
- compat_props_add(m->compat_props, compat, G_N_ELEMENTS(compat));
+ compat_props_add(m->compat_props, hw_compat_2_11, hw_compat_2_11_len);
+ compat_props_add(m->compat_props, pc_compat_2_11, pc_compat_2_11_len);
}
DEFINE_I440FX_MACHINE(v2_11, "pc-i440fx-2.11", NULL,