Enforce qemu_get_cpu() to return S390X CPUs in S390X specific files. Mechanical change using the following coccinelle script:
@@ expression index; @@ - qemu_get_cpu(index, NULL) + qemu_get_cpu(index, TYPE_S390_CPU) Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org> --- hw/s390x/ipl.c | 2 +- hw/s390x/s390-virtio-ccw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c index 14cd0a1f7b..377f43416c 100644 --- a/hw/s390x/ipl.c +++ b/hw/s390x/ipl.c @@ -671,7 +671,7 @@ void s390_ipl_get_reset_request(CPUState **cs, enum s390_reset *reset_type) { S390IPLState *ipl = get_ipl_device(); - *cs = qemu_get_cpu(ipl->reset_cpu_index, NULL); + *cs = qemu_get_cpu(ipl->reset_cpu_index, TYPE_S390_CPU); if (!*cs) { /* use any CPU */ *cs = first_cpu; diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c index 7628b746a8..3bb4b13c5e 100644 --- a/hw/s390x/s390-virtio-ccw.c +++ b/hw/s390x/s390-virtio-ccw.c @@ -583,7 +583,7 @@ static HotplugHandler *s390_get_hotplug_handler(MachineState *machine, static void s390_nmi(NMIState *n, int cpu_index, Error **errp) { - CPUState *cs = qemu_get_cpu(cpu_index, NULL); + CPUState *cs = qemu_get_cpu(cpu_index, TYPE_S390_CPU); s390_cpu_restart(S390_CPU(cs)); } -- 2.41.0