From: Adam Lackorzynski Date: Fri, 29 Aug 2014 14:00:28 +0000 (+0100) Subject: arm_gic: Do not force PPIs to edge-triggered mode X-Git-Tag: v2.2.0-rc0~155^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de7a900f0cdeeb5ebcb9d4a56cba2f0da7477001;p=thirdparty%2Fqemu.git arm_gic: Do not force PPIs to edge-triggered mode Only SGIs must be WI, done by forcing them to their default (edge-triggered). Acked-by: Christoffer Dall Signed-off-by: Adam Lackorzynski Message-id: 1408372255-12358-4-git-send-email-adam@os.inf.tu-dresden.de Signed-off-by: Peter Maydell --- diff --git a/hw/intc/arm_gic.c b/hw/intc/arm_gic.c index e5466470b0d..55019c97422 100644 --- a/hw/intc/arm_gic.c +++ b/hw/intc/arm_gic.c @@ -558,7 +558,7 @@ static void gic_dist_writeb(void *opaque, hwaddr offset, irq = (offset - 0xc00) * 4 + GIC_BASE_IRQ; if (irq >= s->num_irq) goto bad_reg; - if (irq < GIC_INTERNAL) + if (irq < GIC_NR_SGIS) value |= 0xaa; for (i = 0; i < 4; i++) { if (s->revision == REV_11MPCORE || s->revision == REV_NVIC) {