All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] memory: Replace open-coded memory_region_is_romd
@ 2013-05-06 16:07 ` Jan Kiszka
  0 siblings, 0 replies; 10+ messages in thread
From: Jan Kiszka @ 2013-05-06 16:07 UTC (permalink / raw)
  To: qemu-trivial; +Cc: qemu-devel

Improves readability.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 translate-all.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/translate-all.c b/translate-all.c
index da93608..0d84b0d 100644
--- a/translate-all.c
+++ b/translate-all.c
@@ -1359,7 +1359,7 @@ void tb_invalidate_phys_addr(hwaddr addr)
     section = phys_page_find(address_space_memory.dispatch,
                              addr >> TARGET_PAGE_BITS);
     if (!(memory_region_is_ram(section->mr)
-          || (section->mr->rom_device && section->mr->readable))) {
+          || memory_region_is_romd(section->mr))) {
         return;
     }
     ram_addr = (memory_region_get_ram_addr(section->mr) & TARGET_PAGE_MASK)
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-05-07 14:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-06 16:07 [Qemu-trivial] [PATCH] memory: Replace open-coded memory_region_is_romd Jan Kiszka
2013-05-06 16:07 ` [Qemu-devel] " Jan Kiszka
2013-05-06 16:26 ` [Qemu-trivial] " Paolo Bonzini
2013-05-06 16:26   ` [Qemu-devel] " Paolo Bonzini
2013-05-06 16:42   ` [Qemu-trivial] " Peter Maydell
2013-05-06 16:42     ` Peter Maydell
2013-05-07 14:17   ` [Qemu-trivial] " Jan Kiszka
2013-05-07 14:17     ` [Qemu-devel] " Jan Kiszka
2013-05-07 14:35     ` [Qemu-trivial] " Paolo Bonzini
2013-05-07 14:35       ` [Qemu-devel] " Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.