diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2022-05-24 15:44:55 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2022-08-05 16:18:15 +0100 |
commit | 5dfa9e8689d08c529bf772fc199597efa947fa27 (patch) | |
tree | 4bbf3c05a218a561db357554e2762d4d7fb70bfa | |
parent | 5258a7e2c0677d16e9e1d06845f60171adf0b290 (diff) |
target/i386: 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>
-rw-r--r-- | target/i386/cpu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 194b5a31af..1db1278a59 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -4837,6 +4837,11 @@ static void x86_cpu_list_entry(gpointer data, gpointer user_data) desc = g_strdup_printf("%s", model_id); } + if (cc->model && cc->model->cpudef->deprecation_note) { + g_autofree char *olddesc = desc; + desc = g_strdup_printf("%s (deprecated)", olddesc); + } + qemu_printf("x86 %-20s %s\n", name, desc); } |