summaryrefslogtreecommitdiffstats
path: root/hw/pci.c
diff options
context:
space:
mode:
authorJuan Quintela2009-08-24 18:42:53 +0200
committerAnthony Liguori2009-08-28 03:47:00 +0200
commita60380a561a56fe850d5154f9f4592fb0f8e58c4 (patch)
tree238cd8bef09b34cf1e7ef6a624bb9663924517ff /hw/pci.c
parentWe need PCINE2000State for save/load functions (diff)
downloadqemu-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/pci.c b/hw/pci.c
index ecba03d297..41e99a9beb 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -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;