From a36bd915af7f21442ad599ab2366912838d5e7da Mon Sep 17 00:00:00 2001 From: Findlay Feng Date: Thu, 10 May 2018 14:28:27 +0800 Subject: [PATCH] arch: ARM: Change the march used by cortex-m0 and cortex-m0plus Use -march=armv6s-m to ensure the svc directive exists Signed-off-by: Findlay Feng --- arch/arm/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/CMakeLists.txt b/arch/arm/CMakeLists.txt index 8306c03ca9..5c73fe7740 100644 --- a/arch/arm/CMakeLists.txt +++ b/arch/arm/CMakeLists.txt @@ -1,7 +1,7 @@ zephyr_cc_option_ifdef(CONFIG_LTO -flto) -set(ARCH_FOR_cortex-m0 armv6-m ) -set(ARCH_FOR_cortex-m0plus armv6-m ) +set(ARCH_FOR_cortex-m0 armv6s-m ) +set(ARCH_FOR_cortex-m0plus armv6s-m ) set(ARCH_FOR_cortex-m3 armv7-m ) set(ARCH_FOR_cortex-m4 armv7e-m ) set(ARCH_FOR_cortex-m23 armv8-m.base )