Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(icount): place the read before the return of the detect_icount_ma…
…tch. The values of count_read_value and pending_read_value read by stash_read_values are not used in the middle function calls, including detect_icount_fire, detect_icount_decrement. When spike runs as the DUT, both methods are acceptable. When spike runs as the REF, I may need to read the value of icount after the current instruction executed, and before executing the next instruction. In this case, the second method can achieve this because it calls stash_read_values() after detect_icount_fire() and detect_icount_decrement(), which may write the count and pending field in icount. And tdata1_read() for icount use the count_read_value and pending_read_value, rathen than hit and pending.
- Loading branch information