From 4b81126e3399bfbcc47a4d696902c93401169f72 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Mon, 6 May 2013 18:07:05 +0200 Subject: memory: Replace open-coded memory_region_is_romd Improves readability. Reviewed-by: Peter Maydell Signed-off-by: Jan Kiszka --- translate-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'translate-all.c') diff --git a/translate-all.c b/translate-all.c index da93608f03..0d84b0d0c6 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) -- cgit v1.2.3