theadconfig.h 401 B

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