aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeLeMan <geleman@gmail.com>2011-05-16 19:50:55 +0800
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-05-22 22:31:45 +0100
commit09de0f469c3c2a277c7874f6c60992c8b94719a9 (patch)
tree3a94e11ea0c6c726ed4cc7dcd6bda9d41cbb821e
parentdcfd14b3741983c466ad92fa2ae91eeafce3e5d5 (diff)
downloadqemu-09de0f469c3c2a277c7874f6c60992c8b94719a9.zip
qemu-09de0f469c3c2a277c7874f6c60992c8b94719a9.tar.gz
qemu-09de0f469c3c2a277c7874f6c60992c8b94719a9.tar.bz2
piix_pci: fix piix3_set_irq_pic()
If pic_irq is greater than 7, the irq level is always 0 on 32bits. Signed-off-by: TeLeMan <geleman@gmail.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-rw-r--r--hw/piix_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/piix_pci.c b/hw/piix_pci.c
index 7f1c4cc..85a320e 100644
--- a/hw/piix_pci.c
+++ b/hw/piix_pci.c
@@ -312,7 +312,7 @@ static void piix3_set_irq_pic(PIIX3State *piix3, int pic_irq)
{
qemu_set_irq(piix3->pic[pic_irq],
!!(piix3->pic_levels &
- (((1UL << PIIX_NUM_PIRQS) - 1) <<
+ (((1ULL << PIIX_NUM_PIRQS) - 1) <<
(pic_irq * PIIX_NUM_PIRQS))));
}