]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
linux-user/main: Use list_cpus() instead of cpu_list()
authorThomas Huth <thuth@redhat.com>
Mon, 24 Apr 2023 12:21:26 +0000 (14:21 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 17 May 2023 05:20:29 +0000 (07:20 +0200)
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>
linux-user/main.c

index fe03293516a5a0b32a8c693f4251a95395f554d3..aece4d9e911908ed54e9659133c8da9f07b0ffc0 100644 (file)
@@ -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);
     }
 }