diff options
author | Alexander Graf <agraf@suse.de> | 2010-04-01 09:33:21 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 05:17:24 -0400 |
commit | 287d5611fab5a42214d028b6f67fbd2ee977dcf2 (patch) | |
tree | 3137442830632cc73f937b1bd213deb218cc815d | |
parent | 647dc49eebad2c30f823cae2bd8204b66c739f9c (diff) |
KVM: PPC: Only use QPRs when available
BookE KVM doesn't know about QPRs, so let's not try to access then.
This fixes a build error on BookE KVM.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | arch/powerpc/kvm/powerpc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 9a4dd8146d39..ffbe4cac5b15 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c | |||
@@ -335,6 +335,7 @@ static void kvmppc_complete_mmio_load(struct kvm_vcpu *vcpu, | |||
335 | case KVM_REG_FPR: | 335 | case KVM_REG_FPR: |
336 | vcpu->arch.fpr[vcpu->arch.io_gpr & KVM_REG_MASK] = gpr; | 336 | vcpu->arch.fpr[vcpu->arch.io_gpr & KVM_REG_MASK] = gpr; |
337 | break; | 337 | break; |
338 | #ifdef CONFIG_PPC_BOOK3S | ||
338 | case KVM_REG_QPR: | 339 | case KVM_REG_QPR: |
339 | vcpu->arch.qpr[vcpu->arch.io_gpr & KVM_REG_MASK] = gpr; | 340 | vcpu->arch.qpr[vcpu->arch.io_gpr & KVM_REG_MASK] = gpr; |
340 | break; | 341 | break; |
@@ -342,6 +343,7 @@ static void kvmppc_complete_mmio_load(struct kvm_vcpu *vcpu, | |||
342 | vcpu->arch.fpr[vcpu->arch.io_gpr & KVM_REG_MASK] = gpr; | 343 | vcpu->arch.fpr[vcpu->arch.io_gpr & KVM_REG_MASK] = gpr; |
343 | vcpu->arch.qpr[vcpu->arch.io_gpr & KVM_REG_MASK] = gpr; | 344 | vcpu->arch.qpr[vcpu->arch.io_gpr & KVM_REG_MASK] = gpr; |
344 | break; | 345 | break; |
346 | #endif | ||
345 | default: | 347 | default: |
346 | BUG(); | 348 | BUG(); |
347 | } | 349 | } |