Fix delete_hw_event_data() to free the scheduled events
[deliverable/binutils-gdb.git] / sim / common / hw-base.c
index a13ac64ba3b6e25dfe0f2bc3f9462203a8b23fc7..9c05da81159854297ad54352cb25bd9f973450d0 100644 (file)
@@ -510,10 +510,15 @@ hw_delete (struct hw *me)
   delete_hw_alloc_data (me);
 
   /* finally */
-  zfree (me->base_of_hw);
   zfree (me);
 }
 
+void
+set_hw_delete (struct hw *hw, hw_delete_callback method)
+{
+  hw->base_of_hw->to_delete = method;
+}
+
 
 /* Go through the devices various reg properties for those that
    specify attach addresses */
This page took 0.023919 seconds and 4 git commands to generate.