diff options
author | Evgeny Voevodin <e.voevodin@samsung.com> | 2012-07-04 10:43:32 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2012-07-04 10:43:32 +0000 |
commit | 7892df069addf28304190935748e8d59982180bd (patch) | |
tree | 38426bb3f9e6bb44f0257cb6d043c17f940a5ce2 | |
parent | b631bc37d97344bb35f54d6af6a12df35a6764d8 (diff) |
hw/exynos4210.c: Fix misleading initialization of IROM mirror
We want to mirror whole IROM and should pass zero instead of
EXYNOS4210_IROM_BASE_ADDR (though it equals to zero too) since
memory_region_init_alias takes an offset within an original
region as an argument.
Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | hw/exynos4210.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/exynos4210.c b/hw/exynos4210.c index 9c20b3f22d..80a00b98eb 100644 --- a/hw/exynos4210.c +++ b/hw/exynos4210.c @@ -216,7 +216,7 @@ Exynos4210State *exynos4210_init(MemoryRegion *system_mem, /* mirror of iROM */ memory_region_init_alias(&s->irom_alias_mem, "exynos4210.irom_alias", &s->irom_mem, - EXYNOS4210_IROM_BASE_ADDR, + 0, EXYNOS4210_IROM_SIZE); memory_region_set_readonly(&s->irom_alias_mem, true); memory_region_add_subregion(system_mem, EXYNOS4210_IROM_MIRROR_BASE_ADDR, |