summary refs log tree commit diff stats
path: root/hw/misc/sifive_e_aon.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/sifive_e_aon.c')
-rw-r--r--hw/misc/sifive_e_aon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/sifive_e_aon.c b/hw/misc/sifive_e_aon.c
index 4656457d0b..f819fc10e6 100644
--- a/hw/misc/sifive_e_aon.c
+++ b/hw/misc/sifive_e_aon.c
@@ -299,7 +299,7 @@ static void sifive_e_aon_class_init(ObjectClass *oc, void *data)
 {
     DeviceClass *dc = DEVICE_CLASS(oc);
 
-    dc->reset = sifive_e_aon_reset;
+    device_class_set_legacy_reset(dc, sifive_e_aon_reset);
     device_class_set_props(dc, sifive_e_aon_properties);
 }