| Submitter | Peter Maydell |
|---|---|
| Date | Sept. 26, 2012, 4:13 p.m. |
| Message ID | <1348676015-16547-3-git-send-email-peter.maydell@linaro.org> |
| Download | mbox | patch |
| Permalink | /patch/187121/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/armv7m_nvic.c b/hw/armv7m_nvic.c index 6a0832e..5c09116 100644 --- a/hw/armv7m_nvic.c +++ b/hw/armv7m_nvic.c @@ -489,7 +489,8 @@ static int armv7m_nvic_init(SysBusDevice *dev) */ memory_region_init_alias(&s->gic_iomem_alias, "nvic-gic", &s->gic.iomem, 0x100, 0xc00); - memory_region_add_subregion_overlap(&s->container, 0x100, &s->gic.iomem, 1); + memory_region_add_subregion_overlap(&s->container, 0x100, + &s->gic_iomem_alias, 1); /* Map the whole thing into system memory at the location required * by the v7M architecture. */