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

Method new

crates/virtual-machine/src/cpu/mmu.rs:52–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 const fn is_write(self) -> bool {
51 matches!(self, Self::Store)
52 }
53
54 const fn is_execute(self) -> bool {
55 matches!(self, Self::Execute)
56 }
57
58 const fn access_fault(self, vaddr: u64) -> VmError {
59 match self {
60 Self::Load => VmError::LoadAccessFault(vaddr),
61 Self::Store => VmError::StoreAccessFault(vaddr),
62 Self::Execute => VmError::InstructionAccessFault(vaddr),
63 }
64 }
65

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected