pub struct Mstatus { /* private fields */ }
Expand description
mstatus register
Implementations§
source§impl Mstatus
impl Mstatus
sourcepub fn fs(&self) -> FS
pub fn fs(&self) -> FS
Floating-point extension state
Encodes the status of the floating-point unit,
including the CSR fcsr
and floating-point data registers f0–f31
.
sourcepub fn xs(&self) -> XS
pub fn xs(&self) -> XS
Additional extension state
Encodes the status of additional user-mode extensions and associated state.
sourcepub fn tvm(&self) -> bool
pub fn tvm(&self) -> bool
Trap Virtual Memory
If this bit is set, reads or writes to satp
CSR or execute sfence.vma
instruction when in S-mode will raise an illegal instruction exception.
TVM is hard-wired to 0 when S-mode is not supported.
sourcepub fn tw(&self) -> bool
pub fn tw(&self) -> bool
Timeout Wait
Indicates that if WFI instruction should be intercepted.
If this bit is set, when WFI is executed in S-mode, and it does not complete within an implementation specific, bounded time limit, the WFI instruction will cause an illegal instruction trap; or could always cause trap then the time limit is zero.
TW is hard-wired to 0 when S-mode is not supported.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mstatus
impl RefUnwindSafe for Mstatus
impl Send for Mstatus
impl Sync for Mstatus
impl Unpin for Mstatus
impl UnwindSafe for Mstatus
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)