You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then I run the run_linux.sh script and copy the generated bbl to zedboard: $ cat rocketchip_wrapper.bit.bin > /dev/xdevcfg $ ./fesvr-zynq bbl
After riscv-linux starts,I run the komodo_test.rv: # ./komodo_test.rv
I make a new c program for configuring PHMon, but the result is wrong also,
I think the PHMon is not configured correctly, or running.
How can I fix this problem?
The text was updated successfully, but these errors were encountered:
Thanks for brining this problem to my attention. It seems like there is a mismatch between the version of the patches in the docker and the bitstream for the FPGA. I added a new file to the docker image under "/home/PHMon/evaluation/PHMon" folder named "rocket_docker.bit.bin". Can you please try this bitstream for configuring your FPGA and let me know if that solves the problem?
In general, you can configure PHMon in two different ways. 1) You can use a program like komodo_test.c that allocates a memory for PHMon and enables/disables PHMon as part of the same program (PHMon only partially monitors that program). 2) You can allow the OS to allocate the memory and enable the monitoring (the modifications you did in exec.c). So, for running a simple program like komodo_test.c there's no need to modify the kernel.
Hello,I generate the updated bbl by running the run_linux.sh script in docker ldelshad/phmon:
cp $VARANUS/build/komodo_test.rv $VARANUS/linux_root/root/home
if (!current->monitor_init & ((strcmp(current->comm, "komodo_test.rv") == 0) || (strcmp(current->comm, "cat") == 0) || (strcmp(current->comm, "hello.rv") == 0) || (strcmp(current->comm, "vuln1") == 0) || (strcmp(current->comm, "vuln3") == 0) || (strcmp(current->comm, "ndisasm") == 0 || strcmp(current->comm, "mcf.rv") == 0) || strcmp(current->comm, "debug.rv") == 0)) {
Then I run the run_linux.sh script and copy the generated bbl to zedboard:
$ cat rocketchip_wrapper.bit.bin > /dev/xdevcfg
$ ./fesvr-zynq bbl
After riscv-linux starts,I run the komodo_test.rv:
# ./komodo_test.rv
but the result is wrong:
I make a new c program for configuring PHMon, but the result is wrong also,
I think the PHMon is not configured correctly, or running.
How can I fix this problem?
The text was updated successfully, but these errors were encountered: