summary refs log tree commit diff stats
path: root/hw/misc/eccmemctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/eccmemctl.c')
-rw-r--r--hw/misc/eccmemctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/eccmemctl.c b/hw/misc/eccmemctl.c
index 5a14a48999..0f68fbe1b6 100644
--- a/hw/misc/eccmemctl.c
+++ b/hw/misc/eccmemctl.c
@@ -335,7 +335,7 @@ static void ecc_class_init(ObjectClass *klass, void *data)
     DeviceClass *dc = DEVICE_CLASS(klass);
 
     dc->realize = ecc_realize;
-    dc->reset = ecc_reset;
+    device_class_set_legacy_reset(dc, ecc_reset);
     dc->vmsd = &vmstate_ecc;
     device_class_set_props(dc, ecc_properties);
 }