Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion riscv/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Added

- Add `mireg` CSR
- Add `mireg` and `sireg` CSRs
- Add `stopei` and `vstopei` CSRs (AIA supervisor/virtual-supervisor top external
interrupt), completing the `*topei` set alongside `mtopei`.
- Auto-generate `<FIELD>_SHIFT`, `<FIELD>_WIDTH`, and `<FIELD>_MASK` associated
Expand Down
1 change: 1 addition & 0 deletions riscv/src/register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ pub mod mseccfgh;
pub mod miselect;

// Supervisor indirect access
pub mod sireg;
pub mod siselect;

// Virtual supervisor indirect access
Expand Down
14 changes: 14 additions & 0 deletions riscv/src/register/sireg.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//! 'sireg' register (Supervisor Indirect Register Alias)
//!
//! CSR address: 0x151
//!
//! The `sireg` register provides access to an indirect register
//! selected by `siselect`.

const MASK: usize = usize::MAX;

read_write_csr! {
/// `sireg` register.
Sireg: 0x151,
mask: MASK
}
Loading