Skip to content

Commit

Permalink
cputlb: Remove dead function tlb_update_dirty()
Browse files Browse the repository at this point in the history
Signed-off-by: liguang <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
  • Loading branch information
liguang authored and afaerber committed Oct 7, 2013
1 parent 6c78f29 commit 8125864
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions cputlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,21 +169,6 @@ static inline ram_addr_t qemu_ram_addr_from_host_nofail(void *ptr)
return ram_addr;
}

static inline void tlb_update_dirty(CPUTLBEntry *tlb_entry)
{
ram_addr_t ram_addr;
void *p;

if (tlb_is_dirty_ram(tlb_entry)) {
p = (void *)(uintptr_t)((tlb_entry->addr_write & TARGET_PAGE_MASK)
+ tlb_entry->addend);
ram_addr = qemu_ram_addr_from_host_nofail(p);
if (!cpu_physical_memory_is_dirty(ram_addr)) {
tlb_entry->addr_write |= TLB_NOTDIRTY;
}
}
}

void cpu_tlb_reset_dirty_all(ram_addr_t start1, ram_addr_t length)
{
CPUState *cpu;
Expand Down

0 comments on commit 8125864

Please sign in to comment.