]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/m32r/sim-if.c
Update years in copyright notice for the GDB files.
[thirdparty/binutils-gdb.git] / sim / m32r / sim-if.c
index c6bfc33c25ccf952293719a1d173767c8c83ba7d..6a79019210777bdbd2b32a444e9b313ae7cccb18 100644 (file)
@@ -1,6 +1,5 @@
 /* Main simulator entry points specific to the M32R.
-   Copyright (C) 1996, 1997, 1998, 1999, 2003, 2007, 2008, 2009, 2010
-   Free Software Foundation, Inc.
+   Copyright (C) 1996-2013 Free Software Foundation, Inc.
    Contributed by Cygnus Support.
 
    This file is part of GDB, the GNU debugger.
@@ -256,51 +255,3 @@ print_m32r_misc_cpu (SIM_CPU *cpu, int verbose)
                                       CPU_M32R_MISC_PROFILE (cpu)->parallel_count));
     }
 }
-
-void
-sim_do_command (sd, cmd)
-     SIM_DESC sd;
-     char *cmd;
-{ 
-  char **argv;
-
-  if (cmd == NULL)
-    return;
-
-  argv = buildargv (cmd);
-
-  if (argv[0] != NULL
-      && strcasecmp (argv[0], "info") == 0
-      && argv[1] != NULL
-      && strncasecmp (argv[1], "reg", 3) == 0)
-    {
-      SI val;
-
-      /* We only support printing bbpsw,bbpc here as there is no equivalent
-        functionality in gdb.  */
-      if (argv[2] == NULL)
-       sim_io_eprintf (sd, "Missing register in `%s'\n", cmd);
-      else if (argv[3] != NULL)
-       sim_io_eprintf (sd, "Too many arguments in `%s'\n", cmd);
-      else if (strcasecmp (argv[2], "bbpsw") == 0)
-       {
-         val = m32rbf_h_cr_get (STATE_CPU (sd, 0), H_CR_BBPSW);
-         sim_io_printf (sd, "bbpsw 0x%x %d\n", val, val);
-       }
-      else if (strcasecmp (argv[2], "bbpc") == 0)
-       {
-         val = m32rbf_h_cr_get (STATE_CPU (sd, 0), H_CR_BBPC);
-         sim_io_printf (sd, "bbpc 0x%x %d\n", val, val);
-       }
-      else
-       sim_io_eprintf (sd, "Printing of register `%s' not supported with `sim info'\n",
-                       argv[2]);
-    }
-  else
-    {
-      if (sim_args_command (sd, cmd) != SIM_RC_OK)
-       sim_io_eprintf (sd, "Unknown sim command `%s'\n", cmd);
-    }
-
-  freeargv (argv);
-}