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

Method read_doubleword

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

Source from the content-addressed store, hash-verified

72 }
73 }
74
75 fn read_halfword(&mut self, addr: u64) -> Result<u16, VmError> {
76 let b0 = self.read_byte(addr)? as u16;
77 let b1 = self.read_byte(addr + 1)? as u16;
78 Ok(b0 | (b1 << 8))
79 }
80
81 fn read_word(&mut self, addr: u64) -> Result<u32, VmError> {

Callers 5

translate_with_pmpFunction · 0.45
load_intFunction · 0.45
load_fpFunction · 0.45
handle_atomicFunction · 0.45
amo_opFunction · 0.45

Calls 1

read_wordMethod · 0.45

Tested by

no test coverage detected