target/ppc/cpu-models: Rename power5+ and power7+ for new QOM naming rules
commit5bfb75f15297a91161f720f997792dd9abc05dea
authorThomas Huth <thuth@redhat.com>
Wed, 17 Jan 2024 14:10:53 +0000 (17 15:10 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 5 Feb 2024 13:21:21 +0000 (5 14:21 +0100)
treed0b9ac0443170d8aacd7495f5a73a0bc37170f2b
parent8b09b7fe47082c69295a0fc0cc01b041b6385025
target/ppc/cpu-models: Rename power5+ and power7+ for new QOM naming rules

The character "+" is now forbidden in QOM device names (see commit
b447378e1217 - "Limit type names to alphanumerical and some few special
characters"). For the "power5+" and "power7+" CPU names, there is
currently a hack in type_name_is_valid() to still allow them for
compatibility reasons. However, there is a much nicer solution for this:
Simply use aliases! This way we can still support the old names without
the need for the ugly hack in type_name_is_valid().

Message-ID: <20240117141054.73841-2-thuth@redhat.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/ppc/spapr_cpu_core.c
qom/object.c
target/ppc/cpu-models.c