pub unsafe extern "C" fn tlb_set_page_with_attrs(
    cpu: *mut CPUState,
    vaddr: target_ulong,
    paddr: hwaddr,
    attrs: MemTxAttrs,
    prot: c_int,
    mmu_idx: c_int,
    size: target_ulong
)
Expand description

tlb_set_page_with_attrs: @cpu: CPU to add this TLB entry for @vaddr: virtual address of page to add entry for @paddr: physical address of the page @attrs: memory transaction attributes @prot: access permissions (PAGE_READ/PAGE_WRITE/PAGE_EXEC bits) @mmu_idx: MMU index to insert TLB entry for @size: size of the page in bytes

Add an entry to this CPU’s TLB (a mapping from virtual address @vaddr to physical address @paddr) with the specified memory transaction attributes. This is generally called by the target CPU specific code after it has been called through the tlb_fill() entry point and performed a successful page table walk to find the physical address and attributes for the virtual address which provoked the TLB miss.

At most one entry for a given virtual address is permitted. Only a single TARGET_PAGE_SIZE region is mapped; the supplied @size is only used by tlb_flush_page.