compat: replace PC_COMPAT_2_2 & HW_COMPAT_2_2 macros
commit1c30044e1aba56066eb6a51a788ce6a15a8faa8f
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)
tree8d92b9038337303da59207a8a582deec833dafc8
parent8995dd9009a4f0845393c102098dc94e14806c37
compat: replace PC_COMPAT_2_2 & HW_COMPAT_2_2 macros

Use static arrays instead.  I decided to rename the conflicting
pc_compat_2_2() function with pc_compat_2_2_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