From c743e42e2213abe73a63c847409fbf0ca3c8cd46 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 18 Jan 2023 19:11:38 -0500 Subject: [PATCH] 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. --- 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 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 -- 2.30.2