arm64/sve: Use the sve_flush macros in sve_load_from_fpsimd_state()
authorMark Brown <broonie@kernel.org>
Wed, 12 May 2021 15:11:30 +0000 (16:11 +0100)
committerWill Deacon <will@kernel.org>
Wed, 26 May 2021 19:04:28 +0000 (20:04 +0100)
This makes the code a bit clearer and as a result we can also make the
indentation more normal, there is no change to the generated code.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Dave Martin <Dave.Martin@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210512151131.27877-3-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/entry-fpsimd.S

index 7921d58..dd8382e 100644 (file)
@@ -63,11 +63,10 @@ SYM_FUNC_END(sve_set_vq)
  * and the rest zeroed. All the other SVE registers will be zeroed.
  */
 SYM_FUNC_START(sve_load_from_fpsimd_state)
-               sve_load_vq     x1, x2, x3
-               fpsimd_restore  x0, 8
- _for n, 0, 15, _sve_pfalse    \n
-               _sve_wrffr      0
-               ret
+       sve_load_vq     x1, x2, x3
+       fpsimd_restore  x0, 8
+       sve_flush_p_ffr
+       ret
 SYM_FUNC_END(sve_load_from_fpsimd_state)
 
 /* Zero all SVE registers but the first 128-bits of each vector */