From 18a24c3f6f0686812451cda87d15f20cfe229ab6 Mon Sep 17 00:00:00 2001 From: Evgeniy Paltsev Date: Tue, 18 May 2021 22:14:35 +0300 Subject: [PATCH] ARC: gcc-m-cpu: use -mcpu=archs as a default for ARCv2 HS Due to the fact that we use -mcpu=hs as a default for ARCv2 HS the compiler doesn't generate multiply/divide/mac/64bit memory operations instructions. Fix that by using -mcpu=archs as a default for ARCv2 HS which is fits for all existing boards with ARCv2 HS CPU. Signed-off-by: Eugeniy Paltsev Signed-off-by: Evgeniy Paltsev --- cmake/gcc-m-cpu.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/gcc-m-cpu.cmake b/cmake/gcc-m-cpu.cmake index 2952384ce73..65f8b8e2b2f 100644 --- a/cmake/gcc-m-cpu.cmake +++ b/cmake/gcc-m-cpu.cmake @@ -55,7 +55,7 @@ elseif("${ARCH}" STREQUAL "arc") elseif(CONFIG_CPU_EM4_FPUDA) set(GCC_M_CPU em4_fpuda) elseif(CONFIG_CPU_HS3X) - set(GCC_M_CPU hs) + set(GCC_M_CPU archs) elseif(CONFIG_CPU_HS6X) set(GCC_M_CPU arc64) elseif(CONFIG_CPU_EM4)