1 # Simple-V Spike emulator
3 example dev script (riscvdev.sh):
5 export RISCV="$HOME/src/riscv"
6 export PATH="$PATH:$RISCV/bin"
8 Needs riscv-tools, first
10 * git clone https://github.com/riscv/riscv-tools
12 once compiled check out sv versions of spike and tests:
14 * git clone https://git.libre-riscv.org/git/riscv-isa-sim.git
18 * git clone https://git.libre-riscv.org/git/riscv-tests.git
22 make install needed on the simulator for the tests to pick it up
24 To run the sv unit tests (requires $RISCV to be set correctly i think, or
25 at least riscv32/64-unknown-elf-gcc to be in the path)
32 To override the fact that spike loads libspike\_main.so and other dynamic
33 libraries from /usr/local/lib (or other location in the path):
35 $ export LD_LIBRARY_PATH=`pwd`