diff options
author | liguang <lig.fnst@cn.fujitsu.com> | 2013-09-03 15:05:17 +0800 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-10-07 11:48:03 +0200 |
commit | 812586405c5d165aae791d3806a9bbb8312ec2ac (patch) | |
tree | 41a55131c935ab1895d9cd2509d01384d8c85c70 | |
parent | 6c78f29a2424622bfc9c30dfbbc13404481eacb6 (diff) |
cputlb: Remove dead function tlb_update_dirty()
Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
-rw-r--r-- | cputlb.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -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; |