diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 36f12f4995..ef0b98cea2 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -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 diff --git a/arch/arm/src/armv8-m/Toolchain.defs b/arch/arm/src/armv8-m/Toolchain.defs index 1a8f38e0c7..eee0ba5b8d 100644 --- a/arch/arm/src/armv8-m/Toolchain.defs +++ b/arch/arm/src/armv8-m/Toolchain.defs @@ -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