From a34abff813f4fdd5f289ea45de9e874e31e7edf3 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 4 Sep 1997 03:47:39 +0000 Subject: o Add modulo argument to sim_core_attach o Add sim-memopt module - memory option processing. --- sim/common/sim-basics.h | 39 +++++++++++---------------------------- 1 file changed, 11 insertions(+), 28 deletions(-) (limited to 'sim/common/sim-basics.h') diff --git a/sim/common/sim-basics.h b/sim/common/sim-basics.h index 149e6a0..e94075c 100644 --- a/sim/common/sim-basics.h +++ b/sim/common/sim-basics.h @@ -52,32 +52,6 @@ #endif - -/* Memory management with an allocator that clears memory before use. */ - -void *zalloc (unsigned long size); - -#define ZALLOC(TYPE) (TYPE*)zalloc(sizeof (TYPE)) - -void zfree(void*); - - -/* Turn VALUE into a string with commas. */ -char *sim_add_commas (char *, int, unsigned long); - - -/* Utilities for elapsed time reporting. */ - -/* Opaque type, known only inside sim_elapsed_time_foo fns. */ -typedef unsigned long SIM_ELAPSED_TIME; - -/* Get reference point for future call to sim_time_elapsed. */ -SIM_ELAPSED_TIME sim_elapsed_time_get (void); - -/* Elapsed time in milliseconds since START. */ -unsigned long sim_elapsed_time_since (SIM_ELAPSED_TIME start); - - /* Global types that code manipulates */ typedef struct _device device; @@ -97,14 +71,21 @@ typedef enum _access_type { /* Address attachement types */ -typedef enum _attach_type { +typedef enum _attach_type +{ attach_invalid, attach_raw_memory, attach_callback, - /* ... */ + /* attach_callback + 1, attach_callback + 2, ... */ } attach_type; +/* Memory transfer types */ +typedef enum _transfer_type { + read_transfer, + write_transfer, +} transfer_type; + /* Basic definitions - ordered so that nothing calls what comes after it */ @@ -124,6 +105,8 @@ typedef enum _attach_type { #include "sim-bits.h" #include "sim-endian.h" +#include "sim-utils.h" + /* Note: Only the simpler interfaces are defined here. More heavy weight objects, such as core and events, are defined in the more serious sim-base.h header. */ -- cgit v1.1