From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTrww-0004qv-4b for qemu-devel@nongnu.org; Wed, 09 Oct 2013 07:29:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTrwp-000198-FY for qemu-devel@nongnu.org; Wed, 09 Oct 2013 07:29:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTrwp-00018y-7V for qemu-devel@nongnu.org; Wed, 09 Oct 2013 07:28:59 -0400 From: Juan Quintela Date: Wed, 9 Oct 2013 13:28:26 +0200 Message-Id: <1381318130-10620-5-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 04/28] exec: use accessor function to know if memory is dirty 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 --- exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.c b/exec.c index 26681ce..adbcef0 100644 --- a/exec.c +++ b/exec.c @@ -1470,7 +1470,7 @@ static void notdirty_mem_write(void *opaque, hwaddr ram_addr, cpu_physical_memory_set_dirty_flags(ram_addr, dirty_flags); /* we remove the notdirty callback only if the code has been flushed */ - if (dirty_flags == 0xff) { + if (cpu_physical_memory_is_dirty(ram_addr)) { CPUArchState *env = current_cpu->env_ptr; tlb_set_dirty(env, env->mem_io_vaddr); } -- 1.8.3.1