0a122b
From 746535f5d5ced7f1df4f1cb483621939ac8076e8 Mon Sep 17 00:00:00 2001
0a122b
From: Juan Quintela <quintela@redhat.com>
0a122b
Date: Tue, 14 Jan 2014 15:07:17 +0100
0a122b
Subject: [PATCH 06/40] exec: drop useless #if
0a122b
0a122b
RH-Author: Juan Quintela <quintela@redhat.com>
0a122b
Message-id: <1389712071-23303-7-git-send-email-quintela@redhat.com>
0a122b
Patchwork-id: 56658
0a122b
O-Subject: [RHEL7 qemu-kvm PATCH 06/40] exec: drop useless #if
0a122b
Bugzilla: 997559
0a122b
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
0a122b
RH-Acked-by: Orit Wasserman <owasserm@redhat.com>
0a122b
RH-Acked-by: Dr. David Alan Gilbert (git) <dgilbert@redhat.com>
0a122b
0a122b
From: Paolo Bonzini <pbonzini@redhat.com>
0a122b
0a122b
This code is only compiled for softmmu targets.
0a122b
0a122b
Reviewed-by: Richard Henderson <rth@twiddle.net>
0a122b
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
0a122b
(cherry picked from commit ae4e43e80f3e1e65d096ebbc643eed9d763e1441)
0a122b
Signed-off-by: Juan Quintela <quintela@trasno.org>
0a122b
---
0a122b
 exec.c | 2 --
0a122b
 1 file changed, 2 deletions(-)
0a122b
0a122b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
0a122b
---
0a122b
 exec.c |    2 --
0a122b
 1 files changed, 0 insertions(+), 2 deletions(-)
0a122b
0a122b
diff --git a/exec.c b/exec.c
0a122b
index 389888d..436dbe9 100644
0a122b
--- a/exec.c
0a122b
+++ b/exec.c
0a122b
@@ -1483,10 +1483,8 @@ static void notdirty_mem_write(void *opaque, hwaddr ram_addr,
0a122b
     int dirty_flags;
0a122b
     dirty_flags = cpu_physical_memory_get_dirty_flags(ram_addr);
0a122b
     if (!(dirty_flags & CODE_DIRTY_FLAG)) {
0a122b
-#if !defined(CONFIG_USER_ONLY)
0a122b
         tb_invalidate_phys_page_fast(ram_addr, size);
0a122b
         dirty_flags = cpu_physical_memory_get_dirty_flags(ram_addr);
0a122b
-#endif
0a122b
     }
0a122b
     switch (size) {
0a122b
     case 1:
0a122b
-- 
0a122b
1.7.1
0a122b