]> git.proxmox.com Git - qemu.git/commitdiff
hw/omap_gpmc: Don't try to map CS0 twice on reset
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 23 Aug 2011 18:24:32 +0000 (19:24 +0100)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Tue, 23 Aug 2011 19:51:47 +0000 (21:51 +0200)
Remove a spurious second map of the OMAP GPMC CS0 region on reset.
This fixes an assertion failure when we try to add the region to
its container when it was already added. (The old code did not
complain about mismatched map/unmap calls, but the new MemoryRegion
implementation does.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
hw/omap_gpmc.c

index 922d6220087dd418d3e160e8de84a89ffd63387d..673dddd237fab9bcdcd4b54e6179db66a629aaf1 100644 (file)
@@ -135,7 +135,6 @@ void omap_gpmc_reset(struct omap_gpmc_s *s)
                             s->cs_file[i].config[6] & 0x1f,    /* MASKADDR */
                         (s->cs_file[i].config[6] >> 8 & 0xf)); /* BASEADDR */
     }
-    omap_gpmc_cs_map(s->cs_file, 0, 0xf);
     s->ecc_cs = 0;
     s->ecc_ptr = 0;
     s->ecc_cfg = 0x3fcff000;