/* The common simulator framework for GDB, the GNU Debugger.
- Copyright 2002-2015 Free Software Foundation, Inc.
+ Copyright 2002-2020 Free Software Foundation, Inc.
Contributed by Andrew Cagney and Red Hat.
/* Basic configuration */
#ifdef HAVE_CONFIG_H
-#include "cconfig.h"
+#include "config.h"
#endif
/* Basic host dependant mess - hopefully <stdio.h> + <stdarg.h> will
#endif
+#ifndef min
+#define min(a, b) ((a) < (b) ? (a) : (b))
+#endif
+#ifndef max
+#define max(a, b) ((a) > (b) ? (a) : (b))
+#endif
+
/* Some versions of GCC include an attribute operator, define it */
/* Global types that code manipulates */
-typedef struct _device device;
struct hw;
struct _sim_fpu;
#include "sim-bits.h"
#include "sim-endian.h"
#include "sim-signal.h"
-#include "sim-arange.h"
#include "sim-utils.h"
+#include "libiberty.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. */