diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2012-09-18 11:28:57 +0100 |
---|---|---|
committer | Christoffer Dall <cdall@cs.columbia.edu> | 2013-03-06 15:48:42 -0800 |
commit | d0adf747c9caa8b01d0c1f987e306b7c6aaa5a04 (patch) | |
tree | 998cdabaae89710993b1933a46d83005733702c7 /arch/arm/kvm | |
parent | 7c511b881f79a2a390e7c2e9a39b9a881255e614 (diff) | |
download | linux-d0adf747c9caa8b01d0c1f987e306b7c6aaa5a04.tar.gz linux-d0adf747c9caa8b01d0c1f987e306b7c6aaa5a04.tar.bz2 linux-d0adf747c9caa8b01d0c1f987e306b7c6aaa5a04.zip |
ARM: KVM: abstract HSR_SRT_{MASK,SHIFT} away
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm/kvm')
-rw-r--r-- | arch/arm/kvm/mmio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kvm/mmio.c b/arch/arm/kvm/mmio.c index 058029c2d504..586063d0697a 100644 --- a/arch/arm/kvm/mmio.c +++ b/arch/arm/kvm/mmio.c @@ -94,7 +94,7 @@ static int decode_hsr(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa, is_write = kvm_vcpu_dabt_iswrite(vcpu); sign_extend = kvm_vcpu_dabt_issext(vcpu); - rt = (kvm_vcpu_get_hsr(vcpu) & HSR_SRT_MASK) >> HSR_SRT_SHIFT; + rt = kvm_vcpu_dabt_get_rd(vcpu); if (kvm_vcpu_reg_is_pc(vcpu, rt)) { /* IO memory trying to read/write pc */ |