thebeanogamer / rpms / qemu-kvm

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