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

Method read_byte

crates/virtual-machine/src/devices/plic.rs:89–91  ·  view source on GitHub ↗

Byte and halfword accesses are illegal.

(&mut self, addr: u64)

Source from the content-addressed store, hash-verified

87
88impl MemoryAccess for Plic {
89 // Byte and halfword accesses are illegal.
90 fn read_byte(&mut self, addr: u64) -> Result<u8, VmError> {
91 Err(VmError::LoadAccessFault(addr))
92 }
93
94 fn write_byte(&mut self, _addr: u64, _data: u8) -> Result<(), VmError> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected