Mechanical change using the following coccinelle script:
@@ @@
- first_cpu
+ qemu_get_cpu(0, TYPE_S390_CPU)
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
hw/s390x/ipl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c
index 377f43416c..1f2296f456 100644
--- a/hw/s390x/ipl.c
+++ b/hw/s390x/ipl.c
@@ -674,7 +674,7 @@ void s390_ipl_get_reset_request(CPUState **cs, enum s390_reset *reset_type)
*cs = qemu_get_cpu(ipl->reset_cpu_index, TYPE_S390_CPU);
if (!*cs) {
/* use any CPU */
- *cs = first_cpu;
+ *cs = qemu_get_cpu(0, TYPE_S390_CPU);
}
*reset_type = ipl->reset_type;
}
--
2.41.0