]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/s390x: Register CPUClass:list_cpus
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 24 Mar 2025 18:29:03 +0000 (19:29 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 25 Apr 2025 10:59:09 +0000 (12:59 +0200)
commite828206a0f63867deb9eedc194c49cc40a3b249b
treed5142c385bd0d52639a1c73829c80e62233f80dd
parent8b54467fb61eb507651ea8be6d786b0f2b0a1524
target/s390x: Register CPUClass:list_cpus

Both s390_cpu_list() and s390_set_qemu_cpu_model() are
defined in cpu_models.c, move their declarations in the
related "cpu_models.h" header. Use full path to header
in s390-virtio-ccw.c file.

Register s390_cpu_list() as CPUClass:list_cpus callback
and remove the cpu_list definition.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20250324185837.46506-6-philmd@linaro.org>
hw/s390x/s390-virtio-ccw.c
target/s390x/cpu.c
target/s390x/cpu.h
target/s390x/cpu_models.h