forked from riscv-software-src/riscv-isa-sim
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When Ibex is executing an instruction it is possible for MIP to change whilst that instruction is stalled in the ID/EX stage. This results in the MIP observed by a CSR instruction differing from the MIP that decides whether or not that instruction may be interrupted which leads to model mis-matches. This adds a new MIP 'pre_val' which is the MIP value used to determine whether or not an interrupt is taken. The existing value is the one observed by CSR instructions. Employing this mechanism avoids the mis-matches described above.
- Loading branch information
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters