diff options
author | Emilio G. Cota <cota@braap.org> | 2019-02-09 11:27:44 -0500 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2019-02-11 08:52:44 -0800 |
commit | ae56a2ff92ac73782279abf8857585c34b15f509 (patch) | |
tree | c6c62177eb10a58aab7820b9bff4ebbd015c93b8 | |
parent | 3115584d39afe8cf2a84a40549029f53792abca5 (diff) | |
download | qemu-ae56a2ff92ac73782279abf8857585c34b15f509.zip qemu-ae56a2ff92ac73782279abf8857585c34b15f509.tar.gz qemu-ae56a2ff92ac73782279abf8857585c34b15f509.tar.bz2 |
exec-all: document that tlb_fill can trigger a TLB resize
Signed-off-by: Emilio G. Cota <cota@braap.org>
Message-Id: <20190209162745.12668-2-cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r-- | include/exec/exec-all.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index aa7b81a..97b90cb 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -475,6 +475,11 @@ static inline void assert_no_pages_locked(void) 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); |