From: Mike Frysinger Date: Thu, 19 Jan 2023 00:11:38 +0000 (-0500) Subject: sim: v850: reduce extra header inclusion to igen files X-Git-Tag: binutils-2_41~2201 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c743e42e2213abe73a63c847409fbf0ca3c8cd46;p=thirdparty%2Fbinutils-gdb.git sim: v850: reduce extra header inclusion to igen files Limit these extra header includes to only when specific igen files include us until we can move the includes to the igen fils directly. --- diff --git a/sim/v850/sim-main.h b/sim/v850/sim-main.h index b1753601904..eefe72cf52f 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" +#endif +#if defined(ENGINE_C) || defined(IDECODE_C) || defined(SEMANTICS_C) #include "v850-sim.h" +#endif #endif