summaryrefslogtreecommitdiffstats
path: root/hw/ppc/pnv_core.c
diff options
context:
space:
mode:
authorIgor Mammedov2017-10-09 21:51:06 +0200
committerDavid Gibson2017-10-17 01:34:01 +0200
commit4a12c699d3fe08087381bd633284abae689b3999 (patch)
tree230c089d657295fed997d8f7ca2dd1e78a362050 /hw/ppc/pnv_core.c
parentppc: spapr: use generic cpu_model parsing (diff)
downloadqemu-4a12c699d3fe08087381bd633284abae689b3999.tar.gz
qemu-4a12c699d3fe08087381bd633284abae689b3999.tar.xz
qemu-4a12c699d3fe08087381bd633284abae689b3999.zip
ppc: pnv: use generic cpu_model parsing
use common cpu_model prasing in vl.c and set default cpu_model using generic MachineClass::default_cpu_type. Beside of switching to generic infrastructure it solves several issues. * ppc_cpu_class_by_name() is used to deal with lower/upper case and alias translations into actual cpu type, which fixes '-M powernv -cpu power8' and '-M powernv -cpu power9_v1.0' usecases which error out with: 'invalid CPU model 'FOO' for powernv machine' * allows to switch to lower-case typenames in pnv chip/core name (by convention typnames should be lower-case) * replace aliased names /power8, power9, .../ with exact cpu model names (i.e. typenames should be stable but aliases might decide to point to other cpu model withi family or changed by kvm). It will also help to simplify pnv_chip/core code and get rid of dependency on cpu_model parsing. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> [dwg: Updated to make DD2.0 as default POWER9 chip] 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/pnv_core.c b/hw/ppc/pnv_core.c
index 67264830db..91f02cb324 100644
--- a/hw/ppc/pnv_core.c
+++ b/hw/ppc/pnv_core.c
@@ -227,7 +227,7 @@ static const TypeInfo pnv_core_info = {
};
static const char *pnv_core_models[] = {
- "POWER8E", "POWER8", "POWER8NVL", "POWER9"
+ "power8e_v2.1", "power8_v2.0", "power8nvl_v1.0", "power9_v2.0"
};
static void pnv_core_register_types(void)