OSDN Git Service

arm64: Define CPACR_EL1_FPEN similarly to other floating point controls
authorMark Brown <broonie@kernel.org>
Mon, 7 Feb 2022 15:20:30 +0000 (15:20 +0000)
committerWill Deacon <will@kernel.org>
Fri, 25 Feb 2022 14:28:18 +0000 (14:28 +0000)
commit879358fc670dbc8dc3b0e3e4975ff39e38847707
tree0d2ebb774b2441f8b71926bcded527f757ad94f1
parentdfd42facf1e4ada021b939b4e19c935dcdd55566
arm64: Define CPACR_EL1_FPEN similarly to other floating point controls

The base floating point, SVE and SME all have enable controls for EL0 and
EL1 in CPACR_EL1 which have a similar layout and function. Currently the
basic floating point enable FPEN is defined differently to the SVE control,
specified as a single define in kvm_arm.h rather than in sysreg.h. Move the
define to sysreg.h and provide separate EL0 and EL1 control bits so code
managing the different floating point enables can look consistent.

Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20220207152109.197566-2-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/kvm_arm.h
arch/arm64/include/asm/sysreg.h