Skip to content

Commit c9f6890

Browse files
brooniewilldeacon
authored andcommitted
arm64/sve: Use the sve_flush macros in sve_load_from_fpsimd_state()
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>
1 parent 483dbf6 commit c9f6890

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

arch/arm64/kernel/entry-fpsimd.S

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,10 @@ SYM_FUNC_END(sve_set_vq)
6363
* and the rest zeroed. All the other SVE registers will be zeroed.
6464
*/
6565
SYM_FUNC_START(sve_load_from_fpsimd_state)
66-
sve_load_vq x1, x2, x3
67-
fpsimd_restore x0, 8
68-
_for n, 0, 15, _sve_pfalse \n
69-
_sve_wrffr 0
70-
ret
66+
sve_load_vq x1, x2, x3
67+
fpsimd_restore x0, 8
68+
sve_flush_p_ffr
69+
ret
7170
SYM_FUNC_END(sve_load_from_fpsimd_state)
7271

7372
/* Zero all SVE registers but the first 128-bits of each vector */

0 commit comments

Comments
 (0)