From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2cAL-0005dO-RS for qemu-devel@nongnu.org; Mon, 13 Jan 2014 02:42:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2cAC-0004nB-6J for qemu-devel@nongnu.org; Mon, 13 Jan 2014 02:42:33 -0500 Received: from mail-qa0-x234.google.com ([2607:f8b0:400d:c00::234]:55576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2cAC-0004mS-0W for qemu-devel@nongnu.org; Mon, 13 Jan 2014 02:42:24 -0500 Received: by mail-qa0-f52.google.com with SMTP id j15so5451322qaq.25 for ; Sun, 12 Jan 2014 23:42:23 -0800 (PST) From: edgar.iglesias@gmail.com Date: Mon, 13 Jan 2014 17:39:43 +1000 Message-Id: <1389598802-14977-4-git-send-email-edgar.iglesias@gmail.com> In-Reply-To: <1389598802-14977-1-git-send-email-edgar.iglesias@gmail.com> References: <1389598802-14977-1-git-send-email-edgar.iglesias@gmail.com> Subject: [Qemu-devel] [PATCH v3 03/22] exec: Always initialize MemorySection address spaces List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, blauwirbel@gmail.com, aliguori@amazon.com, pcrost@xilinx.com, pbonzini@redhat.com, afaerber@suse.de, aurelien@aurel32.net, rth@twiddle.net From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exec.c b/exec.c index abc4f2f..c9724c0 100644 --- a/exec.c +++ b/exec.c @@ -879,6 +879,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)); @@ -1718,6 +1719,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, -- 1.7.10.4