[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/71] target/avr: Use generic cpu_list()
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 09/71] target/avr: Use generic cpu_list() |
Date: |
Fri, 5 Jan 2024 16:42:02 +0100 |
From: Gavin Shan <gshan@redhat.com>
Before it's applied:
[gshan@gshan q]$ ./build/qemu-system-avr -cpu ?
avr5-avr-cpu
avr51-avr-cpu
avr6-avr-cpu
After it's applied:
[gshan@gshan q]$ ./build/qemu-system-avr -cpu ?
Available CPUs:
avr5
avr51
avr6
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20231114235628.534334-10-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/avr/cpu.h | 2 --
target/avr/cpu.c | 15 ---------------
2 files changed, 17 deletions(-)
diff --git a/target/avr/cpu.h b/target/avr/cpu.h
index 7960c5c57a..7d5dd42575 100644
--- a/target/avr/cpu.h
+++ b/target/avr/cpu.h
@@ -184,7 +184,6 @@ static inline void set_avr_feature(CPUAVRState *env, int
feature)
env->features |= (1U << feature);
}
-#define cpu_list avr_cpu_list
#define cpu_mmu_index avr_cpu_mmu_index
static inline int avr_cpu_mmu_index(CPUAVRState *env, bool ifetch)
@@ -194,7 +193,6 @@ static inline int avr_cpu_mmu_index(CPUAVRState *env, bool
ifetch)
void avr_cpu_tcg_init(void);
-void avr_cpu_list(void);
int cpu_avr_exec(CPUState *cpu);
enum {
diff --git a/target/avr/cpu.c b/target/avr/cpu.c
index 3e478294a6..f5cbdc4a8c 100644
--- a/target/avr/cpu.c
+++ b/target/avr/cpu.c
@@ -362,21 +362,6 @@ typedef struct AVRCPUInfo {
} AVRCPUInfo;
-static void avr_cpu_list_entry(gpointer data, gpointer user_data)
-{
- const char *typename = object_class_get_name(OBJECT_CLASS(data));
-
- qemu_printf("%s\n", typename);
-}
-
-void avr_cpu_list(void)
-{
- GSList *list;
- list = object_class_get_list_sorted(TYPE_AVR_CPU, false);
- g_slist_foreach(list, avr_cpu_list_entry, NULL);
- g_slist_free(list);
-}
-
#define DEFINE_AVR_CPU_TYPE(model, initfn) \
{ \
.parent = TYPE_AVR_CPU, \
--
2.41.0
- [PULL 00/71] HW core patches for 2024-01-05, Philippe Mathieu-Daudé, 2024/01/05
- [PULL 02/71] target/alpha: Remove fallback to ev67 cpu class, Philippe Mathieu-Daudé, 2024/01/05
- [PULL 01/71] meson: Allow building binary with no target-specific files in hw/, Philippe Mathieu-Daudé, 2024/01/05
- [PULL 03/71] target/hppa: Remove object_class_is_abstract(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 04/71] cpu: Call object_class_dynamic_cast() once in cpu_class_by_name(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 05/71] cpu: Add helper cpu_model_from_type(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 07/71] target/alpha: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 08/71] target/arm: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 09/71] target/avr: Use generic cpu_list(),
Philippe Mathieu-Daudé <=
- [PULL 06/71] cpu: Add generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 10/71] target/cris: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 11/71] target/hexagon: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 12/71] target/hppa: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 13/71] target/loongarch: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 14/71] target/m68k: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 16/71] target/openrisc: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 15/71] target/mips: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 17/71] target/riscv: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 18/71] target/rx: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05