File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,16 @@ if("${ARCH}" STREQUAL "arm")
36
36
else ()
37
37
set (ICCARM_CPU Cortex-M55.no_dsp)
38
38
endif ()
39
+ elseif (CONFIG_CPU_CORTEX_M85)
40
+ if (CONFIG_ARMV8_1_M_MVEF)
41
+ set (ICCARM_CPU Cortex-M85)
42
+ elseif (CONFIG_ARMV8_1_M_MVEI)
43
+ set (ICCARM_CPU Cortex-M85.no_mve)
44
+ elseif (CONFIG_ARMV8_M_DSP)
45
+ set (ICCARM_CPU Cortex-M85.no_mve)
46
+ else ()
47
+ set (ICCARM_CPU Cortex-M85.no_dsp)
48
+ endif ()
39
49
elseif (CONFIG_CPU_CORTEX_R4)
40
50
if (CONFIG_FPU AND CONFIG_CPU_HAS_VFP)
41
51
set (ICCARM_CPU Cortex-R4F)
Original file line number Diff line number Diff line change @@ -122,6 +122,18 @@ if("${IAR_TOOLCHAIN_VARIANT}" STREQUAL "iccarm")
122
122
if (CONFIG_FPU)
123
123
list (APPEND IAR_COMMON_FLAGS --fpu=${ICCARM_FPU} )
124
124
list (APPEND IAR_ASM_FLAGS -mfpu=${GCC_M_FPU} )
125
+ if (CONFIG_DCLS AND NOT CONFIG_FP_HARDABI)
126
+ # If the processor is equipped with VFP and configured in DCLS topology,
127
+ # the FP "hard" ABI must be used in order to facilitate the FP register
128
+ # initialisation and synchronisation.
129
+ set (FORCE_FP_HARDABI TRUE )
130
+ endif ()
131
+
132
+ if (CONFIG_FP_HARDABI OR FORCE_FP_HARDABI)
133
+ list (APPEND IAR_ASM_FLAGS -mfloat-abi=hard)
134
+ elseif (CONFIG_FP_SOFTABI)
135
+ list (APPEND ARM_ASM_FLAGS -mfloat-abi=softfp)
136
+ endif ()
125
137
endif ()
126
138
endif ()
127
139
You can’t perform that action at this time.
0 commit comments