mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-16 14:41:55 -06:00
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>
This commit is contained in:
parent
dcfd14b374
commit
09de0f469c
1 changed files with 1 additions and 1 deletions
|
@ -312,7 +312,7 @@ static void piix3_set_irq_pic(PIIX3State *piix3, int pic_irq)
|
||||||
{
|
{
|
||||||
qemu_set_irq(piix3->pic[pic_irq],
|
qemu_set_irq(piix3->pic[pic_irq],
|
||||||
!!(piix3->pic_levels &
|
!!(piix3->pic_levels &
|
||||||
(((1UL << PIIX_NUM_PIRQS) - 1) <<
|
(((1ULL << PIIX_NUM_PIRQS) - 1) <<
|
||||||
(pic_irq * PIIX_NUM_PIRQS))));
|
(pic_irq * PIIX_NUM_PIRQS))));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue