diff options
Diffstat (limited to 'sim/common/hw-base.c')
-rw-r--r-- | sim/common/hw-base.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sim/common/hw-base.c b/sim/common/hw-base.c index a13ac64ba3b..9c05da81159 100644 --- a/sim/common/hw-base.c +++ b/sim/common/hw-base.c @@ -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 */ |