]> Git Repo - qemu.git/commitdiff
exec-all: document that tlb_fill can trigger a TLB resize
authorEmilio G. Cota <[email protected]>
Sat, 9 Feb 2019 16:27:44 +0000 (11:27 -0500)
committerRichard Henderson <[email protected]>
Mon, 11 Feb 2019 16:52:44 +0000 (08:52 -0800)
Signed-off-by: Emilio G. Cota <[email protected]>
Message-Id: <20190209162745[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
include/exec/exec-all.h

index aa7b81aaf01ca9987d72aedbd36d5565c68bc5d2..97b90cb0dbed1610cc622e034c80ef11bcb2025c 100644 (file)
@@ -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);
 
This page took 0.027234 seconds and 4 git commands to generate.