Don't call cpu_synchronize_state() from machine init.

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>
This commit is contained in:
Scott Wood 2010-10-04 11:15:58 +00:00 committed by Alexander Graf
parent f124a410ea
commit 64a4d100b5
2 changed files with 0 additions and 4 deletions

View 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;

View 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;