]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/iq2000/sim-if.c
sim: delete dead current_state globals
[thirdparty/binutils-gdb.git] / sim / iq2000 / sim-if.c
index b5240f089b7fa1856db79df8324d83797cde1706..d21ec1b9abe7a4ce4ff2dc6c45fc8a618f435c5a 100644 (file)
@@ -26,10 +26,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #include "bfd.h"
 
 static void free_state (SIM_DESC);
-
-/* Records simulator descriptor so utilities like iq2000_dump_regs can be
-   called from gdb.  */
-SIM_DESC current_state;
 \f
 /* Cover function for sim_cgen_disassemble_insn.  */
 
@@ -149,10 +145,6 @@ sim_open (kind, callback, abfd, argv)
      Must be done after iq2000_cgen_cpu_open.  */
   cgen_init (sd);
 
-  /* Store in a global so things like sparc32_dump_regs can be invoked
-     from the gdb command line.  */
-  current_state = sd;
-
   return sd;
 }
 \f