Skip to content

Commit 500ca52

Browse files
Fuad TabbaMarc Zyngier
authored andcommitted
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 <[email protected]> Acked-by: Will Deacon <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 9d8604b commit 500ca52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/include/asm/kvm_emulate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ static inline void kvm_vcpu_set_be(struct kvm_vcpu *vcpu)
386386
*vcpu_cpsr(vcpu) |= PSR_AA32_E_BIT;
387387
} else {
388388
u64 sctlr = vcpu_read_sys_reg(vcpu, SCTLR_EL1);
389-
sctlr |= (1 << 25);
389+
sctlr |= SCTLR_ELx_EE;
390390
vcpu_write_sys_reg(vcpu, sctlr, SCTLR_EL1);
391391
}
392392
}

0 commit comments

Comments
 (0)