diff options
author | Alexander Graf <agraf@suse.de> | 2009-12-19 01:58:59 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2009-12-19 09:30:20 +0100 |
commit | 82c09f2f0d0f405428ce0c567da2ada493acc30b (patch) | |
tree | d052fcf2809737eca9e2081885f45d96637d3674 /target-ppc/kvm.c | |
parent | 384dce1eded17cb0413b473d0d0bee993f254045 (diff) | |
download | qemu-82c09f2f0d0f405428ce0c567da2ada493acc30b.tar.gz qemu-82c09f2f0d0f405428ce0c567da2ada493acc30b.tar.bz2 qemu-82c09f2f0d0f405428ce0c567da2ada493acc30b.zip |
target-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!
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-ppc/kvm.c')
-rw-r--r-- | 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 2b5abf430e..0424a78422 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++) { |