Skip to main content

translate_via

Function translate_via 

Source
pub fn translate_via(
    tlb: &mut Tlb,
    vaddr: u64,
    asid: u8,
    store: bool,
    access: Access,
) -> Result<Physical, TranslateError>
Expand description

Translate a virtual address, consulting the TLB for the mapped segments.

§Errors

TranslateError::Address when the address is not valid in access’s mode, and TranslateError::Tlb when a mapped access misses, hits an invalid entry, or stores to a non-writable page. Unmapped segments cannot fail.