File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1717
1818- CI actions updated. They now use ` checkout@v3 ` and ` dtolnay/rust-toolchain ` .
1919
20+ ### Fixed
21+
22+ - Fix ` scause::Exception ` missing ` LoadMisaligned `
23+
2024## [ v0.10.1] - 2023-01-18
2125
2226### Fixed
Original file line number Diff line number Diff line change 3131pub mod asm;
3232pub mod delay;
3333pub mod interrupt;
34- #[ cfg( any ( feature = "plic" ) ) ]
34+ #[ cfg( feature = "plic" ) ]
3535pub mod peripheral;
3636pub mod register;
3737
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ pub enum Exception {
3434 InstructionFault ,
3535 IllegalInstruction ,
3636 Breakpoint ,
37+ LoadMisaligned ,
3738 LoadFault ,
3839 StoreMisaligned ,
3940 StoreFault ,
@@ -67,6 +68,7 @@ impl Exception {
6768 1 => Exception :: InstructionFault ,
6869 2 => Exception :: IllegalInstruction ,
6970 3 => Exception :: Breakpoint ,
71+ 4 => Exception :: LoadMisaligned ,
7072 5 => Exception :: LoadFault ,
7173 6 => Exception :: StoreMisaligned ,
7274 7 => Exception :: StoreFault ,
@@ -145,6 +147,7 @@ pub unsafe fn set(cause: Trap) {
145147 Exception :: InstructionFault => 1 ,
146148 Exception :: IllegalInstruction => 2 ,
147149 Exception :: Breakpoint => 3 ,
150+ Exception :: LoadMisaligned => 4 ,
148151 Exception :: LoadFault => 5 ,
149152 Exception :: StoreMisaligned => 6 ,
150153 Exception :: StoreFault => 7 ,
You can’t perform that action at this time.
0 commit comments