Skip to content

Commit df39d4e

Browse files
committed
riscv: add CSR-defining macros
Adds helper macros for defining CSR types.
1 parent 7291ac2 commit df39d4e

File tree

5 files changed

+483
-56
lines changed

5 files changed

+483
-56
lines changed

riscv/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#![allow(clippy::missing_safety_doc)]
3737

3838
pub mod asm;
39-
pub(crate) mod bits;
39+
pub mod bits;
4040
pub mod delay;
4141
pub mod interrupt;
4242
pub mod register;

riscv/src/register.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ pub mod minstreth;
107107
mod mhpmeventx;
108108
pub use self::mhpmeventx::*;
109109

110+
#[cfg(test)]
111+
mod tests;
112+
110113
// TODO: Debug/Trace Registers (shared with Debug Mode)
111114

112115
// TODO: Debug Mode Registers

0 commit comments

Comments
 (0)