]> git.proxmox.com Git - mirror_qemu.git/commit
target/sparc/cpu: Rename the CPU models with a "+" in their names
authorThomas Huth <thuth@redhat.com>
Fri, 19 Apr 2024 08:48:09 +0000 (10:48 +0200)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sun, 5 May 2024 20:02:47 +0000 (21:02 +0100)
commit6b568e3f1dc22e839cd56b47e22c2aa5ece21367
tree920fb2c640f03bedde21b68e825727dc1c00da4c
parent248f6f62df073a3b4158fd0093863ab885feabb5
target/sparc/cpu: Rename the CPU models with a "+" in their names

Commit b447378e12 ("qom/object: Limit type names to alphanumerical ...")
cut down the amount of allowed characters for QOM types to a saner set.
The "+" character was meant to be included in this set, so we had to
add a hack there to still allow the legacy names of POWER and Sparc64
CPUs. However, instead of putting such a hack in the common QOM code,
there is a much better place to do this: The sparc_cpu_class_by_name()
function which is used to look up the names of all Sparc CPUs.
Thus let's finally get rid of the "+" in the Sparc CPU names, and provide
backward compatibility for the old names via some simple checks in the
sparc_cpu_class_by_name() function.

Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240419084812.504779-2-thuth@redhat.com>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
qom/object.c
target/sparc/cpu.c