arm: cortex-m: add FPU option for v8.M without DSP
With respect to the mapping between the CPU variant and the FPU we add an entry for Cortex-M v8-M CPU variants without DSP. This should cover the case of a Mainline Cortex-M which implements the Floating Point extension but not the DSP extension. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
583d5a6db3
commit
102fd5d41c
1 changed files with 4 additions and 3 deletions
|
@ -18,9 +18,10 @@ else()
|
||||||
set(PRECISION_TOKEN sp-)
|
set(PRECISION_TOKEN sp-)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(FPU_FOR_cortex-m4 fpv4-${PRECISION_TOKEN}d16)
|
set(FPU_FOR_cortex-m4 fpv4-${PRECISION_TOKEN}d16)
|
||||||
set(FPU_FOR_cortex-m7 fpv5-${PRECISION_TOKEN}d16)
|
set(FPU_FOR_cortex-m7 fpv5-${PRECISION_TOKEN}d16)
|
||||||
set(FPU_FOR_cortex-m33 fpv5-${PRECISION_TOKEN}d16)
|
set(FPU_FOR_cortex-m33 fpv5-${PRECISION_TOKEN}d16)
|
||||||
|
set(FPU_FOR_cortex-m33+nodsp fpv5-${PRECISION_TOKEN}d16)
|
||||||
|
|
||||||
if(CONFIG_FPU)
|
if(CONFIG_FPU)
|
||||||
list(APPEND TOOLCHAIN_C_FLAGS -mfpu=${FPU_FOR_${GCC_M_CPU}})
|
list(APPEND TOOLCHAIN_C_FLAGS -mfpu=${FPU_FOR_${GCC_M_CPU}})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue