1# SPDX-License-Identifier: Apache-2.0
2
3set(SUPPORTED_EMU_PLATFORMS renode qemu)
4set(RENODE_SCRIPT ${CMAKE_CURRENT_LIST_DIR}/support/hifive1.resc)
5set(RENODE_UART sysbus.uart0)
6
7set(QEMU_binary_suffix riscv32)
8set(QEMU_CPU_TYPE_${ARCH} riscv32)
9
10set(QEMU_FLAGS_${ARCH}
11  -nographic
12  -machine sifive_e
13  )
14
15board_set_flasher_ifnset(hifive1)
16board_finalize_runner_args(hifive1)
17
18board_runner_args(openocd --cmd-load "hifive1-load")
19board_runner_args(openocd --cmd-reset-halt "hifive1-reset-halt")
20board_runner_args(openocd --cmd-post-verify "hifive1-post-verify")
21
22include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
23