]> git.ipfire.org Git - thirdparty/qemu.git/commit
mips/malta: fix CBUS UART interrupt pin
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 14 Nov 2012 14:04:42 +0000 (15:04 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 30 Nov 2012 22:05:41 +0000 (16:05 -0600)
commitf6b803df744f3b8fafd69fa8e8e0588ffd75f4ac
treedf7d24e85226ad8ed6b0b73491b04e2697f50865
parent879c2648038863c30587411f90b142de05e12a3b
mips/malta: fix CBUS UART interrupt pin

According to the MIPS Malta Developement Platform User's Manual, the
i8259 interrupt controller is supposed to be connected to the hardware
IRQ0, and the CBUS UART to the hardware interrupt 2.

In QEMU they are both connected to hardware interrupt 0, the CBUS UART
interrupt being wrong. This patch fixes that. It should be noted that
the irq array in QEMU includes the software interrupts, hence
env->irq[2] is the first hardware interrupt.

Cc: Ralf Baechle <ralf@linux-mips.org>
Reviewed-by: Eric Johnson <ericj@mips.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
(cherry picked from commit 68d001928b151a0c50f367c0bdca645b3d5e9ed3)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/mips_malta.c