xous-core/emulation/xous-release.resc
2021-04-23 14:17:21 +08:00

53 lines
1.3 KiB
Text

# Boot Renode Script (boot.resc)
# Add this script's path to the global path, so
# we can include files relative to ourselves.
path add $ORIGIN
using sysbus
mach create
# Add peripherals that are defined in C#. You must restart Renode
# if you modify these files.
i @peripherals/LiteX_Timer_32.cs
i @peripherals/memlcd.cs
i @peripherals/keyboard.cs
i @peripherals/ticktimer.cs
i @peripherals/trng_kernel.cs
i @peripherals/trng_server.cs
# Load the Betrusted Renode Platform file
machine LoadPlatformDescription @betrusted.repl
machine StartGdbServer 3333 true
showAnalyzer uart
showAnalyzer console
# showAnalyzer app_uart
showAnalyzer memlcd
sysbus Tag <0xB0000000, 0xB0006000> "Framebuffer"
# Silence COM messages
sysbus SilenceRange <0xF000C000, 0xF000CFFF>
# Silence WDT
sysbus SilenceRange <0xF001F000, 0xF001FFFF>
# Silence I2C
sysbus SilenceRange <0xF000D000, 0xF000DFFF>
# logLevel -1 keyboard
# logLevel -1 ticktimer
# The macro `reset` gets called implicitly when running `machine Reset`
macro reset
"""
sysbus LoadELF @../loader/target/riscv32imac-unknown-none-elf/release/loader
sysbus LoadBinary @../target/riscv32imac-unknown-none-elf/release/args.bin 0x40800000
# Set $a0 to point at the args binary
cpu SetRegisterUnsafe 10 0x40800000
# cpu PC 0x20500000
"""
runMacro $reset
start