diff options
| author | Igor Mammedov | 2017-10-09 21:51:01 +0200 |
|---|---|---|
| committer | David Gibson | 2017-10-17 01:34:00 +0200 |
| commit | b51d3c8818e2fd0a4a36a43d7f8756274cbc5ac9 (patch) | |
| tree | 3cc346b3d4378282d6a5600ab728b92d28f53de9 /include | |
| parent | ppc: spapr: define core types statically (diff) | |
| download | qemu-b51d3c8818e2fd0a4a36a43d7f8756274cbc5ac9.tar.gz qemu-b51d3c8818e2fd0a4a36a43d7f8756274cbc5ac9.tar.xz qemu-b51d3c8818e2fd0a4a36a43d7f8756274cbc5ac9.zip | |
ppc: spapr: use cpu type name directly
replace sPAPRCPUCoreClass::cpu_class with cpu type name
since it were needed just to get that at points it were
accessed.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/ppc/spapr_cpu_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/ppc/spapr_cpu_core.h b/include/hw/ppc/spapr_cpu_core.h index 66dcf52587..264ce68785 100644 --- a/include/hw/ppc/spapr_cpu_core.h +++ b/include/hw/ppc/spapr_cpu_core.h @@ -34,7 +34,7 @@ typedef struct sPAPRCPUCore { typedef struct sPAPRCPUCoreClass { DeviceClass parent_class; - ObjectClass *cpu_class; + const char *cpu_type; } sPAPRCPUCoreClass; char *spapr_get_cpu_core_type(const char *model); |
