Commit 14ec9e9d authored by Nikolay Agishev's avatar Nikolay Agishev Committed by Carles Cufi
Browse files

ARC: Add MWDT support into qemu_arc_hs platform

Add Metaware toolchain into qemu_arc_hs* platforms

Signed-off-by: default avatarNikolay Agishev <agishev@synopsys.com>
parent 36c46afb
Loading
Loading
Loading
Loading
+1 −0
Changes for boards/arc/qemu_arc/qemu_arc_hs.yaml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ arch: arc
toolchain:
  - zephyr
  - cross-compile
  - arcmwdt
testing:
  default: true
  ignore_tags:
+18 −2
Changes for soc/arc/snps_qemu/CMakeLists.txt: 18 added lines, 2 removed lines.
Original line number Diff line number Diff line
# SPDX-License-Identifier: Apache-2.0

if(CONFIG_ISA_ARCV2)
  zephyr_compile_options(-mno-sdata)
if(COMPILER STREQUAL gcc)
	zephyr_compile_options(-mcpu=${GCC_M_CPU})

	zephyr_compile_options_ifdef(CONFIG_ISA_ARCV2 -mno-sdata)

else()

	zephyr_compile_options_ifdef(CONFIG_SOC_QEMU_ARC_HS -arcv2hs -core2 -Xatomic
			       -Xunaligned -Xcode_density -Xswap -Xbitscan
			       -Xmpy_option=qmpyh -Xshift_assist -Xbarrel_shifter
			       -Xtimer0 -Xtimer1)

	zephyr_ld_option_ifdef(CONFIG_SOC_QEMU_ARC_HS -Hlib=hs38_full)

	if(NOT CONFIG_SOC_QEMU_ARC_HS)
		message(WARNING "QEMU ARC platforms other than HS are not supported yet with MW toolchain")
	endif()

endif()