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