Btw, I wonder if we just just move __restore_d_state/__save_d_state to assembly. They just call assembly routines to start with, so they might be a natural fit for the new fpu.S file.
- [PATCH v2] riscv: Add support to no-FPU systems Alan Kao
- Re: [PATCH v2] riscv: Add support to no-FPU systems Christoph Hellwig
- Re: [PATCH v2] riscv: Add support to no-FPU sys... Christoph Hellwig