summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIgor Mammedov2017-10-09 21:51:00 +0200
committerDavid Gibson2017-10-17 01:34:00 +0200
commit44cd95e31a94ef39c8888ad9e8f5fec66dae31bb (patch)
tree626dfaa0dbdec587a8378207b1d8f17d0833c09e /include
parentppc: move '-cpu foo,compat=xxx' parsing into ppc_cpu_parse_featurestr() (diff)
downloadqemu-44cd95e31a94ef39c8888ad9e8f5fec66dae31bb.tar.gz
qemu-44cd95e31a94ef39c8888ad9e8f5fec66dae31bb.tar.xz
qemu-44cd95e31a94ef39c8888ad9e8f5fec66dae31bb.zip
ppc: spapr: define core types statically
spapr core type definition doesn't have any fields that require it to be defined at runtime. So replace code that fills in TypeInfo at runtime with static TypeInfo array that does the same at complie time. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Greg Kurz <groug@kaod.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
-rw-r--r--include/hw/ppc/spapr_cpu_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/ppc/spapr_cpu_core.h b/include/hw/ppc/spapr_cpu_core.h
index 93051e9ecf..66dcf52587 100644
--- a/include/hw/ppc/spapr_cpu_core.h
+++ b/include/hw/ppc/spapr_cpu_core.h
@@ -21,6 +21,8 @@
#define SPAPR_CPU_CORE_GET_CLASS(obj) \
OBJECT_GET_CLASS(sPAPRCPUCoreClass, (obj), TYPE_SPAPR_CPU_CORE)
+#define SPAPR_CPU_CORE_TYPE_NAME(model) model "-" TYPE_SPAPR_CPU_CORE
+
typedef struct sPAPRCPUCore {
/*< private >*/
CPUCore parent_obj;