bucaps / marss-riscv

TinyEMU based full system cycle-level micro-architectural research simulator for single-core RISC-V systems
MIT License
144 stars 23 forks source link

RISC-V toolchain required? #16

Closed gdessouky closed 4 years ago

gdessouky commented 4 years ago

Do you need a risc-v toolchain installed on the guest image to compile executables? It didn't seem so with the Coremark example...can you clarify how does this work?

gkothar1 commented 4 years ago

You can refer to this section in the README file.

You can compile the programs with the simulation markers on your host x86 machine using the RISC-V toolchain and import them onto the disk image using the scp command.

When you are in guest machine terminal type:

$ scp -r <host-system-uername>@10.0.2.2:<absolute path to executable on host> <destination location on disk image>