From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGkws-0002zJ-TU for qemu-devel@nongnu.org; Tue, 03 Sep 2013 03:22:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGkwn-0005ys-Td for qemu-devel@nongnu.org; Tue, 03 Sep 2013 03:22:50 -0400 Sender: Paolo Bonzini Message-ID: <52258E44.9010704@redhat.com> Date: Tue, 03 Sep 2013 09:22:44 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1378191917-6964-1-git-send-email-lig.fnst@cn.fujitsu.com> In-Reply-To: <1378191917-6964-1-git-send-email-lig.fnst@cn.fujitsu.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] cputlb: remove dead function tlb_update_dirty List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: liguang Cc: qemu-trivial , Jan Kiszka , qemu-devel , =?ISO-8859-1?Q?Andreas_F=E4rber?= , Richard Henderson Il 03/09/2013 09:05, liguang ha scritto: > Signed-off-by: liguang > --- > 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; > Reviewed-by: Paolo Bonzini and CCing qemu-trivial. Paolo