+
+ PR gdb/7205
+
+ Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
+
+
+ * aclocal.m4, config.in, configure: Regenerate.
+
+
+ PR sim/9971:
+ * configure.ac: Change AC_CHECK_LIB to AC_SEARCH_LIBS to match
+ the code in gdb's configure.ac with $TERMCAP.
+ * configure: Regenerated.
+
+
+ * aclocal.m4: New file.
+ * configure: Regenerate.
+
+
+ * configure.ac: Change include to common/acinclude.m4.
+
+
+ * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
+ call. Replace common.m4 include with SIM_AC_COMMON.
+ * configure: Regenerate.
+
+
+ * interf.c (sim_open): Accept and ignore `--sysroot=...'.
+
+
+ * interf.c (sim_complete_command): New stub function.
+
+
+ * interf.c (sim_store_register): Update return value to
+ match new API.
+
+
+ * sis.h: Remove #include <stdint.h>.
+ (uint64, int64): Redefine without using stdint.h.
+ (UINT64_MAX): Define.
+
+
+ * erc32.c (sis_memory_write): Change prototype to const unsigned char *.
+ * func.c (exec_cmd, event, advance_time, wait_for_irq): Use uint64
+ for counts.
+ * interf.c (run_sim): Change icount to uint64_t. Use strtol directly.
+ (sim_resume): Specify maximum run time as uint64.
+ * sis.c (run_sim): Change icount to uint64_t.
+ * sis.h: Define uint64 as uint64_t. Change various fields and
+ prototypes to uint64 to support longer simulations.
+
+
+ * interp.c (sim_write): Add const to buf arg.
+
+
+ * configure: Regenerate.
+
+
+ * config.in: Regenerate.
+ * configure: Likewise.
+
+ * configure: Regenerate.
+
+
+ * erc32.c, exec.c: Fix warnings.
+
+
+ * configure: Regenerate to track ../common/common.m4 changes.
+ * config.in: Ditto.
+
+
+ * sis.c: Correct spelling error.
+
+
+ * configure: Regenerate.
+
+
+ * acconfig.h: Remove.
+ * config.in: Regenerate.
+
+
+ * configure.ac: Add test for readline, substitute READLINE.
+ * Makefile.in (READLINE_LIB): New substituted-contents variable.
+ (SIM_EXTRA_LIBDEPS): Don't set.
+ (SIM_EXTRA_LIBS): Use $(READLINE_LIB) instead of
+ ../../readline/libreadline.a.
+ * configure: Regenerate.
+
+
+ * Makefile.in (func.o, help.o): Correct dependencies.
+
+
+ * Makefile.in (install-sis): Honor DESTDIR.
+
+
+ * configure: Regenerated.
+
+
+ * configure: Regenerated.
+
+
+ * configure: Regenerated.
+
+
+ * interf.c: (gdb/signals.h): Include it.
+ (sim_stop_reason): Use TARGET_SIGNAL_*.
+
+
+ * func.c: Remove ANSI_PROTOTYPES conditional code.
+
+
+ * configure: Regenerate.
+
+
+ * sim/erc32/float.c (set_fsr): Do not use deprecated multi-line
+ strings.
+ (clear_accex): Ditto.
+ * sim/erc32/interf.c: Remove the redeclaration of fprintf.
+ * sim/erc32/sis.c: Ditto.
+ * sim/erc32/exec.c: Add missing semicolon.
+ * sim/erc32/func.c: Remove definitions of generic_print_address,
+ generic_symbol_at_address, buffer_read_memory and perror_memory, as
+ they are already defined in opcodes/dis-buf.c.
+
+
+ * configure.ac: Sinclude aclocal.m4 before common.m4. Add
+ explicit call to AC_CONFIG_HEADER.
+ * configure: Regenerate.
+
+
+ * configure.ac: Update to use ../common/common.m4.
+ * configure: Re-generate.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure.ac: Rename configure.in, require autoconf 2.59.
+ * configure: Re-generate.
+
+
+ * configure: Regenerate for ../common/aclocal.m4 update.
+
+
+ * interf.c: Include "libiberty.h" instead of declaring buildargv
+ ourselves.
+
+
+ * interf.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * sis.h: Include "gdb/remote-sim.h" and "gdb/callback.h".
+ * interf.c: Include "gdb/remote-sim.h".
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * Makefile.in (install-sis): Add $(EXEEXT) for Windows host.
+
+
+ * func.c (buffer_read_memory): Change type of size to unsigned to
+ match prototype
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure: Regenerated to track ../common/aclocal.m4 changes.
+
+
+ * configure.in: add termcap and -luser32 for host=cygwin
+ * configure: regenerate
+
+
+ * exec.c (dispatch_instruction):
+ Correct the sense of the
+ if (!sparclite) {
+ sregs->trap = TRAP_UNIMP;
+ break;
+ }
+ clause that has been pasted around: it's correct in the SCAN and
+ DIVScc (divide step) cases (where it was probably originally
+ written?), but reversed in the SDIV, SDIVcc, UDIV, UDIVcc cases
+ ie. instructions only in the SPARC V8 or SPARClite 86x
+ architectures. It was also present when not required for SMUL,
+ SMULcc, UMUL, UMULcc instructions that are present in all
+ architectures.
+
+
+ * interf.c (run_sim): Fix a bug in the main loop's handling of
+ annulled delay slot instructions. There is precedent for this
+ change; the _other_ main loop in sis.c gets it right according to
+ my reading of the code.
+
+ The bug is: if an interrupt happens when the next instruction
+ (at sregs->pc) is annulled, the trap is taken (by execute_trap())
+ with the current values of PC and NPC, so when the trap returns,
+ the annulled instruction is indeed executed. Another giveaway is
+ that the annul flag is cleared in execute_trap(): the information
+ is demonstrably discarded.
+
+ The solution is: perform annulling before looking for traps, in
+ fact it's neater to do annulling, see if there's an interrupt and
+ if not, do the instruction, then handle traps be they generated by
+ interrupts pending or by the instruction we might just have done.
+ That's what the sis.c one does.
+
+
+ * sis.h: Add asr17 register for support of SparcLITE (at least the
+ Hitachi ones I find before me)
+
+ * exec.c (dispatch_instruction): Case WRY: Allow write of asr17 if
+ sparclite. Other ASR numbers than 17 or 0 (Y) trap out.
+ Case RDY: Allow read of asr17 if sparclite. Other ASRs ditto.
+ (execute_trap): Do single-vector-trapping if asr17 bit 0 is set.
+ (init_regs): Initialize y and asr17.
+ NB: In instruction-set space, the Y register is asr0; the
+ instructions have different names for human reasons only.
+
+ * sis.c:
+ * interf.c: Set boolean mode variable dumbio if invoked with
+ argument "-dumbio" and mention it of verbose.
+ * erc32.c: if "dumbio" is set, do not assume that there is a
+ terminal type device attached to stdin/stdout. Do not set
+ buffering or mess with tcsetattr or do any read operations in
+ order to make UART interrupts; not input data is supported.
+ This is necessary to allow the sim to be used within the eCos
+ testing infrastructure where stdin/stdout are pipes to a TCL
+ program; the sim hangs otherwise.
+
+
+ * exec.c (dispatch_instruction): Add SPARClite 'scan' instruction.
+
+
+ * func.c (bfd_load): Add special handling of a.out executables.
+
+
+ * func.c (bfd_load): Print correct endianness.
+ * interf.c (run_sim): Print debugging information if verbosity level
+ is greater than 2.
+ (sim_open): Repeated -v options now increment verbosity level.
+ (sim_store_register): Handle little-endian case.
+ (flush_window): Print debugging information if verbosity level
+ is greater then 2.
+
+
+ * interf.c (sim_open): Use revamped memory_read, which makes
+ byte-swapping unnecessary. Add -sparclite-board option for
+ emulating RAM found on typical SPARClite boards. Print
+ error message for unrecognized option.
+ * erc32.c: Change RAM address and size from constants to variables,
+ to allow emulation of SPARClite board RAM.
+ (fetch_bytes, store_bytes): New helper functions for revamped
+ mememory_read and memory_write.
+ (memory_read, memory_write): Rewrite to store bytes in target
+ byte order instead of storing words in host byte order; this
+ greatly simplifies support of little-endian programs.
+ (get_mem_ptr): Remove unnecessary byte parameter.
+ (sis_memory_write, sis_memory_read): Store words in target
+ byte order instead of host byte order.
+ (byte_swap_words): Remove, no longer needed.
+ * sis.h ((byte_swap_words): Remove declaration, no longer needed.
+ (memory_read): Add new sz parameter.
+ * sis.c (run_sim): Use revamped memory_read, which makes
+ byte-swapping unnecessary.
+ * exec.c (dispatch_instruction): Use revamped memory_read, which
+ makes byte-swapping and double-word fetching unnecessary.
+ * func.c (sparclite_board): Declare new variable.
+ (get_regi): Handle little-endian data.
+ (bfd_load): Recognize little-endian SPARClite as having
+ little-endian data.
+
+
+ * erc32.c (port_init): Print messages only if sis_verbose is true.
+ * func.c (bfd_load): Ditto.
+ * interf.c (sim_open): Ditto.
+
* sis.h (uint64, int64): Define.
* (dispatch_instruction): Add emulation of SDIV, SDIVCC, UDIV,
and UDIVCC.
+
+ * erc32.c (close_port): Don't close stdin; it kills GDB.
+ (byte_swap_words): New function.
+ * sis.h: (byte_swap_words): Declare.
+ * interf.c (run_sim): Always fetch instructions as big-endian.
+ * sis.c (run_sim): Ditto.
+
* configure: Regenerated to track ../common/aclocal.m4 changes.