]> Git Repo - qemu.git/commitdiff
piix_pci: fix piix3_set_irq_pic()
authorTeLeMan <[email protected]>
Mon, 16 May 2011 11:50:55 +0000 (19:50 +0800)
committerStefan Hajnoczi <[email protected]>
Sun, 22 May 2011 21:31:45 +0000 (22:31 +0100)
If pic_irq is greater than 7, the irq level is always 0 on 32bits.

Signed-off-by: TeLeMan <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
hw/piix_pci.c

index 7f1c4cca318fe4238250bb67f8d47669eae811a2..85a320e7297c87d02908addb796b69bf0aa9a43e 100644 (file)
@@ -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))));
 }
 
This page took 0.028936 seconds and 4 git commands to generate.