From: Luke Kenneth Casson Leighton Date: Mon, 8 Oct 2018 06:29:55 +0000 (+0100) Subject: add way to run unit tests X-Git-Tag: convert-csv-opcode-to-binary~4975 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d8c2714eec92f01b29274e614d3a3e664c638de5;p=libreriscv.git add way to run unit tests --- diff --git a/3d_gpu/spike_sv.mdwn b/3d_gpu/spike_sv.mdwn index bc74cd974..8dc3ff521 100644 --- a/3d_gpu/spike_sv.mdwn +++ b/3d_gpu/spike_sv.mdwn @@ -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" +