riscv-perf-model
riscv-perf-model copied to clipboard
Model terminates (Run successful) before completion of trace
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.
Please assign to me
Pushed the fix: https://github.com/riscv-software-src/riscv-perf-model/pull/256
Please approve and close this bug