riscv-perf-model icon indicating copy to clipboard operation
riscv-perf-model copied to clipboard

Model terminates (Run successful) before completion of trace

Open rajatbhatia1 opened this issue 7 months ago • 1 comments

Found an interesting case where the model stopped making forward progress and terminated indicating a complete run. I tried to debug and found that the STF read did not reach the end of trace, but the simulator ran out of events and thought everything was done. Further debug revealed that a Flush cleared the fetch unit, but downstream pipes were also empty, and there were no events that started fetch unit to start fetching instructions.

Possible solution (it seems to work fine) is to schedule fetch event in next cycle when fetch unit handles the flush.

rajatbhatia1 avatar May 02 '25 05:05 rajatbhatia1

Please assign to me

rajatbhatia1 avatar May 06 '25 04:05 rajatbhatia1

Pushed the fix: https://github.com/riscv-software-src/riscv-perf-model/pull/256

Please approve and close this bug

rajatbhatia1 avatar May 23 '25 20:05 rajatbhatia1