To succesfully run test, build googletest submodule.
cd third-party/googletest/
mkdir build
cd build
cmake ..
make
sudo make install
You can skip following step if you already have gpg key on your machine.
Create gpg key locally (follow the CLI instructions)
gpg --full-generate-key
Get public key in following command output
gpg --list-keys
Run 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 true
Project 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 --recursive
mkdir build && cd build
cmake ..
make
Running tests:
cd build
./bin/tests
Running 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