Skip to contentSkip to conversation

hw/omap_gpmc: Don't try to map CS0 twice on reset

PATCH In review Peter Maydell 1 participant 2 messages Sep 12, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/omap_gpmc: Don't try to map CS0 twice on reset

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.)

---
 hw/omap_gpmc.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
hw/omap_gpmc.c +0 -1
index 922d622..673dddd 100644
@@ -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;
Signature · 1 line
1.7.1
#1 lore raw
Quoted 5 lines · Peter Maydell

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.)

Whoops; please ignore this, it's an old patch which I accidentally resubmitted due to a fumble-fingered moment at the shell prompt and the git-send-email command being in my shell history...

-- PMM