mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
compat: replace PC_COMPAT_2_12 & HW_COMPAT_2_12 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>
This commit is contained in:
parent
ddb3235de1
commit
0d47310b03
10 changed files with 62 additions and 66 deletions
|
@ -462,12 +462,9 @@ DEFINE_I440FX_MACHINE(v3_0, "pc-i440fx-3.0", NULL,
|
|||
|
||||
static void pc_i440fx_2_12_machine_options(MachineClass *m)
|
||||
{
|
||||
static GlobalProperty compat[] = {
|
||||
PC_COMPAT_2_12
|
||||
};
|
||||
|
||||
pc_i440fx_3_0_machine_options(m);
|
||||
compat_props_add(m->compat_props, compat, G_N_ELEMENTS(compat));
|
||||
compat_props_add(m->compat_props, hw_compat_2_12, hw_compat_2_12_len);
|
||||
compat_props_add(m->compat_props, pc_compat_2_12, pc_compat_2_12_len);
|
||||
}
|
||||
|
||||
DEFINE_I440FX_MACHINE(v2_12, "pc-i440fx-2.12", NULL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue