mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -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
|
@ -4307,13 +4307,10 @@ DEFINE_SPAPR_MACHINE(2_5, "2.5", false);
|
|||
static void spapr_machine_2_4_class_options(MachineClass *mc)
|
||||
{
|
||||
sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(mc);
|
||||
static GlobalProperty compat[] = {
|
||||
HW_COMPAT_2_4
|
||||
};
|
||||
|
||||
spapr_machine_2_5_class_options(mc);
|
||||
smc->dr_lmb_enabled = false;
|
||||
compat_props_add(mc->compat_props, compat, G_N_ELEMENTS(compat));
|
||||
compat_props_add(mc->compat_props, hw_compat_2_4, hw_compat_2_4_len);
|
||||
}
|
||||
|
||||
DEFINE_SPAPR_MACHINE(2_4, "2.4", false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue