提交 64a4d100 编写于 作者: S Scott Wood 提交者: Alexander Graf

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: NScott Wood <scottwood@freescale.com>
Acked-by: NJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: NAlexander Graf <agraf@suse.de>
上级 f124a410
...@@ -156,8 +156,6 @@ static void bamboo_init(ram_addr_t ram_size, ...@@ -156,8 +156,6 @@ static void bamboo_init(ram_addr_t ram_size,
exit(1); exit(1);
} }
cpu_synchronize_state(env);
/* Set initial guest state. */ /* Set initial guest state. */
env->gpr[1] = (16<<20) - 8; env->gpr[1] = (16<<20) - 8;
env->gpr[3] = FDT_ADDR; env->gpr[3] = FDT_ADDR;
......
...@@ -268,8 +268,6 @@ static void mpc8544ds_init(ram_addr_t ram_size, ...@@ -268,8 +268,6 @@ static void mpc8544ds_init(ram_addr_t ram_size,
exit(1); exit(1);
} }
cpu_synchronize_state(env);
/* Set initial guest state. */ /* Set initial guest state. */
env->gpr[1] = (16<<20) - 8; env->gpr[1] = (16<<20) - 8;
env->gpr[3] = dt_base; env->gpr[3] = dt_base;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册