add way to run unit tests
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 8 Oct 2018 06:29:55 +0000 (07:29 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 8 Oct 2018 06:29:55 +0000 (07:29 +0100)
3d_gpu/spike_sv.mdwn

index bc74cd974a9c23e2695f872504e59c3225beab7d..8dc3ff521634c72d632fd3d624187db081c4889a 100644 (file)
@@ -7,5 +7,19 @@ Needs riscv-tools, first
 * git checkout -b sv
 * cd ..
 * git clone https://git.libre-riscv.org/git/riscv-tests.git
-* cd risc-tests
+* cd riscv-tests
 * git checkout -b sv
+
+To run the sv unit tests (requires $RISCV to be set correctly i think, or
+at least riscv32/64-unknown-elf-gcc to be in the path)
+
+* $ cd riscv-tests
+* $ cd isa
+* $ make
+* $ make run
+
+example dev script (riscvdev.sh):
+
+    export RISCV="$HOME/src/riscv"
+    export PATH="$PATH:$RISCV/bin"
+