Skip to content

Commit

Permalink
spapr: Use HW_COMPAT_* inside SPAPR_COMPAT_* macros
Browse files Browse the repository at this point in the history
SPAPR_COMPAT_2_1 will need to include both HW_COMPAT_2_2 and
HW_COMPAT_2_1, so include HW_COMPAT_2_1 inside SPAPR_COMPAT_2_1 and
HW_COMPAT_2_2 inside SPAPR_COMPAT_2_2.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
  • Loading branch information
ehabkost authored and mstsirkin committed May 31, 2015
1 parent 42134ac commit 4dfd8ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hw/ppc/spapr.c
Expand Up @@ -1816,14 +1816,16 @@ static const TypeInfo spapr_machine_info = {
};

#define SPAPR_COMPAT_2_2 \
HW_COMPAT_2_2 \
{\
.driver = TYPE_SPAPR_PCI_HOST_BRIDGE,\
.property = "mem_win_size",\
.value = "0x20000000",\
},

#define SPAPR_COMPAT_2_1 \
SPAPR_COMPAT_2_2
SPAPR_COMPAT_2_2 \
HW_COMPAT_2_1

static void spapr_compat_2_3(Object *obj)
{
Expand Down Expand Up @@ -1861,7 +1863,6 @@ static void spapr_machine_2_1_class_init(ObjectClass *oc, void *data)
{
MachineClass *mc = MACHINE_CLASS(oc);
static GlobalProperty compat_props[] = {
HW_COMPAT_2_1
SPAPR_COMPAT_2_1
{ /* end of list */ }
};
Expand Down

0 comments on commit 4dfd8ea

Please sign in to comment.