pub struct Hart {Show 22 fields
pub pc: u64,
pub x: [u64; 32],
pub privilege: Privilege,
pub mie_bit: bool,
pub mpie: bool,
pub mpp: Privilege,
pub mprv: bool,
pub tw: bool,
pub mie: u64,
pub mtvec: u64,
pub mscratch: u64,
pub mepc: u64,
pub mcause: u64,
pub mtval: u64,
pub mcounteren: u64,
pub mcountinhibit: u64,
pub mcycle: u64,
pub minstret: u64,
pub pmpcfg: [u8; 8],
pub pmpaddr: [u64; 8],
pub reservation: Option<u64>,
pub pma: Vec<Region>,
}Expand description
The architectural state of the hart.
Fields§
§pc: u64§x: [u64; 32]§privilege: Privilege§mie_bit: bool§mpie: bool§mpp: Privilege§mprv: bool§tw: bool§mie: u64§mtvec: u64§mscratch: u64§mepc: u64§mcause: u64§mtval: u64§mcounteren: u64§mcountinhibit: u64§mcycle: u64§minstret: u64§pmpcfg: [u8; 8]§pmpaddr: [u64; 8]§reservation: Option<u64>The address an LR reserved, until an SC, a trap or mret releases it.
pma: Vec<Region>The physical memory map.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hart
impl RefUnwindSafe for Hart
impl Send for Hart
impl Sync for Hart
impl Unpin for Hart
impl UnsafeUnpin for Hart
impl UnwindSafe for Hart
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.