]> git.proxmox.com Git - mirror_qemu.git/commitdiff
s390-virtio: Use cpu_s390x_init() to obtain S390CPU
authorAndreas Färber <afaerber@suse.de>
Thu, 3 May 2012 02:16:07 +0000 (04:16 +0200)
committerAndreas Färber <afaerber@suse.de>
Sun, 10 Jun 2012 22:23:04 +0000 (00:23 +0200)
Needed to store S390CPU in ipi_states[].

Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/s390-virtio.c

index c0e19fd66d7549c0026ccb3fa859e83a36e8aa10..49b3495248f1926ce1f3a884a4bf790b1764a72b 100644 (file)
@@ -209,9 +209,11 @@ static void s390_init(ram_addr_t my_ram_size,
     ipi_states = g_malloc(sizeof(CPUS390XState *) * smp_cpus);
 
     for (i = 0; i < smp_cpus; i++) {
+        S390CPU *cpu;
         CPUS390XState *tmp_env;
 
-        tmp_env = cpu_init(cpu_model);
+        cpu = cpu_s390x_init(cpu_model);
+        tmp_env = &cpu->env;
         if (!env) {
             env = tmp_env;
         }