ia64/xen-unstable

changeset 17673:f34f771f9ddd

ioemu: Fix load of PCI-device IRQ state after save/restore.
From: Ian Jackson <Ian.Jackson@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon May 19 09:42:18 2008 +0100 (2008-05-19)
parents 3a5750f4a738
children e66aefdfedcc
files tools/ioemu/hw/pci.c
line diff
     1.1 --- a/tools/ioemu/hw/pci.c	Mon May 19 09:40:53 2008 +0100
     1.2 +++ b/tools/ioemu/hw/pci.c	Mon May 19 09:42:18 2008 +0100
     1.3 @@ -101,7 +101,7 @@ int pci_device_load(PCIDevice *s, QEMUFi
     1.4          int i;
     1.5          qemu_get_buffer(f, &irq_state, 1);
     1.6          for (i = 0; i < 4; i++)
     1.7 -            pci_set_irq(s, i, !!(irq_state >> i));
     1.8 +            pci_set_irq(s, i, (irq_state >> i) & 1);
     1.9      }
    1.10      return 0;
    1.11  }