Commit Graph

137 Commits

Author SHA1 Message Date
Michael Meissner
83d96c6e3e Add support to count the number of instructions issued. 1995-10-02 18:19:17 +00:00
Michael Meissner
8eab189bce Add switch processing in gdb. 1995-10-02 15:47:57 +00:00
Michael Meissner
d8d46596e6 Match standalone printf_filtered to gdb prototype. 1995-10-01 17:54:45 +00:00
Michael Meissner
9d3b470184 Fix prototype. 1995-10-01 00:48:15 +00:00
Steve Chamberlain
6018179603 keep common directory. 1995-09-30 00:44:21 +00:00
Steve Chamberlain
7bf1bbbc92 Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
* run.c, run.1: From sh directory.
1995-09-28 22:42:28 +00:00
Steve Chamberlain
c966ea3a50 Thu Sep 28 15:26:59 1995 steve chamberlain <sac@slash.cygnus.com>
* run.c: Moved to ../common.
	* interp.c (trap): Use gdb's callback interface.
	* Makefile.in: Updated.
1995-09-28 22:39:36 +00:00
Michael Meissner
8b89f5aa47 Default stack creation; fixup last change. 1995-09-21 22:50:23 +00:00
Michael Meissner
4f35cbffa6 enhance OEA behavior. 1995-09-21 22:23:56 +00:00
Ian Lance Taylor
602677ad44 add maintainer-clean Makefile targets 1995-09-20 17:38:13 +00:00
Steve Chamberlain
5897a29e88 * run.c (sim_callback_write_stdout): New.
* interp.c (trap): Call sim_callback_write_stdout when needed.
1995-09-20 16:52:52 +00:00
Steve Chamberlain
e9aea0b33e Mon Sep 18 18:42:27 1995 steve chamberlain <sac@slash.cygnus.com>
* interp.c (trap): Remove useless code.

Fri Sep 15 19:30:05 1995  steve chamberlain  <sac@slash.cygnus.com>

	* syscall.h: Copy from newlib.
1995-09-19 01:47:35 +00:00
Stu Grossman
95295b419c * 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[].
1995-09-15 02:36:10 +00:00
Michael Tiemann
0384d2e3df Sun Sep 10 10:23:56 1995 Michael Tiemann <tiemann@axon.cygnus.com>
* registers.c (register_description): Add gdb synonyms for cr
	(cnd) and msr (ps).
1995-09-10 17:33:54 +00:00
Michael Meissner
d8f994b2dc fix typo. 1995-09-10 03:44:58 +00:00
Michael Meissner
8b3797aa18 Update to new config scheme 1995-09-08 23:56:38 +00:00
Ian Lance Taylor
fe7ec1d0a2 * Makefile.in (install): Don't install in $(tooldir). 1995-09-08 18:33:23 +00:00
Ian Lance Taylor
21852576ff * 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).
1995-09-08 18:32:37 +00:00
Ian Lance Taylor
c64dfabd07 * configure.in: Remove 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.
	(mostlyclean): Make the same as clean, not distclean.
	(clean): Remove config.log.
	(install): Don't install in $(tooldir).
1995-09-08 18:29:22 +00:00
Ian Lance Taylor
b6de8f6a08 * configure.in: Convert to use autoconf.
* configure: New file, built by autoconf.
	* acconfig.h: New file.
	* config.in: New file, built by autoheader.
	* Makefile.in: Various changes for new configure script.  Also:
	(INSTALL): Go up two levels, not one.
	(ALLOCA, MALLOC, OPCODES): Remove.
	(gencode): Use $(CC_FOR_BUILD).
	(case.o): Remove.
	(run.o, interp.o): Depend upon config.h.
	* interp.c: Include "config.h".  Don't include "sysdep.h".
	Include <stdlib.h>, <time.h>, and <unistd.h> if they exist.
	* run.c: Include "config.h".  Don't include "sysdep.h".  Include
	<stdlib.h> if it exists.  Include "getopt.h".  Declare printf if
	necessary.
1995-09-08 18:07:02 +00:00
Ian Lance Taylor
247d4fb1af mention new config.in file 1995-09-08 16:34:48 +00:00
Ian Lance Taylor
0743b4ac29 * configure.in: Call AC_CONFIG_HEADER. Don't try to use
bfd/hosts/*.h file or bfd/config/*.mh file.  Call AC_PROG_CC and
	AC_PROG_RANLIB.  Substitute in values for CFLAGS, HDEFINES and AR.
	Call AC_CHECK_HEADERS for stdlib.h and time.h.  Touch stamp.h if
	creating config.h.
	* configure: Rebuild.
	* Makefile.in (AR): Define as @AR@.
	(CC): New variable, defined as @CC@.
	(CFLAGS): Define as @CFLAGS@.
	(RANLIB): Define as @RANLIB@.
	(HDEFINES, TDEFINES): New variables.
	(@host_makefile_frag@): Remove.
	(compile.o, run.o): Depend upon config.h.
	(mostlyclean): Make the same as clean, not distclean.
	(clean): Remove config.log.
	(distclean): Remove config.h and stamp-h.
	(Makefile): Don't depend upon @frags@.  Just rebuild Makefile when
	invoking config.status.
	(config.h, stamp-h): New targets.
	* compile.c: Include "config.h".  Don't include <sys/times.h>.
	Include <time.h> and <stdlib.h> if they exist.  Don't include
	"sysdep.h".
	(get_now): Remove unused local b.
	* run.c: Include "config.h".  Include <stdlib.h> if it exists.
	Don't include "sysdep.h".
	* writecode.c: Don't include "bfd.h" or "sysdep.h".  Include
	<stdio.h>.
1995-09-08 16:26:41 +00:00
Michael Meissner
4f965b817e Do not include sysdep.h, bfd no longer provides it 1995-09-08 13:59:49 +00:00
J.T. Conklin
c632873c27 (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.
1995-09-07 22:07:47 +00:00
David Edelsohn
24691f5599 (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.
1995-09-07 19:08:15 +00:00
Michael Meissner
c464ba6669 Fix brk system call. 1995-09-06 14:00:16 +00:00
Jeff Law
1fc210a78b * Makefile.in (run): Link in math library too. 1995-08-31 04:22:57 +00:00
Jeff Law
c1bce9f662 * 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.

First cut at simulating sh3e instructions.  Basic stuff should work;
instructions using fpul and fpscr are completely untested...  Sanitized
away for now (sh3e).
1995-08-31 04:21:32 +00:00
Jeff Law
2ca7c3c417 * gencode.c (gensim): abort if an unknown opcode is encountered. 1995-08-31 04:07:00 +00:00
Michael Meissner
13ba8b6927 Only build PowerPC simulator if target is powerpc*-*-eabisim 1995-08-25 16:05:32 +00:00
Michael Meissner
cb7a68927a Add PowerPC simulator from Andrew Cagney <cagney@highland.com.au> 1995-08-23 21:06:36 +00:00
Jim Wilson
f2d1b56f40 For Sega/Hitachi, when simulator exits, check to see if it was because
of a signal.
1995-08-12 01:03:16 +00:00
Fred Fish
605b7789b1 Document FSF address updating of all files with FSF addresses,
except for the COPYING* files.
1995-08-03 18:42:27 +00:00
Fred Fish
07edac884e Remove Sanitize reference. 1995-08-03 17:07:55 +00:00
Fred Fish
6c9638b444 Update FSF address. 1995-08-02 03:41:12 +00:00
J.T. Conklin
80c5739dbe forgot to check this in 1995-07-05 23:51:30 +00:00
J.T. Conklin
982744ff4c * Makefile.in, configure.in: converted to autoconf.
* configure: New file, generated with autconf 2.4.
1995-07-05 23:39:33 +00:00
J.T. Conklin
4f3547f172 * Makefile.in (distclean, mostlyclean, realclean): Remove autoconf files. 1995-07-05 23:36:48 +00:00
J.T. Conklin
e58104714a * w65.mt: Removed. 1995-07-05 23:19:07 +00:00
J.T. Conklin
d1709457d9 * arm.mt: Removed. 1995-07-05 23:18:25 +00:00
J.T. Conklin
ee0eaaefde * sh.mt: Removed. 1995-07-05 23:17:43 +00:00
J.T. Conklin
8b40f60829 * h8300.mt: Removed. 1995-07-05 23:16:38 +00:00
J.T. Conklin
437ba769b3 * Makefile.in (all, clean, distclean, mostlyclean, realclean,
install): Changed targets so that they descend all
  subdirectories in $(SUBDIRS).
  (*-all, *-clean, *-install): Removed targets.

* configure.in: Don't bother with target makefile fragments, they
  are no longer needed.
* configure: regenerated.
1995-07-05 23:10:29 +00:00
J.T. Conklin
1ffd292be6 * Makefile.in, configure.in: converted to autoconf.
* configure: New file, generated with autconf 2.4.
1995-07-05 22:54:10 +00:00
Stan Shebs
8e968e86d4 * interp.c (sim_open): If argument supplied, interpret as
desired memory size.
	(parse_and_set_memory_size): New function.
	(sim_do_command): New function.
1995-07-01 00:01:19 +00:00
Stan Shebs
94d1ac891b * compile.c (sim_do_command): New function. 1995-07-01 00:00:12 +00:00
Stan Shebs
1a0e5dd043 * wrapper.c (sim_do_command): New function. 1995-06-30 23:59:46 +00:00
Fred Fish
7427b968f3 * 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.
1995-06-29 17:15:30 +00:00
Steve Chamberlain
32a9989d68 * interp.c: Don't include sys/times.h or sys/param.h 1995-06-23 00:26:40 +00:00
Steve Chamberlain
edf6a84356 * interp.c: (SIGBUS, SIGTERM): Define if not.
(sim_memory_size): default to 2^19 on PCs.
	(sim_resume): Poll for quits on win32.
1995-06-21 22:05:47 +00:00