diff options
author | Juan Quintela <quintela@redhat.com> | 2011-02-24 15:17:14 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-03-06 20:10:58 +0100 |
commit | 532847e427e0c784216c8be943f7cdeec6c307d0 (patch) | |
tree | 026a258cf6bdb8b977424e13413ddb9250c2b7b8 /hw/grackle_pci.c | |
parent | 85bb6d36b055e64778086b951ea282b383014274 (diff) |
vmstate: remove grackle_pci savevm code
It was migrating the wrong structures, no way it would work
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/grackle_pci.c')
-rw-r--r-- | hw/grackle_pci.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/hw/grackle_pci.c b/hw/grackle_pci.c index bd3d6b0d9f..d35701f4a5 100644 --- a/hw/grackle_pci.c +++ b/hw/grackle_pci.c @@ -57,23 +57,6 @@ static void pci_grackle_set_irq(void *opaque, int irq_num, int level) qemu_set_irq(pic[irq_num + 0x15], level); } -static void pci_grackle_save(QEMUFile* f, void *opaque) -{ - PCIDevice *d = opaque; - - pci_device_save(d, f); -} - -static int pci_grackle_load(QEMUFile* f, void *opaque, int version_id) -{ - PCIDevice *d = opaque; - - if (version_id != 1) - return -EINVAL; - - return pci_device_load(d, f); -} - static void pci_grackle_reset(void *opaque) { } @@ -115,8 +98,6 @@ static int pci_grackle_init_device(SysBusDevice *dev) sysbus_init_mmio(dev, 0x1000, pci_mem_config); sysbus_init_mmio(dev, 0x1000, pci_mem_data); - register_savevm(&dev->qdev, "grackle", 0, 1, pci_grackle_save, - pci_grackle_load, &s->host_state); qemu_register_reset(pci_grackle_reset, &s->host_state); return 0; } |