aboutsummaryrefslogtreecommitdiff
path: root/sim/aarch64
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/aarch64
parent7039b291607e4d890679cb3fe401d37228992213 (diff)
downloadgdb-1fef66b0dcc09c9114100e782ea54594550e8fb7.zip
gdb-1fef66b0dcc09c9114100e782ea54594550e8fb7.tar.gz
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/aarch64')
-rw-r--r--sim/aarch64/ChangeLog5
-rw-r--r--sim/aarch64/cpustate.c1
-rw-r--r--sim/aarch64/memory.c1
-rw-r--r--sim/aarch64/simulator.c2
4 files changed, 9 insertions, 0 deletions
diff --git a/sim/aarch64/ChangeLog b/sim/aarch64/ChangeLog
index a522fcf..f5d1990 100644
--- a/sim/aarch64/ChangeLog
+++ b/sim/aarch64/ChangeLog
@@ -1,3 +1,8 @@
+2021-06-18 Mike Frysinger <vapier@gentoo.org>
+
+ * cpustate.c: Include sim-signal.h.
+ * memory.c, simulator.c: Likewise.
+
2021-06-17 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Delete SIM_AC_OPTION_ENDIAN call.
diff --git a/sim/aarch64/cpustate.c b/sim/aarch64/cpustate.c
index 6007d74..45a0862 100644
--- a/sim/aarch64/cpustate.c
+++ b/sim/aarch64/cpustate.c
@@ -26,6 +26,7 @@
#include <math.h>
#include "sim-main.h"
+#include "sim-signal.h"
#include "cpustate.h"
#include "simulator.h"
#include "libiberty.h"
diff --git a/sim/aarch64/memory.c b/sim/aarch64/memory.c
index 22caf61..cd2df33 100644
--- a/sim/aarch64/memory.c
+++ b/sim/aarch64/memory.c
@@ -33,6 +33,7 @@
#include "simulator.h"
#include "sim-core.h"
+#include "sim-signal.h"
static inline void
mem_error (sim_cpu *cpu, const char *message, uint64_t addr)
diff --git a/sim/aarch64/simulator.c b/sim/aarch64/simulator.c
index be1c298..0970ace 100644
--- a/sim/aarch64/simulator.c
+++ b/sim/aarch64/simulator.c
@@ -34,6 +34,8 @@
#include "cpustate.h"
#include "memory.h"
+#include "sim-signal.h"
+
#define NO_SP 0
#define SP_OK 1