]> git.proxmox.com Git - mirror_qemu.git/commit
cpu: Add generic cpu_list()
authorGavin Shan <gshan@redhat.com>
Tue, 14 Nov 2023 23:56:03 +0000 (09:56 +1000)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 5 Jan 2024 15:20:14 +0000 (16:20 +0100)
commitdfa4753131a77e628e0951bdf294b48c145d3dd6
tree684c93d27d6c09b21c0c1c27d2251ee523907b75
parent445946f4dd144c40153f112a5285fe23223e71f8
cpu: Add generic cpu_list()

Add generic cpu_list() to replace the individual target's implementation
in the subsequent commits. Currently, there are 3 targets with no cpu_list()
implementation: microblaze and nios2. With this applied, those two targets
switch to the generic cpu_list().

[gshan@gshan q]$ ./build/qemu-system-microblaze -cpu ?
Available CPUs:
  microblaze-cpu

[gshan@gshan q]$ ./build/qemu-system-nios2 -cpu ?
Available CPUs:
  nios2-cpu

Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231114235628.534334-7-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
bsd-user/main.c
cpu-target.c