diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2012-09-18 06:12:26 -0400 |
---|---|---|
committer | Christoffer Dall <cdall@cs.columbia.edu> | 2013-03-06 18:48:42 -0500 |
commit | 023cc964063509ece283e0bed227114197ac14e0 (patch) | |
tree | 978a1adab33bc166e36cdb7bdf72c963bbae951b /arch/arm/include | |
parent | 4a1df28ac0ce6d76d336210d8c4216087c17de3a (diff) |
ARM: KVM: abstract HSR_WNR away
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/kvm_emulate.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/include/asm/kvm_emulate.h b/arch/arm/include/asm/kvm_emulate.h index ae9119e53bfc..a0d76df470b0 100644 --- a/arch/arm/include/asm/kvm_emulate.h +++ b/arch/arm/include/asm/kvm_emulate.h | |||
@@ -95,4 +95,9 @@ static inline bool kvm_vcpu_dabt_isvalid(struct kvm_vcpu *vcpu) | |||
95 | return kvm_vcpu_get_hsr(vcpu) & HSR_ISV; | 95 | return kvm_vcpu_get_hsr(vcpu) & HSR_ISV; |
96 | } | 96 | } |
97 | 97 | ||
98 | static inline bool kvm_vcpu_dabt_iswrite(struct kvm_vcpu *vcpu) | ||
99 | { | ||
100 | return kvm_vcpu_get_hsr(vcpu) & HSR_WNR; | ||
101 | } | ||
102 | |||
98 | #endif /* __ARM_KVM_EMULATE_H__ */ | 103 | #endif /* __ARM_KVM_EMULATE_H__ */ |