compat: replace PC_COMPAT_2_1 & HW_COMPAT_2_1 macros
commitc4fc5695b770b597dfbed9271c7d7080311e0097
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 12 Dec 2018 15:36:30 +0000 (12 19:36 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 7 Jan 2019 12:18:42 +0000 (7 16:18 +0400)
tree5fb79283b4e1bcab360934a0a8f547b652e8bfb7
parent1c30044e1aba56066eb6a51a788ce6a15a8faa8f
compat: replace PC_COMPAT_2_1 & HW_COMPAT_2_1 macros

Use static arrays instead.  I decided to rename the conflicting
pc_compat_2_1() function with pc_compat_2_1_fn().

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>
hw/core/machine.c
hw/i386/pc.c
hw/i386/pc_piix.c
hw/ppc/spapr.c
include/hw/boards.h
include/hw/compat.h
include/hw/i386/pc.h