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:42 +0100
commit2f99b9c273ded76211ddb445b273ce854d469033 (patch)
tree909bb7c5938b024342c2c710221b2dd8be379809 /hw/i386/pc_piix.c
parentcompat: replace PC_COMPAT_2_5 & HW_COMPAT_2_5 macros (diff)
downloadqemu-2f99b9c273ded76211ddb445b273ce854d469033.tar.gz
qemu-2f99b9c273ded76211ddb445b273ce854d469033.tar.xz
qemu-2f99b9c273ded76211ddb445b273ce854d469033.zip
compat: replace PC_COMPAT_2_4 & HW_COMPAT_2_4 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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index 3a31de7316..125ab600ef 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -553,14 +553,12 @@ DEFINE_I440FX_MACHINE(v2_5, "pc-i440fx-2.5", NULL,
static void pc_i440fx_2_4_machine_options(MachineClass *m)
{
PCMachineClass *pcmc = PC_MACHINE_CLASS(m);
- static GlobalProperty compat[] = {
- PC_COMPAT_2_4
- };
pc_i440fx_2_5_machine_options(m);
m->hw_version = "2.4.0";
pcmc->broken_reserved_end = true;
- compat_props_add(m->compat_props, compat, G_N_ELEMENTS(compat));
+ compat_props_add(m->compat_props, hw_compat_2_4, hw_compat_2_4_len);
+ compat_props_add(m->compat_props, pc_compat_2_4, pc_compat_2_4_len);
}
DEFINE_I440FX_MACHINE(v2_4, "pc-i440fx-2.4", NULL,