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/).
17
17
18
18
- CI actions updated. They now use ` checkout@v3 ` and ` dtolnay/rust-toolchain ` .
19
19
20
+ ### Fixed
21
+
22
+ - Fix ` scause::Exception ` missing ` LoadMisaligned `
23
+
20
24
## [ v0.10.1] - 2023-01-18
21
25
22
26
### Fixed
Original file line number Diff line number Diff line change 31
31
pub mod asm;
32
32
pub mod delay;
33
33
pub mod interrupt;
34
- #[ cfg( any ( feature = "plic" ) ) ]
34
+ #[ cfg( feature = "plic" ) ]
35
35
pub mod peripheral;
36
36
pub mod register;
37
37
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ pub enum Exception {
34
34
InstructionFault ,
35
35
IllegalInstruction ,
36
36
Breakpoint ,
37
+ LoadMisaligned ,
37
38
LoadFault ,
38
39
StoreMisaligned ,
39
40
StoreFault ,
@@ -67,6 +68,7 @@ impl Exception {
67
68
1 => Exception :: InstructionFault ,
68
69
2 => Exception :: IllegalInstruction ,
69
70
3 => Exception :: Breakpoint ,
71
+ 4 => Exception :: LoadMisaligned ,
70
72
5 => Exception :: LoadFault ,
71
73
6 => Exception :: StoreMisaligned ,
72
74
7 => Exception :: StoreFault ,
@@ -145,6 +147,7 @@ pub unsafe fn set(cause: Trap) {
145
147
Exception :: InstructionFault => 1 ,
146
148
Exception :: IllegalInstruction => 2 ,
147
149
Exception :: Breakpoint => 3 ,
150
+ Exception :: LoadMisaligned => 4 ,
148
151
Exception :: LoadFault => 5 ,
149
152
Exception :: StoreMisaligned => 6 ,
150
153
Exception :: StoreFault => 7 ,
You can’t perform that action at this time.
0 commit comments