Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sstc): do not generate intr when writing CSR stimecmp
In Difftest, all time interrupts should be generated by DUT and be passed to REF. REF should never generate any time interrupts. In Spike, time interrupts are generated in the following places: (It's easy to find them thorugh mip->backdoor_write_with_mask()) 1. In clint.cc, function clint_t::tick(). 2. In csrs.cc, function time_counter_csr_t::sync(), which is called by 1. 3. In csrs.cc, function stimecmp_csr_t::unlogged_write As we disabled clint in spike-difftest, 1 and 2 will never be used. However, 3 is still working and causes some problem. This patch wraps 3 with #ifndef DIFFTEST to disable it.
- Loading branch information