aboutsummaryrefslogtreecommitdiff
path: root/target/arm
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2022-05-24 15:44:55 +0100
committerDaniel P. Berrangé <berrange@redhat.com>2022-08-05 16:18:15 +0100
commit977c33ba5de58c9c5c857979516cb896db2c0969 (patch)
tree318af10b13f6a42b624cf81c0ad4c6cae114fae9 /target/arm
parent738cdc2f6ea1ce22bb3f2a4e0fc84fc8121896fb (diff)
downloadqemu-977c33ba5de58c9c5c857979516cb896db2c0969.zip
qemu-977c33ba5de58c9c5c857979516cb896db2c0969.tar.gz
qemu-977c33ba5de58c9c5c857979516cb896db2c0969.tar.bz2
target/arm: display deprecation status in '-cpu help'
When the user queries CPU models via QMP there is a 'deprecated' flag present, however, this is not done for the CLI '-cpu help' command. Reviewed-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'target/arm')
-rw-r--r--target/arm/helper.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/target/arm/helper.c b/target/arm/helper.c
index e1bdc80..d7bc467 100644
--- a/target/arm/helper.c
+++ b/target/arm/helper.c
@@ -8185,12 +8185,17 @@ static gint arm_cpu_list_compare(gconstpointer a, gconstpointer b)
static void arm_cpu_list_entry(gpointer data, gpointer user_data)
{
ObjectClass *oc = data;
+ CPUClass *cc = CPU_CLASS(oc);
const char *typename;
char *name;
typename = object_class_get_name(oc);
name = g_strndup(typename, strlen(typename) - strlen("-" TYPE_ARM_CPU));
- qemu_printf(" %s\n", name);
+ if (cc->deprecation_note) {
+ qemu_printf(" %s (deprecated)\n", name);
+ } else {
+ qemu_printf(" %s\n", name);
+ }
g_free(name);
}