-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys_regs: compute mstatus and sstatus SD bit on CSR read
SD bit is read-only and we don't have to store it anywhere, because its only purpose is to accelerate software after CSR reads. Dynamically add SD as the most significant bit in CSR reads * to avoid the need to increase mstatus width to bit(128) when implementing RV128, * to simplify support for dynamic XLEN, and * to make the code nicer. Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com>
- Loading branch information
1 parent
ddd0c7f
commit ca9c87d
Showing
4 changed files
with
13 additions
and
42 deletions.
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
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