Message ID | 4E5B56A7.6010006@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/memory.c b/memory.c index 1491a39..eb31fa8 100644 --- a/memory.c +++ b/memory.c @@ -304,7 +304,7 @@ static void as_memory_range_add(AddressSpace *as, FlatRange *fr) } if (!fr->readable) { - phys_offset &= TARGET_PAGE_MASK; + phys_offset &= ~TARGET_PAGE_MASK & ~IO_MEM_ROMD; }