qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] PPC: Fix ppc32 kvm build
@ 2009-12-19  0:58 Alexander Graf
  0 siblings, 0 replies; only message in thread
From: Alexander Graf @ 2009-12-19  0:58 UTC (permalink / raw)
  To: qemu-devel; +Cc: Aurelien Jarno

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!

Signed-off-by: Alexander Graf <agraf@suse.de>
---
 target-ppc/kvm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c
index 2b5abf4..0424a78 100644
--- a/target-ppc/kvm.c
+++ b/target-ppc/kvm.c
@@ -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++) {
-- 
1.6.0.2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-19  0:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-19  0:58 [Qemu-devel] [PATCH] PPC: Fix ppc32 kvm build Alexander Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).