Jim Wilson
9dfb65e661
* 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.
31 years ago
Jim Wilson
708f6147e4
Patch for Hitachi PR 8433, avoid core dump on HPUX host
* gencode.c (tab): Add explicit NaN support for ftrc instruction.
31 years ago
Stu Grossman
fe2f8313f0
* gencode.c: jsr, bsr and bsrf actually save pc+4 in pr, and rts
actually uses pr+0.
31 years ago
Stu Grossman
9999417ef6
* gencode.c: jsr actually saves pc+4, and rts actually uses pr+0.
31 years ago
Jim Wilson
99e6fd41ea
Indicate SIGILL instead of calling abort for default case.
31 years ago
Jim Wilson
0e1815de9d
* interp.c (callback): Remove last change. It is initialized by
a sim_set_callbacks call.
31 years ago
Jim Wilson
437fb926e6
* interp.c (trap, case SYS_utime): Cast second arg of utime to
void * to avoid compiler error.
31 years ago
Steve Chamberlain
28920b9dbb
* interp.c (callback): Initialize to default callback.
31 years ago
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.
31 years ago
Ian Lance Taylor
602677ad44
add maintainer-clean Makefile targets
31 years ago
Steve Chamberlain
5897a29e88
* run.c (sim_callback_write_stdout): New.
* interp.c (trap): Call sim_callback_write_stdout when needed.
31 years ago
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.
31 years ago
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[].
31 years ago
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).
31 years ago
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.
31 years ago
Jeff Law
1fc210a78b
* Makefile.in (run): Link in math library too.
31 years ago
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).
31 years ago
Jeff Law
2ca7c3c417
* gencode.c (gensim): abort if an unknown opcode is encountered.
31 years ago
Jim Wilson
f2d1b56f40
For Sega/Hitachi, when simulator exits, check to see if it was because
of a signal.
31 years ago
Fred Fish
6c9638b444
Update FSF address.
32 years ago
J.T. Conklin
4f3547f172
* Makefile.in (distclean, mostlyclean, realclean): Remove autoconf files.
32 years ago
J.T. Conklin
ee0eaaefde
* sh.mt: Removed.
32 years ago
J.T. Conklin
1ffd292be6
* Makefile.in, configure.in: converted to autoconf.
* configure: New file, generated with autconf 2.4.
32 years ago
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.
32 years ago
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.
32 years ago
Steve Chamberlain
32a9989d68
* interp.c: Don't include sys/times.h or sys/param.h
32 years ago
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.
32 years ago
Jim Wilson
856253d4d8
Unsanitize SH3 support.
32 years ago
Steve Chamberlain
a43b22b577
Wed May 24 14:07:11 1995 Steve Chamberlain <sac@slash.cygnus.com>
* gencode.c (tab): Add bsrf and braf.
32 years ago
Jason Molenda
5887848eb4
* configure.in: use ../../bfd/hosts/std-host.h, not
../bfd/hosts/std-host.h (which doesn't exist).
32 years ago
J.T. Conklin
057af5c96c
* run.c: parse arguments with getopt().
32 years ago
Ian Lance Taylor
35680553b1
Sun Feb 26 15:27:24 1995 Steve Chamberlain <sac@cygnus.com>
* configure.in: Use ../../bfd/hosts/std-host.h if specific
host unavailable.
32 years ago
Torbjorn Granlund
0fb39e84f9
Changes for PR 6203.
32 years ago
Torbjorn Granlund
acae2683a9
Fix for PR 6200 (SUBC problems).
32 years ago
Stu Grossman
a42b1d054c
* interp.c: Remove def of INLINE. This comes from bfd.h. Also,
declare IOMEM before using it.
32 years ago
Steve Chamberlain
4d0be1f5d4
* interp.c (BUSERROR): New macro.
([r|w][bwl]at[little|big]) New functions.
(sim_resume): If GO32 check for interrupt every now
and again. Decrement PC if SIGBUS seen.
* run.c (main): Return result of simulated _exit.
32 years ago
Steve Chamberlain
d2fd61a812
* interp.c ([wr][bwl]at): New functions.
(trap): Cope with both byte modes.
32 years ago
Steve Chamberlain
0a24010060
Specify the file type.
33 years ago
Steve Chamberlain
3d3e5651cf
* interp.c (trap): Fix irix incompatibility.
* run.c (main): open without specifying file type.
33 years ago
David Edelsohn
fe031f82c4
* interp.c (sim_*): Make result void where there isn't one.
(sim_set_pc): Delete.
(sim_info): Delete printf_fn arg, all callers changed.
Call printf_filtered instead.
(sim_close): New function.
(sim_load): New function.
(sim_create_inferior): Renamed from sim_set_args, all callers changed.
* run.c: #include <varargs.h>, "remote-sim.h".
(printf_filtered): New function.
33 years ago
Steve Chamberlain
8aff8146d2
* gencode.c (main, gendefines): New -d option prints table of defines.
* interp.c (trap): Add a load of system calls.
(sim_memory_size): Now default to 8Mbyte.
(PARANOID): Keep vector of registers with undefined contents.
33 years ago
David D. Zuhn
062d092547
keep run.1
33 years ago
David Edelsohn
c834dacddd
* Makefile.in (CSEARCH): Add -I$(srcdir)/../../gdb
* interp.c: #include "remote-sim.h".
(sim_resume): int result, new arg `siggnal'.
(sim_write): Use SIM_ADDR for type of arg `addr'.
(sim_read): Use SIM_ADDR for type of arg `addr'.
Use unsigned char * for `buffer'.
(sim_store_register): int result.
(sim_fetch_register): Ditto.
(sim_stop_reason): Renamed from sim_stop_signal. New arg `reason'.
(sim_set_pc): int result, use SIM_ADDR for type of arg `x'.
(sim_info): int result, new args `verbose', `printf_fn'.
(sim_kill): int result.
(sim_open): int result, new arg `name'.
* run.c: #include <stdio.h>
(main): Update call to sim_info.
33 years ago
David Edelsohn
631f6b2406
(sim_stop_signal): Result is now enum sim_stop.
33 years ago
Roland Pesch
06b24c9e49
Man page for "run" simulator, and install-man target for it.
33 years ago
Fred Fish
b5ed6e32c2
Remove '.Sanitize' from explicit list of Things-to-lose. It is now implicitly
added to the list by Sanitize, unless Sanitize knows it needs to keep it.
34 years ago
Fred Fish
775d4a4096
Add .Sanitize to Things-to-lose list.
34 years ago
Steve Chamberlain
1a11e53014
* run.c (main), interp.c (sim_set_timeout): Remove timeout
functionality.
34 years ago
Steve Chamberlain
f6fba99573
Checkpoint.
34 years ago
Steve Chamberlain
e615309a0b
Look in the right place for bfd.h
34 years ago