mirror of https://github.com/xqemu/xqemu.git
pci: call reset unconditionally
Because now all PCI devices are converted to qdev. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
8a5faa1d3e
commit
6fc4925bf6
5
hw/pci.c
5
hw/pci.c
|
@ -159,11 +159,8 @@ void pci_device_deassert_intx(PCIDevice *dev)
|
||||||
void pci_device_reset(PCIDevice *dev)
|
void pci_device_reset(PCIDevice *dev)
|
||||||
{
|
{
|
||||||
int r;
|
int r;
|
||||||
/* TODO: call the below unconditionally once all pci devices
|
|
||||||
* are qdevified */
|
|
||||||
if (dev->qdev.info) {
|
|
||||||
qdev_reset_all(&dev->qdev);
|
qdev_reset_all(&dev->qdev);
|
||||||
}
|
|
||||||
|
|
||||||
dev->irq_state = 0;
|
dev->irq_state = 0;
|
||||||
pci_update_irq_status(dev);
|
pci_update_irq_status(dev);
|
||||||
|
|
Loading…
Reference in New Issue