summaryrefslogtreecommitdiffstats
path: root/hw/s390x
diff options
context:
space:
mode:
authorMatthew Rosato <mjrosato@linux.vnet.ibm.com>2016-03-04 12:34:34 -0500
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:49:36 -0600
commitc7f581f89a104e5aba8d0d957ea118df653ffb22 (patch)
treedc3264e1f13cf75654fd09563093c8d74748329d /hw/s390x
parent07ed2da5fab572a66a646c269a73634051d86ae6 (diff)
downloadhqemu-c7f581f89a104e5aba8d0d957ea118df653ffb22.zip
hqemu-c7f581f89a104e5aba8d0d957ea118df653ffb22.tar.gz
s390x/cpu: Add error handling to cpu creation
Check for and propogate errors during s390 cpu creation. Signed-off-by: Matthew Rosato <mjrosato@linux.vnet.ibm.com> Message-Id: <1457112875-5209-7-git-send-email-mjrosato@linux.vnet.ibm.com> Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'hw/s390x')
-rw-r--r--hw/s390x/s390-virtio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/s390x/s390-virtio.c b/hw/s390x/s390-virtio.c
index f00d6b4..4ea9040 100644
--- a/hw/s390x/s390-virtio.c
+++ b/hw/s390x/s390-virtio.c
@@ -116,7 +116,7 @@ void s390_init_cpus(MachineState *machine)
}
for (i = 0; i < smp_cpus; i++) {
- cpu_s390x_init(machine->cpu_model);
+ s390x_new_cpu(machine->cpu_model, i, &error_fatal);
}
}
OpenPOWER on IntegriCloud