Skip to contentSkip to conversation

PPC: Fix ppc32 kvm build

PATCH New Alexander Graf 1 participant 1 message Dec 19, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC: Fix ppc32 kvm build

My segment sync patch broke compilation on PPC32, because it was trying to sync the SLB even though ppc32 CPUs don't have an SLB.

So let's only sync it when we're on a PP64 one!

---
 target-ppc/kvm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
target-ppc/kvm.c +2 -0
index 2b5abf4..0424a78 100644
@@ -135,10 +135,12 @@ int kvm_arch_get_registers(CPUState *env)
         env->sdr1 = sregs.u.s.sdr1;
 
         /* Sync SLB */
+#ifdef TARGET_PPC64
         for (i = 0; i < 64; i++) {
             ppc_store_slb(env, sregs.u.s.ppc64.slb[i].slbe,
                                sregs.u.s.ppc64.slb[i].slbv);
         }
+#endif
 
         /* Sync SRs */
         for (i = 0; i < 16; i++) {
Signature · 1 line
1.6.0.2