From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id 78D343858005; Fri, 23 Dec 2022 05:51:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 78D343858005 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1671774714; bh=k8teiN2PA1Jns2BXOLABThGnUmodRFl5kwU7qEwTuGc=; h=From:To:Subject:Date:From; b=OyPDtzmfZf/t19lgetsKWGU/AtvvlfqghxazNq1fFcjmEjnFlhRj2R5GvvXT3g2qC fTpxefOPZclLBNPIMgSU+Q5QccF7JHIWG4uN6kA+gZPNL8mKYaJ/40HxHf6QBm8crD WFvJOT7ZAOuNpBZM6foNGQDF//FcSynI79ks3SYw= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim: cgen: move cgen-types.h include to cgen-defs.h X-Act-Checkin: binutils-gdb X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: a4c4d804d6604033a6e9bdb0d6a08c7332db84ef X-Git-Newrev: d9e217e950b01fac7948d2d326e866a9f2d1dcb8 Message-Id: <20221223055154.78D343858005@sourceware.org> Date: Fri, 23 Dec 2022 05:51:54 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dd9e217e950b0= 1fac7948d2d326e866a9f2d1dcb8 commit d9e217e950b01fac7948d2d326e866a9f2d1dcb8 Author: Mike Frysinger Date: Thu Dec 22 23:21:59 2022 -0500 sim: cgen: move cgen-types.h include to cgen-defs.h =20 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. Diff: --- sim/bpf/sim-main.h | 1 - sim/common/cgen-defs.h | 2 ++ sim/cris/sim-main.h | 1 - sim/frv/sim-main.h | 1 - sim/iq2000/sim-main.h | 1 - sim/lm32/sim-main.h | 1 - sim/m32r/sim-main.h | 1 - sim/or1k/sim-main.h | 1 - 8 files changed, 2 insertions(+), 7 deletions(-) diff --git a/sim/bpf/sim-main.h b/sim/bpf/sim-main.h index 0de4d4125ae..6529b6eeda3 100644 --- a/sim/bpf/sim-main.h +++ b/sim/bpf/sim-main.h @@ -20,7 +20,6 @@ #define SIM_MAIN_H =20 #include "sim-basics.h" -#include "cgen-types.h" #include "bpf-desc.h" #include "bpf-opc.h" #include "arch.h" diff --git a/sim/common/cgen-defs.h b/sim/common/cgen-defs.h index b9e0c06f39d..7bf1334296d 100644 --- a/sim/common/cgen-defs.h +++ b/sim/common/cgen-defs.h @@ -20,6 +20,8 @@ along with this program. If not, see . */ #ifndef CGEN_DEFS_H #define CGEN_DEFS_H =20 +#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) diff --git a/sim/cris/sim-main.h b/sim/cris/sim-main.h index e946489cfc2..e680c37230d 100644 --- a/sim/cris/sim-main.h +++ b/sim/cris/sim-main.h @@ -31,7 +31,6 @@ along with this program. If not, see . */ =20 #include "symcat.h" #include "sim-basics.h" -#include "cgen-types.h" #include "cris-desc.h" #include "cris-opc.h" #include "arch.h" diff --git a/sim/frv/sim-main.h b/sim/frv/sim-main.h index 2ad75718002..44ef931270d 100644 --- a/sim/frv/sim-main.h +++ b/sim/frv/sim-main.h @@ -29,7 +29,6 @@ along with this program. If not, see . */ =20 #include "symcat.h" #include "sim-basics.h" -#include "cgen-types.h" #include "frv-desc.h" #include #include "frv-opc.h" diff --git a/sim/iq2000/sim-main.h b/sim/iq2000/sim-main.h index ccc3fc877b9..d920c34f98c 100644 --- a/sim/iq2000/sim-main.h +++ b/sim/iq2000/sim-main.h @@ -11,7 +11,6 @@ =20 #include "symcat.h" #include "sim-basics.h" -#include "cgen-types.h" #include "iq2000-desc.h" #include "iq2000-opc.h" #include "arch.h" diff --git a/sim/lm32/sim-main.h b/sim/lm32/sim-main.h index 6ae757f089b..829b39dd36f 100644 --- a/sim/lm32/sim-main.h +++ b/sim/lm32/sim-main.h @@ -27,7 +27,6 @@ =20 #include "symcat.h" #include "sim-basics.h" -#include "cgen-types.h" #include "lm32-desc.h" #include "lm32-opc.h" #include "arch.h" diff --git a/sim/m32r/sim-main.h b/sim/m32r/sim-main.h index 6d69ecf52a0..81a6c68c01f 100644 --- a/sim/m32r/sim-main.h +++ b/sim/m32r/sim-main.h @@ -10,7 +10,6 @@ =20 #include "symcat.h" #include "sim-basics.h" -#include "cgen-types.h" #include "m32r-desc.h" #include "m32r-opc.h" #include "arch.h" diff --git a/sim/or1k/sim-main.h b/sim/or1k/sim-main.h index 1b6939dfbc9..24c8ddb0e31 100644 --- a/sim/or1k/sim-main.h +++ b/sim/or1k/sim-main.h @@ -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"