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>
} 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, \
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)
void avr_cpu_tcg_init(void);
-void avr_cpu_list(void);
int cpu_avr_exec(CPUState *cpu);
enum {