On 23/03/2025 23.40, Philippe Mathieu-Daudé wrote:
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é <phi...@linaro.org>
---
  include/hw/core/cpu.h | 2 ++
  cpu-target.c          | 8 +++++++-
  2 files changed, 9 insertions(+), 1 deletion(-)

Reviewed-by: Thomas Huth <th...@redhat.com>


Reply via email to