summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/e500_emulate.c
diff options
context:
space:
mode:
authorBharat Bhushan <r65777@freescale.com>2012-05-21 01:21:23 +0200
committerAlexander Graf <agraf@suse.de>2012-05-30 11:43:11 +0200
commit21bd000abff7d587229dbbee6f8c17f3aad9f9d8 (patch)
tree23bc78396196e5253e3330f03cf2eecb41a067b3 /arch/powerpc/kvm/e500_emulate.c
parentKVM: PPC: Book3S HV: Make the guest hash table size configurable (diff)
downloadlinux-21bd000abff7d587229dbbee6f8c17f3aad9f9d8.tar.xz
linux-21bd000abff7d587229dbbee6f8c17f3aad9f9d8.zip
KVM: PPC: booke: Added DECAR support
Added the decrementer auto-reload support. DECAR is readable on e500v2/e500mc and later cpus. Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/e500_emulate.c')
-rw-r--r--arch/powerpc/kvm/e500_emulate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/e500_emulate.c b/arch/powerpc/kvm/e500_emulate.c
index 8b99e076dc81..e04b0ef55ce0 100644
--- a/arch/powerpc/kvm/e500_emulate.c
+++ b/arch/powerpc/kvm/e500_emulate.c
@@ -269,6 +269,9 @@ int kvmppc_core_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, ulong *spr_val)
*spr_val = vcpu->arch.shared->mas7_3 >> 32;
break;
#endif
+ case SPRN_DECAR:
+ *spr_val = vcpu->arch.decar;
+ break;
case SPRN_TLB0CFG:
*spr_val = vcpu->arch.tlbcfg[0];
break;