diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2012-09-18 09:14:35 -0400 |
---|---|---|
committer | Christoffer Dall <cdall@cs.columbia.edu> | 2013-03-06 18:48:43 -0500 |
commit | 1cc287dd081235e02cebd791f1e930ca6f422dcd (patch) | |
tree | dca0108bdadc86669a7ac0c62ec6192fb9235535 /arch/arm/include | |
parent | 4926d445eb76bec8ebd71f5ed9e9c94fd738014d (diff) |
ARM: KVM: abstract fault decoding away
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
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 539f83ac167f..021a59c46dda 100644 --- a/arch/arm/include/asm/kvm_emulate.h +++ b/arch/arm/include/asm/kvm_emulate.h | |||
@@ -147,4 +147,9 @@ static inline u8 kvm_vcpu_trap_get_class(struct kvm_vcpu *vcpu) | |||
147 | return kvm_vcpu_get_hsr(vcpu) >> HSR_EC_SHIFT; | 147 | return kvm_vcpu_get_hsr(vcpu) >> HSR_EC_SHIFT; |
148 | } | 148 | } |
149 | 149 | ||
150 | static inline u8 kvm_vcpu_trap_get_fault(struct kvm_vcpu *vcpu) | ||
151 | { | ||
152 | return kvm_vcpu_get_hsr(vcpu) & HSR_FSC_TYPE; | ||
153 | } | ||
154 | |||
150 | #endif /* __ARM_KVM_EMULATE_H__ */ | 155 | #endif /* __ARM_KVM_EMULATE_H__ */ |