Skip to content

Commit

Permalink
riscv: add CSR-defining macros
Browse files Browse the repository at this point in the history
Adds helper macros for defining CSR types.
  • Loading branch information
rmsyn committed May 30, 2024
1 parent 7291ac2 commit df39d4e
Show file tree
Hide file tree
Showing 5 changed files with 483 additions and 56 deletions.
2 changes: 1 addition & 1 deletion riscv/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#![allow(clippy::missing_safety_doc)]

pub mod asm;
pub(crate) mod bits;
pub mod bits;
pub mod delay;
pub mod interrupt;
pub mod register;
Expand Down
3 changes: 3 additions & 0 deletions riscv/src/register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ pub mod minstreth;
mod mhpmeventx;
pub use self::mhpmeventx::*;

#[cfg(test)]
mod tests;

// TODO: Debug/Trace Registers (shared with Debug Mode)

// TODO: Debug Mode Registers
Loading

0 comments on commit df39d4e

Please sign in to comment.