From: Peter Maydell Date: Sat, 17 Sep 2011 18:51:49 +0000 (+0100) Subject: hw/omap_gpmc: Modify correct field when writing IRQSTATUS register X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7e36b264ce524bc60b7b71dd45c05af767ceff2b;p=qemu.git hw/omap_gpmc: Modify correct field when writing IRQSTATUS register Writing to IRQSTATUS should affect irqst, not irqen -- error spotted by Andrzej Zaborowski. Signed-off-by: Peter Maydell Signed-off-by: Andrzej Zaborowski --- diff --git a/hw/omap_gpmc.c b/hw/omap_gpmc.c index e27b93c9b5..7fc82a2526 100644 --- a/hw/omap_gpmc.c +++ b/hw/omap_gpmc.c @@ -639,7 +639,7 @@ static void omap_gpmc_write(void *opaque, target_phys_addr_t addr, break; case 0x018: /* GPMC_IRQSTATUS */ - s->irqen &= ~value; + s->irqst &= ~value; omap_gpmc_int_update(s); break;