All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] piix_pci: fix piix3_set_irq_pic()
@ 2011-05-16 11:50 TeLeMan
  2011-05-16 12:05 ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: TeLeMan @ 2011-05-16 11:50 UTC (permalink / raw)
  To: Isaku Yamahata; +Cc: qemu-trivial, qemu-devel

If pic_irq is greater than 7, the irq level is always 0 on 32bits.

Signed-off-by: TeLeMan <geleman@gmail.com>
---
 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 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))));
 }

-- 
1.7.3.1.msysgit.0
--
SUN OF A BEACH

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-05-23  2:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-16 11:50 [Qemu-devel] [PATCH] piix_pci: fix piix3_set_irq_pic() TeLeMan
2011-05-16 12:05 ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi
2011-05-22 19:06 ` [Qemu-devel] " Michael S. Tsirkin
2011-05-22 19:18   ` Stefan Weil
2011-05-23  2:36 ` Isaku Yamahata

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.