We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 399c598 commit b3c100aCopy full SHA for b3c100a
riscv/CHANGELOG.md
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
10
### Added
11
12
- Add `Mcause::from(usize)` for use in unit tests
13
+- Add `Mstatus.bits()`
14
15
### Fixed
16
riscv/src/register/mstatus.rs
@@ -65,6 +65,12 @@ impl From<bool> for Endianness {
65
}
66
67
impl Mstatus {
68
+ /// Returns the contents of the register as raw bits
69
+ #[inline]
70
+ pub fn bits(&self) -> usize {
71
+ self.bits
72
+ }
73
+
74
/// Supervisor Interrupt Enable
75
#[inline]
76
pub fn sie(&self) -> bool {
0 commit comments