Commit Graph

75 Commits

Author SHA1 Message Date
Torbjorn Granlund
0fb39e84f9 Changes for PR 6203. 1995-01-22 22:12:59 +00:00
Torbjorn Granlund
acae2683a9 Fix for PR 6200 (SUBC problems). 1995-01-19 13:59:13 +00:00
Steve Chamberlain
4a5947d010 * Makefile.in: Support W65.
* configure.in: Ditto.
1995-01-16 01:47:43 +00:00
Steve Chamberlain
26aef5db38 new files. 1995-01-16 01:47:04 +00:00
Steve Chamberlain
6c19c2efe3 * Makefile.in: Support W65.
* configure.in: Ditto.
1995-01-16 00:55:22 +00:00
Steve Chamberlain
321a78a5a0 New files. 1995-01-16 00:53:05 +00:00
Stu Grossman
a42b1d054c * interp.c: Remove def of INLINE. This comes from bfd.h. Also,
declare IOMEM before using it.
1995-01-09 23:46:03 +00:00
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.
1994-12-29 05:28:20 +00:00
Steve Chamberlain
d2fd61a812 * interp.c ([wr][bwl]at): New functions.
(trap): Cope with both byte modes.
1994-11-24 05:33:47 +00:00
Steve Chamberlain
0a24010060 Specify the file type. 1994-06-28 01:05:38 +00:00
Steve Chamberlain
3d3e5651cf * interp.c (trap): Fix irix incompatibility.
* run.c (main): open without specifying file type.
1994-05-27 02:06:14 +00:00
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.
1994-05-18 21:37:08 +00:00
David Edelsohn
3a1d485df5 * compile.c: #include "bfd.h".
(sim_*): Set result type to void where there isn't one.
	(sim_resume, default case): Set cpu.exception to SIGILL.
	(sim_trace): Delete.
	(sim_set_pc): Delete.
	(sim_info): Delete printf_fn arg, all callers changed.
	Call printf_filtered.
	(set_h8300h): New arg `flag', all callers changed.
	(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.
1994-05-18 20:55:12 +00:00
David Edelsohn
0693d363df * compile.c (decode): Fix typo (16 bit branches).
(*): Some white space clean up.
1994-05-14 01:36:52 +00:00
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.
1994-02-12 06:02:09 +00:00
David D. Zuhn
062d092547 keep run.1 1993-11-11 20:07:08 +00:00
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.
1993-10-26 18:01:45 +00:00
David Edelsohn
a415cf0a77 * Makefile.in (CSEARCH): Add -I$(srcdir)/../../gdb
* compile.c: #include "remote-sim.h".
(sim_resume): New arg siggnal.
(sim_write): Use SIM_ADDR for type of arg addr.  Always return a value.
(sim_read): Ditto.
(sim_store_register): Result is type int.
(sim_fetch_register): Ditto.
(sim_stop_reason): Renamed from sim_stop_signal.
(sim_set_pc): Use SIM_ADDR for type of arg pc.
(sim_info): int result, new arg printf_fn.
(sim_kill): int result.
(sim_open): int result, new arg name.
* run.c (main): Use sim_set_pc to set pc.  Update call to sim_info.
1993-10-26 17:01:03 +00:00
David Edelsohn
631f6b2406 (sim_stop_signal): Result is now enum sim_stop. 1993-10-23 22:10:28 +00:00
David Edelsohn
7db9345b40 (sim_stop_signal): Result is now enum sim_stop. 1993-10-23 22:03:52 +00:00
Roland Pesch
06b24c9e49 Man page for "run" simulator, and install-man target for it. 1993-10-22 04:58:26 +00:00
Steve Chamberlain
28655f000c * compile.c (sim_set_pc): Write to the pc direcly.
(sim_store_register): Now value is passed by reference. (sim_read,
	sim_write): Return number of bytes copied.
1993-10-07 23:25:14 +00:00
K. Richard Pixley
becbe1c328 do not echo recursion lines 1993-09-13 19:49:33 +00:00
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.
1993-08-02 23:29:32 +00:00
Steve Chamberlain
f412eb92fe Configure for h8300h too. 1993-08-02 21:19:38 +00:00
Steve Chamberlain
73e77bc3da Deleted. 1993-07-30 17:46:09 +00:00
Fred Fish
775d4a4096 Add .Sanitize to Things-to-lose list. 1993-07-30 16:46:19 +00:00
David Edelsohn
f853f4ca53 Fix bit instructions (was setting destination reg and not carry). 1993-07-16 20:26:05 +00:00
David Edelsohn
56390ce8d4 * compile.c: Reset HMODE back to zero (accidently set it to 1). 1993-07-15 17:04:39 +00:00
David Edelsohn
cf5b4aa63a * run.c (main): If h8/300h binary detected, call set_h8300h.
* compile.c (sim_resume): Fix O_NEG insn.
1993-07-15 17:01:40 +00:00
David Edelsohn
89a2c4fdaa * run.c (main): Add -h flag to enable h8/300h emulation.
* compile.c: Rename Hmode to HMODE (consistency with gdb).
(set_h8300h): New function.
(sim_resume): Add support for extu,exts insns.
(sim_resume): Fix logical right shifting.
(sim_resume, label alu32): Fix setting of carry flag.
1993-07-09 21:42:02 +00:00
Steve Chamberlain
1a11e53014 * run.c (main), interp.c (sim_set_timeout): Remove timeout
functionality.
1993-07-06 17:31:34 +00:00
David Edelsohn
ce51bde687 (sim_csize): Initialize cpu.cache. 1993-07-04 07:37:45 +00:00
Steve Chamberlain
56fc37746d Keep writecode.c 1993-07-03 01:45:45 +00:00
David Edelsohn
f7e3d580dc Makefile.in: Add -I../../bfd to pick up bfd.h. 1993-07-03 00:43:59 +00:00
Steve Chamberlain
f6fba99573 Checkpoint. 1993-06-24 20:52:58 +00:00
David Edelsohn
1835992e85 * run.c (main): Fix parsing of args.
* compile.c (sim_resume): Fix shll insn.
1993-06-24 20:43:41 +00:00
Steve Chamberlain
e615309a0b Look in the right place for bfd.h 1993-06-18 22:16:32 +00:00
Steve Chamberlain
ebd7d72e33 New file for configuring. 1993-06-18 21:24:00 +00:00
Steve Chamberlain
fdc506e668 Lint. 1993-06-18 20:53:58 +00:00
Steve Chamberlain
90fe361fdc * gencode.c: Fix some opcodes.
* interp.c: Support for profiling and portability fixes.
	* run.c (main): Get profiling args.
1993-06-18 01:31:54 +00:00
Jim Kingdon
68dd30141d * Makefile.in: Add distclean, realclean, and mostlyclean targets. 1993-06-13 20:11:10 +00:00
Steve Chamberlain
ce38539a45 Checkpoint for dje. 1993-06-10 20:38:39 +00:00
Steve Chamberlain
a2ca98b6bb Obsolete. 1993-06-08 21:38:42 +00:00
Steve Chamberlain
7ecaa5af33 Rewrite for H8/300-H 1993-06-08 21:16:33 +00:00
Steve Chamberlain
1cec8dae68 Support for -v 1993-06-01 18:20:29 +00:00
K. Richard Pixley
87756e15db added things-to-lose sections 1993-05-27 06:44:29 +00:00
Ian Lance Taylor
30947f7efc * Makefile.in (check, installcheck): Added dummy targets. 1993-05-21 17:55:36 +00:00
David D. Zuhn
b23eaace23 add no-op dvi target 1993-05-21 17:41:21 +00:00
Steve Chamberlain
5e1ac26014 Support for broken makes and lint. 1993-05-03 22:27:41 +00:00