From 612a608e61eb28b6eb80ab7796d0c10a8eaf101b Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Mon, 5 Aug 2019 16:45:22 -0500 Subject: [PATCH] arc: snps_nsim: Fix -mfpu compiler flag for NSIM_HS build The NSIM_HS target should have had the fpu flag to the compiler be: -mfpu=fpud_all. Otherwise we get a build error. Signed-off-by: Kumar Gala --- soc/arc/snps_nsim/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/soc/arc/snps_nsim/CMakeLists.txt b/soc/arc/snps_nsim/CMakeLists.txt index d010e157c1b..198e3b0080b 100644 --- a/soc/arc/snps_nsim/CMakeLists.txt +++ b/soc/arc/snps_nsim/CMakeLists.txt @@ -2,7 +2,11 @@ zephyr_compile_options(-mcpu=${GCC_M_CPU} -mno-sdata) zephyr_compile_options_ifdef(CONFIG_CPU_ARCEM -mmpy-option=wlh1) zephyr_compile_options_ifdef(CONFIG_CPU_ARCHS -mmpy-option=plus_qmacw) +if(CONFIG_CPU_ARCHS) +zephyr_compile_options_ifdef(CONFIG_FLOAT -mfpu=fpud_all) +else() zephyr_compile_options_ifdef(CONFIG_FLOAT -mfpu=fpuda_all) +endif() zephyr_sources( soc.c