File tree Expand file tree Collapse file tree 4 files changed +37
-23
lines changed
Expand file tree Collapse file tree 4 files changed +37
-23
lines changed Original file line number Diff line number Diff line change 1- # Copyright (c) 2023 Intel Corporation
1+ # Copyright (c) 2023-2024 Intel Corporation
22#
33# SPDX-License-Identifier: Apache-2.0
44
5+ set (SUPPORTED_EMU_PLATFORMS simics)
6+
57board_finalize_emu_args(simics)
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2023-2024 Intel Corporation
2+ #
13# SPDX-License-Identifier: Apache-2.0
24
3- set (SUPPORTED_EMU_PLATFORMS simics)
4-
55if (CONFIG_BOARD_INTEL_ISH_5_8_0)
6- board_emu_args(simics "project=$ENV{SIMICS_PROJECT} " )
76 board_emu_args(simics "zephyr_elf=${APPLICATION_BINARY_DIR} /zephyr/${KERNEL_ELF_NAME} " )
87 board_emu_args(simics "zephyr_start_address=${CONFIG_SRAM_BASE_ADDRESS} " )
98 include (${ZEPHYR_BASE} /boards/common/simics.board.cmake)
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ simulation:
1111supported :
1212 - serial
1313testing :
14+ timeout_multiplier : 2
1415 ignore_tags :
1516 - net
1617 - bluetooth
Original file line number Diff line number Diff line change 1- # Copyright (c) 2023 Intel Corporation
1+ # Copyright (c) 2023-2024 Intel Corporation
22#
33# SPDX-License-Identifier: Apache-2.0
44
55find_program (
66 SIMICS
77 NAMES simics
8+ NO_DEFAULT_PATH
9+ PATHS ENV SIMICS_PROJECT
10+ # Search exactly for the project's autogenerated 'trampoline' script.
811 )
912
10- zephyr_get(SIMICS_SCRIPT_PATH SYSBUILD GLOBAL )
11- if (SIMICS_SCRIPT_PATH)
12- set (SIMICS_SCRIPT ${SIMICS_SCRIPT_PATH} )
13+ if (SIMICS STREQUAL SIMICS-NOTFOUND )
14+ message (WARNING "Simics simulator environment is not found at SIMICS_PROJECT:'${SIMICS_PROJECT} '" )
1315else ()
14- set (SIMICS_SCRIPT ${BOARD_DIR} /support/${BOARD} .simics)
15- endif ()
16+ message (STATUS "Found Simics: ${SIMICS} " )
1617
17- get_property (SIMICS_ARGS GLOBAL PROPERTY "BOARD_EMU_ARGS_simics" )
18+ zephyr_get(SIMICS_SCRIPT_PATH SYSBUILD GLOBAL )
19+ if (SIMICS_SCRIPT_PATH)
20+ set (SIMICS_SCRIPT ${SIMICS_SCRIPT_PATH} )
21+ else ()
22+ set (SIMICS_SCRIPT ${BOARD_DIR} /support/${BOARD} .simics)
23+ endif ()
1824
19- add_custom_target (run_simics
20- COMMAND
21- ${SIMICS}
22- -no -gui
23- -no -win
24- ${SIMICS_SCRIPT}
25- ${SIMICS_ARGS}
26- -e run
27- WORKING_DIRECTORY ${APPLICATION_BINARY_DIR}
28- DEPENDS ${logical_target_for_zephyr_elf}
29- USES_TERMINAL
30- )
25+ get_property (SIMICS_ARGS GLOBAL PROPERTY "BOARD_EMU_ARGS_simics" )
26+
27+ add_custom_target (run_simics
28+ COMMAND
29+ ${SIMICS}
30+ -no -gui
31+ --no -win
32+ --batch-mode
33+ ${SIMICS_SCRIPT}
34+ ${SIMICS_ARGS}
35+ $ENV{SIMICS_EXTRA_ARGS}
36+ -e run
37+ WORKING_DIRECTORY ${APPLICATION_BINARY_DIR}
38+ DEPENDS ${logical_target_for_zephyr_elf}
39+ USES_TERMINAL
40+ )
41+
42+ endif ()
You can’t perform that action at this time.
0 commit comments