From: Jan Kiszka Date: Mon, 6 May 2013 16:07:05 +0000 (+0200) Subject: memory: Replace open-coded memory_region_is_romd X-Git-Tag: qemu-xen-4.4.0-rc1~6^2~368^2~8 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4b81126e3399bfbcc47a4d696902c93401169f72;p=qemu-upstream-4.5-testing.git memory: Replace open-coded memory_region_is_romd Improves readability. Reviewed-by: Peter Maydell Signed-off-by: Jan Kiszka --- diff --git a/translate-all.c b/translate-all.c index da93608f0..0d84b0d0c 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)