From: Peter Maydell Date: Sat, 7 Jun 2014 16:53:11 +0000 (+0100) Subject: hw/net/ne2000-isa: Register vmstate struct X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=89218c218f906b7384c2b365fc8bdc33b1452cbc;p=qemu.git 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 Signed-off-by: Michael Tokarev --- diff --git a/hw/net/ne2000-isa.c b/hw/net/ne2000-isa.c index c660e58335..0a14f6d1cd 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); }