mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
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>
This commit is contained in:
1 parent
ff66eaed97
commit
c1ab310e08
1 file changed
+1
-1
@@ -101,7 +101,7 @@ int pci_device_load(PCIDevice *s, QEMUFile *f)
|
||||
int i;
|
||||
qemu_get_buffer(f, &irq_state, 1);
|
||||
for (i = 0; i < 4; i++)
|
||||
pci_set_irq(s, i, !!(irq_state >> i));
|
||||
pci_set_irq(s, i, (irq_state >> i) & 1);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||