aboutsummaryrefslogtreecommitdiff
path: root/hw/net/ne2000-isa.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-06-07 17:53:11 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2014-06-10 19:39:34 +0400
commit89218c218f906b7384c2b365fc8bdc33b1452cbc (patch)
tree1132e721801ca8b9e6442ee0bc658e209dae5c72 /hw/net/ne2000-isa.c
parentfc4bde9025c07a2ef96d498f5d675d3ec044b00a (diff)
downloadqemu-89218c218f906b7384c2b365fc8bdc33b1452cbc.zip
qemu-89218c218f906b7384c2b365fc8bdc33b1452cbc.tar.gz
qemu-89218c218f906b7384c2b365fc8bdc33b1452cbc.tar.bz2
hw/net/ne2000-isa: Register vmstate struct
The ne2000-isa device defines a VMState struct for migration, but we forgot to actually register it. Correct this deficiency by setting dc->vmsd. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/net/ne2000-isa.c')
-rw-r--r--hw/net/ne2000-isa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/net/ne2000-isa.c b/hw/net/ne2000-isa.c
index c660e58..0a14f6d 100644
--- a/hw/net/ne2000-isa.c
+++ b/hw/net/ne2000-isa.c
@@ -98,6 +98,7 @@ static void isa_ne2000_class_initfn(ObjectClass *klass, void *data)
dc->realize = isa_ne2000_realizefn;
dc->props = ne2000_isa_properties;
+ dc->vmsd = &vmstate_isa_ne2000;
set_bit(DEVICE_CATEGORY_NETWORK, dc->categories);
}