aboutsummaryrefslogtreecommitdiff
path: root/sim/mips
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-01-02 09:23:06 -0500
committerMike Frysinger <vapier@gentoo.org>2016-01-02 10:27:56 -0500
commitd47f5b30d8481272e9480118bdcb283690070349 (patch)
tree589f77d62110d7456496fde754036fa24c89369d /sim/mips
parent32273fe68f3d1288b2eef6b96beda3732d0ac25e (diff)
downloadgdb-d47f5b30d8481272e9480118bdcb283690070349.zip
gdb-d47f5b30d8481272e9480118bdcb283690070349.tar.gz
gdb-d47f5b30d8481272e9480118bdcb283690070349.tar.bz2
sim: delete dead current_state globals
The global current_state handle to the current simulator state is a design idea that was half implemented, but never really cleaned up. The point was to have a global variable pointing to the state so that funcs could more quickly & easily access the state anywhere. We've instead moved in the direction of passing state around everywhere and don't have any intention of moving back. I also can't find any references to gdb using this variable, or to cgen related "dump_regs" functions, both of which were used in the comments related to this code.
Diffstat (limited to 'sim/mips')
-rw-r--r--sim/mips/ChangeLog4
-rw-r--r--sim/mips/dv-tx3904cpu.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog
index 8b2e23f..a77058e 100644
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -1,3 +1,7 @@
+2016-01-02 Mike Frysinger <vapier@gentoo.org>
+
+ * dv-tx3904cpu.c (CPU, SD): Delete.
+
2015-12-30 Mike Frysinger <vapier@gentoo.org>
* wrapper.c (mips_reg_store, mips_reg_fetch): Define.
diff --git a/sim/mips/dv-tx3904cpu.c b/sim/mips/dv-tx3904cpu.c
index 1c5b70d..da28a49 100644
--- a/sim/mips/dv-tx3904cpu.c
+++ b/sim/mips/dv-tx3904cpu.c
@@ -143,9 +143,6 @@ deliver_tx3904cpu_interrupt (struct hw *me,
sim_cpu *cpu = STATE_CPU (sd, 0); /* NB: fix CPU 0. */
address_word cia = CPU_PC_GET (cpu);
-#define CPU cpu
-#define SD current_state
-
if (controller->pending_reset)
{
controller->pending_reset = 0;
@@ -190,8 +187,6 @@ deliver_tx3904cpu_interrupt (struct hw *me,
}
} /* interrupt set */
}
-#undef CPU cpu
-#undef SD current_state
}