mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-15 22:21:57 -06:00
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>
This commit is contained in:
parent
73034e9e08
commit
4b81126e33
1 changed files with 1 additions and 1 deletions
|
@ -1359,7 +1359,7 @@ void tb_invalidate_phys_addr(hwaddr addr)
|
||||||
section = phys_page_find(address_space_memory.dispatch,
|
section = phys_page_find(address_space_memory.dispatch,
|
||||||
addr >> TARGET_PAGE_BITS);
|
addr >> TARGET_PAGE_BITS);
|
||||||
if (!(memory_region_is_ram(section->mr)
|
if (!(memory_region_is_ram(section->mr)
|
||||||
|| (section->mr->rom_device && section->mr->readable))) {
|
|| memory_region_is_romd(section->mr))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ram_addr = (memory_region_get_ram_addr(section->mr) & TARGET_PAGE_MASK)
|
ram_addr = (memory_region_get_ram_addr(section->mr) & TARGET_PAGE_MASK)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue