]> git.proxmox.com Git - qemu.git/commitdiff
memory: Replace open-coded memory_region_is_romd
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 6 May 2013 16:07:05 +0000 (18:07 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 May 2013 16:42:37 +0000 (18:42 +0200)
Improves readability.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
translate-all.c

index da93608f0382a840154c2ba40712cae5e682c400..0d84b0d0c6697174dfa43f3e1e4e14892b382428 100644 (file)
@@ -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)