From cbf76e96c7830b87d4317744763b4db2d05b7f83 Mon Sep 17 00:00:00 2001 From: qinwei1 Date: Thu, 31 Aug 2023 20:06:29 +0800 Subject: [PATCH] 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 --- 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)