2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-07-25 19:49:59 +08:00
|
|
|
if(${CONFIG_SOC_NSIM_HS_SMP})
|
|
|
|
set(EMU_PLATFORM mdb)
|
|
|
|
else()
|
2018-07-06 22:02:03 +08:00
|
|
|
set(EMU_PLATFORM nsim)
|
2019-07-25 19:49:59 +08:00
|
|
|
endif()
|
2018-07-06 22:02:03 +08:00
|
|
|
|
2019-07-25 19:49:59 +08:00
|
|
|
if(NOT ${CONFIG_SOC_NSIM_HS_SMP})
|
2019-06-01 07:57:16 +08:00
|
|
|
board_set_flasher_ifnset(arc-nsim)
|
|
|
|
board_set_debugger_ifnset(arc-nsim)
|
2019-07-25 19:49:59 +08:00
|
|
|
endif()
|
2018-07-07 23:21:17 +08:00
|
|
|
|
|
|
|
if(${CONFIG_SOC_NSIM_EM})
|
2019-06-03 15:03:38 +08:00
|
|
|
board_runner_args(arc-nsim "--props=nsim_em.props")
|
2018-07-07 23:21:17 +08:00
|
|
|
elseif(${CONFIG_SOC_NSIM_SEM})
|
|
|
|
board_runner_args(arc-nsim "--props=nsim_sem.props")
|
2019-06-04 16:38:31 +08:00
|
|
|
elseif(${CONFIG_SOC_NSIM_HS})
|
|
|
|
board_runner_args(arc-nsim "--props=nsim_hs.props")
|
2018-07-07 23:21:17 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
board_finalize_runner_args(arc-nsim)
|