You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/03/28 05:51:32 UTC
[incubator-nuttx] branch master updated: nuttx: Add new config ARM_HAVE_MVE for MVE instruction
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new aa0c9fd nuttx: Add new config ARM_HAVE_MVE for MVE instruction
aa0c9fd is described below
commit aa0c9fd788ec9d1bbe3e900ea89a69d203662079
Author: lishaoen <li...@xiaomi.com>
AuthorDate: Thu Nov 18 16:52:55 2021 +0800
nuttx: Add new config ARM_HAVE_MVE for MVE instruction
Signed-off-by: lishaoen <li...@xiaomi.com>
---
arch/arm/Kconfig | 6 ++++++
arch/arm/src/armv8-m/Toolchain.defs | 6 +++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 36f12f4..ef0b98c 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 1a8f38e..eee0ba5 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