[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 21/71] target/xtensa: Use generic cpu_list()
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 21/71] target/xtensa: Use generic cpu_list() |
Date: |
Fri, 5 Jan 2024 16:42:14 +0100 |
From: Gavin Shan <gshan@redhat.com>
Before it's applied:
[gshan@gshan q]$ ./build/qemu-system-xtensa -cpu ?
Available CPUs:
test_mmuhifi_c3
sample_controller
lx106
dsp3400
de233_fpu
de212
dc233c
dc232b
After it's applied:
[gshan@gshan q]$ ./build/qemu-system-xtensa -cpu ?
Available CPUs:
dc232b
dc233c
de212
de233_fpu
dsp3400
lx106
sample_controller
test_mmuhifi_c3
Signed-off-by: Gavin Shan <gshan@redhat.com>
Message-ID: <20231114235628.534334-22-gshan@redhat.com>
[PMD: Split patch in 2, only include the "Use generic cpu_list" change]
Message-ID: <51ffd060-b2f8-405c-83e1-a0663c0183f5@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/xtensa/cpu.h | 3 ---
target/xtensa/helper.c | 9 ---------
2 files changed, 12 deletions(-)
diff --git a/target/xtensa/cpu.h b/target/xtensa/cpu.h
index dd81729306..d9c49a35fa 100644
--- a/target/xtensa/cpu.h
+++ b/target/xtensa/cpu.h
@@ -600,8 +600,6 @@ G_NORETURN void xtensa_cpu_do_unaligned_access(CPUState
*cpu, vaddr addr,
MMUAccessType access_type, int
mmu_idx,
uintptr_t retaddr);
-#define cpu_list xtensa_cpu_list
-
#define CPU_RESOLVING_TYPE TYPE_XTENSA_CPU
#if TARGET_BIG_ENDIAN
@@ -626,7 +624,6 @@ void check_interrupts(CPUXtensaState *s);
void xtensa_irq_init(CPUXtensaState *env);
qemu_irq *xtensa_get_extints(CPUXtensaState *env);
qemu_irq xtensa_get_runstall(CPUXtensaState *env);
-void xtensa_cpu_list(void);
void xtensa_sync_window_from_phys(CPUXtensaState *env);
void xtensa_sync_phys_from_window(CPUXtensaState *env);
void xtensa_rotate_window(CPUXtensaState *env, uint32_t delta);
diff --git a/target/xtensa/helper.c b/target/xtensa/helper.c
index dbeb97a953..f6632df646 100644
--- a/target/xtensa/helper.c
+++ b/target/xtensa/helper.c
@@ -234,15 +234,6 @@ void xtensa_breakpoint_handler(CPUState *cs)
}
}
-void xtensa_cpu_list(void)
-{
- XtensaConfigList *core = xtensa_cores;
- qemu_printf("Available CPUs:\n");
- for (; core; core = core->next) {
- qemu_printf(" %s\n", core->config->name);
- }
-}
-
#ifndef CONFIG_USER_ONLY
void xtensa_cpu_do_unaligned_access(CPUState *cs,
vaddr addr, MMUAccessType access_type,
--
2.41.0
- [PULL 10/71] target/cris: Use generic cpu_list(), (continued)
- [PULL 10/71] target/cris: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 11/71] target/hexagon: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 12/71] target/hppa: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 13/71] target/loongarch: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 14/71] target/m68k: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 16/71] target/openrisc: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 15/71] target/mips: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 17/71] target/riscv: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 18/71] target/rx: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 20/71] target/tricore: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 21/71] target/xtensa: Use generic cpu_list(),
Philippe Mathieu-Daudé <=
- [PULL 22/71] target: Use generic cpu_model_from_type(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 19/71] target/sh4: Use generic cpu_list(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 23/71] hw/core: Add machine_class_default_cpu_type(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 25/71] machine: Introduce helper is_cpu_type_supported(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 26/71] machine: Improve is_cpu_type_supported(), Philippe Mathieu-Daudé, 2024/01/05
- [PULL 27/71] machine: Print CPU model name instead of CPU type, Philippe Mathieu-Daudé, 2024/01/05
- [PULL 24/71] machine: Use error handling when CPU type is checked, Philippe Mathieu-Daudé, 2024/01/05
- [PULL 28/71] hw/arm/virt: Hide host CPU model for tcg, Philippe Mathieu-Daudé, 2024/01/05
- [PULL 29/71] hw/arm/virt: Check CPU type in machine_run_board_init(), Philippe Mathieu-Daudé, 2024/01/05