exec-all: document that tlb_fill can trigger a TLB resize

Backports commit ae56a2ff92ac73782279abf8857585c34b15f509 from qemu
This commit is contained in:
Emilio G. Cota 2019-02-12 11:38:18 -05:00 committed by Lioncash
parent 576df55076
commit 1b44fd94ac
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -336,6 +336,11 @@ void phys_mem_set_alloc(void *(*alloc)(size_t, uint64_t *align));
struct MemoryRegionSection *iotlb_to_section(CPUState *cpu,
hwaddr index, MemTxAttrs attrs);
/*
* Note: tlb_fill() can trigger a resize of the TLB. This means that all of the
* caller's prior references to the TLB table (e.g. CPUTLBEntry pointers) must
* be discarded and looked up again (e.g. via tlb_entry()).
*/
void tlb_fill(CPUState *cpu, target_ulong addr, int size,
MMUAccessType access_type, int mmu_idx, uintptr_t retaddr);
#endif