[][src]Struct riscv_emu_rust::mmu::MemoryWrapper

pub struct MemoryWrapper { /* fields omitted */ }

Memory wrapper. Converts physical address to the one in memory using DRAM_BASE and accesses Memory.

Implementations

impl MemoryWrapper[src]

pub fn read_byte(&mut self, p_address: u64) -> u8[src]

pub fn read_halfword(&mut self, p_address: u64) -> u16[src]

pub fn read_word(&mut self, p_address: u64) -> u32[src]

pub fn read_doubleword(&mut self, p_address: u64) -> u64[src]

pub fn write_byte(&mut self, p_address: u64, value: u8)[src]

pub fn write_halfword(&mut self, p_address: u64, value: u16)[src]

pub fn write_word(&mut self, p_address: u64, value: u32)[src]

pub fn write_doubleword(&mut self, p_address: u64, value: u64)[src]

pub fn validate_address(&self, address: u64) -> bool[src]

Auto Trait Implementations

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.