nuttx: Add new config ARM_HAVE_MVE for MVE instruction

Signed-off-by: lishaoen <lishaoen@xiaomi.com>
This commit is contained in:
lishaoen 2021-11-18 16:52:55 +08:00 committed by Petro Karashchenko
parent 83a5e9958f
commit aa0c9fd788
2 changed files with 11 additions and 1 deletions

View File

@ -901,6 +901,12 @@ config ARM_HAVE_NEON
---help---
Decide whether support NEON instruction
config ARM_HAVE_MVE
bool
default n
---help---
Decide whether support MVE instruction
config ARM_FPU_ABI_SOFT
bool "Soft Float ABI"
default n

View File

@ -100,7 +100,11 @@ else ifeq ($(CONFIG_ARCH_CORTEXM35P),y)
endif
else ifeq ($(CONFIG_ARCH_CORTEXM55),y)
TOOLCHAIN_MTUNE := -mtune=cortex-m55
TOOLCHAIN_MARCH := -march=armv8.1-m.main+dsp
ifeq ($(CONFIG_ARM_HAVE_MVE),y)
TOOLCHAIN_MARCH := -march=armv8.1-m.main+mve.fp+fp.dp
else
TOOLCHAIN_MARCH := -march=armv8.1-m.main+dsp
endif
ifeq ($(CONFIG_ARCH_FPU),y)
TOOLCHAIN_MFLOAT := -mfpu=fpv5-d16
endif