summaryrefslogtreecommitdiffstats
path: root/hw/ppc/pnv_core.c
diff options
context:
space:
mode:
authorIgor Mammedov2017-10-09 21:51:10 +0200
committerDavid Gibson2017-10-17 01:34:01 +0200
commit40abf43f72b584d426d7b27ab2528ecd12eceff6 (patch)
treec78e65ed6b6d925bcf987dd0ee410e8d7b0b27af /hw/ppc/pnv_core.c
parentppc: pnv: define core types statically (diff)
downloadqemu-40abf43f72b584d426d7b27ab2528ecd12eceff6.tar.gz
qemu-40abf43f72b584d426d7b27ab2528ecd12eceff6.tar.xz
qemu-40abf43f72b584d426d7b27ab2528ecd12eceff6.zip
ppc: pnv: drop PnvChipClass::cpu_model field
deduce core type directly from chip type instead of maintaining type mapping in PnvChipClass::cpu_model. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc/pnv_core.c')
-rw-r--r--hw/ppc/pnv_core.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/hw/ppc/pnv_core.c b/hw/ppc/pnv_core.c
index 350394fdb5..82ff440b33 100644
--- a/hw/ppc/pnv_core.c
+++ b/hw/ppc/pnv_core.c
@@ -246,9 +246,4 @@ static const TypeInfo pnv_core_infos[] = {
DEFINE_PNV_CORE_TYPE("power9_v2.0"),
};
-char *pnv_core_typename(const char *model)
-{
- return g_strdup_printf(PNV_CORE_TYPE_NAME("%s"), model);
-}
-
DEFINE_TYPES(pnv_core_infos)