xous-core/emulation/boot.resc
Sean Cross 5708bcb89a emulation: fix paths for boot.resc
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-10 14:44:12 +08:00

22 lines
572 B
Text

using sysbus
mach create
machine LoadPlatformDescription @platonic.repl
machine StartGdbServer 3333 true
showAnalyzer uart
showAnalyzer uartkernel
# The macro `reset` gets called implicitly when running `machine Reset`
macro reset
"""
# sysbus LoadELF @../target/riscv32imac-unknown-none-elf/release/loader
sysbus LoadELF @../target/riscv32imac-unknown-none-elf/debug/loader
sysbus LoadBinary @../target/args.bin 0x40800000
# Set $a0 to point at the args binary
cpu SetRegisterUnsafe 10 0x40800000
# cpu PC 0x20500000
"""
runMacro $reset
start