mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
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>
This commit is contained in:
parent
fe759610d5
commit
2f99b9c273
9 changed files with 112 additions and 111 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue