diff options
author | Fuad Tabba <tabba@google.com> | 2021-12-08 19:28:10 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-12-20 13:55:48 +0000 |
commit | 500ca5241bf8054c8a973e54cb28629614f43178 (patch) | |
tree | 87671654a9eda69ff5214996ae41d4e429fbe8c8 /arch/arm64/include/asm | |
parent | 9d8604b28575ccab3afd8d6f56cab9a6c0d281ef (diff) | |
download | linux-500ca5241bf8054c8a973e54cb28629614f43178.tar.bz2 |
KVM: arm64: Use defined value for SCTLR_ELx_EE
Replace the hardcoded value with the existing definition.
No functional change intended.
Signed-off-by: Fuad Tabba <tabba@google.com>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211208192810.657360-1-tabba@google.com
Diffstat (limited to 'arch/arm64/include/asm')
-rw-r--r-- | arch/arm64/include/asm/kvm_emulate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/kvm_emulate.h b/arch/arm64/include/asm/kvm_emulate.h index f4871e47b2d0..cd5fd9b92b04 100644 --- a/arch/arm64/include/asm/kvm_emulate.h +++ b/arch/arm64/include/asm/kvm_emulate.h @@ -386,7 +386,7 @@ static inline void kvm_vcpu_set_be(struct kvm_vcpu *vcpu) *vcpu_cpsr(vcpu) |= PSR_AA32_E_BIT; } else { u64 sctlr = vcpu_read_sys_reg(vcpu, SCTLR_EL1); - sctlr |= (1 << 25); + sctlr |= SCTLR_ELx_EE; vcpu_write_sys_reg(vcpu, sctlr, SCTLR_EL1); } } |