1 #ifndef THEAD_CONFIG_H__ 2 #define THAED_CONFIG_H__ 3 4 #define ARCH_RISCV 5 #define ARCH_RISCV32 6 #if(__riscv_flen == 64) 7 #define ARCH_RISCV_FPU 8 #define ARCH_RISCV_FPU_D 9 #elif(__riscv_flen == 32) 10 #define ARCH_RISCV_FPU 11 #define ARCH_RISCV_FPU_S 12 #else 13 #endif 14 #ifdef __riscv_zp64 15 #define ARCH_RISCV_DSP 16 #endif 17 18 #ifdef __riscv_xthead 19 #ifdef __riscv_xtheade 20 #define CONFIG_THEAD_EXT_SPUSHEN 21 #endif 22 #endif 23 24 #endif 25