boards: riscv: hifive_unmatched: add Renode simulation support

Add Renode simulation support for `hifive_unmatched`, the
script is basically copied over from `hifive_unleashed`, with
very minor edits.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
This commit is contained in:
Yong Cong Sin 2023-11-22 18:12:06 +08:00 committed by Carles Cufí
parent 1378c90a93
commit d1fc5fe2ae
2 changed files with 29 additions and 0 deletions

View file

@ -1,5 +1,9 @@
# SPDX-License-Identifier: Apache-2.0
set(SUPPORTED_EMU_PLATFORMS renode)
set(RENODE_SCRIPT ${CMAKE_CURRENT_LIST_DIR}/support/hifive_unmatched.resc)
set(RENODE_UART sysbus.uart0)
set(OPENOCD_USE_LOAD_IMAGE NO)
board_runner_args(openocd "--config=${BOARD_DIR}/support/openocd_hifive_unmatched.cfg")

View file

@ -0,0 +1,25 @@
:description: This script is prepared to run Zephyr on SiFive-FU740 board.
:name: SiFive-FU740
$name?="SiFive-FU740"
using sysbus
mach create $name
set platform
"""
using "platforms/cpus/sifive-fu740.repl"
clint:
frequency: 10000000
"""
machine LoadPlatformDescriptionFromString $platform
machine PyDevFromFile @scripts/pydev/flipflop.py 0x10000000 0x100 True
showAnalyzer uart0
macro reset
"""
sysbus LoadELF $bin
"""
runMacro $reset