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"