diff options
author | Juan Quintela <quintela@redhat.com> | 2009-10-19 18:02:13 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-27 12:28:52 -0500 |
commit | 3d8650597d93b11314bab4ad64b297da85edf179 (patch) | |
tree | fc651990a7bee107c702f9ebbb159b9e7ac0d5d5 /hw/lance.c | |
parent | 151b29867da10c40894c2f61de89d24fc756dfc9 (diff) | |
download | qemu-3d8650597d93b11314bab4ad64b297da85edf179.zip qemu-3d8650597d93b11314bab4ad64b297da85edf179.tar.gz qemu-3d8650597d93b11314bab4ad64b297da85edf179.tar.bz2 |
pcnet: port to vmstate
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/lance.c')
-rw-r--r-- | hw/lance.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -96,6 +96,7 @@ static void lance_cleanup(VLANClientState *vc) { PCNetState *d = vc->opaque; + vmstate_unregister(&vmstate_pcnet, d); pcnet_common_cleanup(d); } @@ -116,7 +117,7 @@ static int lance_init(SysBusDevice *dev) s->phys_mem_read = ledma_memory_read; s->phys_mem_write = ledma_memory_write; - register_savevm("pcnet", -1, 3, pcnet_save, pcnet_load, s); + vmstate_register(-1, &vmstate_pcnet, d); return pcnet_common_init(&dev->qdev, s, lance_cleanup); } |