sim: delete dead current_state globals
authorMike Frysinger <vapier@gentoo.org>
Sat, 2 Jan 2016 14:23:06 +0000 (09:23 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 2 Jan 2016 15:27:56 +0000 (10:27 -0500)
commitd47f5b30d8481272e9480118bdcb283690070349
tree589f77d62110d7456496fde754036fa24c89369d
parent32273fe68f3d1288b2eef6b96beda3732d0ac25e
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.
19 files changed:
sim/common/ChangeLog
sim/common/cgen-defs.h
sim/common/sim-base.h
sim/common/sim-utils.c
sim/cris/ChangeLog
sim/cris/sim-if.c
sim/frv/ChangeLog
sim/frv/reset.c
sim/frv/sim-if.c
sim/iq2000/ChangeLog
sim/iq2000/sim-if.c
sim/lm32/ChangeLog
sim/lm32/sim-if.c
sim/m32r/ChangeLog
sim/m32r/sim-if.c
sim/mips/ChangeLog
sim/mips/dv-tx3904cpu.c
sim/sh64/ChangeLog
sim/sh64/sim-if.c