Skip to content

Commit ca86c48

Browse files
Merge pull request #334 from jsgf/fix-mcause-interrupt
Allow 64-bit Mcause::from_bits on rv64
2 parents f81db37 + 877a83c commit ca86c48

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

riscv/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1919
- Use `cfg(any(target_arch = "riscv32", target_arch = "riscv64"))` instead of `cfg(riscv)`.
2020
- `riscv::pac_enum(unsafe CoreInterrupt)` now locates the vector table at the `.trap.vector`
2121
section instead of `.trap`.
22+
- Allow all bits to be set in Mcause::from_bits on 64-bit targets.
2223

2324
### Removed
2425

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: usize::MAX,
99
}
1010

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

0 commit comments

Comments
 (0)