From d8c2714eec92f01b29274e614d3a3e664c638de5 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 8 Oct 2018 07:29:55 +0100 Subject: [PATCH] add way to run unit tests --- 3d_gpu/spike_sv.mdwn | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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" + -- 2.30.2