Struct esp32c2_hal::riscv::register::mstatus::Mstatus
pub struct Mstatus { /* private fields */ }Expand description
mstatus register
Implementations§
§impl Mstatus
impl Mstatus
pub 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.
pub fn xs(&self) -> XS
pub fn xs(&self) -> XS
Additional extension state
Encodes the status of additional user-mode extensions and associated state.
pub 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.
pub 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.