|
From: | Richard Henderson |
Subject: | Re: [PATCH v4 06/33] target/arm: Use generic helper to show CPU model names |
Date: | Wed, 1 Nov 2023 21:05:51 -0700 |
User-agent: | Mozilla Thunderbird |
On 11/1/23 17:24, Gavin Shan wrote:
diff --git a/target/arm/helper.c b/target/arm/helper.c index 5dc0d20a84..baf4b104ef 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -9436,17 +9436,15 @@ static void arm_cpu_list_entry(gpointer data, gpointer user_data) { ObjectClass *oc = data; CPUClass *cc = CPU_CLASS(oc); - const char *typename; - char *name; + const char *typename = object_class_get_name(oc); + char *model = cpu_model_from_type(typename);
g_autofree. r~
[Prev in Thread] | Current Thread | [Next in Thread] |