#endif
-
/* Some versions of GCC include an attribute operator, define it */
#if !defined (__attribute__)
-#if (!defined(__GNUC__) \
- || (__GNUC__ < 2) \
- || (__GNUC__ == 2 && __GNUC_MINOR__ < 6))
+#if (!defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 6))
#define __attribute__(arg)
#endif
#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*);
-
-
-
/* Global types that code manipulates */
typedef struct _device device;
/* 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 */
#include "sim-config.h"
-#include "sim-base.h"
-
#include "sim-inline.h"
#include "sim-types.h"
#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. */
+
#endif /* _SIM_BASICS_H_ */