From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjsX9-0003Id-SP for qemu-devel@nongnu.org; Fri, 22 Nov 2013 10:20:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjsX0-00009i-Lb for qemu-devel@nongnu.org; Fri, 22 Nov 2013 10:20:39 -0500 Received: from mail-la0-x22f.google.com ([2a00:1450:4010:c03::22f]:58690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjsX0-00009W-EL for qemu-devel@nongnu.org; Fri, 22 Nov 2013 10:20:30 -0500 Received: by mail-la0-f47.google.com with SMTP id ep20so1041276lab.6 for ; Fri, 22 Nov 2013 07:20:29 -0800 (PST) Received: from localhost (h59ec325f.selukar.dyn.perspektivbredband.net. [89.236.50.95]) by mx.google.com with ESMTPSA id h11sm1214503lbg.8.2013.11.22.07.20.25 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 22 Nov 2013 07:20:26 -0800 (PST) From: edgar.iglesias@gmail.com Date: Fri, 22 Nov 2013 16:15:54 +0100 Message-Id: <1385133359-13770-4-git-send-email-edgar.iglesias@gmail.com> In-Reply-To: <1385133359-13770-1-git-send-email-edgar.iglesias@gmail.com> References: <1385133359-13770-1-git-send-email-edgar.iglesias@gmail.com> Subject: [Qemu-devel] [RFC PATCH 3/8] exec: Always initialize MemorySection address spaces List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 5e17110..05df217 100644 --- a/exec.c +++ b/exec.c @@ -806,6 +806,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(&subsection)); @@ -1609,6 +1610,7 @@ static subpage_t *subpage_init(AddressSpace *as, hwaddr base) static uint16_t dummy_section(MemoryRegion *mr) { MemoryRegionSection section = { + .address_space = &address_space_memory, .mr = mr, .offset_within_address_space = 0, .offset_within_region = 0, -- 1.7.10.4