diff options
author | Alexander Graf <agraf@suse.de> | 2013-01-04 18:02:14 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-01-10 13:42:30 +0100 |
commit | 37ecb257f68ce4fb7c7048a1123bbcbbe36d9575 (patch) | |
tree | b81bf7e547600dbad56b8dc2325173efd52073c1 /arch/powerpc | |
parent | b8c649a99d582a6d8afd8457ba6145c624b8a76f (diff) | |
download | blackbird-op-linux-37ecb257f68ce4fb7c7048a1123bbcbbe36d9575.tar.gz blackbird-op-linux-37ecb257f68ce4fb7c7048a1123bbcbbe36d9575.zip |
KVM: PPC: BookE: Emulate mfspr on EPR
The EPR register is potentially valid for PR KVM as well, so we need
to emulate accesses to it. It's only defined for reading, so only
handle the mfspr case.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kvm/booke_emulate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/booke_emulate.c b/arch/powerpc/kvm/booke_emulate.c index 4685b8cf2249..27a4b2877c10 100644 --- a/arch/powerpc/kvm/booke_emulate.c +++ b/arch/powerpc/kvm/booke_emulate.c @@ -269,6 +269,9 @@ int kvmppc_booke_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val) case SPRN_ESR: *spr_val = vcpu->arch.shared->esr; break; + case SPRN_EPR: + *spr_val = vcpu->arch.epr; + break; case SPRN_CSRR0: *spr_val = vcpu->arch.csrr0; break; |