diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2014-05-30 18:24:31 -0300 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-06-16 13:24:46 +0200 |
commit | 748abce94fafd630a5e33518e146baa3da463c48 (patch) | |
tree | 88cb09839d970f2efd7d6137aaf82ebfe30f1b36 /hw/ppc | |
parent | a70daba3771e96cc6b8fd3d11ed297ab13717018 (diff) |
spapr: Create SPAPRMachine struct
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Tested-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppc')
-rw-r--r-- | hw/ppc/spapr.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index c91c25a665..b78b361c2b 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -86,7 +86,20 @@ #define HTAB_SIZE(spapr) (1ULL << ((spapr)->htab_shift)) + +typedef struct SPAPRMachine SPAPRMachine; #define TYPE_SPAPR_MACHINE "spapr-machine" +#define SPAPR_MACHINE(obj) \ + OBJECT_CHECK(SPAPRMachine, (obj), TYPE_SPAPR_MACHINE) + +/** + * SPAPRMachine: + */ +struct SPAPRMachine { + /*< private >*/ + MachineState parent_obj; +}; + sPAPREnvironment *spapr; @@ -1623,6 +1636,7 @@ static void spapr_machine_class_init(ObjectClass *oc, void *data) static const TypeInfo spapr_machine_info = { .name = TYPE_SPAPR_MACHINE, .parent = TYPE_MACHINE, + .instance_size = sizeof(SPAPRMachine), .class_init = spapr_machine_class_init, .interfaces = (InterfaceInfo[]) { { TYPE_FW_PATH_PROVIDER }, |