summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sim/mn10300/dv-mn103cpu.c4
-rw-r--r--sim/mn10300/interp.c3
-rw-r--r--sim/mn10300/op_utils.c2
-rw-r--r--sim/mn10300/sim-main.h8
4 files changed, 17 insertions, 0 deletions
diff --git a/sim/mn10300/dv-mn103cpu.c b/sim/mn10300/dv-mn103cpu.c
index ad8669d3efa..55bbe253a63 100644
--- a/sim/mn10300/dv-mn103cpu.c
+++ b/sim/mn10300/dv-mn103cpu.c
@@ -22,8 +22,12 @@
#include "defs.h"
#include "sim-main.h"
+#include "sim-fpu.h"
+#include "sim-signal.h"
#include "hw-main.h"
+#include "mn10300-sim.h"
+
/* DEVICE
diff --git a/sim/mn10300/interp.c b/sim/mn10300/interp.c
index 07c3b8c900f..91b742c7276 100644
--- a/sim/mn10300/interp.c
+++ b/sim/mn10300/interp.c
@@ -7,8 +7,11 @@
#include "bfd.h"
#include "sim-assert.h"
+#include "sim-fpu.h"
#include "sim-signal.h"
+#include "mn10300-sim.h"
+
#include <stdlib.h>
#include <string.h>
diff --git a/sim/mn10300/op_utils.c b/sim/mn10300/op_utils.c
index 7e035f43259..5425537dc1d 100644
--- a/sim/mn10300/op_utils.c
+++ b/sim/mn10300/op_utils.c
@@ -11,9 +11,11 @@
#include "sim/callback.h"
#include "sim-main.h"
+#include "sim-fpu.h"
#include "sim-signal.h"
#include "sim-syscall.h"
+#include "mn10300-sim.h"
#define REG0(X) ((X) & 0x3)
#define REG1(X) (((X) & 0xc) >> 2)
diff --git a/sim/mn10300/sim-main.h b/sim/mn10300/sim-main.h
index 2187e794adb..d08b13dc531 100644
--- a/sim/mn10300/sim-main.h
+++ b/sim/mn10300/sim-main.h
@@ -34,11 +34,19 @@ mn10300_core_signal ((SD), (CPU), (CIA), (MAP), (NR_BYTES), (ADDR), (TRANSFER),
/**
* TODO: Move these includes to the igen files that need them.
* This requires extending the igen syntax to support header includes.
+ *
+ * For now only include them in the igen generated support.c,
+ * semantics.c, idecode.c and engine.c files.
*/
+#if defined(SUPPORT_C) \
+ || defined(SEMANTICS_C) \
+ || defined(IDECODE_C) \
+ || defined(ENGINE_C)
#include "sim-fpu.h"
#include "sim-signal.h"
#include "mn10300-sim.h"
+#endif
extern SIM_CORE_SIGNAL_FN mn10300_core_signal;