From: Mike Frysinger Date: Fri, 23 Dec 2022 05:32:29 +0000 (-0500) Subject: sim: cgen: move symcat.h include to where it's used X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3eaecff5137752dbe01b82efba36aad1d190fe7b;p=binutils-gdb.git sim: cgen: move symcat.h include to where it's used Move this out of the global sim-main.h and to the few files that actually use functions from it. Only the cgen ports were pulling this, so this makes cgen & non-cgen behave more the same. --- diff --git a/sim/common/cgen-mem.h b/sim/common/cgen-mem.h index 15ba8724b3b..b266107b4c7 100644 --- a/sim/common/cgen-mem.h +++ b/sim/common/cgen-mem.h @@ -20,6 +20,8 @@ along with this program. If not, see . */ #ifndef CGEN_MEM_H #define CGEN_MEM_H +#include "symcat.h" + /* TODO: This should get moved into sim-inline.h. */ #ifdef MEMOPS_DEFINE_INLINE #define MEMOPS_INLINE diff --git a/sim/common/sim-close.c b/sim/common/sim-close.c index 4e118a4d325..e21e6178006 100644 --- a/sim/common/sim-close.c +++ b/sim/common/sim-close.c @@ -21,6 +21,8 @@ /* This must come before any other includes. */ #include "defs.h" +#include "symcat.h" + #include "sim-main.h" #include "sim-module.h" #include "sim/sim.h" diff --git a/sim/common/sim-core.h b/sim/common/sim-core.h index df4e3e17a7b..256c552842c 100644 --- a/sim/common/sim-core.h +++ b/sim/common/sim-core.h @@ -23,6 +23,7 @@ #ifndef SIM_CORE_H #define SIM_CORE_H +#include "symcat.h" /* core signals (error conditions) Define SIM_CORE_SIGNAL to catch these signals - see sim-core.c for diff --git a/sim/common/sim-types.h b/sim/common/sim-types.h index b4dad0d957a..22ef343bce6 100644 --- a/sim/common/sim-types.h +++ b/sim/common/sim-types.h @@ -29,6 +29,8 @@ #include +#include "symcat.h" + /* INTEGER QUANTITIES: TYPES: diff --git a/sim/cris/sim-main.h b/sim/cris/sim-main.h index e680c37230d..63486fc87d7 100644 --- a/sim/cris/sim-main.h +++ b/sim/cris/sim-main.h @@ -29,7 +29,6 @@ along with this program. If not, see . */ one of -scache/-pbb. */ #define WITH_SCACHE_PBB 1 -#include "symcat.h" #include "sim-basics.h" #include "cris-desc.h" #include "cris-opc.h" diff --git a/sim/frv/sim-main.h b/sim/frv/sim-main.h index 44ef931270d..0d092e95579 100644 --- a/sim/frv/sim-main.h +++ b/sim/frv/sim-main.h @@ -27,7 +27,6 @@ along with this program. If not, see . */ one of -scache/-pbb. ???? */ #define WITH_SCACHE_PBB 0 -#include "symcat.h" #include "sim-basics.h" #include "frv-desc.h" #include diff --git a/sim/iq2000/sim-main.h b/sim/iq2000/sim-main.h index d920c34f98c..2398e30b9a1 100644 --- a/sim/iq2000/sim-main.h +++ b/sim/iq2000/sim-main.h @@ -9,7 +9,6 @@ one of -scache/-pbb. ???? */ #define WITH_SCACHE_PBB 1 -#include "symcat.h" #include "sim-basics.h" #include "iq2000-desc.h" #include "iq2000-opc.h" diff --git a/sim/lm32/sim-main.h b/sim/lm32/sim-main.h index 829b39dd36f..0e13aeb6758 100644 --- a/sim/lm32/sim-main.h +++ b/sim/lm32/sim-main.h @@ -25,7 +25,6 @@ #define WITH_SCACHE_PBB 1 -#include "symcat.h" #include "sim-basics.h" #include "lm32-desc.h" #include "lm32-opc.h" diff --git a/sim/m32r/m32r-sim.h b/sim/m32r/m32r-sim.h index 0c5103b0784..fc41c2146f7 100644 --- a/sim/m32r/m32r-sim.h +++ b/sim/m32r/m32r-sim.h @@ -20,6 +20,8 @@ #ifndef M32R_SIM_H #define M32R_SIM_H +#include "symcat.h" + /* GDB register numbers. */ #define PSW_REGNUM 16 #define CBR_REGNUM 17 diff --git a/sim/m32r/sim-main.h b/sim/m32r/sim-main.h index 81a6c68c01f..a5a745d15bc 100644 --- a/sim/m32r/sim-main.h +++ b/sim/m32r/sim-main.h @@ -8,7 +8,6 @@ one of -scache/-pbb. */ #define WITH_SCACHE_PBB 1 -#include "symcat.h" #include "sim-basics.h" #include "m32r-desc.h" #include "m32r-opc.h"