sim: v850: reduce extra header inclusion to igen files
authorMike Frysinger <vapier@gentoo.org>
Thu, 19 Jan 2023 00:11:38 +0000 (19:11 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 19 Jan 2023 00:13:04 +0000 (19:13 -0500)
Limit these extra header includes to only when specific igen files
include us until we can move the includes to the igen fils directly.

sim/v850/sim-main.h

index b1753601904418eb90f725bb1711f902fe386538..eefe72cf52f4c896828dba83170ef209e9bb0239 100644 (file)
@@ -8,7 +8,11 @@
  * TODO: Move these includes to the igen files that need them.
  * This requires extending the igen syntax to support header includes.
  */
+#if defined(SEMANTICS_C) || defined(SUPPORT_C)
 #include "sim-signal.h"
+#endif
+#if defined(ENGINE_C) || defined(IDECODE_C) || defined(SEMANTICS_C)
 #include "v850-sim.h"
+#endif
 
 #endif