mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
compat: replace PC_COMPAT_3_0 & HW_COMPAT_3_0 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
abd93cc7df
commit
ddb3235de1
10 changed files with 32 additions and 41 deletions
|
@ -1881,12 +1881,8 @@ DEFINE_VIRT_MACHINE(3, 1)
|
|||
|
||||
static void virt_machine_3_0_options(MachineClass *mc)
|
||||
{
|
||||
static GlobalProperty compat[] = {
|
||||
HW_COMPAT_3_0
|
||||
};
|
||||
|
||||
virt_machine_3_1_options(mc);
|
||||
compat_props_add(mc->compat_props, compat, G_N_ELEMENTS(compat));
|
||||
compat_props_add(mc->compat_props, hw_compat_3_0, hw_compat_3_0_len);
|
||||
}
|
||||
DEFINE_VIRT_MACHINE(3, 0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue