sim: erc32/h8300/m68hc11: trim unused functions
These funcs are only used with the old run.o, and these sims use nrun.o, so drop these stub funcs.
This commit is contained in:
parent
c4a6006b2e
commit
523ba8f92e
10 changed files with 21 additions and 85 deletions
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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().
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue