add way to run unit tests
[libreriscv.git] / 3d_gpu / spike_sv.mdwn
1 # Simple-V Spike emulator
2
3 Needs riscv-tools, first
4
5 * git clone https://git.libre-riscv.org/git/riscv-isa-sim.git
6 * cd risc-v-isa-sim
7 * git checkout -b sv
8 * cd ..
9 * git clone https://git.libre-riscv.org/git/riscv-tests.git
10 * cd riscv-tests
11 * git checkout -b sv
12
13 To run the sv unit tests (requires $RISCV to be set correctly i think, or
14 at least riscv32/64-unknown-elf-gcc to be in the path)
15
16 * $ cd riscv-tests
17 * $ cd isa
18 * $ make
19 * $ make run
20
21 example dev script (riscvdev.sh):
22
23 export RISCV="$HOME/src/riscv"
24 export PATH="$PATH:$RISCV/bin"
25