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:
Keir Fraser committed 2008-05-19 09:42:18 +01:00
1 parent ff66eaed97
commit c1ab310e08
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.