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

Method sync_satp

crates/virtual-machine/src/cpu/mmu.rs:72–77  ·  view source on GitHub ↗

Drop all entries if the active address space (satp) changed.

(&mut self, satp: u64)

Source from the content-addressed store, hash-verified

70 Self::Execute => VmError::InstructionPageFault(vaddr),
71 }
72 }
73}
74
75#[inline]
76pub(crate) fn is_sv39_canonical(vaddr: u64) -> bool {
77 let upper_bits = vaddr >> 39;
78 upper_bits == 0 || upper_bits == 0x1FF_FFFF
79}
80

Callers 1

translate_with_pmpFunction · 0.80

Calls 1

flushMethod · 0.80

Tested by

no test coverage detected