1# SPDX-License-Identifier: Apache-2.0
2set(SUPPORTED_EMU_PLATFORMS nsim)
3
4string(SUBSTRING "${BOARD_QUALIFIERS}" 1 -1 NSIM_BASE_FILENAME)
5string(REPLACE "/" "_" NSIM_BASE_FILENAME "${NSIM_BASE_FILENAME}")
6
7if(NOT (CONFIG_SOC_NSIM_HS_SMP OR CONFIG_SOC_NSIM_HS6X_SMP OR CONFIG_SOC_NSIM_HS5X_SMP))
8  board_set_flasher_ifnset(arc-nsim)
9  board_set_debugger_ifnset(arc-nsim)
10
11  set(NSIM_PROPS "${NSIM_BASE_FILENAME}.props")
12  board_runner_args(arc-nsim "--props=${NSIM_PROPS}")
13endif()
14
15string(REPLACE "nsim" "mdb" MDB_ARGS "${NSIM_BASE_FILENAME}.args")
16
17board_runner_args(mdb-nsim "--cores=${CONFIG_MP_MAX_NUM_CPUS}" "--nsim_args=${MDB_ARGS}")
18board_runner_args(mdb-hw "--cores=${CONFIG_MP_MAX_NUM_CPUS}")
19
20board_finalize_runner_args(arc-nsim)
21include(${ZEPHYR_BASE}/boards/common/mdb-nsim.board.cmake)
22include(${ZEPHYR_BASE}/boards/common/mdb-hw.board.cmake)
23