aboutsummaryrefslogtreecommitdiff
path: root/sim/microblaze
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-04-15 02:13:23 -0400
committerMike Frysinger <vapier@gentoo.org>2015-04-15 02:19:52 -0400
commit78e9aa70febc3985a2c88dbc0c7a87d214231c3d (patch)
tree1a0eb199746ae7edea7336a3a60b53daa42a7275 /sim/microblaze
parentf95f4ed2c4680fea68399691481b277ece11570e (diff)
downloadgdb-78e9aa70febc3985a2c88dbc0c7a87d214231c3d.zip
gdb-78e9aa70febc3985a2c88dbc0c7a87d214231c3d.tar.gz
gdb-78e9aa70febc3985a2c88dbc0c7a87d214231c3d.tar.bz2
sim: unify sim-cpu usage
Now that all the targets are utilizing CPU_PC_{FETCH,STORE}, and the cpu state is multicore, and the STATE_CPU defines match, we can move it all to the common code.
Diffstat (limited to 'sim/microblaze')
-rw-r--r--sim/microblaze/ChangeLog5
-rw-r--r--sim/microblaze/Makefile.in1
-rw-r--r--sim/microblaze/sim-main.h5
3 files changed, 5 insertions, 6 deletions
diff --git a/sim/microblaze/ChangeLog b/sim/microblaze/ChangeLog
index 7285fd7..9fd188c 100644
--- a/sim/microblaze/ChangeLog
+++ b/sim/microblaze/ChangeLog
@@ -1,3 +1,8 @@
+2015-04-15 Mike Frysinger <vapier@gentoo.org>
+
+ * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
+ * sim-main.h (STATE_CPU): Delete.
+
2015-04-13 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
diff --git a/sim/microblaze/Makefile.in b/sim/microblaze/Makefile.in
index 0085948..6c63129 100644
--- a/sim/microblaze/Makefile.in
+++ b/sim/microblaze/Makefile.in
@@ -20,7 +20,6 @@
SIM_OBJS = \
interp.o \
$(SIM_NEW_COMMON_OBJS) \
- sim-cpu.o \
sim-hload.o \
sim-reason.o \
sim-stop.o
diff --git a/sim/microblaze/sim-main.h b/sim/microblaze/sim-main.h
index cf1a5f9..68f8223 100644
--- a/sim/microblaze/sim-main.h
+++ b/sim/microblaze/sim-main.h
@@ -62,11 +62,6 @@ struct _sim_cpu {
struct sim_state {
sim_cpu *cpu[MAX_NR_PROCESSORS];
-#if (WITH_SMP)
-#define STATE_CPU(sd,n) ((sd)->cpu[n])
-#else
-#define STATE_CPU(sd,n) ((sd)->cpu[0])
-#endif
sim_state_base base;
};