[][src]Struct rvemu::csr::satp::Satp

pub struct Satp { /* fields omitted */ }

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]

impl Read for Satp[src]

impl Write for Satp[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.