OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7771709
)
exec: Always initialize MemorySection address spaces
author
Edgar E. Iglesias
<edgar.iglesias@xilinx.com>
Thu, 7 Nov 2013 17:42:51 +0000
(18:42 +0100)
committer
Edgar E. Iglesias
<edgar.iglesias@xilinx.com>
Tue, 11 Feb 2014 12:56:16 +0000
(22:56 +1000)
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
exec.c
patch
|
blob
|
history
diff --git
a/exec.c
b/exec.c
index
f4c987a
..
f2e66f3
100644
(file)
--- 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,