Skip to content

Commit eb6df01

Browse files
committed
Allow 64-bit Mcause::from_bits on rv64
Fixes #333
1 parent 785eb92 commit eb6df01

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

riscv/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
- Allow all bits to be set in Mcause::from_bits on 64-bit targets.
11+
1012
## [v0.14.0] - 2025-06-10
1113

1214
### Added

riscv/src/register/mcause.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub use crate::interrupt::Trap;
55
read_only_csr! {
66
/// `mcause` register
77
Mcause: 0x342,
8-
mask: 0xffff_ffff,
8+
mask: !0usize,
99
}
1010

1111
#[cfg(target_arch = "riscv32")]

0 commit comments

Comments
 (0)