qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] cputlb: remove dead function tlb_update_dirty
@ 2013-09-03  7:05 liguang
  2013-09-03  7:22 ` Paolo Bonzini
  0 siblings, 1 reply; 9+ messages in thread
From: liguang @ 2013-09-03  7:05 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Richard Henderson, Andreas Färber, liguang,
	Jan Kiszka

Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
---
 cputlb.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/cputlb.c b/cputlb.c
index 977c0ca..08e50e0 100644
--- a/cputlb.c
+++ b/cputlb.c
@@ -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;
-- 
1.7.2.5

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-09-04 11:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-03  7:05 [Qemu-devel] [PATCH] cputlb: remove dead function tlb_update_dirty liguang
2013-09-03  7:22 ` Paolo Bonzini
2013-09-03  8:35   ` Andreas Färber
2013-09-03  8:41     ` Paolo Bonzini
2013-09-03  8:48     ` Peter Maydell
2013-09-03 11:17     ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
2013-09-03 16:54       ` Andreas Färber
2013-09-04  1:36         ` Li Guang
2013-09-04 10:59         ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).