aboutsummaryrefslogtreecommitdiff
path: root/sim/common/hw-base.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/hw-base.c')
-rw-r--r--sim/common/hw-base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/common/hw-base.c b/sim/common/hw-base.c
index 25b5c23..03aad9b 100644
--- a/sim/common/hw-base.c
+++ b/sim/common/hw-base.c
@@ -417,6 +417,7 @@ hw_create (struct sim_state *sd,
}
/* Attach dummy ports */
+ create_hw_alloc_data (hw);
create_hw_port_data (hw);
create_hw_event_data (hw);
@@ -500,7 +501,7 @@ hw_delete (struct hw *me)
}
/* blow away all memory belonging to the device */
- hw_free_all (me);
+ delete_hw_alloc_data (me);
/* finally */
zfree (me->base_of_hw);