hppa: Delete unused hppa_cpu_list() function
PATCH v2 1/1 hppa: Delete unused hppa_cpu_list() function
hppa_cpu_list() is dead code and is never called. Delete it.
Cc Richard Henderson <[email protected]>
Reviewed-by Igor Mammedov <[email protected]>
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Signed-off-by Eduardo Habkost <[email protected]>
---
Changes v1 -> v2:
* Delete prototype at target/hppa/cpu.h as well (Philippe Mathieu-Daudé)
--- target/hppa/cpu.h | 2 -- target/hppa/cpu.c | 17 ----------------- 2 files changed, 19 deletions(-)
target/hppa/cpu.h +0 -2
@@ -272,8 +272,6 @@ void hppa_translate_init(void);#define CPU_RESOLVING_TYPE TYPE_HPPA_CPU -void hppa_cpu_list (void ); -static inline target_ulong hppa_form_gva_psw (target_ureg psw,uint64_t spc,target_ureg off) {
target/hppa/cpu.c +0 -17
@@ -111,23 +111,6 @@ static void hppa_cpu_realizefn(DeviceState *dev, Error **errp)#endif } -static void hppa_cpu_list_entry (gpointer data,gpointer user_data) -{ -ObjectClass *oc = data; - -qemu_printf (" %s\n" ,object_class_get_name (oc)); -} - -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); -} -static void hppa_cpu_initfn (Object *obj) {CPUState *cs =CPU (obj);
Signature · 1 line
2.18.0.rc1.1.g3f1ff2140
Quoted 7 lines · Eduardo Habkost
hppa_cpu_list()is dead code and is never called. Delete it.Cc Richard Henderson <[email protected]>Reviewed-by Igor Mammedov <[email protected]>Reviewed-by Philippe Mathieu-Daudé <[email protected]>Signed-off-by Eduardo Habkost <[email protected]>
Quoted 8 lines
---
Changes v1 -> v2:
* Delete prototype attarget/hppa/cpu.has well (Philippe Mathieu-Daudé)--- target/hppa/cpu.h | 2 -- target/hppa/cpu.c | 17 ----------------- 2 files changed, 19 deletions(-)
r~