]> xenbits.xensource.com Git - qemu-xen-4.2-testing.git/commitdiff
Don't call cpu_synchronize_state() from machine init.
authorScott Wood <scottwood@freescale.com>
Mon, 4 Oct 2010 11:15:58 +0000 (11:15 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 8 Apr 2011 09:32:20 +0000 (11:32 +0200)
This will deadlock when the I/O thread is used, since the
CPU thread is blocked waiting for qemu_system_ready.

The synchronization is unnecessary since this is before
cpu_synchronize_all_post_init().

Signed-off-by: Scott Wood <scottwood@freescale.com>
Acked-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc440_bamboo.c
hw/ppce500_mpc8544ds.c

index 34ddf454779b5bdada423dd22d4d8c603971aabe..645e84fd36bd22975d9c318eced6eed5b2acdbf1 100644 (file)
@@ -156,8 +156,6 @@ static void bamboo_init(ram_addr_t ram_size,
             exit(1);
         }
 
-        cpu_synchronize_state(env);
-
         /* Set initial guest state. */
         env->gpr[1] = (16<<20) - 8;
         env->gpr[3] = FDT_ADDR;
index b7670ae27ce6f48947eba35f4ea2f808081cb134..e111dda5f4c6de1f8a4686ff22de736cd2b6cfba 100644 (file)
@@ -268,8 +268,6 @@ static void mpc8544ds_init(ram_addr_t ram_size,
             exit(1);
         }
 
-        cpu_synchronize_state(env);
-
         /* Set initial guest state. */
         env->gpr[1] = (16<<20) - 8;
         env->gpr[3] = dt_base;