summaryrefslogtreecommitdiffstats
path: root/sim/common/hw-base.h
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2000-11-25 09:18:52 +0000
committerStephane Carrez <stcarrez@nerim.fr>2000-11-25 09:18:52 +0000
commitce13044d7a335947b721e7e83730a9f7d97de8e0 (patch)
treed5540213d0bb6e9c9dd55214fda2ea6bca419de2 /sim/common/hw-base.h
parent7c070881e4a395f2e803aef0254508ee7a9dda99 (diff)
downloadppe42-binutils-ce13044d7a335947b721e7e83730a9f7d97de8e0.tar.gz
ppe42-binutils-ce13044d7a335947b721e7e83730a9f7d97de8e0.zip
Fix for sim/common hw_delete()/hw_tree_delete()
Diffstat (limited to 'sim/common/hw-base.h')
-rw-r--r--sim/common/hw-base.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sim/common/hw-base.h b/sim/common/hw-base.h
index d6452d1b38..57601034a7 100644
--- a/sim/common/hw-base.h
+++ b/sim/common/hw-base.h
@@ -54,8 +54,7 @@ void hw_delete
typedef void (hw_delete_callback)
(struct hw *me);
-#define set_hw_delete(hw, method) \
-((hw)->base_of_hw->to_delete = (method))
+extern void set_hw_delete(struct hw* hw, hw_delete_callback method);
/* ALLOC */
OpenPOWER on IntegriCloud