diff options
author | TeLeMan <geleman@gmail.com> | 2011-05-16 19:50:55 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-05-22 22:31:45 +0100 |
commit | 09de0f469c3c2a277c7874f6c60992c8b94719a9 (patch) | |
tree | 3a94e11ea0c6c726ed4cc7dcd6bda9d41cbb821e /hw/piix_pci.c | |
parent | dcfd14b3741983c466ad92fa2ae91eeafce3e5d5 (diff) | |
download | qemu-09de0f469c3c2a277c7874f6c60992c8b94719a9.tar.gz qemu-09de0f469c3c2a277c7874f6c60992c8b94719a9.tar.bz2 qemu-09de0f469c3c2a277c7874f6c60992c8b94719a9.zip |
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>
Diffstat (limited to 'hw/piix_pci.c')
-rw-r--r-- | hw/piix_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/piix_pci.c b/hw/piix_pci.c index 7f1c4cca31..85a320e729 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)))); } |