To succesfully run test, build googletest submodule.
cd third-party/googletest/
mkdir build
cd build
cmake ..
make
sudo make installYou can skip following step if you already have gpg key on your machine.
Create gpg key locally (follow the CLI instructions)
gpg --full-generate-keyGet public key in following command output
gpg --list-keysRun gpg --armor --export <KEY>
Add it to GitHub (User/Settings/SSH and GPG keys)
Try to commit: `git commit -S -m "Test message"
Enable commits autosign
git config commit.gpgsign trueProject includes submodules, so you need to clone them as well.
git clone --recursive [email protected]:K3S-prod/risc-v-simulator.git
cd risc-v-simulator
git submodule update --init --recursivemkdir build && cd build
cmake ..
makeRunning tests:
cd build
./bin/testsRunning simulator:
cd build
./bin/simulator <elf_filename>
# Example output:
$ cd build
$ ./bin/simulator ./bin/fibbonacci_riscv
(rvsim) c
[RUNTIME] Program exited with code: 0
[RUNTIME] Exec time: 0.202988
[RUNTIME] Insts executed: 4253