aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-08-28 16:22:18 +0000
committerPeter Maydell <peter.maydell@linaro.org>2011-08-28 16:37:12 +0000
commit9c8255e12422771cdecbb3bf538f0732be629e2a (patch)
tree5ff5b1f345d54dd7e03668f8428cf2d8841826b1
parent3387bf5581df66c2cfb0d399d73c80f3cc3be198 (diff)
omap_gpmc: GPMC_IRQSTATUS is write-one-to-clear
Fix a bug in the handling of writes to GPMC_IRQSTATUS: it behaves as "write one to clear, writing zero is ignored". Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--hw/omap_gpmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/omap_gpmc.c b/hw/omap_gpmc.c
index d16b28bd25..ff4d4854ea 100644
--- a/hw/omap_gpmc.c
+++ b/hw/omap_gpmc.c
@@ -284,7 +284,7 @@ static void omap_gpmc_write(void *opaque, target_phys_addr_t addr,
break;
case 0x018: /* GPMC_IRQSTATUS */
- s->irqen = ~value;
+ s->irqen &= ~value;
omap_gpmc_int_update(s);
break;