Skip to contentSkip to conversation

KVM: ARM: Fix typo in comments of inject_abt()

PATCH New Anup Patel 2 participants 2 messages Sep 11, 2013 Arm (32-bit)

lore
Share & tools
lore

Anup Patel

author
#0 lore raw

PATCH 1/1 KVM: ARM: Fix typo in comments of inject_abt()

Very minor typo in comments of inject_abt() when we update fault status register for injecting prefetch abort.

---
 arch/arm/kvm/emulate.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/kvm/emulate.c +1 -1
index bdede9e..d6c0052 100644
@@ -354,7 +354,7 @@ static void inject_abt(struct kvm_vcpu *vcpu, bool is_pabt, unsigned long addr)
 	*vcpu_pc(vcpu) = exc_vector_base(vcpu) + vect_offset;
 
 	if (is_pabt) {
-		/* Set DFAR and DFSR */
+		/* Set IFAR and IFSR */
 		vcpu->arch.cp15[c6_IFAR] = addr;
 		is_lpae = (vcpu->arch.cp15[c2_TTBCR] >> 31);
 		/* Always give debug fault for now - should give guest a clue */
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 KVM: ARM: Fix typo in comments of inject_abt()

Quoted 25 lines · Anup Patel

Very minor typo in comments of inject_abt() when we update fault status register for injecting prefetch abort.

---
 arch/arm/kvm/emulate.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/kvm/emulate.c +1 -1
index bdede9e..d6c0052 100644
@@ -354,7 +354,7 @@ static void inject_abt(struct kvm_vcpu *vcpu, bool is_pabt, unsigned long addr)
 	*vcpu_pc(vcpu) = exc_vector_base(vcpu) + vect_offset;
 
 	if (is_pabt) {
-		/* Set DFAR and DFSR */
+		/* Set IFAR and IFSR */
 		vcpu->arch.cp15[c6_IFAR] = addr;
 		is_lpae = (vcpu->arch.cp15[c2_TTBCR] >> 31);
 		/* Always give debug fault for now - should give guest a clue */
Signature · 1 line
1.7.9.5

Thanks, applied.