Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
riscv_step: Fix -i/--mtval-has-illegal-inst-bits option (#174)
This option causes handle_illegal to pass instbits as the value to set for xtval, but instbits is never set so it ends up being 0 just as if the option was never enabled. Fix this by initialising instbits during fetch; we could make this conditional on whether the option is enabled but that seems unnecessary and introduces tighter coupling. Note that this option appears to have always been broken; when it was originally added, instbits was only written two in two cases which were both dead code and later removed in eb17611. Closes: #173
- Loading branch information