summaryrefslogtreecommitdiff
path: root/translate-all.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2013-05-06 18:07:05 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2013-05-24 18:42:37 +0200
commit4b81126e3399bfbcc47a4d696902c93401169f72 (patch)
treeb5910cc8df59698d0adb751b678189105fee0806 /translate-all.c
parent73034e9e087aa51b85cf86b6c81ef92f7e1e9d09 (diff)
downloadqemu-4b81126e3399bfbcc47a4d696902c93401169f72.tar.gz
qemu-4b81126e3399bfbcc47a4d696902c93401169f72.tar.bz2
qemu-4b81126e3399bfbcc47a4d696902c93401169f72.zip
memory: Replace open-coded memory_region_is_romd
Improves readability. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'translate-all.c')
-rw-r--r--translate-all.c2
1 files changed, 1 insertions, 1 deletions
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)