[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 12/31] target/hppa: Use generic cpu_list()
From: |
Gavin Shan |
Subject: |
[PATCH v5 12/31] target/hppa: Use generic cpu_list() |
Date: |
Wed, 15 Nov 2023 09:56:09 +1000 |
No changes in the output from the following command.
[gshan@gshan q]$ ./build/qemu-system-hppa -cpu ?
Available CPUs:
hppa
hppa64
Signed-off-by: Gavin Shan <gshan@redhat.com>
---
target/hppa/cpu.c | 24 ------------------------
target/hppa/cpu.h | 3 ---
2 files changed, 27 deletions(-)
diff --git a/target/hppa/cpu.c b/target/hppa/cpu.c
index 1a5fb6c65b..e1f252cc45 100644
--- a/target/hppa/cpu.c
+++ b/target/hppa/cpu.c
@@ -164,30 +164,6 @@ static ObjectClass *hppa_cpu_class_by_name(const char
*cpu_model)
return object_class_by_name(typename);
}
-static void hppa_cpu_list_entry(gpointer data, gpointer user_data)
-{
- ObjectClass *oc = data;
- CPUClass *cc = CPU_CLASS(oc);
- const char *tname = object_class_get_name(oc);
- g_autofree char *name = g_strndup(tname, strchr(tname, '-') - tname);
-
- if (cc->deprecation_note) {
- qemu_printf(" %s (deprecated)\n", name);
- } else {
- qemu_printf(" %s\n", name);
- }
-}
-
-void hppa_cpu_list(void)
-{
- GSList *list;
-
- list = object_class_get_list_sorted(TYPE_HPPA_CPU, false);
- qemu_printf("Available CPUs:\n");
- g_slist_foreach(list, hppa_cpu_list_entry, NULL);
- g_slist_free(list);
-}
-
#ifndef CONFIG_USER_ONLY
#include "hw/core/sysemu-cpu-ops.h"
diff --git a/target/hppa/cpu.h b/target/hppa/cpu.h
index bcfed04f7c..5d3fcdc927 100644
--- a/target/hppa/cpu.h
+++ b/target/hppa/cpu.h
@@ -402,7 +402,4 @@ G_NORETURN void hppa_dynamic_excp(CPUHPPAState *env, int
excp, uintptr_t ra);
#define CPU_RESOLVING_TYPE TYPE_HPPA_CPU
-#define cpu_list hppa_cpu_list
-void hppa_cpu_list(void);
-
#endif /* HPPA_CPU_H */
--
2.41.0
- [PATCH v5 07/31] target/alpha: Use generic cpu_list(), (continued)
- [PATCH v5 07/31] target/alpha: Use generic cpu_list(), Gavin Shan, 2023/11/14
- [PATCH v5 08/31] target/arm: Use generic cpu_list(), Gavin Shan, 2023/11/14
- [PATCH v5 09/31] target/avr: Use generic cpu_list(), Gavin Shan, 2023/11/14
- [PATCH v5 10/31] target/cris: Use generic cpu_list(), Gavin Shan, 2023/11/14
- [PATCH v5 11/31] target/hexagon: Use generic cpu_list(), Gavin Shan, 2023/11/14
- [PATCH v5 12/31] target/hppa: Use generic cpu_list(),
Gavin Shan <=
- [PATCH v5 13/31] target/loongarch: Use generic cpu_list(), Gavin Shan, 2023/11/14
- [PATCH v5 14/31] target/m68k: Use generic cpu_list(), Gavin Shan, 2023/11/14
- [PATCH v5 15/31] target/mips: Use generic cpu_list(), Gavin Shan, 2023/11/14
- [PATCH v5 16/31] target/openrisc: Use generic cpu_list(), Gavin Shan, 2023/11/14
- [PATCH v5 17/31] target/riscv: Use generic cpu_list(), Gavin Shan, 2023/11/14