KVM: arm64: Use symbolic definition for ISR_EL1.A
authorMark Brown <broonie@kernel.org>
Tue, 27 Dec 2022 17:05:05 +0000 (17:05 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 12 Jan 2023 16:31:33 +0000 (16:31 +0000)
Now that we are generating ISR_EL1 we have acquired a constant for
ISR_EL1.A, use it rather than the magic number we had been using in the KVM
entry code.

Suggested-by: Marc Zyngier <maz@kernel.org>
Acked-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221208-arm64-isr-el1-v2-3-89f7073a1ca9@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kvm/hyp/entry.S

index 435346ea1504e158f7877499514118d39400f247..f3aa7738b477d6a83e41db42cc161fc6f9aa6291 100644 (file)
@@ -171,7 +171,7 @@ alternative_else
        dsb     sy              // Synchronize against in-flight ld/st
        isb                     // Prevent an early read of side-effect free ISR
        mrs     x2, isr_el1
-       tbnz    x2, #8, 2f      // ISR_EL1.A
+       tbnz    x2, #ISR_EL1_A_SHIFT, 2f
        ret
        nop
 2: