blob: 84cf16428a189d7d726b895d5b92a08730d5c066 (
plain)
1
2
3
4
5
6
7
8
9
10
|
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
[1] https://github.com/LBPHacker/R432
|