[2/2] sim: v850: reduce extra header inclusion to igen files

Message ID 20230119003429.13987-2-vapier@gentoo.org
State Committed
Series [1/2] sim: v850: drop redundant define |

Commit Message

Mike Frysinger Jan. 19, 2023, 12:34 a.m. UTC
  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 | 4 ++++
 1 file changed, 4 insertions(+)


diff --git a/sim/v850/sim-main.h b/sim/v850/sim-main.h
index b17536019044..eefe72cf52f4 100644
--- a/sim/v850/sim-main.h
+++ b/sim/v850/sim-main.h
@@ -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"
+#if defined(ENGINE_C) || defined(IDECODE_C) || defined(SEMANTICS_C)
 #include "v850-sim.h"