Skip to content

Commit 18a24c3

Browse files
evgeniy-paltsevgalak
authored andcommitted
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 <[email protected]> Signed-off-by: Evgeniy Paltsev <[email protected]>
1 parent a323a41 commit 18a24c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/gcc-m-cpu.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ elseif("${ARCH}" STREQUAL "arc")
5555
elseif(CONFIG_CPU_EM4_FPUDA)
5656
set(GCC_M_CPU em4_fpuda)
5757
elseif(CONFIG_CPU_HS3X)
58-
set(GCC_M_CPU hs)
58+
set(GCC_M_CPU archs)
5959
elseif(CONFIG_CPU_HS6X)
6060
set(GCC_M_CPU arc64)
6161
elseif(CONFIG_CPU_EM4)

0 commit comments

Comments
 (0)