Blame SOURCES/kvm-memory-Replace-open-coded-memory_region_is_romd.patch

0a122b
From 8b8d0c6584741845558eb066c8b1c393dc86bb29 Mon Sep 17 00:00:00 2001
0a122b
From: Laszlo Ersek <lersek@redhat.com>
0a122b
Date: Sat, 11 Jan 2014 17:59:53 +0100
0a122b
Subject: [PATCH 03/22] memory: Replace open-coded memory_region_is_romd
0a122b
0a122b
RH-Author: Laszlo Ersek <lersek@redhat.com>
0a122b
Message-id: <1389463208-6278-4-git-send-email-lersek@redhat.com>
0a122b
Patchwork-id: 56616
0a122b
O-Subject: [RHEL-7.0 qemu-kvm PATCH 03/18] memory: Replace open-coded memory_region_is_romd
0a122b
Bugzilla: 1032346
0a122b
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
0a122b
RH-Acked-by: Amos Kong <akong@redhat.com>
0a122b
RH-Acked-by: Andrew Jones <drjones@redhat.com>
0a122b
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
0a122b
0a122b
From: Jan Kiszka <jan.kiszka@siemens.com>
0a122b
0a122b
Improves readability.
0a122b
0a122b
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
0a122b
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
0a122b
(cherry picked from commit 4b81126e3399bfbcc47a4d696902c93401169f72)
0a122b
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
0a122b
---
0a122b
 translate-all.c | 2 +-
0a122b
 1 file changed, 1 insertion(+), 1 deletion(-)
0a122b
0a122b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
0a122b
---
0a122b
 translate-all.c |    2 +-
0a122b
 1 files changed, 1 insertions(+), 1 deletions(-)
0a122b
0a122b
diff --git a/translate-all.c b/translate-all.c
0a122b
index da93608..0d84b0d 100644
0a122b
--- a/translate-all.c
0a122b
+++ b/translate-all.c
0a122b
@@ -1359,7 +1359,7 @@ void tb_invalidate_phys_addr(hwaddr addr)
0a122b
     section = phys_page_find(address_space_memory.dispatch,
0a122b
                              addr >> TARGET_PAGE_BITS);
0a122b
     if (!(memory_region_is_ram(section->mr)
0a122b
-          || (section->mr->rom_device && section->mr->readable))) {
0a122b
+          || memory_region_is_romd(section->mr))) {
0a122b
         return;
0a122b
     }
0a122b
     ram_addr = (memory_region_get_ram_addr(section->mr) & TARGET_PAGE_MASK)
0a122b
-- 
0a122b
1.7.1
0a122b