Skip to content

Commit a93fdaf

Browse files
AndybnACTpalmer-dabbelt
authored andcommitted
riscv: fpu: drop SR_SD bit checking
SR_SD summarizes the dirty status of FS/VS/XS. However, the current code structure does not fully utilize it because each extension specific code is divided into an individual segment. So remove the SR_SD check for now. Signed-off-by: Andy Chiu <andy.chiu@sifive.com> Reviewed-by: Song Shuai <songshuaishuai@tinylab.org> Reviewed-by: Guo Ren <guoren@kernel.org> Tested-by: Björn Töpel <bjorn@rivosinc.com> Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Link: https://lore.kernel.org/r/20240115055929.4736-7-andy.chiu@sifive.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent c2a658d commit a93fdaf

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

arch/riscv/include/asm/switch_to.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ static inline void __switch_to_fpu(struct task_struct *prev,
5353
struct pt_regs *regs;
5454

5555
regs = task_pt_regs(prev);
56-
if (unlikely(regs->status & SR_SD))
57-
fstate_save(prev, regs);
56+
fstate_save(prev, regs);
5857
fstate_restore(next, task_pt_regs(next));
5958
}
6059

0 commit comments

Comments
 (0)