Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
riscv: vector: Check SR_SD before saving vstate
The SD bit summarizes the dirty states of FS, VS, or XS fields, providing a "fast check" before saving fstate or vstate. Let __switch_to_vector() check SD bit as __switch_to_fpu() does. Fixes: 3a2df63 ("riscv: Add task switch support for vector") Signed-off-by: Song Shuai <songshuaishuai@tinylab.org> Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
- Loading branch information