Remove the false conditions and comments since cpu_list() has been supported on all targets.
Signed-off-by: Gavin Shan <gs...@redhat.com> --- bsd-user/main.c | 3 --- cpu-target.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/bsd-user/main.c b/bsd-user/main.c index c402fadf46..d3612ef0f5 100644 --- a/bsd-user/main.c +++ b/bsd-user/main.c @@ -378,10 +378,7 @@ int main(int argc, char **argv) } else if (!strcmp(r, "cpu")) { cpu_model = argv[optind++]; if (is_help_option(cpu_model)) { - /* XXX: implement xxx_cpu_list for targets that still miss it */ -#if defined(cpu_list) cpu_list(); -#endif exit(1); } } else if (!strcmp(r, "B")) { diff --git a/cpu-target.c b/cpu-target.c index 344bad5736..3037a2c6ee 100644 --- a/cpu-target.c +++ b/cpu-target.c @@ -310,10 +310,7 @@ const char *parse_cpu_option(const char *cpu_option) void list_cpus(void) { - /* XXX: implement xxx_cpu_list for targets that still miss it */ -#if defined(cpu_list) cpu_list(); -#endif } #if defined(CONFIG_USER_ONLY) -- 2.41.0