aboutsummaryrefslogtreecommitdiff
path: root/linux-user/main.c
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2010-05-24 00:35:20 +0200
committerAurelien Jarno <aurelien@aurel32.net>2010-07-22 05:52:08 +0200
commit6d1db8c34e26a36652f816e8e74ce619fab87b62 (patch)
tree53a4f3c92899aaa6984c60beba6133d9a4a420a6 /linux-user/main.c
parent9a62fb241c10327992a16bf99a131f98e70428a1 (diff)
downloadqemu-6d1db8c34e26a36652f816e8e74ce619fab87b62.zip
qemu-6d1db8c34e26a36652f816e8e74ce619fab87b62.tar.gz
qemu-6d1db8c34e26a36652f816e8e74ce619fab87b62.tar.bz2
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 <laurent@vivier.eu> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'linux-user/main.c')
-rw-r--r--linux-user/main.c2
1 files changed, 2 insertions, 0 deletions
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);
}