soc: arm: Kconfig option to indicate double-precision FP
This commit introduces a Kconfig option for ARM SoCs, to signify that the SoC implements a double-precision floating point unit. The option is utilized in cmake/fpu-for-gcc-m-cpu to select the appropriate GCC compile option flag for FPU. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
d61bac2936
commit
e029d08628
2 changed files with 18 additions and 3 deletions
|
@ -1,5 +1,11 @@
|
|||
# Defines a mapping from GCC_M_CPU to FPU
|
||||
|
||||
set(FPU_FOR_cortex-m4 fpv4-sp-d16)
|
||||
set(FPU_FOR_cortex-m7 fpv5-d16)
|
||||
set(FPU_FOR_cortex-m33 fpv5-sp-d16)
|
||||
if(CONFIG_CPU_HAS_FPU_DOUBLE_PRECISION)
|
||||
set(PRECISION_TOKEN)
|
||||
else()
|
||||
set(PRECISION_TOKEN sp-)
|
||||
endif()
|
||||
|
||||
set(FPU_FOR_cortex-m4 fpv4-${PRECISION_TOKEN}d16)
|
||||
set(FPU_FOR_cortex-m7 fpv5-${PRECISION_TOKEN}d16)
|
||||
set(FPU_FOR_cortex-m33 fpv5-${PRECISION_TOKEN}d16)
|
||||
|
|
|
@ -39,6 +39,15 @@ config CPU_HAS_NRF_IDAU
|
|||
(IDAU: "Implementation-Defined Attribution Unit", in accordance with
|
||||
ARM terminology).
|
||||
|
||||
config CPU_HAS_FPU_DOUBLE_PRECISION
|
||||
bool
|
||||
# Omit prompt to signify "hidden" option
|
||||
depends on CPU_CORTEX_M7
|
||||
select CPU_HAS_FPU
|
||||
help
|
||||
When enabled, indicates that the SoC has a double
|
||||
floating point precision unit.
|
||||
|
||||
config HAS_SWO
|
||||
bool
|
||||
# Omit prompt to signify "hidden" option
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue