[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 24/33] cpu: Mark cpu_list() supported on all targets
From: |
Gavin Shan |
Subject: |
[PATCH v4 24/33] cpu: Mark cpu_list() supported on all targets |
Date: |
Thu, 2 Nov 2023 10:24:51 +1000 |
Remove the false conditions and comments since cpu_list() has been
supported on all targets.
Signed-off-by: Gavin Shan <gshan@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
- [PATCH v4 14/33] target/openrisc: Use generic helper to show CPU model names, (continued)
- [PATCH v4 14/33] target/openrisc: Use generic helper to show CPU model names, Gavin Shan, 2023/11/01
- [PATCH v4 15/33] target/ppc: Use generic helper to show CPU model names, Gavin Shan, 2023/11/01
- [PATCH v4 16/33] target/riscv: Use generic helper to show CPU model names, Gavin Shan, 2023/11/01
- [PATCH v4 17/33] target/rx: Use generic helper to show CPU model names, Gavin Shan, 2023/11/01
- [PATCH v4 18/33] target/s390x: Use generic helper to show CPU model names, Gavin Shan, 2023/11/01
- [PATCH v4 19/33] target/sh4: Use generic helper to show CPU model names, Gavin Shan, 2023/11/01
- [PATCH v4 20/33] target/tricore: Use generic helper to show CPU model names, Gavin Shan, 2023/11/01
- [PATCH v4 22/33] target/microblaze: Implement microblaze_cpu_list(), Gavin Shan, 2023/11/01
- [PATCH v4 21/33] target/hppa: Implement hppa_cpu_list(), Gavin Shan, 2023/11/01
- [PATCH v4 23/33] target/nios2: Implement nios2_cpu_list(), Gavin Shan, 2023/11/01
- [PATCH v4 24/33] cpu: Mark cpu_list() supported on all targets,
Gavin Shan <=
- [PATCH v4 25/33] machine: Constify MachineClass::valid_cpu_types[i], Gavin Shan, 2023/11/01
- [PATCH v4 26/33] machine: Use error handling when CPU type is checked, Gavin Shan, 2023/11/01
- [PATCH v4 27/33] machine: Introduce helper is_cpu_type_supported(), Gavin Shan, 2023/11/01
- [PATCH v4 28/33] machine: Print CPU model name instead of CPU type name, Gavin Shan, 2023/11/01
- [PATCH v4 29/33] hw/arm/virt: Check CPU type in machine_run_board_init(), Gavin Shan, 2023/11/01
- [PATCH v4 30/33] hw/arm/virt: Hide host CPU model for tcg, Gavin Shan, 2023/11/01
- [PATCH v4 31/33] hw/arm/sbsa-ref: Check CPU type in machine_run_board_init(), Gavin Shan, 2023/11/01
- [PATCH v4 32/33] hw/arm: Check CPU type in machine_run_board_init(), Gavin Shan, 2023/11/01
- [PATCH v4 33/33] hw/riscv/shakti_c: Check CPU type in machine_run_board_init(), Gavin Shan, 2023/11/01