From b49fa44fa86a443180ed9d9bbdce1590c7985b7d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 10 Oct 2018 08:19:21 +0100 Subject: [PATCH] change notes on spike-sv --- 3d_gpu/spike_sv.mdwn | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/3d_gpu/spike_sv.mdwn b/3d_gpu/spike_sv.mdwn index 8dc3ff521..ae092692f 100644 --- a/3d_gpu/spike_sv.mdwn +++ b/3d_gpu/spike_sv.mdwn @@ -1,7 +1,16 @@ # Simple-V Spike emulator +example dev script (riscvdev.sh): + + export RISCV="$HOME/src/riscv" + export PATH="$PATH:$RISCV/bin" + Needs riscv-tools, first +* git clone https://github.com/riscv/riscv-tools + +once compiled check out sv versions of spike and tests: + * git clone https://git.libre-riscv.org/git/riscv-isa-sim.git * cd risc-v-isa-sim * git checkout -b sv @@ -10,6 +19,8 @@ Needs riscv-tools, first * cd riscv-tests * git checkout -b sv +make install needed on the simulator for the tests to pick it up + 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) @@ -18,8 +29,3 @@ at least riscv32/64-unknown-elf-gcc to be in the path) * $ make * $ make run -example dev script (riscvdev.sh): - - export RISCV="$HOME/src/riscv" - export PATH="$PATH:$RISCV/bin" - -- 2.30.2