pub trait Bus {
// Required methods
fn read(&mut self, addr: u64, size: u8) -> Result<u64, BusError>;
fn write(&mut self, addr: u64, size: u8, value: u64) -> Result<(), BusError>;
}Expand description
The hart’s view of the system: naturally aligned reads and writes of 1, 2, 4 or 8 bytes.