From 3be91e862a6cc68a1872ac5b84685f4bb8910280 Mon Sep 17 00:00:00 2001 From: "Edgar E. Iglesias" Date: Thu, 7 Nov 2013 18:42:51 +0100 Subject: exec: Always initialize MemorySection address spaces Reviewed-by: Peter Maydell Signed-off-by: Edgar E. Iglesias --- exec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exec.c b/exec.c index f4c987a862..f2e66f3f32 100644 --- a/exec.c +++ b/exec.c @@ -892,6 +892,7 @@ static void register_subpage(AddressSpaceDispatch *d, MemoryRegionSection *secti if (!(existing->mr->subpage)) { subpage = subpage_init(d->as, base); + subsection.address_space = d->as; subsection.mr = &subpage->iomem; phys_page_set(d, base >> TARGET_PAGE_BITS, 1, phys_section_add(&d->map, &subsection)); @@ -1737,6 +1738,7 @@ static subpage_t *subpage_init(AddressSpace *as, hwaddr base) static uint16_t dummy_section(PhysPageMap *map, MemoryRegion *mr) { MemoryRegionSection section = { + .address_space = &address_space_memory, .mr = mr, .offset_within_address_space = 0, .offset_within_region = 0, -- cgit v1.2.3