firesim / FireMarshal

Software workload management tool for RISC-V based SoC research. This is the default workload management tool for Chipyard and FireSim.
https://docs.fires.im/en/latest/Advanced-Usage/Workloads/index.html
Other
76 stars 51 forks source link

fix for read cycle issue #281

Closed SeahK closed 1 year ago

jerryz123 commented 1 year ago

For more context, enabling RISC-V PMU features in linux means that the counters start disabled (via the mcountinhibit CSR), and perf_event_start syscalls are required (either in user code, or through a utility like perf) to access them.

For convenience, disable the PMU features so we can just rdcycle in user-code.