This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new cbf76e96c7 arm64: add mcpu option for all Cortex CPU
cbf76e96c7 is described below
commit cbf76e96c7830b87d4317744763b4db2d05b7f83
Author: qinwei1 <[email protected]>
AuthorDate: Thu Aug 31 20:06:29 2023 +0800
arm64: add mcpu option for all Cortex CPU
Summary
add mcpu option for all Cortex CPU, from Spec of gcc
https://gcc.gnu.org/onlinedocs/gcc-12.3.0/gcc/AArch64-Options.html
testing with ostest for every option
Signed-off-by: qinwei1 <[email protected]>
---
arch/arm64/src/Toolchain.defs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/arm64/src/Toolchain.defs b/arch/arm64/src/Toolchain.defs
index 7a154c9b54..75d3431e86 100644
--- a/arch/arm64/src/Toolchain.defs
+++ b/arch/arm64/src/Toolchain.defs
@@ -39,13 +39,13 @@ ifeq ($(CONFIG_ARCH_ARMV8R),y)
endif
ifeq ($(CONFIG_ARCH_CORTEX_A53),y)
- ARCHCPUFLAGS += -mtune=cortex-a53
+ ARCHCPUFLAGS += -mcpu=cortex-a53
else ifeq ($(CONFIG_ARCH_CORTEX_A57),y)
- ARCHCPUFLAGS += -mtune=cortex-a57
+ ARCHCPUFLAGS += -mcpu=cortex-a57
else ifeq ($(CONFIG_ARCH_CORTEX_A72),y)
- ARCHCPUFLAGS += -mtune=cortex-a72
+ ARCHCPUFLAGS += -mcpu=cortex-a72
else ifeq ($(CONFIG_ARCH_CORTEX_R82),y)
- ARCHCPUFLAGS += -mtune=cortex-r82
+ ARCHCPUFLAGS += -mcpu=cortex-r82
endif
ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)