Patchwork [2/5] kvmppc: Synchronize booke registers

login
register
mail settings
Submitter Liu Yu-B13201
Date Aug. 4, 2009, 9:36 a.m.
Message ID <1249378568-18008-3-git-send-email-yu.liu@freescale.com>
Download mbox | patch
Permalink /patch/30717/
State Superseded
Headers show

Comments

Liu Yu-B13201 - Aug. 4, 2009, 9:36 a.m.
Commit 8d2ba1fb9c8e7006e10d71fa51a020977f14c8b0
introduces a new new reset order.

So that we have to synchronize the register after updating them.

Signed-off-by: Liu Yu <yu.liu@freescale.com>
---
 hw/ppc440_bamboo.c     |    2 ++
 hw/ppce500_mpc8544ds.c |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/ppc440_bamboo.c b/hw/ppc440_bamboo.c
index 5011679..db78639 100644
--- a/hw/ppc440_bamboo.c
+++ b/hw/ppc440_bamboo.c
@@ -181,6 +181,8 @@  static void bamboo_init(ram_addr_t ram_size,
         env->gpr[3] = dt_base;
         env->nip = entry;
         /* XXX we currently depend on KVM to create some initial TLB entries. */
+
+	cpu_synchronize_state(env, 1);
     }
 
     if (kvm_enabled())
diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c
index d154c7f..4a397f7 100644
--- a/hw/ppce500_mpc8544ds.c
+++ b/hw/ppce500_mpc8544ds.c
@@ -275,6 +275,8 @@  static void mpc8544ds_init(ram_addr_t ram_size,
         env->gpr[3] = dt_base;
         env->nip = entry;
         /* XXX we currently depend on KVM to create some initial TLB entries. */
+
+	cpu_synchronize_state(env, 1);
     }
 
     if (kvm_enabled())