]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: cgen: move cgen-types.h include to cgen-defs.h
authorMike Frysinger <vapier@gentoo.org>
Fri, 23 Dec 2022 04:21:59 +0000 (23:21 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 23 Dec 2022 05:51:14 +0000 (00:51 -0500)
The cgen-types.h header sets up types that are needed by cgen-defs.h,
so move the include out of sim-main.h and to that header.  It might
be needed in other specific modules, but for now let's kick it out of
sim-main.h to make some progress.  Things still build with just this.

sim/bpf/sim-main.h
sim/common/cgen-defs.h
sim/cris/sim-main.h
sim/frv/sim-main.h
sim/iq2000/sim-main.h
sim/lm32/sim-main.h
sim/m32r/sim-main.h
sim/or1k/sim-main.h

index 0de4d4125ae4ca43c9928fc7caf4508929aba98a..6529b6eeda3bcdbf7753ac3fdf9d3f0db086ebcf 100644 (file)
@@ -20,7 +20,6 @@
 #define SIM_MAIN_H
 
 #include "sim-basics.h"
-#include "cgen-types.h"
 #include "bpf-desc.h"
 #include "bpf-opc.h"
 #include "arch.h"
index b9e0c06f39d1a2d25e1de8040e47f94914f5abd2..7bf1334296d2235027e3418fd4b13d37da74f279 100644 (file)
@@ -20,6 +20,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #ifndef CGEN_DEFS_H
 #define CGEN_DEFS_H
 
+#include "cgen-types.h"
+
 /* Compute number of longs required to hold N bits.  */
 #define HOST_LONGS_FOR_BITS(n) \
   (((n) + sizeof (long) * 8 - 1) / sizeof (long) * 8)
index e946489cfc20622231ab35d2480af0455b04c444..e680c37230d863297fe4783f4e1874ec8e0f8b5c 100644 (file)
@@ -31,7 +31,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "symcat.h"
 #include "sim-basics.h"
-#include "cgen-types.h"
 #include "cris-desc.h"
 #include "cris-opc.h"
 #include "arch.h"
index 2ad757180021cd181b203d069460be38f87e41be..44ef931270dad2818ae0ed40f5186742b540f4e1 100644 (file)
@@ -29,7 +29,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "symcat.h"
 #include "sim-basics.h"
-#include "cgen-types.h"
 #include "frv-desc.h"
 #include <stdbool.h>
 #include "frv-opc.h"
index ccc3fc877b9d6a74399a973081e542551664df86..d920c34f98c7521e9da2e52e183bf35dad6075fc 100644 (file)
@@ -11,7 +11,6 @@
 
 #include "symcat.h"
 #include "sim-basics.h"
-#include "cgen-types.h"
 #include "iq2000-desc.h"
 #include "iq2000-opc.h"
 #include "arch.h"
index 6ae757f089b5d18e3f9b1f17059710ec508c65f8..829b39dd36f3f1d04e7b0c023cecedeed438b47c 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "symcat.h"
 #include "sim-basics.h"
-#include "cgen-types.h"
 #include "lm32-desc.h"
 #include "lm32-opc.h"
 #include "arch.h"
index 6d69ecf52a00c093d7ba4a52ef82705b29e96d6f..81a6c68c01f71ddce17fd0af5578ca47266e9b23 100644 (file)
@@ -10,7 +10,6 @@
 
 #include "symcat.h"
 #include "sim-basics.h"
-#include "cgen-types.h"
 #include "m32r-desc.h"
 #include "m32r-opc.h"
 #include "arch.h"
index 1b6939dfbc980370098af59f7543aa5acf151d8d..24c8ddb0e31a5fca29b550fa7977d1dca5a7a014 100644 (file)
@@ -25,7 +25,6 @@
 #include "or1k-desc.h"
 #include "or1k-opc.h"
 #include "sim-basics.h"
-#include "cgen-types.h"
 #include "arch.h"
 #include "sim-base.h"
 #include "sim-fpu.h"