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.
This commit is contained in:
Mike Frysinger
2016-01-02 09:23:06 -05:00
parent 32273fe68f
commit d47f5b30d8
19 changed files with 42 additions and 86 deletions

View File

@ -140,12 +140,6 @@ typedef enum {
/* Simulator state. */
/* Records simulator descriptor so utilities like @cpu@_dump_regs can be
called from gdb. */
extern SIM_DESC current_state;
/* Simulator state. */
/* CGEN_STATE contains additional state information not present in
sim_state_base. */