diff options
author | Juan Quintela | 2009-08-24 18:42:53 +0200 |
---|---|---|
committer | Anthony Liguori | 2009-08-28 03:47:00 +0200 |
commit | a60380a561a56fe850d5154f9f4592fb0f8e58c4 (patch) | |
tree | 238cd8bef09b34cf1e7ef6a624bb9663924517ff /hw/pci.c | |
parent | We need PCINE2000State for save/load functions (diff) | |
download | qemu-a60380a561a56fe850d5154f9f4592fb0f8e58c4.tar.gz qemu-a60380a561a56fe850d5154f9f4592fb0f8e58c4.tar.xz qemu-a60380a561a56fe850d5154f9f4592fb0f8e58c4.zip |
Add pci_ne2000_{save/load} functions, then remove pci_dev NE2000State field
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pci.c')
-rw-r--r-- | hw/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -87,7 +87,7 @@ static const VMStateDescription vmstate_pcibus = { static void pci_bus_reset(void *opaque) { - PCIBus *bus = (PCIBus *)opaque; + PCIBus *bus = opaque; int i; for (i = 0; i < bus->nirq; i++) { @@ -627,7 +627,7 @@ uint32_t pci_data_read(void *opaque, uint32_t addr, int len) /* 0 <= irq_num <= 3. level must be 0 or 1 */ static void pci_set_irq(void *opaque, int irq_num, int level) { - PCIDevice *pci_dev = (PCIDevice *)opaque; + PCIDevice *pci_dev = opaque; PCIBus *bus; int change; |