aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc/pnv_core.c
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2017-10-09 21:51:10 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2017-10-17 10:34:01 +1100
commit40abf43f72b584d426d7b27ab2528ecd12eceff6 (patch)
treec78e65ed6b6d925bcf987dd0ee410e8d7b0b27af /hw/ppc/pnv_core.c
parent7383af1edcf2dd4e340df49d4b8752c966ef59e5 (diff)
downloadqemu-40abf43f72b584d426d7b27ab2528ecd12eceff6.zip
qemu-40abf43f72b584d426d7b27ab2528ecd12eceff6.tar.gz
qemu-40abf43f72b584d426d7b27ab2528ecd12eceff6.tar.bz2
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 350394f..82ff440 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)