Skip to content
Permalink
Browse files

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 <kumar.gala@linaro.org>
  • Loading branch information...
galak authored and ioannisg committed Aug 5, 2019
1 parent cd4e789 commit 612a608e61eb28b6eb80ab7796d0c10a8eaf101b
Showing with 4 additions and 0 deletions.
  1. +4 −0 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

0 comments on commit 612a608

Please sign in to comment.
You can’t perform that action at this time.