Skip to content

Commit

Permalink
linux-user: display cpu list.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Aurelien Jarno <[email protected]>
  • Loading branch information
vivier authored and aurel32 committed Jul 22, 2010
1 parent 9a62fb2 commit 6d1db8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions linux-user/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6d1db8c

Please sign in to comment.