mirror of https://github.com/xemu-project/xemu.git
exec: Always initialize MemorySection address spaces
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
777170946f
commit
3be91e862a
2
exec.c
2
exec.c
|
@ -892,6 +892,7 @@ static void register_subpage(AddressSpaceDispatch *d, MemoryRegionSection *secti
|
||||||
|
|
||||||
if (!(existing->mr->subpage)) {
|
if (!(existing->mr->subpage)) {
|
||||||
subpage = subpage_init(d->as, base);
|
subpage = subpage_init(d->as, base);
|
||||||
|
subsection.address_space = d->as;
|
||||||
subsection.mr = &subpage->iomem;
|
subsection.mr = &subpage->iomem;
|
||||||
phys_page_set(d, base >> TARGET_PAGE_BITS, 1,
|
phys_page_set(d, base >> TARGET_PAGE_BITS, 1,
|
||||||
phys_section_add(&d->map, &subsection));
|
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)
|
static uint16_t dummy_section(PhysPageMap *map, MemoryRegion *mr)
|
||||||
{
|
{
|
||||||
MemoryRegionSection section = {
|
MemoryRegionSection section = {
|
||||||
|
.address_space = &address_space_memory,
|
||||||
.mr = mr,
|
.mr = mr,
|
||||||
.offset_within_address_space = 0,
|
.offset_within_address_space = 0,
|
||||||
.offset_within_region = 0,
|
.offset_within_region = 0,
|
||||||
|
|
Loading…
Reference in New Issue