qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/5] kvmppc: Synchronize booke registers


From: Liu Yu
Subject: [Qemu-devel] [PATCH 2/5] kvmppc: Synchronize booke registers
Date: Tue, 4 Aug 2009 17:36:05 +0800

Commit 8d2ba1fb9c8e7006e10d71fa51a020977f14c8b0
introduces a new new reset order.

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

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

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())
-- 
1.5.4





reply via email to

[Prev in Thread] Current Thread [Next in Thread]