[PATCH] riscv: fpu: refine FPU save flow

Vivian Wang wangruikang at iscas.ac.cn
Mon Feb 9 00:39:38 PST 2026


On 2/9/26 16:34, Vivian Wang wrote:
> [...]
>
> This doesn't really make sense. fstate_save checks for ((regs->status &
> SR_FS) == SR_FS_DIRTY). Do you mean that a platform can be !has_fpu(),
> yet come up with a task_pt_regs(...)->status that's SR_FS?

Meant to say: SR_FS set to SR_FS_DIRTY




More information about the linux-riscv mailing list