bu-icsg / phmon Goto Github PK
View Code? Open in Web Editor NEWThis repository contains the hardware, software, and OS support for the Programmable Hardware Monitor (PHMon).
License: Apache License 2.0
This repository contains the hardware, software, and OS support for the Programmable Hardware Monitor (PHMon).
License: Apache License 2.0
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:
[ 28.610667] komodo_test.rv: t0 = 28.606615000
komodo_sp @ 0x0x727c0
test
[INFO] sp @0x727c0 = 0x0
[INFO] sp @0x727c8 = 0x0
[INFO] sp @0x727d0 = 0x0
[INFO] sp @0x727d8 = 0x0
[INFO] sp @0x727e0 = 0x0
[INFO] sp @0x727e8 = 0x0
[INFO] sp @0x727f0 = 0x0
[INFO] sp @0x727f8 = 0x0
[INFO] sp @0x72800 = 0x0
[INFO] sp @0x72808 = 0x0
[ 28.618511] komodo_test.rv: t1 = 28.614461000
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?
https://github.com/bu-icsg/PHMon/blob/master/code/varanus/src/test/c/afl_ndisasm.c#L176
action_mu2.fn = e_ALU_SL; //Set Less Than
This line may be wrong.
It should be "action_mu2.fn = e_ALU_SLT; //Set Less Than"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.