[−][src]Struct rvemu::csr::satp::Satp
Methods
impl Satp
[src]
pub fn read_mode(&self) -> Mode
[src]
Read the MODE field, which selects the current address-translation scheme.
pub fn write_mode(&mut self, mode: Mode)
[src]
Write the MODE field, which selects the current address-translation scheme.
pub fn read_asid(&self) -> Mxlen
[src]
Read the address space identifier (ASID), which facilitates address-translation fences on a per-address-space basis.
pub fn write_asid(&mut self, value: Mxlen)
[src]
Write the address space identifier (ASID), which facilitates address-translation fences on a per-address-space basis.
pub fn read_ppn(&self) -> Mxlen
[src]
Read the physical page number (PPN) of the root page table, i.e., its supervisor physical address divided by 4 KiB.
pub fn write_ppn(&mut self, value: Mxlen)
[src]
Write the physical page number (PPN) of the root page table, i.e., its supervisor physical address divided by 4 KiB.
Trait Implementations
impl CsrBase for Satp
[src]
fn new(value: Mxlen) -> Self
[src]
fn reset(&mut self)
[src]
fn write_value(&mut self, value: Mxlen)
[src]
fn read_value(&self) -> Mxlen
[src]
const BIT_LENGTH: usize
[src]
impl Read for Satp
[src]
fn read_bit(&self, bit: usize) -> bool
[src]
fn read_bits<T: RangeBounds<usize>>(&self, range: T) -> i64
[src]
impl Write for Satp
[src]
fn write_bit(&mut self, bit: usize, value: bool)
[src]
fn write_bits<T: RangeBounds<usize>>(&mut self, range: T, value: Mxlen)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Satp
impl Send for Satp
impl Sync for Satp
impl Unpin for Satp
impl UnwindSafe for Satp
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,