[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/6] target/arm: display deprecation status in '-cpu help'
From: |
Daniel P . Berrangé |
Subject: |
[PULL 5/6] target/arm: display deprecation status in '-cpu help' |
Date: |
Fri, 5 Aug 2022 16:20:13 +0100 |
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>
---
target/arm/helper.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/target/arm/helper.c b/target/arm/helper.c
index e1bdc80c35..d7bc467a2a 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);
}
--
2.37.1
- [PULL 0/6] Misc next patches, Daniel P . Berrangé, 2022/08/05
- [PULL 1/6] docs: build-platforms: Clarify stance on minor releases and backports, Daniel P . Berrangé, 2022/08/05
- [PULL 2/6] QIOChannelSocket: Add support for MSG_ZEROCOPY + IPV6, Daniel P . Berrangé, 2022/08/05
- [PULL 3/6] target/i386: display deprecation status in '-cpu help', Daniel P . Berrangé, 2022/08/05
- [PULL 4/6] target/s390x: display deprecation status in '-cpu help', Daniel P . Berrangé, 2022/08/05
- [PULL 5/6] target/arm: display deprecation status in '-cpu help',
Daniel P . Berrangé <=
- [PULL 6/6] util/qemu-sockets: Replace the call to close a socket with closesocket(), Daniel P . Berrangé, 2022/08/05
- Re: [PULL 0/6] Misc next patches, Richard Henderson, 2022/08/05