]> git.ipfire.org Git - thirdparty/qemu.git/commit
cpus: Introduce CPUClass::list_cpus() callback
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Sun, 23 Mar 2025 15:09:06 +0000 (16:09 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 25 Apr 2025 10:59:09 +0000 (12:59 +0200)
commit0a5692fecc76c6fee9a4fc86dbe8faf84ce30ce8
treeeb6c818962ebcdafdf74eca06c33a2ea41ff7cff
parent9ce6caa0d94a52a0ada77f494e8e23e62198aef0
cpus: Introduce CPUClass::list_cpus() callback

Some targets define cpu_list to a method listing their
CPUs on stdout. In order to make list_cpus() generic,
introduce the CPUClass::list_cpus() callback.
When no callback is registered, list_cpus() defaults
to the cpu_list definition.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Message-Id: <20250324185837.46506-2-philmd@linaro.org>
cpu-target.c
include/hw/core/cpu.h