exec: Reduce tlb_set_dirty() declaration scope
tlb_set_dirty() is only used in accel/tcg/cputlb.c, where it is defined. Declare it statically, removing the stub. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240418192525.97451-11-philmd@linaro.org>
This commit is contained in:
parent
7d7a21ba69
commit
51579d40f9
@ -18,10 +18,6 @@ void tb_flush(CPUState *cpu)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void tlb_set_dirty(CPUState *cpu, vaddr vaddr)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
int probe_access_flags(CPUArchState *env, vaddr addr, int size,
|
int probe_access_flags(CPUArchState *env, vaddr addr, int size,
|
||||||
MMUAccessType access_type, int mmu_idx,
|
MMUAccessType access_type, int mmu_idx,
|
||||||
bool nonfault, void **phost, uintptr_t retaddr)
|
bool nonfault, void **phost, uintptr_t retaddr)
|
||||||
|
@ -1039,7 +1039,7 @@ static inline void tlb_set_dirty1_locked(CPUTLBEntry *tlb_entry,
|
|||||||
|
|
||||||
/* update the TLB corresponding to virtual page vaddr
|
/* update the TLB corresponding to virtual page vaddr
|
||||||
so that it is no longer dirty */
|
so that it is no longer dirty */
|
||||||
void tlb_set_dirty(CPUState *cpu, vaddr addr)
|
static void tlb_set_dirty(CPUState *cpu, vaddr addr)
|
||||||
{
|
{
|
||||||
int mmu_idx;
|
int mmu_idx;
|
||||||
|
|
||||||
|
@ -654,7 +654,6 @@ static inline void mmap_unlock(void) {}
|
|||||||
#define WITH_MMAP_LOCK_GUARD()
|
#define WITH_MMAP_LOCK_GUARD()
|
||||||
|
|
||||||
void tlb_reset_dirty(CPUState *cpu, ram_addr_t start1, ram_addr_t length);
|
void tlb_reset_dirty(CPUState *cpu, ram_addr_t start1, ram_addr_t length);
|
||||||
void tlb_set_dirty(CPUState *cpu, vaddr addr);
|
|
||||||
void tlb_reset_dirty_range_all(ram_addr_t start, ram_addr_t length);
|
void tlb_reset_dirty_range_all(ram_addr_t start, ram_addr_t length);
|
||||||
|
|
||||||
MemoryRegionSection *
|
MemoryRegionSection *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user