From: Andrew Cagney Date: Mon, 25 May 1998 08:29:05 +0000 (+0000) Subject: Initialize/destory hw-properties within the hw-device. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=325a1ba87687ac0a8002b24a6a1215b933ae28bb;p=binutils-gdb.git Initialize/destory hw-properties within the hw-device. --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index ae5e2a3f9cb..96431f080c7 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,11 @@ +Mon May 25 18:21:38 1998 Andrew Cagney + + * hw-base.h (create_hw_property_data, delete_hw_property_data): + Declare. + * hw-base.c (hw_create, hw_delete): Call + * hw-properties.c (create_hw_property_data, + delete_hw_property_data): Define. + Mon May 25 17:40:46 1998 Andrew Cagney * hw-device.c, hw-properties.c: Include hw-base.h diff --git a/sim/common/hw-base.c b/sim/common/hw-base.c index 03aad9ba3b7..3adef18dfa8 100644 --- a/sim/common/hw-base.c +++ b/sim/common/hw-base.c @@ -418,6 +418,7 @@ hw_create (struct sim_state *sd, /* Attach dummy ports */ create_hw_alloc_data (hw); + create_hw_property_data (hw); create_hw_port_data (hw); create_hw_event_data (hw); @@ -473,6 +474,7 @@ hw_delete (struct hw *me) delete_hw_event_data (me); delete_hw_port_data (me); + delete_hw_property_data (me); /* now unlink us from the tree */ if (hw_parent (me)) diff --git a/sim/common/hw-base.h b/sim/common/hw-base.h index 1866d644651..f63807c2750 100644 --- a/sim/common/hw-base.h +++ b/sim/common/hw-base.h @@ -150,6 +150,14 @@ extern void delete_hw_port_data (struct hw *hw); +/* PROPERTIES */ + +extern void create_hw_property_data +(struct hw *hw); +extern void delete_hw_property_data +(struct hw *hw); + + /* EVENTS */ extern void create_hw_event_data diff --git a/sim/common/hw-properties.c b/sim/common/hw-properties.c index b46f2955404..ceb8d64b970 100644 --- a/sim/common/hw-properties.c +++ b/sim/common/hw-properties.c @@ -42,6 +42,17 @@ struct hw_property_data { unsigned sizeof_init_array; }; +void +create_hw_property_data (struct hw *me) +{ +} + +void +delete_hw_property_data (struct hw *me) +{ +} + + /* Device Properties: */ static struct hw_property_data *