diff options
Diffstat (limited to 'sim/common/hw-device.h')
-rw-r--r-- | sim/common/hw-device.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sim/common/hw-device.h b/sim/common/hw-device.h index 558c41d..a787089 100644 --- a/sim/common/hw-device.h +++ b/sim/common/hw-device.h @@ -351,23 +351,6 @@ typedef int (hw_unit_size_to_attach_size_callback) -/* Memory allocator / de-allocator. - - All memory allocated using the below will be automatically - reclaimed when the device is deleted. - - A device implementation can either use these functions when - allocating memory or use malloc/zalloc/free an co-ordinate its own - garbage collection. */ - -#define HW_ZALLOC(me,type) (type*) hw_zalloc (me, sizeof (type)) -#define HW_MALLOC(me,type) (type*) hw_malloc (me, sizeof (type)) - -extern void *hw_zalloc (struct hw *me, unsigned long size); -extern void *hw_malloc (struct hw *me, unsigned long size); -extern void hw_free (struct hw *me, void *); -extern void hw_free_all (struct hw *me); - extern char *hw_strdup (struct hw *me, const char *str); |