+
+ * interp.c (POLL_QUIT_INTERVAL): Define. Used to tweak the
+ frequency at which the poll_quit callback is called.
+ (sim_resume): Use POLL_QUIT_INTERVAL instead of a
+ hard-coded value.
+
+
+ * interp.c (saved_state.asregs): Add new member pad_dummy.
+ (sim_store_register, sim_fetch_regsiter): Add 1 to rn for use
+ as index into saved_state.asints.
+
+
+ * interp.c (sim_open): set endianness based on the ABFD if a -E
+ option is not present and we have an ABFD.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+ * config.in: Ditto.
+
+
+ * acconfig.h: New file.
+ * configure.in: Reverted change of Apr 24; use sinclude again.
+
+Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+ * config.in: Ditto.
+
+
+ * configure.in: Don't call sinclude.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * interp.c (sim_fetch_register, sim_store_register): Pass in
+ length parameter. Return -1.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+ * config.in: Ditto.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * interp.c (sim_load): Pass lma_p and sim_write args to
+ sim_load_file.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * interp.c (sim_resume): poll_quit() at least once per call;
+ otherwise gdb can loop sim_resume() uninterruptably.
+
+Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * gencode.c (tab): Order instructions according to SH3 document.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+ * config.in: Ditto.
+
+
+ * interp.c (sim_kill): Delete.
+ (sim_create_inferior): Add ABFD argument.
+ (sim_load): Move setting of PC from here.
+ (sim_create_inferior): To here.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+ * config.in: Ditto.
+
+
+ * interp.c (sim_open): Add ABFD argument.
+
+
+ * interp.c (get_dr): Avoid SIGFPE by moving integers instead of
+ FP's around.
+ (set_dr): Ditto.
+
+
+ * interp.c (XD, SET_XD): Delete.
+ (XF, SET_XF, XD_TO_XF): Define, move around registers in either
+ FP bank.
+
+ * gencode.c (fmov): Update.
+
+
+ * interp.c (set_fpscr1): From J"orn Rennecke
+
+
+ * interp.c (special_address): New function.
+ (BUSERROR): Call it. Added parameters bits_written and data.
+ Changed all callers.
+ * gencode.c (tab): Fixed ocbwb and pref.
+
+
+ * interp.c (do_wdat, do_wdat): Fix bug in register number calculation.
+
+
+ * interp.c (sim_create_inferior): Clear registers each time an
+ inferior is started.
+
+
+ * interp.c (*FP, FP_OP, FP_CMP, FP_UNARY): Provide a hook for
+ when a host doesn't support IEEE FP.
+ (*DP): Provide alternative definition that supports 64bit floating
+ point.
+ (target_little_endian): Combine little_endian and little_endian_p.
+ (saved_state_type): Make fpscr and sr simple integers.
+ (SET_FPSCR, GET_FPSCR): Use macros to update fpscr register.
+ (set_fpscr1): New function. Handle swapping when PR / FR bits
+ changed. Call via *_FPSCR macro.
+ (SET_SR*, GET_SR*): Use macro's to access the SR bits - avoids
+ endian problems.
+
+ * gencode.c (tab): Update.
+
+
+ * gencode.c (main): Perform basic checks on tab entries.
+
+ * Makefile.in (gencode): Always compile with -g.
+
+
+ * gencode.c (gensim): Move ref checking code to before `stuff'.
+ For branches with delay slots refs were not being checked.
+
+ * interp.c (sim_resume): Use nia to specify the next instruction
+ address instead of overloading pc.
+ (C): Delete definiton - refer to cycles directly.
+ (SEXT12): New macro - sign extend a 12 bit quantity.
+ (Delay_Slot): Rename from SL.
+
+ * gencode.c (tab): Update/simplify.
+
+ * gencode.c (gensim): Better formatting of output code.
+ (gensim): Replace 10 with constant MAX_NR_STUFF- define as 15.
+ (tab): Sort alphabetically. Break `stuff' into multiple lines.
+
+
+ * gencode.c (braf, bsrf): Fix branch destination calculation to
+ be in accordance with the documentation.
+
+
+ * interp.c (init_pointers): Fix little endian test.
+
+
+ * interp.c (init_pointers): SH4 hardware is always WORDS_BIT_ENDIAN.
+ * gencode (fmov from/to memory): take endian_mismatch into account
+ for 32 bit moves too.
+
+
+ * gencode.c (swap.b): Fix treatment of high word.
+
+
+ * sh/gencode.c,
+ * interp.c: experimental SH4 support.
+ DFmode moves are probaly broken for target little endian.
+
+
+ * interp.c (sim_open): Add callback argument.
+ (sim_set_callbacks): Delete SIM_DESC argument.
+
+
+ * Makefile.in (SIM_EXTRA_CLEAN): Define.
+ (clean targets): Delete.
+ (sh-clean): New target.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * tconfig.in: New file.
+ * interp.c (sim_open): Handle missing arg to -E.
+
+
+ * Makefile.in: Add clean targets.
+
+
+ * interp.c: Include float.h and define SIGTRAP if _WIN32.
+ WIN32 -> _WIN32.
+ * (trap): Do do SYS_chown for _WIN32.
+
+
+ * interp.c (sim_resume): Fix argument to poll_quit.
+
+
+ * interp.c (sim_stop): New function.
+ (sim_resume): Use poll_quit for polling.
+
+
+ * Makefile.in (SIM_OBJS): Add sim-load.o.
+ * interp.c (target_byte_order): Delete.
+ (sim_kind, myname, little_endian_p): New static locals.
+ (init_pointers): Use little_endian_p instead of target_byte_order.
+ (sim_resume): Likewise.
+ (sim_open): Set sim_kind, myname. Set little_endian_p from -E arg.
+ (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
+ load file into simulator. Set start address from bfd.
+ (sim_create_inferior): Return SIM_RC. Delete arg start_address.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+ * config.in: Ditto.
+
+
+ * interp.c (sim_open): New arg `kind'.
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * interp.c (sim_do_command): Check for NULL command or empty
+ string and handle it the same as a "help" command. Use callback
+ to print error message for unrecognized commands. Replace
+ hardcoded tab in literal string with a \t. Other minor code
+ cleanup.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Re-generate.
+
+
+ * configure: Regenerate to track ../common/aclocal.m4 changes.
+
+
+ * interp.c (sim_open): New SIM_DESC result. Argument is now
+ in argv form.
+ (other sim_*): New SIM_DESC argument.
+
+
+ * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
+ COMMON_{PRE,POST}_CONFIG_FRAG instead.
+ * configure.in: sinclude ../common/aclocal.m4.
+ * configure: Regenerated.
+
+
+ * configure configure.in Makefile.in: Update to new configure
+ scheme which is more compatible with WinGDB builds.
+ * configure.in: Improve comment on how to run autoconf.
+ * configure: Re-run autoconf to get new ../common/aclocal.m4.
+ * Makefile.in: Use autoconf substitution to install common
+ makefile fragment.
+
+
+ * Makefile.in: Delete stuff moved to ../common/Make-common.in.
+ (SIM_OBJS,SIM_EXTRA_LIBS): Define.
+ * configure.in: Simplify using macros in ../common/aclocal.m4.
+ Call AC_CHECK_HEADERS(unistd.h).
+ * configure: Regenerated.
+ * config.in: New file.
+ * interp.c: #include "config.h". #include <unistd.h> if present.
+ (trap): Fetch errno value with callback->get_errno.
+
+
+ * interp.c: Don't include windows polling code if inside simluator.
+
+
+ * interp.c: Minor formatting improvements.
+ (saved_state_type): Add bank registers.
+ (bp_holder): New function, use to break on when debugging BUSERROR.
+ (BUSERROR): Call it if bus error occurs.
+
+
+ * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
+ INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
+ (docdir): Removed.
+ * configure.in (AC_PREREQ): autoconf 2.5 or higher.
+ (AC_PROG_INSTALL): Added.
+ * configure: Rebuilt.
+
+
+ * interp.c (saved_state_type): Add memstalls field.
+ (MA) Define macro.
+ (sim_resume): New local variable memstalls. Add it back in to
+ saved_state at the end of the function.
+ (sim_info): Report memstalls.
+ * gencode.c (tab): Add MA() to the execution string of all
+ instructions which access memory.
+
+
+ * configure: Regenerate with autoconf 2.7.
+
+
+ * gencode.c (mac.l): Don't abort GDB if executing mac.l
+ instruction (which is unimplemented). Generate a SIGTRAP (in the
+ simulated target) instead.
+
+
+ * gencode.c (tab): Added several sh3 opcodes.
+ (think): Added printonmatch for A_SSR and A_SPC.
+ * interp.c (SSR, SPC): Added definitions.
+ (saved_state_type): Added ssr and spc registers.
+
+
+ * gencode.c (tab): In shad/shld definitions, negate R[m] before
+ the and operation instead of after. For shad delete cast. For shld
+ use UR instead of R and delete cast.
+
+
+ * gencode.c (tab): Add explicit NaN support for ftrc instruction.
+
+
+ * interp.c: Make target_byte_order be extern to prevent SGI cc from
+ issuing warnings about the use of common symbols.
+
+
+ * gencode.c: jsr, bsr and bsrf actually save pc+4 in pr, and rts
+ actually uses pr+0.
+
+
+ * sh/interp.c (sim_stop_reason): Catch SIGQUIT and indicate
+ program exited.
+ (sim_get_quit_code): Delete.
+
+ * gencode.c (gensim): Indicate SIGILL instead of calling abort for
+ default case.
+
+
+ * interp.c (saved_state_type): Move FP registers to immediately
+ after SR.
+
+
+ * Makefile.in (BISON): Remove macro.
+
+
+ * interp.c (trap, case SYS_utime): Cast second arg of utime to
+ void * to avoid compiler error.
+
+ * interp.c (callback): Remove last change. It is initialized by
+ a sim_set_callbacks call.
+
+
+ * interp.c (callback): Initialize to default callback.
+
+
+ * run.c: Moved to ../common.
+ * interp.c (trap): Use gdb's callback interface.
+ * Makefile.in: Updated.
+
+
+ * Makefile.in (maintainer-clean): New synonym for realclean.
+
+
+ * run.c (sim_callback_write_stdout): New.
+ * interp.c (trap): Call sim_callback_write_stdout when needed.
+
+
+ * interp.c (trap): Remove useless code.
+
+
+ * syscall.h: Copy from newlib.
+
+
+ * gencode.c: Back up PC by 2 for breakpoints.
+ * interp.c: Move fp regs beyond pc/pr/etc to avoid confusing GDB,
+ which expect pc to immediatly follow regs[].
+
+
+ * configure.in: Define CC_FOR_BUILD. Don't call AC_PROG_INSTALL.
+ * configure: Rebuild.
+ * Makefile.in (INSTALL): Revert to using install.sh.
+ (INSTALL_PROGRAM, INSTALL_DATA): Set to $(INSTALL).
+ (INSTALL_XFORM, INSTALL_XFORM1): Restore.
+ (CC_FOR_BUILD): Restore.
+ (gencode): Build using $(CC_FOR_BUILD).
+ (install): Don't install in $(tooldir).
+
+
+ (Try to) Update to new bfd autoconf scheme.
+ * run.c: Don't include sysdep.h.
+ * Makefile.in (INSTALL{,_PROGRAM,_DATA}): Use autoconf computed value.
+ (CC, CFLAGS, AR, RANLIB): Likewise.
+ (HDEFINES, TDEFINES): Define.
+ (CC_FOR_BUILD): Delete.
+ (host_makefile_frag): Delete.
+ (Makefile): Don't depend on frags.
+ * configure.in (sysdep.h): Don't create symlink.
+ (host_makefile_frag, frags): Deleted.
+ (CC, CFLAGS, AR, RANLIB, INSTALL): Compute values.
+ * configure: Regenerated.
+
+
+ * interp.c: Include <math.h>.
+
+
+ * Makefile.in (run): Link in math library too.
+ * gencode.c (gensim): abort if an unknown opcode is encountered.
+ * interp.c (FPSCR, FPUL): Define.
+ (struct save_state): Add fields for floating point registers,
+ FPSCR and FPUL.
+ (sim_resume): Add 'F' for accessing floating point registers
+ in the save state structure.
+ * gencode.c: Add sh3e opcodes.
+ (gensym): Define a buffer for int<->fp conversions.
+
+
+ * interp.c (trap): Use trap vector 34 for host system interface.
+ * gencode.c: Add 34 to conditional which determines which traps
+ will be handled by simulator.
+
+
+ * run.c: Include <signal.h>. Define SIGQUIT if not defined.
+ (main): New variables reason and sigrc. After simulator exits,
+ check to see if it exited because of a signal, and if so, then
+ use the signal number as the return value.
+
+
+ * Update all FSF addresses except those in COPYING* files.
+
+Tue Jul 18 23:33:10 1995 Fred Fish <fnf@fishbowl>
+
+ * interp.c (trap): Only use SYS_execv if defined. Might be
+ implemented as execve(arg1,arg2,0), as with Unixware 2.0.
+ (sim_resume): In sbit initializer, cast shifted arg to unsigned
+ to avoid signed integer overflow.
+
+
+ * Makefile.in (clean): Remove run, libsim.a.
+ (distclean, mostlyclean, realclean): Remove Makefile and
+ autoconf files.
+
+ * sh.mt: Removed.
+
+ * Makefile.in, configure.in: converted to autoconf.
+ * configure: New file, generated with autconf 2.4.
+
+
+ * interp.c (sim_open): If argument supplied, interpret as
+ desired memory size.
+ (parse_and_set_memory_size): New function.
+ (sim_do_command): New function.
+
- * interp.c: (SYS_wait): Define as SYS_wait4 if available and
+ * interp.c (SYS_wait): Define as SYS_wait4 if available and
SYS_wait is not already defined (SunOS 4.1.3 for example).
(SYS_utime): Define as SYS_utimes if available and
SYS_utime is not already defined.
- * interp.c: (SIGBUS, SIGTERM): Define if not.
+ * interp.c (SIGBUS, SIGTERM): Define if not.
(sim_memory_size): default to 2^19 on PCs.
(sim_resume): Poll for quits on win32.