aboutsummaryrefslogtreecommitdiff
path: root/hw/lance.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-10-19 18:02:13 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-27 12:28:52 -0500
commit3d8650597d93b11314bab4ad64b297da85edf179 (patch)
treefc651990a7bee107c702f9ebbb159b9e7ac0d5d5 /hw/lance.c
parent151b29867da10c40894c2f61de89d24fc756dfc9 (diff)
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/lance.c b/hw/lance.c
index 99c25a80bf..0a96644b43 100644
--- a/hw/lance.c
+++ b/hw/lance.c
@@ -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);
}