arm64/sve: Implement a helper to load SVE registers from FPSIMD state
authorJulien Grall <julien.grall@arm.com>
Fri, 28 Aug 2020 18:11:53 +0000 (19:11 +0100)
committerWill Deacon <will@kernel.org>
Mon, 21 Sep 2020 17:06:33 +0000 (18:06 +0100)
commit9c4b4c701e53183df94f6b9802b63762f0c0e1e3
tree2e91c9e01c34d0a85c73e18ef31761ab86af5ec0
parent1e530f1352a2709d7bcacdb8b6d42c8900ba2c80
arm64/sve: Implement a helper to load SVE registers from FPSIMD state

In a follow-up patch, we may save the FPSIMD rather than the full SVE
state when the state has to be zeroed on return to userspace (e.g
during a syscall).

Introduce an helper to load SVE vectors from FPSIMD state and zero the rest
of SVE registers.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Dave Martin <Dave.Martin@arm.com>
Link: https://lore.kernel.org/r/20200828181155.17745-7-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/fpsimd.h
arch/arm64/kernel/entry-fpsimd.S