ARM GIC bug.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2187 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
pbrook 2006-10-01 13:03:52 +00:00
parent 8d7b0fbb3f
commit 326199c270

View File

@ -383,7 +383,7 @@ static void gic_dist_writeb(void *opaque, target_phys_addr_t offset,
s->irq_target[irq] = value; s->irq_target[irq] = value;
} else if (offset < 0xf00) { } else if (offset < 0xf00) {
/* Interrupt Configuration. */ /* Interrupt Configuration. */
irq = (offset - 0xc00) * 2; irq = (offset - 0xc00) * 4;
if (irq >= GIC_NIRQ) if (irq >= GIC_NIRQ)
goto bad_reg; goto bad_reg;
for (i = 0; i < 4; i++) { for (i = 0; i < 4; i++) {