aboutsummaryrefslogtreecommitdiff
path: root/hw/core/resettable.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/core/resettable.c')
-rw-r--r--hw/core/resettable.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/core/resettable.c b/hw/core/resettable.c
index 6e0b0f492f..96a99ce39e 100644
--- a/hw/core/resettable.c
+++ b/hw/core/resettable.c
@@ -264,6 +264,11 @@ void resettable_change_parent(Object *obj, Object *newp, Object *oldp)
}
}
+void resettable_cold_reset_fn(void *opaque)
+{
+ resettable_reset((Object *) opaque, RESET_TYPE_COLD);
+}
+
void resettable_class_set_parent_phases(ResettableClass *rc,
ResettableEnterPhase enter,
ResettableHoldPhase hold,