Files
luban-lite-t3e-pro/bsp/artinchip/sys/d21x/include/aic_arch.h
刘可亮 9f7ba67007 v1.0.3
2024-01-27 08:47:24 +08:00

39 lines
603 B
C

/*
* Copyright (c) 2022, Artinchip Technology Co., Ltd
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef AIC_CONFIG_H__
#define AIC_CONFIG_H__
#ifdef __riscv
#define ARCH_RISCV
#if(__riscv_xlen == 64)
#define ARCH_RISCV64
#elif(__riscv_xlen == 32)
#define ARCH_RISCV32
#else
#endif
#if(__riscv_flen == 64)
#define ARCH_RISCV_FPU
#define ARCH_RISCV_FPU_D
#elif(__riscv_flen == 32)
#define ARCH_RISCV_FPU
#define ARCH_RISCV_FPU_S
#else
#endif
#ifdef __riscv_dsp
#define ARCH_RISCV_DSP
#endif
#ifdef __riscv_xthead
#ifdef __riscv_xtheade
#endif
#endif
#endif // __riscv
#endif // AIC_CONFIG_H__