blob: 21b6305d4f49b61b417d242391e465d81506421f (
plain)
1
2
3
4
5
6
7
8
|
This demo is a bit different, this one assembles once and then runs on RVController, on riscv64 Linux, and on LBPHacker's R4 computer[1], no modification needed.
You will need a riscv64-linux-gnu toolchain to build this. Your distro might ship one, check there before building your own. If you do build your own, you probably just need binutils.
Platform-specific notes:
R4: Load it at any address you want, nothing special needed, terminal base address is assumed to be 0x10000000
RVController: At least for me it wants to link at 0x100b0, you can relocate it or just add a bit of extra RAM and use setpc before starting
riscv64 Linux: No special handling needed
|