MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / read_word

Method read_word

crates/virtual-machine/src/memory/ram.rs:66–72  ·  view source on GitHub ↗
(&mut self, addr: u64)

Source from the content-addressed store, hash-verified

64 }
65}
66
67impl MemoryAccess for Ram {
68 fn read_byte(&mut self, addr: u64) -> Result<u8, VmError> {
69 match self.index(addr) {
70 Some(idx) => Ok(self.data[idx]),
71 None => Err(VmError::BusError(addr)),
72 }
73 }
74
75 fn read_halfword(&mut self, addr: u64) -> Result<u16, VmError> {

Callers 6

read_doublewordMethod · 0.45
load_intFunction · 0.45
load_fpFunction · 0.45
handle_atomicFunction · 0.45
amo_opFunction · 0.45
fetch_with_pmpFunction · 0.45

Calls 1

read_byteMethod · 0.45

Tested by

no test coverage detected