+2
-2
arch/arm64/include/asm/kvm_emulate.h
+2
-2
arch/arm64/include/asm/kvm_emulate.h
···
303
303
return !!(kvm_vcpu_get_esr(vcpu) & ESR_ELx_S1PTW);
304
304
}
305
305
306
+
/* Always check for S1PTW *before* using this. */
306
307
static __always_inline bool kvm_vcpu_dabt_iswrite(const struct kvm_vcpu *vcpu)
307
308
{
308
-
return !!(kvm_vcpu_get_esr(vcpu) & ESR_ELx_WNR) ||
309
-
kvm_vcpu_abt_iss1tw(vcpu); /* AF/DBM update */
309
+
return kvm_vcpu_get_esr(vcpu) & ESR_ELx_WNR;
310
310
}
311
311
312
312
static inline bool kvm_vcpu_dabt_is_cm(const struct kvm_vcpu *vcpu)