Received: from eggs.gnu.org ([2001:4830:134:3::10]:42044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTrxF-0005M7-GW for qemu-devel@nongnu.org; Wed, 09 Oct 2013 07:29:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTrx9-0001HP-HN for qemu-devel@nongnu.org; Wed, 09 Oct 2013 07:29:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTrx9-0001HG-9c for qemu-devel@nongnu.org; Wed, 09 Oct 2013 07:29:19 -0400 From: Juan Quintela Date: Wed, 9 Oct 2013 13:28:42 +0200 Message-Id: <1381318130-10620-21-git-send-email-quintela@redhat.com> In-Reply-To: <1381318130-10620-1-git-send-email-quintela@redhat.com> References: <1381318130-10620-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PATCH 20/28] memory: unfold cpu_physical_memory_clear_dirty_flag() in its only user List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: chegu_vinod@hp.com Signed-off-by: Juan Quintela --- include/exec/memory-internal.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/include/exec/memory-internal.h b/include/exec/memory-internal.h index 71f198e..d6d3537 100644 --- a/include/exec/memory-internal.h +++ b/include/exec/memory-internal.h @@ -86,12 +86,6 @@ static inline void cpu_physical_memory_set_dirty(ram_addr_t addr) cpu_physical_memory_set_dirty_flag(addr, DIRTY_MEMORY_CODE); } -static inline void cpu_physical_memory_clear_dirty_flag(ram_addr_t addr, - unsigned client) -{ - clear_bit(addr >> TARGET_PAGE_BITS, ram_list.dirty_memory[client]); -} - static inline void cpu_physical_memory_set_dirty_range(ram_addr_t start, ram_addr_t length) { @@ -114,7 +108,7 @@ static inline void cpu_physical_memory_mask_dirty_range(ram_addr_t start, end = TARGET_PAGE_ALIGN(start + length); start &= TARGET_PAGE_MASK; for (addr = start; addr < end; addr += TARGET_PAGE_SIZE) { - cpu_physical_memory_clear_dirty_flag(addr, client); + clear_bit(addr >> TARGET_PAGE_BITS, ram_list.dirty_memory[client]); } } -- 1.8.3.1