]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: erc32/h8300/m68hc11: trim unused functions
authorMike Frysinger <vapier@gentoo.org>
Mon, 23 Mar 2015 03:16:01 +0000 (23:16 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 24 Mar 2015 04:48:40 +0000 (00:48 -0400)
These funcs are only used with the old run.o, and these sims use nrun.o,
so drop these stub funcs.

sim/common/ChangeLog
sim/common/tconfig.h
sim/erc32/ChangeLog
sim/erc32/interf.c
sim/h8300/ChangeLog
sim/h8300/compile.c
sim/h8300/tconfig.h
sim/m68hc11/ChangeLog
sim/m68hc11/interp.c
sim/m68hc11/sim-main.h

index c474abebb8093dfd562d6c3b7771d1358648b1cf..85cf559afb9ecfb2370f5e36d74cf02f53a7c5d8 100644 (file)
@@ -1,3 +1,7 @@
+2015-03-24  Mike Frysinger  <vapier@gentoo.org>
+
+       * tconfig.h: Note SIM_HAVE_PROFILE is deprecated.
+
 2015-03-24  Mike Frysinger  <vapier@gentoo.org>
 
        * tconfig.h: Note SIM_HAVE_BIENDIAN is deprecated.
index 4df076ee0c5d26b2c9c253fea4795ee3ebff5c81..9cf9687abbf68d1017f7342a515f341ec876260d 100644 (file)
@@ -5,7 +5,8 @@
 /* Define this if the simulator supports profiling.
    See the mips simulator for an example.
    This enables the `-p foo' and `-s bar' options.
-   The target is required to provide sim_set_profile{,_size}.  */
+   The target is required to provide sim_set_profile{,_size}.
+   TODO: This is specific to the old run.o main.  */
 /* #define SIM_HAVE_PROFILE */
 
 /* Define this if the simulator uses an instruction cache.
index 3c4daa3c23992a3a204b9d862bdaa23feb4e8524..a1e6ed72d1c0d3a273317e859256ef3343346082 100644 (file)
@@ -1,3 +1,7 @@
+2015-03-24  Mike Frysinger  <vapier@gentoo.org>
+
+       * interf.c (sim_set_callbacks, sim_size, sim_trace): Delete.
+
 2015-03-17  Jiri Gaisler  <jiri@gaisler.se>
 
        * func.c (exec_cmd): Silence compiler warnings when calling system().
index 608b224f7471c530f020493017e95f51ac13a126..7d64ed6fa32aa4bf9475bbc5e6d7e57ba06812f6 100644 (file)
@@ -162,19 +162,6 @@ run_sim(sregs, icount, dis)
     return (TIME_OUT);
 }
 
-void
-sim_set_callbacks (ptr)
-     host_callback *ptr;
-{
-  sim_callback = ptr;
-}
-
-void
-sim_size (memsize)
-     int memsize;
-{
-}
-
 SIM_DESC
 sim_open (kind, callback, abfd, argv)
      SIM_OPEN_KIND kind;
@@ -468,15 +455,6 @@ sim_resume(SIM_DESC sd, int step, int siggnal)
     if (sis_gdb_break) flush_windows ();
 }
 
-int
-sim_trace (sd)
-     SIM_DESC sd;
-{
-  /* FIXME: unfinished */
-  sim_resume (sd, 0, 0);
-  return 1;
-}
-
 void
 sim_do_command(sd, cmd)
      SIM_DESC sd;
index 0ef2344d162dab52b6e7e5b969db782a033c009f..7fff0bd6110f455ba73c5e6619a074c1a36fcaad 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-24  Mike Frysinger  <vapier@gentoo.org>
+
+       * compile.c (sim_set_callbacks, sim_size, sim_trace): Delete.
+       * tconfig.h (SIM_HAVE_PROFILE): Delete.
+
 2015-03-16  Mike Frysinger  <vapier@gentoo.org>
 
        * config.in, configure: Regenerate.
index 4deba8281f648fa021ced78eb3e62bbb5f99d1ec..2574168e33bc7e6880cef92b4cf9669c50e0f193 100644 (file)
@@ -4594,15 +4594,6 @@ sim_resume (SIM_DESC sd, int step, int siggnal)
   h8_set_mask (sd, oldmask);
 }
 
-int
-sim_trace (SIM_DESC sd)
-{
-  /* FIXME: Unfinished.  */
-  (*sim_callback->printf_filtered) (sim_callback,
-                                   "sim_trace: trace not supported.\n");
-  return 1;    /* Done.  */
-}
-
 int
 sim_write (SIM_DESC sd, SIM_ADDR addr, const unsigned char *buffer, int size)
 {
@@ -4790,14 +4781,6 @@ sim_stop_reason (SIM_DESC sd, enum sim_stop *reason, int *sigrc)
   sim_engine_get_run_state (sd, reason, sigrc);
 }
 
-/* FIXME: Rename to sim_set_mem_size.  */
-
-void
-sim_size (int n)
-{
-  /* Memory size is fixed.  */
-}
-
 static void
 set_simcache_size (SIM_DESC sd, int n)
 {
@@ -5094,9 +5077,3 @@ sim_create_inferior (SIM_DESC sd, struct bfd *abfd, char **argv, char **env)
   
   return SIM_RC_OK;
 }
-
-void
-sim_set_callbacks (struct host_callback_struct *ptr)
-{
-  sim_callback = ptr;
-}
index d9599dbcd7a66de8c92d5cc62afca3601881eb62..5a683f09151f01d3005208df12480373843bb1c8 100644 (file)
@@ -1,11 +1,5 @@
 /* h8300 target configuration file.  */
 
-/* Define this if the simulator supports profiling.
-   See the mips simulator for an example.
-   This enables the `-p foo' and `-s bar' options.
-   The target is required to provide sim_set_profile{,_size}.  */
-/* #define SIM_HAVE_PROFILE */
-
 /* Define this if the simulator uses an instruction cache.
    See the h8/300 simulator for an example.
    This enables the `-c size' option to set the size of the cache.
index fc18f38e452753c36acd3ccfe7b3f11e5750051a..e311bc96bfa3c13179ddda3159f601d2ae7220cd 100644 (file)
@@ -1,3 +1,9 @@
+2015-03-24  Mike Frysinger  <vapier@gentoo.org>
+
+       * compile.c (sim_set_profile, sim_set_profile_size, sim_set_callbacks,
+       sim_size, sim_trace): Delete.
+       * sim-main.h (sim_set_profile, sim_set_profile_size): Delete.
+
 2015-03-24  Mike Frysinger  <vapier@gentoo.org>
 
        * configure: Regenerate.
index b787eb1e1b5a26727f57043514c81826890a7939..77aebcb2305bca6cdfdd6e50e3822383ce068e19 100644 (file)
@@ -502,16 +502,6 @@ sim_close (SIM_DESC sd, int quitting)
   return;
 }
 
-void
-sim_set_profile (int n)
-{
-}
-
-void
-sim_set_profile_size (int n)
-{
-}
-
 /* Generic implementation of sim_engine_run that works within the
    sim_engine setjmp/longjmp framework. */
 
@@ -537,13 +527,6 @@ sim_engine_run (SIM_DESC sd,
     }
 }
 
-int
-sim_trace (SIM_DESC sd)
-{
-  sim_resume (sd, 0, 0);
-  return 1;
-}
-
 void
 sim_info (SIM_DESC sd, int verbose)
 {
@@ -573,14 +556,6 @@ sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
   return sim_prepare_for_program (sd, abfd);
 }
 
-
-void
-sim_set_callbacks (host_callback *p)
-{
-  /*  m6811_callback = p; */
-}
-
-
 int
 sim_fetch_register (SIM_DESC sd, int rn, unsigned char *memory, int length)
 {
@@ -704,12 +679,6 @@ sim_store_register (SIM_DESC sd, int rn, unsigned char *memory, int length)
   return 2;
 }
 
-void
-sim_size (int s)
-{
-  ;
-}
-
 /* Halt the simulator after just one instruction */
 
 static void
index f686ed7dec9e1fff25a778ea474c1c70446f9043..5dfc1bfdf5308a98d6f7452dc6a4b98b679a3b44 100644 (file)
@@ -587,8 +587,6 @@ struct sim_state {
   sim_state_base base;
 };
 
-extern void sim_set_profile (int n);
-extern void sim_set_profile_size (int n);
 extern void sim_board_reset (SIM_DESC sd);
 
 #define PRINT_TIME  0x01