target-ppc: add synchronize register for booke init

So that the following registers init could be flushed back to kvm.

Signed-off-by: Liu Yu <yu.liu@freescale.com>
Acked-by: Hollis Blanchard <hollis@penguinppc.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
Liu Yu 2010-01-27 14:14:09 +08:00 committed by Aurelien Jarno
parent e192a45c16
commit c49638177f
2 changed files with 4 additions and 0 deletions

View file

@ -160,6 +160,8 @@ 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] = dt_base;

View file

@ -261,6 +261,8 @@ 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;