Skip to content

Commit

Permalink
exec: Always initialize MemorySection address spaces
Browse files Browse the repository at this point in the history
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
  • Loading branch information
edgarigl committed Feb 11, 2014
1 parent 7771709 commit 3be91e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exec.c
Expand Up @@ -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));
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 3be91e8

Please sign in to comment.