KVM: arm64: Use defined value for SCTLR_ELx_EE
PATCH 1/1 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]>
--- arch/arm64/include/asm/kvm_emulate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/include/asm/kvm_emulate.h +1 -1
@@ -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 ); } }
Signature · 6 lines
2.34.1.400.ga245620fadb-goog _______________________________________________ kvmarm mailing list [email protected] https://lists.cs.columbia.edu/mailman/listinfo/kvmarm
Quoted 14 lines · Fuad Tabba
Replace the hardcoded value with the existing definition.
No functional change intended.
Signed-off-by Fuad Tabba <[email protected]>--- arch/arm64/include/asm/kvm_emulate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/include/asm/kvm_emulate.h +0
-0
arch/arm64/include/asm/kvm_emulate.h static inline void kvm_vcpu_set_be(struct kvm_vcpu *vcpu) · line 390
Quoted 6 lines
arch/arm64/include/asm/kvm_emulate.h +1
-1@@ -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 );
Acked-by Will Deacon <[email protected]>
Will
_______________________________________________
kvmarm mailing list
[email protected]
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm
Quoted 3 lines · Fuad Tabba
Replace the hardcoded value with the existing definition.
No functional change intended.
Applied to next, thanks!
[1/1] KVM: arm64: Use defined value for SCTLR_ELx_EE
commit: 500ca5241bf8054c8a973e54cb28629614f43178
Cheers,
M.
Signature · 7 lines
Without deviation from the norm, progress is not possible. _______________________________________________ kvmarm mailing list [email protected] https://lists.cs.columbia.edu/mailman/listinfo/kvmarm