Commit Graph

17934 Commits

Author SHA1 Message Date
Jeff Law 3817470b80 * config.sub: Handle mn10200 and mn10300. 1996-11-20 17:08:04 +00:00
David Edelsohn 5f270267a7 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
(SIM_OBJS,SIM_EXTRA_CFLAGS,SIM_EXTRA_CLEAN): Define.
	* configure.in: Simplify using macros in ../common/aclocal.m4.
	Call AC_CHECK_HEADERS(unistd.h).
	* configure: Regenerated.
	* config.in: New file.
	* simops.c: #include "config.h".  #include <unistd.h> if present.
1996-11-20 10:27:55 +00:00
David Edelsohn 614984da76 * 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.
1996-11-20 10:18:18 +00:00
David Edelsohn 34452aa40a * Makefile.in (LIBCOMMON): Define.
($(TARGETLIB)): Add files from $(LIBCOMMON).
1996-11-20 10:02:44 +00:00
David Edelsohn e3d12c6595 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
(SIM_{OBJS,EXTRA_CFLAGS,EXTRA_CLEAN}): Define.
	* configure.in: Simplify using macros in ../common/aclocal.m4.
	* configure: Regenerated.
	* tconfig.in: New file.
1996-11-20 10:00:42 +00:00
David Edelsohn 899232aba0 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
(SIM_OBJS): Define.
	* configure.in: Simplify using macros in ../common/aclocal.m4.
	* configure: Regenerated.
	* inst.h (enum sim_state): Define.
	(cpu_state_type): New member `state'.  Set it whenever `exception'
	is set.
	* compile.c (sim_callback): New global.
	(sim_set_simcache_size): Renamed from sim_csize.
	(sim_resume, case O_SLEEP): Add right way to decode r0 but #if 0 out
	'cus it can't work.  Change main loop exit test to use cpu.state.
	(sim_trace): New function.
	(sim_stop_reason): Add right way to set results, but #if 0 out.
	(sim_size): New function.
	(sim_info): Redirect calls to printf_filtered through callback.
	(sim_set_callbacks): Record callback.
	* run.c: Deleted, using one in ../common now.
	* tconfig.in: New file.
1996-11-20 09:47:57 +00:00
David Edelsohn d70e3e2b7b * Makefile.in: Delete stuff moved to ../common/Make-common.in.
(SIM_{OBJS,EXTRA_LIBS,EXTRA_LIBDEPS,EXTRA_ALL,EXTRA_INSTALL}): Define.
	(SIM_{EXTRA_CLEAN,EXTRA_CFLAGS}): Define.
	* configure.in: Simplify using macros in ../common/aclocal.m4.
	Call AC_CHECK_HEADERS(stdlib.h).
	* configure: Regenerated.
	* config.in: New file.
	* func.c (sim_set_callbacks): Delete, moved to
	* interf.c (sim_set_callbacks): here.
	(sim_callback): New global.
	Rewrite all calls to printf_filtered to go through callback.
	(sim_size,sim_trace): New functions.
	(sim_{insert,remove}_breakpoint): #if 0 out.
	* sis.c: #include "config.h".  #include <stdlib.h> if present.
	(main): Coerce fprintf arg to INIT_DISASSEMBLE_INFO to fprintf_ftype.
	* sis.h: #include "callback.h".
1996-11-20 09:38:10 +00:00
David Edelsohn 27bc3f8ecb New file. 1996-11-20 09:28:40 +00:00
David Edelsohn cee402dd99 * Makefile.in: Delete all stuff moved to ../common/Make-common.in.
(SIM_OBJS,SIM_EXTRA_CFLAGS,SIM_EXTRA_CLEAN): 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 "callback.h".
	* simops.c: #include "config.h".  #include <unistd.h> if present.
1996-11-20 09:27:24 +00:00
David Edelsohn db7d7ff8dd Add new files. 1996-11-20 09:22:01 +00:00
David Edelsohn 58b72d7e20 * run.c: #include ../common/config.h, tconfig.h.
(myname): New static global.
	(main): Recognize new options -a, -c.  Also recognize -h if h8/300.
	Only process -c ifdef SIM_HAVE_SIMCACHE.
	Only process -p/-s ifdef SIM_HAVE_PROFILE.
	Parse program name from argv[0] and use in error messages.
	Pass sim_args to sim_open.  Pass prog_args to sim_create_inferior.
	Add support for incomplete h8/300 termination indicators.
	(usage): Make more verbose.
	* aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
	* Makefile.in,Make-common.in,callback.c: New files.
	* nltvals.def,gentmap.c,gentvals.sh: New files.
1996-11-20 09:20:55 +00:00
David Edelsohn e01714ccda * run.c: Deleted, use one in ../common now.
* Makefile.in: Delete everything that's been moved to
	../common/Make-common.in.
	(SIM_OBJS): Define.
	* configure.in: Simplify using macros in ../common/aclocal.m4.
	* configure: Regenerated.
	* config.in: New file.
	* armos.c: #include config.h.
	* wrapper.c (mem_size): Value is in bytes now.
	(sim_callback): New global.
	(arm_sim_set_profile{,_size}): Delete.
	(arm_sim_set_mem_size): Rename to sim_size.
	(sim_do_command): Call printf_filtered via callback.
	(sim_set_callbacks): Record callback.
1996-11-20 09:10:22 +00:00
David Edelsohn 126d9d0a71 * configure.in (configdirs): Add common.
* configure: Regenerated.
1996-11-20 09:02:28 +00:00
David Edelsohn a89b96eae4 * config/h8500/h8500.mt (SIM): Change to ../sim/h8500/libsim.a. 1996-11-20 08:58:20 +00:00
David Edelsohn 4da8b2a5f4 * callback.h: Deleted, moved to ../include.
* callback.c: Deleted, moved to ../sim/common.
	* Makefile.in (SFILES,COMMON_OBJS): Delete callback.[co].
	(callback.o): Delete rule.
	* remote-sim.h: No longer include callback.h
	(sim_callback_write_stdout): Delete prototype.
	* remote-sim.c (init_callbacks,end_callbacks): New functions.
	(gdb_os_write_stdout, gdb_os_printf_filtered): New functions.
	(gdb_callback, callbacks_initialized): New static globals.
	(gdbsim_open): Call init_callbacks.
	(gdbsim_close): Call end_callbacks.
	(simulator_command): Call init_callbacks.
1996-11-20 08:55:42 +00:00
David Edelsohn 9d10b92d2a * callback.h: New file, moved here from gdb. 1996-11-20 08:42:22 +00:00
David Edelsohn 939b233a57 * sim_calls.c (sim_resume): Reset sim_should_run if single stepping. 1996-11-20 08:38:13 +00:00
Jeff Law d91028d2c7 * mn10300-dis.c: Rough cut at printing some operands. 1996-11-20 00:55:22 +00:00
Jeff Law 4aa92185f8 * mn10300-dis.c: Start working on disassembler support.
* mn10300-opc.c (mn10300_opcodes): Fix masks on several insns.
Selects opcodes & consumes bytes.  Breaks badly if given data instead of
code.  No operands yet.
1996-11-19 23:59:27 +00:00
Michael Meissner 5e9b714f18 Do not convert short branch followed by short instruction into a parallel op if -O 1996-11-19 22:52:04 +00:00
Michael Meissner c1f6b406f0 Do not build librx on d10v 1996-11-19 21:36:45 +00:00
Jeff Law 440e84b262 * gas/mn10300/movm.s: Update for correct syntax.
* gas/mn10300/basic.exp: Update expected movm bit patterns.
1996-11-19 20:36:18 +00:00
Jeff Law 7f02192d13 * config/tc-mn10300.c (md_assemble): Handle MN10300_OPERAND_REG_LIST.
So GCC can use movm in prologue/epilogues.
1996-11-19 20:35:19 +00:00
Jeff Law 99246e03f9 * mn10300-opc.c (mn10300_operands): Add "REGS" for a register
list.
        (mn10300_opcodes): Use REGS for register list in "movm" instructions.
1996-11-19 20:32:31 +00:00
Jeff Law bd63ee34aa * mn10300.h (MN10300_OPERAND_REG_LIST): Define. 1996-11-19 20:29:48 +00:00
Tom Tromey bd45f82f41 * gdbtk.c (gdbtk_readline): Fix memory leak. 1996-11-19 16:38:48 +00:00
Tom Tromey a5a6e3bd0a Fixes for Tcl 7.6 / Tk 4.2:
* gdbtk.tcl (apply_filespec): Use tk_getOpenFile.
        Removed old fileselect code.
        * gdbtk.c (Tcl_Alloc): Renamed from Tcl_Malloc.
1996-11-19 07:40:18 +00:00
Jim Wilson 692a601fb7 Fix Irix6 host build problem.
* config/mips/tm-mips.h (FIX_CALL_DUMMY): Change unsigned LONGEST
        to ULONGEST.
1996-11-19 00:04:37 +00:00
Dawn Perchik 753b59c270 * libiberty.h: Checkin again; last checkin failed due to sticky tag. 1996-11-18 23:35:05 +00:00
Jeff Law 43d695a1e9 * config/tc-mn10300.c (mn10300_insert_operand): Provide prototype
via PARAMS.
        (check_operand): Likewise.
1996-11-18 23:05:06 +00:00
Michael Meissner d39e0e6d61 Fix previous change 1996-11-18 20:36:48 +00:00
Michael Meissner ec5e212be2 Check validity of user parallel operations 1996-11-18 20:31:30 +00:00
Jeff Law f3285daa51 * configure.in (mn10300): Build everything except gdb & libgloss. 1996-11-18 20:31:10 +00:00
Michael Meissner 228835a9b6 Branch and link instructions modify r13 1996-11-18 20:24:47 +00:00
Michael Meissner b337f8691f Add3 sets the carry 1996-11-18 20:21:55 +00:00
Angela Marie Thomas ff0bc27973 finally remove errant mentions of Sanitize 1996-11-18 03:13:31 +00:00
Fred Fish e172af811a From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
* procfs.c (wait_fd):  Handle EINTR error return from poll
        by restarting the poll.
	* defs.h (PIDGET): Define a default version that just
	returns its argument unchanged.
	* inflow.c (terminal_init_inferior): Eliminate #ifdef
	of PIDGET and fold both alternatives into common code.
	(pass_signal): Use PIDGET for pid passed to kill().
1996-11-16 06:58:43 +00:00
Jeff Law 2583a05ba2 * gas/mn10300/other.s: Put parens around register
argument in calls and jmp instructions.
1996-11-15 20:57:53 +00:00
Jeff Law 54dfaf0a65 * mn10300-opc.c (mn10300_opcodes): Demand parens around
register argument is calls and jmp instructions.
Found trying to build libgcc2 for the mn10300 :-)
1996-11-15 20:43:44 +00:00
Michael Meissner f8149dfee8 Fix some warnings 1996-11-15 20:24:54 +00:00
Jeff Law 96e34542a1 * Makefile.in (emn10300.c): Add dependencies.
* configure.tgt: Handle mn10300.
        * emulparms/mn10300.sh: New file.
Skeleton support for the mn10300.  Matsushita.
1996-11-15 20:02:07 +00:00
Michael Meissner 9f7f97103b Fix warning 1996-11-14 21:09:28 +00:00
Michael Meissner 9ef5835acc Define ULONGEST 1996-11-14 20:55:06 +00:00
Per Bothner 5a1d5a6aff Merge from FSF. 1996-11-14 19:27:32 +00:00
Martin Hunt edb89bfc5b Thu Nov 14 11:17:49 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* config/tc-d10v.c (write_2_short): Fix bug that wouldn't
	allow a branch and link in parallel with an exe instruction.
1996-11-14 19:20:02 +00:00
Jeff Law 7e405d7ed7 * gas/h8300/ffxx1.d: Update for recent disassembler changes.
Bring over from h8s beta branch.
1996-11-13 20:19:06 +00:00
Fred Fish 637e7c56ac (Fix from Jim Wilson)
* c-typeprint.c (cp_type_print_method_args): Pass -1 for show in
	recursive call to type_print.
1996-11-13 00:28:25 +00:00
Martin Hunt 08af8a3312 Tue Nov 12 15:45:42 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* d10v.h: Remove empty file.
1996-11-12 23:46:30 +00:00
Jim Wilson 119dfbb7c1 Patches to add Irix6 host support. 1996-11-12 23:33:32 +00:00
Dawn Perchik cf13e3fc30 * filemode.c: Include sysdep.h.
* ihex.c: Add casts to eliminate compiler warnings.
    * sunos.c: Add casts to eliminate compiler warnings.
1996-11-12 23:28:49 +00:00