#[repr(u32)]pub enum MCauseException {
Show 14 variants
InstructionAddressMisaligned = 0,
InstructionAccessFault = 1,
IllegalInstruction = 2,
Breakpoint = 3,
LoadAddressMisaligned = 4,
LoadAccessFault = 5,
StoreAddressMisaligned = 6,
StoreAccessFault = 7,
UserEnvironmentCall = 8,
SupervisorEnvironmentCall = 9,
MachineEnvironmentCall = 11,
InstructionPageFault = 12,
LoadPageFault = 13,
StorePageFault = 15,
}Expand description
Machine exception causes (mcause[XLEN‑1] = 0)
Variants§
InstructionAddressMisaligned = 0
Instruction address misaligned
InstructionAccessFault = 1
Instruction access fault
IllegalInstruction = 2
Illegal instruction
Breakpoint = 3
Breakpoint
LoadAddressMisaligned = 4
Load address misaligned
LoadAccessFault = 5
Load access fault
StoreAddressMisaligned = 6
Store/AMO address misaligned
StoreAccessFault = 7
Store/AMO access fault
UserEnvironmentCall = 8
Environment call from U-mode
SupervisorEnvironmentCall = 9
Environment call from S-mode
MachineEnvironmentCall = 11
Environment call from M-mode
InstructionPageFault = 12
Instruction page fault
LoadPageFault = 13
Load page fault
StorePageFault = 15
Store/AMO page fault
Implementations§
Trait Implementations§
Source§impl Clone for MCauseException
impl Clone for MCauseException
Source§fn clone(&self) -> MCauseException
fn clone(&self) -> MCauseException
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MCauseException
impl Debug for MCauseException
Source§impl From<MCauseException> for MCause
impl From<MCauseException> for MCause
Source§fn from(cause: MCauseException) -> Self
fn from(cause: MCauseException) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MCauseException
impl PartialEq for MCauseException
impl Copy for MCauseException
impl Eq for MCauseException
impl StructuralPartialEq for MCauseException
Auto Trait Implementations§
impl Freeze for MCauseException
impl RefUnwindSafe for MCauseException
impl Send for MCauseException
impl Sync for MCauseException
impl Unpin for MCauseException
impl UnsafeUnpin for MCauseException
impl UnwindSafe for MCauseException
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more