Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
riscv: Support XUANTIE extended CSR save/restore during task switching
This patch focuses on two XUANTIE extended CSRs: - FXCR[31]: Process 16-bit floating point numbers according to the BFloat 16 format. - UTNMODE: FP8 output can be ovf or sat mode. Introduced by XUANTIE C908X. When using, first enable CONFIG_XUANTIE_CSR_EXT, then set the 'riscv,isa' fields of dts to dynamically control whether to save/restore the corresponding CSR. For example, for FXCR, you need to add 'xtheadfxcr', and for UTNMODE, you need to add 'xtheadutnmode'. Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
- Loading branch information