From 247fccdeb54a09a14287b2e829511803ad9d7cc1 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Mon, 25 Aug 1997 23:14:25 +0000 Subject: Add ABFD argument to sim_open call. Pass through to sim_config so that image properties such as endianness can be checked. More strongly document the expected behavour of each of the sim_* interfaces. Add default endian argument to simulator config macro SIM_AC_OPTION_ENDIAN. Use in sim_config. --- sim/erc32/ChangeLog | 22 ++++++++++++++++++++++ sim/erc32/interf.c | 13 ++++++++----- 2 files changed, 30 insertions(+), 5 deletions(-) (limited to 'sim/erc32') diff --git a/sim/erc32/ChangeLog b/sim/erc32/ChangeLog index 8814350..f9b8f67 100644 --- a/sim/erc32/ChangeLog +++ b/sim/erc32/ChangeLog @@ -1,3 +1,25 @@ +Mon Aug 25 17:50:22 1997 Andrew Cagney + + * configure: Regenerated to track ../common/aclocal.m4 changes. + * config.in: Ditto. + +Mon Aug 25 16:19:49 1997 Andrew Cagney + + * interf.c (sim_open): Add ABFD argument. Change ARGV to PARGV. + +Mon Jun 30 11:45:25 1997 Doug Evans + + * Makefile.in (install-sis): Change $(srcdir)/sis to sis. + +Wed May 28 09:46:13 1997 Andrew Cagney + + * interf.c (sim_set_callbacks): Drop SD argument - not applicable. + (sim_open): Add callback arg, save it. + +Thu Apr 24 00:39:51 1997 Doug Evans + + * configure: Regenerated to track ../common/aclocal.m4 changes. + Tue Apr 22 11:05:01 1997 Doug Evans * interf.c (sim_open): Undo patch to add -E support. diff --git a/sim/erc32/interf.c b/sim/erc32/interf.c index 2a3f331..0470558 100644 --- a/sim/erc32/interf.c +++ b/sim/erc32/interf.c @@ -115,7 +115,7 @@ run_sim(sregs, go, icount, dis) if (sis_verbose) (*sim_callback->printf_filtered) (sim_callback, "SW BP hit at %x\n", sregs->pc); - sim_stop(); + sim_halt(); restore_stdio(); clearerr(stdin); return (BPT_HIT); @@ -133,7 +133,7 @@ run_sim(sregs, go, icount, dis) go = icount = 0; } } - sim_stop(); + sim_halt(); sregs->tottime += time(NULL) - sregs->starttime; restore_stdio(); clearerr(stdin); @@ -155,8 +155,7 @@ run_sim(sregs, go, icount, dis) } void -sim_set_callbacks (sd, ptr) - SIM_DESC sd; +sim_set_callbacks (ptr) host_callback *ptr; { sim_callback = ptr; @@ -169,8 +168,10 @@ sim_size (memsize) } SIM_DESC -sim_open(kind, argv) +sim_open (kind, callback, abfd, argv) SIM_OPEN_KIND kind; + struct host_callback_struct *callback; + struct _bfd *abfd; char **argv; { @@ -180,6 +181,8 @@ sim_open(kind, argv) int grdl = 0; int freq = 15; + sim_callback = callback; + (*sim_callback->printf_filtered) (sim_callback, "\n SIS - SPARC instruction simulator %s\n", sis_version); (*sim_callback->printf_filtered) (sim_callback, " Bug-reports to Jiri Gaisler ESA/ESTEC (jgais@wd.estec.esa.nl)\n"); while (argv[argc]) -- cgit v1.1