riscv-software-src / riscv-pk

RISC-V Proxy Kernel
Other
579 stars 306 forks source link

Check in PATH when running target program #273

Closed arunisaac closed 2 years ago

arunisaac commented 2 years ago

When running a target program, spike should look for that program in paths specified by the PATH environment variable as well.

Currently, when I run spike pk with both spike and pk being in PATH, I get the following error. When I run the same command with the absolute path to pk, it works fine.

$ spike pk ...
terminate called after throwing an instance of 'std::runtime_error'
  what():  could not open pk (did you misspell it? If VCS, did you forget +permissive/+permissive-off?)

Thanks!

arunisaac commented 2 years ago

Sorry, wrong repo. This should have gone to https://github.com/riscv-software-src/riscv-isa-sim