[libre-riscv-dev] New Person

lkcl lkcl at libre-riscv.org
Thu Oct 11 07:55:47 BST 2018


On Thu, Oct 11, 2018 at 7:49 AM Daniel Benusovich
<flyingmonkeys1996 at gmail.com> wrote:
>
> If I clone the risv-isa-sim repo from libre into a seperate directory,
> seperate from the riscv-tools repo, and run make install within
> risv-isa-sim from libre will the spike executable default to the
> risv-isa-sim libre version or the version provided within riscv-tools?

 i don't know: i think what i had to do is check the path (which is
now defined as including $RISCV), and go and rename "spike" to
"spike.nothanks".

> Both compiled correctly and this seems to be the last step. However, I am
> not certain the correct sim is being called as both simulators have been
> built. I called 'make clean" on the riscv-tools/riscv-isa-sim/build

 whoops, unless you have ccache that's going to take time to redo...

> while
> leaving the risv-isa-sim libre version build folder alone and was able to
> run a hello world via the spike simulator. Would this be a sign of success?

 if you get an absolute ton of debug output, you'll know you're
running the libre-sv variant.

 use "whereis" to track down the default version and rename it.

 $ whereis spike

another trick would be to export LD_LIBRARY_PATH={full directory} in
the spike-sv version, then execute with "./spike" instead.

l.



More information about the libre-riscv-dev mailing list