target-ppc: add synchronize register for booke init
authorLiu Yu <yu.liu@freescale.com>
Wed, 27 Jan 2010 06:14:09 +0000 (14:14 +0800)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 27 Feb 2010 15:21:04 +0000 (16:21 +0100)
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>
hw/ppc440_bamboo.c
hw/ppce500_mpc8544ds.c

index 1ab9872..6d9c1b9 100644 (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;
index ea30816..6199bd5 100644 (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;