diff options
author | Thomas Huth <thuth@redhat.com> | 2023-04-24 14:21:26 +0200 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2023-05-17 07:20:29 +0200 |
commit | b67e5cb43b64cd511785aa1b35876b5e5bf55f69 (patch) | |
tree | 1abe4724ebfd1800aba8139f9355aa92fc1f2d16 /linux-user/main.c | |
parent | 7f696cddd9d7bbde0ecc489eb9a29c7196b29727 (diff) |
linux-user/main: Use list_cpus() instead of cpu_list()
This way we can get rid of the if'deffery and the XXX comment
here (it's repeated in the list_cpus() function anyway).
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230424122126.236586-1-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/main.c')
-rw-r--r-- | linux-user/main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index fe03293516..aece4d9e91 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -359,10 +359,7 @@ static void handle_arg_cpu(const char *arg) { cpu_model = strdup(arg); if (cpu_model == NULL || is_help_option(cpu_model)) { - /* XXX: implement xxx_cpu_list for targets that still miss it */ -#if defined(cpu_list) - cpu_list(); -#endif + list_cpus(); exit(EXIT_FAILURE); } } |