From 6d1db8c34e26a36652f816e8e74ce619fab87b62 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Mon, 24 May 2010 00:35:20 +0200 Subject: linux-user: display cpu list. As it is done for qemu-system with "-cpu ?", when cpu_list_id() is missing for a target, call cpu_list() instead. Signed-off-by: Laurent Vivier Signed-off-by: Aurelien Jarno --- linux-user/main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'linux-user') diff --git a/linux-user/main.c b/linux-user/main.c index 403c8d3..fa29d77 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -2800,6 +2800,8 @@ int main(int argc, char **argv, char **envp) /* XXX: implement xxx_cpu_list for targets that still miss it */ #if defined(cpu_list_id) cpu_list_id(stdout, &fprintf, ""); +#elif defined(cpu_list) + cpu_list(stdout, &fprintf); /* deprecated */ #endif exit(1); } -- cgit v1.1