external/binutils.git
26 years agoCut out unused code for PE build.
Nick Clifton [Tue, 25 Nov 1997 02:09:19 +0000 (02:09 +0000)]
Cut out unused code for PE build.

26 years agoAdd sim_io_syscalls to do common system call emulation
Michael Meissner [Mon, 24 Nov 1997 23:59:20 +0000 (23:59 +0000)]
Add sim_io_syscalls to do common system call emulation

26 years agoFix for PE build
Nick Clifton [Mon, 24 Nov 1997 23:51:15 +0000 (23:51 +0000)]
Fix for PE build

26 years ago * cpu.h (TRACE_COND_BR): Use TRACE_BRANCH_P, not TRACE_ALU_P.
Doug Evans [Mon, 24 Nov 1997 22:58:47 +0000 (22:58 +0000)]
* cpu.h (TRACE_COND_BR): Use TRACE_BRANCH_P, not TRACE_ALU_P.

26 years ago * sim-trace.c (trace_option_handler): Set state trace file
Doug Evans [Mon, 24 Nov 1997 22:21:51 +0000 (22:21 +0000)]
* sim-trace.c (trace_option_handler): Set state trace file
for --trace-file in addition to cpu's values.
(trace_vprintf): If cpu == NULL, try state's trace file.

26 years agoMon Nov 24 14:17:02 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
Michael Snyder [Mon, 24 Nov 1997 22:20:34 +0000 (22:20 +0000)]
Mon Nov 24 14:17:02 1997  Michael Snyder  (msnyder@cleaver.cygnus.com)

* infcmd.c: export registers_info, for use by other modules.
* printcmd.c: export output_command, for use by other modules.
* stack.c: export locals_info and args_info, for use by other modules.

26 years agoEntries for .gdbinit additions and sim-model.c option fix.
Doug Evans [Mon, 24 Nov 1997 22:09:12 +0000 (22:09 +0000)]
Entries for .gdbinit additions and sim-model.c option fix.

26 years ago * sim-model.c (model_options): Use '\0' for `shortopt'.
Doug Evans [Mon, 24 Nov 1997 20:43:38 +0000 (20:43 +0000)]
* sim-model.c (model_options): Use '\0' for `shortopt'.

26 years ago * Make-common.in (all): Add .gdbinit.
Doug Evans [Mon, 24 Nov 1997 20:14:35 +0000 (20:14 +0000)]
* Make-common.in (all): Add .gdbinit.
* gdbinit.in: Add dump command.

26 years ago * sim-core.c (sim_core_signal): Fix spelling error in message.
Doug Evans [Mon, 24 Nov 1997 20:11:02 +0000 (20:11 +0000)]
* sim-core.c (sim_core_signal): Fix spelling error in message.
* sim-hrw.c (sim_read): Use read map, not write map.

27 years agoA ton of my most recent changes, mostly to add post-mortem data analysis,
Michael Snyder [Mon, 24 Nov 1997 20:02:28 +0000 (20:02 +0000)]
A ton of my most recent changes, mostly to add post-mortem data analysis,
plus some better error checking and reporting.  Still not publically
visible (not mentioned in the makefile or changelog).

27 years agoSome early changes by Keith Seitz to support the Tcl/Tk GUI.
Michael Snyder [Mon, 24 Nov 1997 19:47:05 +0000 (19:47 +0000)]
Some early changes by Keith Seitz to support the Tcl/Tk GUI.
Note: these files are still not publically visible; just keeping
their history at this point.

27 years agoCreate CVS files tracepoint.c and tracepoint.h. This is new work,
Michael Snyder [Mon, 24 Nov 1997 19:38:44 +0000 (19:38 +0000)]
Create CVS files tracepoint.c and tracepoint.h.  This is new work,
not yet ready for public release, so no changelog entry yet (and I'm
sanitizing the files out).  Just want to get them into the repository
for now, so I can begin keeping their history.  Not checking in the
Makefile change that would cause them to be built and linked.

27 years agoSanitization
Andrew Cagney [Mon, 24 Nov 1997 13:34:52 +0000 (13:34 +0000)]
Sanitization

27 years agoAdd function print_decimal to handle display of long long decimal
Andrew Cagney [Mon, 24 Nov 1997 12:49:38 +0000 (12:49 +0000)]
Add function print_decimal to handle display of long long decimal
values on hosts with long-long but no "%ll".

27 years agoImprove GDB support for FreeBSD host/target.
Andrew Cagney [Mon, 24 Nov 1997 06:50:12 +0000 (06:50 +0000)]
Improve GDB support for FreeBSD host/target.
To configure.in: make PRINTF_HAS_LONG_LONG check more pedantic; check
that SCANF_HAS_LONG_DOUBLE instead of assuming PRINTF_HAS_LONG_DOUBLE
implies it; document.

27 years agoPass architecture from ``set arch MACH'' command into disasembler
Andrew Cagney [Mon, 24 Nov 1997 06:37:01 +0000 (06:37 +0000)]
Pass architecture from ``set arch MACH'' command into disasembler
through tm_print_insn_info.mach argument.
Delete x86 specific set assembler command, subsumed by replaced with
``set arch''

27 years agoHave mips64vr5400-*-elf look like a mips64vr5000.
Andrew Cagney [Mon, 24 Nov 1997 06:31:05 +0000 (06:31 +0000)]
Have mips64vr5400-*-elf look like a mips64vr5000.

27 years agoChange MIPS simulator so that it uses the (software) module sim_fpu
Andrew Cagney [Sun, 23 Nov 1997 03:34:15 +0000 (03:34 +0000)]
Change MIPS simulator so that it uses the (software) module sim_fpu
for floating point operations.  Eliminates all dependencies the
simulator had on the hosts FP implemantation.

Add sim_fpu_{inv,abs,neg} functions to sim_fpu.[hc]

27 years agoAdd support for PIC and APCS-FLOAT type binaries.
Nick Clifton [Sat, 22 Nov 1997 23:17:39 +0000 (23:17 +0000)]
Add support for PIC and APCS-FLOAT type binaries.

27 years agoBrought devo up to date with the branch.
Nick Clifton [Sat, 22 Nov 1997 22:29:08 +0000 (22:29 +0000)]
Brought devo up to date with the branch.

27 years ago * sunos.c (sunos_add_one_symbol): When overriding a defined
Ian Lance Taylor [Sat, 22 Nov 1997 22:08:43 +0000 (22:08 +0000)]
* sunos.c (sunos_add_one_symbol): When overriding a defined
symbol, set it to undefined, not new.

27 years agoSat Nov 22 16:06:56 1997 Klaus Kaempf <kkaempf@progis.de>
Ian Lance Taylor [Sat, 22 Nov 1997 21:08:09 +0000 (21:08 +0000)]
Sat Nov 22 16:06:56 1997  Klaus Kaempf  <kkaempf@progis.de>

* evax-emh.c (_bfd_evax_write_emh): Use alloca instead of strdup.

27 years agofix comment
Ian Lance Taylor [Sat, 22 Nov 1997 21:05:48 +0000 (21:05 +0000)]
fix comment

27 years agoSat Nov 22 15:50:09 1997 Klaus Kaempf <kkaempf@progis.de>
Ian Lance Taylor [Sat, 22 Nov 1997 21:04:47 +0000 (21:04 +0000)]
Sat Nov 22 15:50:09 1997  Klaus Kaempf  <kkaempf@progis.de>

* config-gas.com: Get version info from configure.in.

27 years agoSat Nov 22 15:50:09 1997 Klaus Kaempf <kkaempf@progis.de>
Ian Lance Taylor [Sat, 22 Nov 1997 21:01:27 +0000 (21:01 +0000)]
Sat Nov 22 15:50:09 1997  Klaus Kaempf  <kkaempf@progis.de>

* makefile.vms: include depend.obj in OBJS.

27 years agoSat Nov 22 15:50:09 1997 Klaus Kaempf <kkaempf@progis.de>
Ian Lance Taylor [Sat, 22 Nov 1997 20:54:16 +0000 (20:54 +0000)]
Sat Nov 22 15:50:09 1997  Klaus Kaempf  <kkaempf@progis.de>

* config/tc-alpha.c (s_alpha_section): Remove ".lcomm" handling.

27 years agoSat Nov 22 15:50:09 1997 Klaus Kaempf <kkaempf@progis.de>
Ian Lance Taylor [Sat, 22 Nov 1997 20:52:29 +0000 (20:52 +0000)]
Sat Nov 22 15:50:09 1997  Klaus Kaempf  <kkaempf@progis.de>

* config/tc-alpha.c (alpha_basereg_clobbered): Remove variable and
all corresponding code.

27 years ago * elf32-sh.c (sh_elf_relax_delete_bytes): Don't kill LABEL
Ian Lance Taylor [Sat, 22 Nov 1997 17:31:57 +0000 (17:31 +0000)]
* elf32-sh.c (sh_elf_relax_delete_bytes): Don't kill LABEL
relocs.

27 years agoClarify meaning of sim_signalled's SIGRC argument. Document that this
Andrew Cagney [Sat, 22 Nov 1997 12:52:44 +0000 (12:52 +0000)]
Clarify meaning of sim_signalled's SIGRC argument.  Document that this
isn't possible in sim-reason.c and just return the target SIGRC
instead.

For simulators that rely on sim-reason.c, replace SIG* with SIM_SIG*.

Hack nrun.c so that when it is executed (ARGV[0]) as `step' instead
of `run' it single steps the simulator.  Allows testing of single step
without full GDB.

27 years ago*** empty log message ***
Jim Blandy [Sat, 22 Nov 1997 01:24:57 +0000 (01:24 +0000)]
*** empty log message ***

27 years ago* valops.c (call_function_by_hand): If the function has a
Jim Blandy [Sat, 22 Nov 1997 00:50:09 +0000 (00:50 +0000)]
* valops.c (call_function_by_hand): If the function has a
prototype, convert its arguments as if by assignment.  Otherwise,
do the usual promotions.
* stabsread.c (define_symbol): Set the TYPE_FLAG_PROTOTYPED flag
on functions' types when we can; all C++ functions should get it,
and if the Sun-style prototype notation is in the stabs, we can
notice that.

27 years ago * coff-sh.c (sh_relax_section): Force sign extention of USES r_offset.
Richard Henderson [Fri, 21 Nov 1997 22:18:09 +0000 (22:18 +0000)]
    * coff-sh.c (sh_relax_section): Force sign extention of USES r_offset.
        (sh_relax_delete_bytes): Don't kill LABEL relocs.

Second bit for PR 14069.

27 years ago * aclocal.m4 (AM_CYGWIN32, AM_EXEEXT): Remove. They are already
Ian Lance Taylor [Fri, 21 Nov 1997 17:22:33 +0000 (17:22 +0000)]
* aclocal.m4 (AM_CYGWIN32, AM_EXEEXT): Remove.  They are already
  defined by the inclusion of ../bfd/aclocal.m4.
* configure: Rebuild.

27 years agotabify changelog
Michael Meissner [Fri, 21 Nov 1997 15:56:57 +0000 (15:56 +0000)]
tabify changelog

27 years agoReally do SHELL = /bin/sh change Noer wanted to do
Michael Meissner [Fri, 21 Nov 1997 15:55:07 +0000 (15:55 +0000)]
Really do SHELL = /bin/sh change Noer wanted to do

27 years agoFri Nov 21 02:19:57 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Fri, 21 Nov 1997 10:23:06 +0000 (10:23 +0000)]
Fri Nov 21 02:19:57 1997  Geoffrey Noer  <noer@cygnus.com>

        * Makefile.in: also revert SHELL change until configury
        changes work

27 years ago * sparc-tdep.c (sparc_pc_adjust): Don't assume sizeof (long) == 4.
Doug Evans [Fri, 21 Nov 1997 00:36:08 +0000 (00:36 +0000)]
* sparc-tdep.c (sparc_pc_adjust): Don't assume sizeof (long) == 4.

27 years agoPatch from Richard Earnshaw
Nick Clifton [Thu, 20 Nov 1997 23:08:21 +0000 (23:08 +0000)]
Patch from Richard Earnshaw

27 years agoPacify GCC - SIM_SIGNONE missing in enum, xmalloc/free VS ZALLOC/zfree.
Andrew Cagney [Thu, 20 Nov 1997 22:56:11 +0000 (22:56 +0000)]
Pacify GCC - SIM_SIGNONE missing in enum, xmalloc/free VS ZALLOC/zfree.

27 years ago * sh-dis.c (print_insn_shx): Recognize all sh4 additions.
Richard Henderson [Thu, 20 Nov 1997 22:01:30 +0000 (22:01 +0000)]
    * sh-dis.c (print_insn_shx): Recognize all sh4 additions.
        * sh-opc.h (fmov): Add @<REG_M>+,<DX_REG_N> variant for sh4.
        (ftrv): Slay the cut-and-paste monster.

        * tc-sh.c (parse_reg): Properly quote for fv4.

pr14044

27 years agomove include entries from ../ChangeLog
Ian Lance Taylor [Thu, 20 Nov 1997 15:52:38 +0000 (15:52 +0000)]
move include entries from ../ChangeLog

27 years agoThu Nov 20 04:11:27 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Thu, 20 Nov 1997 13:05:07 +0000 (13:05 +0000)]
Thu Nov 20 04:11:27 1997  Geoffrey Noer  <noer@cygnus.com>

        * Makefile.in: pepper with EXEEXTs in appropriate places,
        set SHELL = @SHELL@ for those lame hosts that don't have a /bin/sh
        For some reason, EXEEXT isn't getting substututed in correctly
        so for now, set EXEEXT to empty string

27 years agoThu Nov 20 04:11:27 1997 Geoffrey Noer <noer@cygnus.com>
Geoffrey Noer [Thu, 20 Nov 1997 12:20:39 +0000 (12:20 +0000)]
Thu Nov 20 04:11:27 1997  Geoffrey Noer  <noer@cygnus.com>

        * aclocal.m4: add EXEEXT setting rule
        * configure.in: call it
        * configure: regenerate
        * Makefile.in: pepper with EXEEXTs in appropriate places,
        set SHELL = @SHELL@ for those lame hosts that don't have a /bin/sh

27 years agoo Add SIM_SIGFPE to sim-signals
Andrew Cagney [Thu, 20 Nov 1997 09:50:36 +0000 (09:50 +0000)]
o Add SIM_SIGFPE to sim-signals
o Start SIM_SIG* at 64 so that the use of host signal numbers can be
  detected and reported.
o Update MIPS simulator to use sim-signal.

27 years agoAllow reads/writes to C0_CONFIG register.
Andrew Cagney [Thu, 20 Nov 1997 09:17:06 +0000 (09:17 +0000)]
Allow reads/writes to C0_CONFIG register.

27 years ago * symbols.c (resolve_symbol_value): Add missing breaks in case on
Ian Lance Taylor [Thu, 20 Nov 1997 04:47:43 +0000 (04:47 +0000)]
* symbols.c (resolve_symbol_value): Add missing breaks in case on
symbol value operator.

27 years agorebuild
Ian Lance Taylor [Thu, 20 Nov 1997 04:46:19 +0000 (04:46 +0000)]
rebuild

27 years ago(enosys): Delete.
Doug Evans [Thu, 20 Nov 1997 00:50:40 +0000 (00:50 +0000)]
(enosys): Delete.

27 years ago * callback.c (cb_host_to_target_stat): Fix return values.
Doug Evans [Thu, 20 Nov 1997 00:47:02 +0000 (00:47 +0000)]
* callback.c (cb_host_to_target_stat): Fix return values.

27 years ago * cgen-sim.h (enum_signal_type): Delete.
Doug Evans [Wed, 19 Nov 1997 20:44:35 +0000 (20:44 +0000)]
* cgen-sim.h (enum_signal_type): Delete.
(engine_signal): Update prototype.
* cgen-utils.c: Don't include <signal.h>.
(sim_signal_to_host): Delete, lives in sim-signal.c now.
(engine_signal): Update.

27 years ago * mem-ops.h: Rename SIM_SIG{ACCESS,ALIGN} to SIM_SIG{SEGV,BUS}.
Doug Evans [Wed, 19 Nov 1997 20:18:56 +0000 (20:18 +0000)]
* mem-ops.h: Rename SIM_SIG{ACCESS,ALIGN} to SIM_SIG{SEGV,BUS}.
* sim-if.c (sim_open): Call sim_config.
(sim_stop_reason): Update call to sim_signal_to_host.

27 years ago * sim-utils.c (sim_state_alloc): Call SIM_STATE_ALLOC if defined.
Doug Evans [Wed, 19 Nov 1997 20:13:11 +0000 (20:13 +0000)]
* sim-utils.c (sim_state_alloc): Call SIM_STATE_ALLOC if defined.
(sim_state_free): Call SIM_STATE_FREE if defined.

* sim-module.c (sim_module_install): Don't leave any modules
installed if one fails to install.

27 years agoDo not include alloca-conf.h since alloca is not used.
Michael Meissner [Wed, 19 Nov 1997 18:40:49 +0000 (18:40 +0000)]
Do not include alloca-conf.h since alloca is not used.

27 years agoFix carry/overflow problems
Michael Meissner [Wed, 19 Nov 1997 18:30:47 +0000 (18:30 +0000)]
Fix carry/overflow problems

27 years ago(sim_stop_reason): Add comment.
Doug Evans [Wed, 19 Nov 1997 08:10:40 +0000 (08:10 +0000)]
(sim_stop_reason): Add comment.

27 years ago * sim-core.c (sim_core_signal): Use sim_stopped instead of
Doug Evans [Wed, 19 Nov 1997 08:03:53 +0000 (08:03 +0000)]
* sim-core.c (sim_core_signal): Use sim_stopped instead of
sim_signalled.

27 years ago * sim-signal.c, sim-signal.h: New files.
Doug Evans [Wed, 19 Nov 1997 08:00:37 +0000 (08:00 +0000)]
* sim-signal.c, sim-signal.h: New files.
* Make-common.in (sim-signal.o): Add rule for.
(SIM_NEW_COMMON_OBJS): Add sim-signal.o.
* sim-abort.c: Don't include <signal.h>.
* sim-basics.h: #include "sim-signal.h".
* sim-break.c: Don't include <signal.h>.
(sim_handle_breakpoint): Replace SIGTRAP with SIM_SIGTRAP.
* sim-core.c: Don't include <signal.h>.
(SIGBUS): Delete definition.
(sim_core_signal): Replace SIGSEGV,SIGBUS with SIM_SIGSEGV,SIM_SIGBUS.
* sim-engine.c: Don't include <signal.h>.
(sim_engine_abort): Replace SIGABRT with SIM_SIGABRT.
* sim-reason.c (sim_stop_reason): Call sim_signal_to_host.
* sim-resume.c: Don't include <signal.h>.
(SIGTRAP): Delete definition.
(has_stepped): Replace SIGTRAP with SIM_SIGTRAP.
* sim-stop.c: Don't include <signal.h>.
(control_c_simulation): Replace SIGINT with SIM_SIGINT.
* sim-watch.c: Don't include <signal.h>.
(handle_watchpoint): Replace SIGINT with SIM_SIGINT.

27 years agovr5400 has interlocks
Ken Raeburn [Wed, 19 Nov 1997 07:25:47 +0000 (07:25 +0000)]
vr5400 has interlocks

27 years ago * sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
Doug Evans [Wed, 19 Nov 1997 02:37:58 +0000 (02:37 +0000)]
* sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
* sim-break.c (sim_handle_breakpoint): Likewise.

27 years ago * sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
Doug Evans [Tue, 18 Nov 1997 23:59:29 +0000 (23:59 +0000)]
* sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.

27 years ago * Make-common.in (SIM_NEW_COMMON_OBJS): New variable.
Doug Evans [Tue, 18 Nov 1997 23:55:33 +0000 (23:55 +0000)]
* Make-common.in (SIM_NEW_COMMON_OBJS): New variable.

* sim-base.h (CIA_ADDR): Provide default definition.

27 years ago * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
Doug Evans [Tue, 18 Nov 1997 23:46:14 +0000 (23:46 +0000)]
* Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).

27 years ago * Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).
Doug Evans [Tue, 18 Nov 1997 23:40:40 +0000 (23:40 +0000)]
* Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).

27 years ago * sim-main.h (CIA_ADDR): Define.
Doug Evans [Tue, 18 Nov 1997 23:36:46 +0000 (23:36 +0000)]
* sim-main.h (CIA_ADDR): Define.

* Makefile.in (SIM_OBJS): Use $(SIM_NEW_COMMON_OBJS).

27 years ago * d10v-dis.c (print_operand):
Joern Rennecke [Tue, 18 Nov 1997 23:34:55 +0000 (23:34 +0000)]
* d10v-dis.c (print_operand):
Split OPERAND_FLAG into OPERAND_FFLAG and OPERAND_CFLAG.
Addendum for PR 13985.

27 years ago * include/opcode/d10v.h (OPERAND_FLAG): Split into:
Joern Rennecke [Tue, 18 Nov 1997 19:41:44 +0000 (19:41 +0000)]
* include/opcode/d10v.h (OPERAND_FLAG): Split into:
(OPERAND_FFLAG, OPERAND_CFLAG) .
* opcodes/d10v-opc.c (OPERAND_FLAG): Split into:
(OPERAND_FFLAG, OPERAND_CFLAG) .
(FSRC): Split into:
(FFSRC, CFSRC).
* gas/config/tc-d10v.c (parallel_ok, find_opcode):
Split OPERAND_FLAG into OPERAND_FFLAG and OPERAND_CFLAG.
Fix for PR 13985.

27 years ago* Make-common.in (srccom): New variable.
Doug Evans [Tue, 18 Nov 1997 07:14:20 +0000 (07:14 +0000)]
* Make-common.in (srccom): New variable.

27 years ago * Makefile.in (remote-sim.o): Depend on $(INCLUDE_DIR)/callback.h.
Doug Evans [Mon, 17 Nov 1997 23:36:16 +0000 (23:36 +0000)]
* Makefile.in (remote-sim.o): Depend on $(INCLUDE_DIR)/callback.h.

27 years agoTweak comment.
Doug Evans [Mon, 17 Nov 1997 23:17:31 +0000 (23:17 +0000)]
Tweak comment.

27 years ago * Make-common.in (DEP, COMMON_DEP_CFLAGS): Define.
Doug Evans [Mon, 17 Nov 1997 23:09:08 +0000 (23:09 +0000)]
* Make-common.in (DEP, COMMON_DEP_CFLAGS): Define.
(LIB_OBJS): Add syscall.o.
(gentmap): Pass $(NL_TARGET) to $(CC).
(syscall.o): Add rule for.
(sim_main_headers): Add $(SIM_EXTRA_DEPS).
(sim-bits.o): Depend on $(sim-n-bits_h).
(sim-load.o): Depend on callback.h.

* Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to
cgen-mem.h, sem-ops.h renamed to cgen-ops.h.
* cgen-mem.h, cgen-ops.h: New files.

* aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no".

* Makefile.in (nltvals.def): Depend on gennltvals.sh.
Rewrite build rule.
* callback.c: #include string.h or strings.h.
#include sys/types.h and sys/stat.h.
(cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare.
(enosys): New function.
(os_get_errno,os_open): Update.
(os_stat,os_fstat): New functions.
(os_init): Initialize syscall_map, errno_map, open_map.
(default_callback): Add entries for os_stat, os_fstat, syscall_map,
errno_map, open_map, signal_map, stat_map.
(cb_read_target_syscall_maps): New function.
(cb_target_to_host_syscall): New function.
(cb_host_to_target_errno): Renamed from host_to_target_errno.
(cb_target_to_host_open): Renamed from target_to_host_open.
(store): New function.
(cb_host_to_target_stat): New function.
* gentmap.c (sys_tdefs): New global.
(gen_targ_vals_h): Output target syscall numbers.
(gen_targ_map_c): Update.  Output target syscall translation map.
* gentvals.sh: New first argument `target'.  Preface table with
#ifdef NL_TARGET_$target if non-null target passed.
* gennltvals.sh: New file.
* nltvals.def: Regenerated.

27 years agoTest SUBI omsn
Andrew Cagney [Mon, 17 Nov 1997 22:36:19 +0000 (22:36 +0000)]
Test SUBI omsn

27 years ago * callback.h (CB_TARGET_DEFS_MAP): Renamed from target_defs_map.
Doug Evans [Mon, 17 Nov 1997 22:12:52 +0000 (22:12 +0000)]
* callback.h (CB_TARGET_DEFS_MAP): Renamed from target_defs_map.
(host_callback): Add stat, fstat, syscall_map, errno_map, open_map,
signal_map, stat_map.
(errn_map,open_map): Renamed to cb_init_foo_map.
(cb_host_to_target_errno,cb_target_to_host_open): Renamed from
host_to_target_errno,target_to_host_open.
(cb_read_target_syscall_maps): Add prototype.
(cb_target_to_host_syscall): Likewise.
(cb_host_to_target_stat): Likewise.
(cb_syscall): Likewise.
(CB_SYS_{exit,open,close,read,write,lseek,unlink,getpid,kill,fstat,
argvlen,argv,chdir,stat,chmod,utime,time}): Define.
(CB_SYSCALL): New type.
(CB_RC): New enum.

27 years ago * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Fix typo.
Jeff Law [Mon, 17 Nov 1997 22:06:48 +0000 (22:06 +0000)]
    * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Fix typo.
        (mn10300_elf_relax_section): Likewise.

27 years agoMake d30v defaults match chip
Michael Meissner [Mon, 17 Nov 1997 01:21:37 +0000 (01:21 +0000)]
Make d30v defaults match chip

27 years ago * peicode.h (coff_swap_aouthdr_in): Cast second arg of
Fred Fish [Mon, 17 Nov 1997 00:26:46 +0000 (00:26 +0000)]
* peicode.h (coff_swap_aouthdr_in): Cast second arg of
bfd_h_get_* calls to "bfd_byte *".

27 years ago * config/obj-coff.c (fixup_segment): Cast second arg of
Fred Fish [Mon, 17 Nov 1997 00:23:35 +0000 (00:23 +0000)]
* config/obj-coff.c (fixup_segment): Cast second arg of
md_apply_fix3 call to type "valueT *".

27 years ago(sim_core_signal): Add missing "\n" in message.
Doug Evans [Fri, 14 Nov 1997 21:52:04 +0000 (21:52 +0000)]
(sim_core_signal): Add missing "\n" in message.
Forgot to check in yesterday.

27 years ago * jv-exp.y (copy_exp, insert_exp): Avoid ANSI prototypes.
Jeff Law [Fri, 14 Nov 1997 20:02:46 +0000 (20:02 +0000)]
    * jv-exp.y (copy_exp, insert_exp): Avoid ANSI prototypes.

27 years ago * mips.igen: Tag vr5000 instructions.
Andrew Cagney [Fri, 14 Nov 1997 08:27:38 +0000 (08:27 +0000)]
   * mips.igen: Tag vr5000 instructions.
        (ANDI): Was missing mipsIV model, fix assembler syntax.
        (do_c_cond_fmt): New function.
        (C.cond.fmt): Handle mips I-III which do not support CC field
        separatly.
        (bc1): Handle mips IV which do not have a delaed FCC separatly.
        (SDR): Mask paddr when BigEndianMem, not the converse as specified
        in IV3.2 spec.
        (DMULT, DMULTU): Force use of hosts 64bit multiplication.  Handle
        vr5000 which saves LO in a GPR separatly.
        * configure.in (enable-sim-igen): For vr5000, select vr5000
        specific instructions.
        * configure: Re-generate.

27 years agoAdd FreeBSD/aout target confiiguration. Make it a 386BSD clone.
Andrew Cagney [Thu, 13 Nov 1997 22:21:36 +0000 (22:21 +0000)]
Add FreeBSD/aout target confiiguration.  Make it a 386BSD clone.

27 years ago * sim-base.h (sim_state_base): Move `magic' to end of struct.
Doug Evans [Thu, 13 Nov 1997 21:18:14 +0000 (21:18 +0000)]
* sim-base.h (sim_state_base): Move `magic' to end of struct.

* sim-base.h (sim_state_base): Add member trace_data.
(STATE_TRACE_DATA): New macro.
* sim-trace.h (TRACE_DEBUG_IDX,TRACE_debug): New macros.
({WITH_,}TRACE_DEBUG_P): New macros.
(STATE_TRACE_FLAGS,STRACE_P,STRACE_DEBUG_P): New macros.
(_sim_cpu): Delete forward reference.
(debug_printf): Update.
* sim-trace.c (OPTION_TRACE_DEBUG): Define.
(trace_options): Add --trace-debug.
(set_trace_options): Handle it.
(trace_option_handler): Likewise.
(trace_install): Init state trace_data struct.
(trace_uninstall): Close state trace file.
* sim-events.c (ETRACE): Only print source file and number if
--trace-debug.
* sim-n-core.h (sim_core_trace_M): Likewise.

* sim-core.c (sim_core_signal): Add missing "\n" in message.

27 years ago * sim-n-core.h (sim_core_read_unaligned_N): illegal empty
Felix Lee [Thu, 13 Nov 1997 18:45:21 +0000 (18:45 +0000)]
* sim-n-core.h (sim_core_read_unaligned_N): illegal empty
initializer.
* sim-types.h (unsigned128,signed128): fix typo for MSVC.

27 years ago * mips.h (struct mips_opcode): Changed comments to reflect new
Gavin Romig-Koch [Thu, 13 Nov 1997 16:13:03 +0000 (16:13 +0000)]
* mips.h (struct mips_opcode): Changed comments to reflect new
field usage.
* mips-opc.c: Move the INSN_MACRO ISA value to the membership
field for all INSN_MACRO's.
* mips16-opc.c: same
* config/tc-mips.c (macro_build): Use the membership field
for INSN_MACRO's.
(mips_ip): Same.

27 years agofix spacing
Michael Meissner [Thu, 13 Nov 1997 15:38:23 +0000 (15:38 +0000)]
fix spacing

27 years agoAdd comment about code that is actually d10v specific instead of d30v
Michael Meissner [Thu, 13 Nov 1997 15:11:56 +0000 (15:11 +0000)]
Add comment about code that is actually d10v specific instead of d30v

27 years agoAdd info command to print out flags values
Michael Meissner [Thu, 13 Nov 1997 14:52:14 +0000 (14:52 +0000)]
Add info command to print out flags values

27 years ago * config/tc-d10v.c (find_opcode): For OPCODE_FAKE, add check for
Joern Rennecke [Thu, 13 Nov 1997 02:19:13 +0000 (02:19 +0000)]
* config/tc-d10v.c (find_opcode): For OPCODE_FAKE, add check for
first argument if it's supposed to be a register.
PR 13952.

27 years ago * Make-common.in (BUILT_SRC_FROM_COMMON): Remove files no longer
Doug Evans [Wed, 12 Nov 1997 20:29:53 +0000 (20:29 +0000)]
* Make-common.in (BUILT_SRC_FROM_COMMON): Remove files no longer
built this way.
(sim-config.o): Remove non-existent $(sim-nconfig_h) dependency.
(clean): Don't delete $(BUILT_SRC_FROM_COMMON) if building in
source tree.

27 years ago * aclocal.m4 (SIM_AC_OPTION_SCACHE): Fix typo.
Doug Evans [Wed, 12 Nov 1997 20:19:34 +0000 (20:19 +0000)]
* aclocal.m4 (SIM_AC_OPTION_SCACHE): Fix typo.
Updating of configure's left for later.

27 years ago * ld-cdtest/cdtest-foo.h (class Foo): Declare len to be int to
Ian Lance Taylor [Wed, 12 Nov 1997 19:20:11 +0000 (19:20 +0000)]
* ld-cdtest/cdtest-foo.h (class Foo): Declare len to be int to
avoid compiler warning.
* ld-srec/sr3.cc (class Foo): Likewise.

27 years agomips-opc.c (sync,cache): These are 3900 insns.
Gavin Romig-Koch [Wed, 12 Nov 1997 15:18:56 +0000 (15:18 +0000)]
mips-opc.c (sync,cache): These are 3900 insns.

27 years agoconfig/tc-mips.c (mips_4900): Added.
Gavin Romig-Koch [Wed, 12 Nov 1997 15:09:33 +0000 (15:09 +0000)]
config/tc-mips.c (mips_4900): Added.
(hilo_interlocks): Added mips_4900.
(md_begin): Set default for mips_4900.
(macro_build,mips_ip): Test for INSN_4900 if mips_4900.
(md_longopts): Add "m4900" and "no-m4900".
(md_parse_option): Handle above options.

27 years ago sh-opc.h (sh_table): Remove ftst/nan.
Joern Rennecke [Wed, 12 Nov 1997 00:02:37 +0000 (00:02 +0000)]
sh-opc.h (sh_table): Remove ftst/nan.
Fixes gcc/13330.

27 years ago * app.c (do_scrub_chars): If d10v, re-insert a space before
Joern Rennecke [Tue, 11 Nov 1997 19:35:49 +0000 (19:35 +0000)]
    * app.c (do_scrub_chars):  If d10v, re-insert a space before
        a '#' when in state 10.
Fix for PR 13894.

27 years ago * config/tc-h8300.c: Include "subsegs.h".
Ian Lance Taylor [Tue, 11 Nov 1997 18:35:20 +0000 (18:35 +0000)]
* config/tc-h8300.c: Include "subsegs.h".
(tc_reloc_mangle): Handle references to symbols which are not
being output, so that references to `.' work.
PR 13915.

27 years ago * simops.c (call:16 call:32): Stack adjustment is determined solely
Jeff Law [Tue, 11 Nov 1997 17:37:04 +0000 (17:37 +0000)]
    * simops.c (call:16 call:32): Stack adjustment is determined solely
        by the imm8 field.

27 years agoMake the signess of compares between GPR's explicit using a cast to
Andrew Cagney [Tue, 11 Nov 1997 12:31:24 +0000 (12:31 +0000)]
Make the signess of compares between GPR's explicit using a cast to
signed_word.

27 years agoFix IGEN version of MFC0, MTC0, SWC1, LWC1, SDC1, LDC1, LWXC1,
Andrew Cagney [Tue, 11 Nov 1997 07:50:13 +0000 (07:50 +0000)]
Fix IGEN version of MFC0, MTC0, SWC1, LWC1, SDC1, LDC1, LWXC1,
SWXC1MTC1, MFC1, DMTC1, DMFC1, CFC1, CTC1, MULT, MULTU, BEQZ, ...MTHI,
MFHI instructions.
Trace nullified instruction.

27 years ago * sim-events.c (sim_events_process): Re-compute the time -
Andrew Cagney [Tue, 11 Nov 1997 07:48:05 +0000 (07:48 +0000)]
    * sim-events.c (sim_events_process): Re-compute the time -
        update_time_from_event - as each event is processed. Reverses
        previous change.