aboutsummaryrefslogtreecommitdiff
path: root/sim/m68hc11
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-13 23:16:32 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-18 00:50:14 -0400
commit1fef66b0dcc09c9114100e782ea54594550e8fb7 (patch)
tree4c7e4fe60f287d3db75997d7affb763c0e77608f /sim/m68hc11
parent7039b291607e4d890679cb3fe401d37228992213 (diff)
downloadfsf-binutils-gdb-1fef66b0dcc09c9114100e782ea54594550e8fb7.zip
fsf-binutils-gdb-1fef66b0dcc09c9114100e782ea54594550e8fb7.tar.gz
fsf-binutils-gdb-1fef66b0dcc09c9114100e782ea54594550e8fb7.tar.bz2
sim: split sim-signal.h include out
The sim-basics.h is too big and includes too many things. This leads to some arch's sim-main.h having circular loop issues with defs, and makes it hard to separate out common objects from arch-specific defs. By splitting up sim-basics.h and killing off sim-main.h, it'll make it easier to separate out the two.
Diffstat (limited to 'sim/m68hc11')
-rw-r--r--sim/m68hc11/ChangeLog6
-rw-r--r--sim/m68hc11/dv-m68hc11eepr.c1
-rw-r--r--sim/m68hc11/interrupts.c1
-rw-r--r--sim/m68hc11/m68hc11_sim.c1
-rw-r--r--sim/m68hc11/sim-main.h2
5 files changed, 10 insertions, 1 deletions
diff --git a/sim/m68hc11/ChangeLog b/sim/m68hc11/ChangeLog
index 3b87798..dd9ccce 100644
--- a/sim/m68hc11/ChangeLog
+++ b/sim/m68hc11/ChangeLog
@@ -1,3 +1,9 @@
+2021-06-18 Mike Frysinger <vapier@gentoo.org>
+
+ * dv-m68hc11eepr.c: Include sim-signal.h.
+ * interrupts.c, m68hc11_sim.c: Likewise.
+ * sim-main.h: Delete sim-signal.h include.
+
2021-06-17 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Delete SIM_AC_OPTION_ENDIAN call.
diff --git a/sim/m68hc11/dv-m68hc11eepr.c b/sim/m68hc11/dv-m68hc11eepr.c
index 1e4cb5e..ac67bf9 100644
--- a/sim/m68hc11/dv-m68hc11eepr.c
+++ b/sim/m68hc11/dv-m68hc11eepr.c
@@ -25,6 +25,7 @@
#include "hw-main.h"
#include "sim-assert.h"
#include "sim-events.h"
+#include "sim-signal.h"
#include <unistd.h>
#include <fcntl.h>
diff --git a/sim/m68hc11/interrupts.c b/sim/m68hc11/interrupts.c
index 1adce50..e6a9d73 100644
--- a/sim/m68hc11/interrupts.c
+++ b/sim/m68hc11/interrupts.c
@@ -22,6 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "sim-main.h"
#include "sim-options.h"
+#include "sim-signal.h"
static const char *interrupt_names[] = {
"R1",
diff --git a/sim/m68hc11/m68hc11_sim.c b/sim/m68hc11/m68hc11_sim.c
index 3c619c1..bdf69e2 100644
--- a/sim/m68hc11/m68hc11_sim.c
+++ b/sim/m68hc11/m68hc11_sim.c
@@ -24,6 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "sim-assert.h"
#include "sim-module.h"
#include "sim-options.h"
+#include "sim-signal.h"
#include <stdlib.h>
diff --git a/sim/m68hc11/sim-main.h b/sim/m68hc11/sim-main.h
index 18a7426..a48d7f4 100644
--- a/sim/m68hc11/sim-main.h
+++ b/sim/m68hc11/sim-main.h
@@ -21,7 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#define _SIM_MAIN_H
#include "sim-basics.h"
-#include "sim-signal.h"
#include "sim-base.h"
#include "bfd.h"
@@ -30,6 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "sim/sim.h"
#include "opcode/m68hc11.h"
+#include "sim-signal.h"
#include "sim-types.h"
typedef unsigned8 uint8;