3 * configure: Regenerate.
7 * aclocal.m4, configure: Regenerate.
11 * Makefile.in: Include build directory in search path to find
16 * end.c: Include config.h before system header files.
26 * sys.h: Include "config.h".
30 * config.in, configure: Regenerate.
36 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
40 * aclocal.m4, config.in, configure: Regenerate.
45 * configure.ac: Change AC_CHECK_LIB to AC_SEARCH_LIBS to match
46 the code in gdb's configure.ac with $TERMCAP.
47 * configure: Regenerated.
51 * aclocal.m4: New file.
52 * configure: Regenerate.
56 * configure.ac: Change include to common/acinclude.m4.
60 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
61 call. Replace common.m4 include with SIM_AC_COMMON.
62 * configure: Regenerate.
66 * interf.c (sim_open): Accept and ignore `--sysroot=...'.
70 * interf.c (sim_complete_command): New stub function.
74 * interf.c (sim_store_register): Update return value to
79 * sis.h: Remove #include <stdint.h>.
80 (uint64, int64): Redefine without using stdint.h.
85 * erc32.c (sis_memory_write): Change prototype to const unsigned char *.
86 * func.c (exec_cmd, event, advance_time, wait_for_irq): Use uint64
88 * interf.c (run_sim): Change icount to uint64_t. Use strtol directly.
89 (sim_resume): Specify maximum run time as uint64.
90 * sis.c (run_sim): Change icount to uint64_t.
91 * sis.h: Define uint64 as uint64_t. Change various fields and
92 prototypes to uint64 to support longer simulations.
96 * interp.c (sim_write): Add const to buf arg.
100 * configure: Regenerate.
104 * config.in: Regenerate.
105 * configure: Likewise.
107 * configure: Regenerate.
111 * erc32.c, exec.c: Fix warnings.
115 * configure: Regenerate to track ../common/common.m4 changes.
120 * sis.c: Correct spelling error.
126 * configure: Regenerate.
130 * acconfig.h: Remove.
131 * config.in: Regenerate.
135 * configure.ac: Add test for readline, substitute READLINE.
136 * Makefile.in (READLINE_LIB): New substituted-contents variable.
137 (SIM_EXTRA_LIBDEPS): Don't set.
138 (SIM_EXTRA_LIBS): Use $(READLINE_LIB) instead of
139 ../../readline/libreadline.a.
140 * configure: Regenerate.
144 * Makefile.in (func.o, help.o): Correct dependencies.
148 * Makefile.in (install-sis): Honor DESTDIR.
152 * configure: Regenerated.
156 * configure: Regenerated.
160 * configure: Regenerated.
164 * interf.c: (gdb/signals.h): Include it.
165 (sim_stop_reason): Use TARGET_SIGNAL_*.
169 * func.c: Remove ANSI_PROTOTYPES conditional code.
173 * configure: Regenerate.
177 * sim/erc32/float.c (set_fsr): Do not use deprecated multi-line
179 (clear_accex): Ditto.
180 * sim/erc32/interf.c: Remove the redeclaration of fprintf.
181 * sim/erc32/sis.c: Ditto.
182 * sim/erc32/exec.c: Add missing semicolon.
183 * sim/erc32/func.c: Remove definitions of generic_print_address,
184 generic_symbol_at_address, buffer_read_memory and perror_memory, as
185 they are already defined in opcodes/dis-buf.c.
189 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
190 explicit call to AC_CONFIG_HEADER.
191 * configure: Regenerate.
195 * configure.ac: Update to use ../common/common.m4.
196 * configure: Re-generate.
200 * configure: Regenerated to track ../common/aclocal.m4 changes.
204 * configure.ac: Rename configure.in, require autoconf 2.59.
205 * configure: Re-generate.
209 * configure: Regenerate for ../common/aclocal.m4 update.
213 * interf.c: Include "libiberty.h" instead of declaring buildargv
218 * interf.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
222 * configure: Regenerated to track ../common/aclocal.m4 changes.
226 * sis.h: Include "gdb/remote-sim.h" and "gdb/callback.h".
227 * interf.c: Include "gdb/remote-sim.h".
231 * configure: Regenerated to track ../common/aclocal.m4 changes.
236 * Makefile.in (install-sis): Add $(EXEEXT) for Windows host.
240 * func.c (buffer_read_memory): Change type of size to unsigned to
245 * configure: Regenerated to track ../common/aclocal.m4 changes.
249 * configure: Regenerated to track ../common/aclocal.m4 changes.
253 * configure.in: add termcap and -luser32 for host=cygwin
254 * configure: regenerate
258 * exec.c (dispatch_instruction):
259 Correct the sense of the
261 sregs->trap = TRAP_UNIMP;
264 clause that has been pasted around: it's correct in the SCAN and
265 DIVScc (divide step) cases (where it was probably originally
266 written?), but reversed in the SDIV, SDIVcc, UDIV, UDIVcc cases
267 ie. instructions only in the SPARC V8 or SPARClite 86x
268 architectures. It was also present when not required for SMUL,
269 SMULcc, UMUL, UMULcc instructions that are present in all
274 * interf.c (run_sim): Fix a bug in the main loop's handling of
275 annulled delay slot instructions. There is precedent for this
276 change; the _other_ main loop in sis.c gets it right according to
277 my reading of the code.
279 The bug is: if an interrupt happens when the next instruction
280 (at sregs->pc) is annulled, the trap is taken (by execute_trap())
281 with the current values of PC and NPC, so when the trap returns,
282 the annulled instruction is indeed executed. Another giveaway is
283 that the annul flag is cleared in execute_trap(): the information
284 is demonstrably discarded.
286 The solution is: perform annulling before looking for traps, in
287 fact it's neater to do annulling, see if there's an interrupt and
288 if not, do the instruction, then handle traps be they generated by
289 interrupts pending or by the instruction we might just have done.
290 That's what the sis.c one does.
294 * sis.h: Add asr17 register for support of SparcLITE (at least the
295 Hitachi ones I find before me)
297 * exec.c (dispatch_instruction): Case WRY: Allow write of asr17 if
298 sparclite. Other ASR numbers than 17 or 0 (Y) trap out.
299 Case RDY: Allow read of asr17 if sparclite. Other ASRs ditto.
300 (execute_trap): Do single-vector-trapping if asr17 bit 0 is set.
301 (init_regs): Initialize y and asr17.
302 NB: In instruction-set space, the Y register is asr0; the
303 instructions have different names for human reasons only.
306 * interf.c: Set boolean mode variable dumbio if invoked with
307 argument "-dumbio" and mention it of verbose.
308 * erc32.c: if "dumbio" is set, do not assume that there is a
309 terminal type device attached to stdin/stdout. Do not set
310 buffering or mess with tcsetattr or do any read operations in
311 order to make UART interrupts; not input data is supported.
312 This is necessary to allow the sim to be used within the eCos
313 testing infrastructure where stdin/stdout are pipes to a TCL
314 program; the sim hangs otherwise.
318 * exec.c (dispatch_instruction): Add SPARClite 'scan' instruction.
322 * func.c (bfd_load): Add special handling of a.out executables.
326 * func.c (bfd_load): Print correct endianness.
327 * interf.c (run_sim): Print debugging information if verbosity level
329 (sim_open): Repeated -v options now increment verbosity level.
330 (sim_store_register): Handle little-endian case.
331 (flush_window): Print debugging information if verbosity level
336 * interf.c (sim_open): Use revamped memory_read, which makes
337 byte-swapping unnecessary. Add -sparclite-board option for
338 emulating RAM found on typical SPARClite boards. Print
339 error message for unrecognized option.
340 * erc32.c: Change RAM address and size from constants to variables,
341 to allow emulation of SPARClite board RAM.
342 (fetch_bytes, store_bytes): New helper functions for revamped
343 mememory_read and memory_write.
344 (memory_read, memory_write): Rewrite to store bytes in target
345 byte order instead of storing words in host byte order; this
346 greatly simplifies support of little-endian programs.
347 (get_mem_ptr): Remove unnecessary byte parameter.
348 (sis_memory_write, sis_memory_read): Store words in target
349 byte order instead of host byte order.
350 (byte_swap_words): Remove, no longer needed.
351 * sis.h ((byte_swap_words): Remove declaration, no longer needed.
352 (memory_read): Add new sz parameter.
353 * sis.c (run_sim): Use revamped memory_read, which makes
354 byte-swapping unnecessary.
355 * exec.c (dispatch_instruction): Use revamped memory_read, which
356 makes byte-swapping and double-word fetching unnecessary.
357 * func.c (sparclite_board): Declare new variable.
358 (get_regi): Handle little-endian data.
359 (bfd_load): Recognize little-endian SPARClite as having
364 * erc32.c (port_init): Print messages only if sis_verbose is true.
365 * func.c (bfd_load): Ditto.
366 * interf.c (sim_open): Ditto.
370 * sis.h (uint64, int64): Define.
371 * exec.c (SDIV, SDIVCC, UDIV, UDIVCC): Define new opcodes.
372 * (mul64): Simplify calculation of negative result.
373 * (div64): New helper function for 64-bit division.
374 * (dispatch_instruction): Add emulation of SDIV, SDIVCC, UDIV,
379 * erc32.c (close_port): Don't close stdin; it kills GDB.
380 (byte_swap_words): New function.
381 * sis.h: (byte_swap_words): Declare.
382 * interf.c (run_sim): Always fetch instructions as big-endian.
383 * sis.c (run_sim): Ditto.
387 * configure: Regenerated to track ../common/aclocal.m4 changes.
389 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
391 * configure: Regenerated to track ../common/aclocal.m4 changes.
396 * acconfig.h: New file.
397 * configure.in: Reverted change of Apr 24; use sinclude again.
399 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
401 * configure: Regenerated to track ../common/aclocal.m4 changes.
406 * configure.in: Don't call sinclude.
410 * func.c (disp_fpu): Fix build problem on big-endian hosts.
414 * erc32.c (sim_stop): Handle SIGINT gracefully.
415 * interf.c (sim_open): Don't catch SIGINT; GDB will do that for us.
419 * exec.c (dispatch_instruction): Change how carry out is calculated
420 in DIVSCC. Add emulation of SMULCC, UMUL, and UMULCC.
424 * configure: Regenerated to track ../common/aclocal.m4 changes.
428 * end.c: Update to version 2.7.5, fix compiler warnings and bugs.
440 * configure: Regenerated to track ../common/aclocal.m4 changes.
444 * configure: Regenerated to track ../common/aclocal.m4 changes.
448 * configure: Regenerated to track ../common/aclocal.m4 changes.
452 * interf.c (sim_store_register, sim_fetch_register): Pass in
453 length parameter. Return -1.
457 * configure: Regenerated to track ../common/aclocal.m4 changes.
461 * configure: Regenerated to track ../common/aclocal.m4 changes.
463 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
465 * configure: Regenerated to track ../common/aclocal.m4 changes.
469 * configure: Regenerated to track ../common/aclocal.m4 changes.
474 * configure: Regenerated to track ../common/aclocal.m4 changes.
478 * configure: Regenerated to track ../common/aclocal.m4 changes.
482 * configure: Regenerated to track ../common/aclocal.m4 changes.
486 * configure: Regenerated to track ../common/aclocal.m4 changes.
490 * configure: Regenerated to track ../common/aclocal.m4 changes.
494 * configure: Regenerated to track ../common/aclocal.m4 changes.
498 * configure: Regenerated to track ../common/aclocal.m4 changes.
502 * configure: Regenerated to track ../common/aclocal.m4 changes.
507 * float.c (__setfpucw): Compile on any i386 target. Not just NT.
509 * interf.c (sim_kill): Delete.
510 (sim_create_inferior): Add ABFD argument. Initialize PC from ABFD
512 (sim_load): Don't save start address.
513 (start_address): Delete variable.
517 * configure: Regenerated to track ../common/aclocal.m4 changes.
522 * interf.c (sim_open): Add ABFD argument. Change ARGV to PARGV.
526 * Makefile.in (install-sis): Change $(srcdir)/sis to sis.
530 * interf.c (sim_set_callbacks): Drop SD argument - not applicable.
531 (sim_open): Add callback arg, save it.
535 * configure: Regenerated to track ../common/aclocal.m4 changes.
539 * interf.c (sim_open): Undo patch to add -E support.
543 * interf.c (sim_open): Ignore -E arg.
544 (start_address): New static local.
545 (sim_load): Return SIM_RC. New arg abfd. Set start_address from bfd.
546 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
550 * Makefile.in (install-sis): Depend upon installdirs. Use
551 $(program_transform_name) directly, rather than using
556 * configure: Regenerated to track ../common/aclocal.m4 changes.
561 * interf.c (sim_open): New arg `kind'.
563 * configure: Regenerated to track ../common/aclocal.m4 changes.
567 * configure: Regenerated to track ../common/aclocal.m4 changes.
571 * configure: Re-generate.
575 * interf.c (sim_open): New SIM_DESC result. Argument is now in
577 (other sim_*): New SIM_DESC argument.
581 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
582 COMMON_{PRE,POST}_CONFIG_FRAG instead.
583 * configure.in: sinclude ../common/aclocal.m4.
584 * configure: Regenerated.
588 * configure configure.in Makefile.in: Update to new configure
589 scheme which is more compatible with WinGDB builds.
590 * configure.in: Improve comment on how to run autoconf.
591 * configure: Re-run autoconf to get new ../common/aclocal.m4.
592 * Makefile.in: Use autoconf substitution to install common
597 * interf.c (run_sim): Stop the simulator and reset the stdio after
602 * configure.in: Look for libtermcap.a.
603 * Makefile.in: Only link in -ltermcap if it exists.
604 * erc32.c: Update to version 2.6a. Fix uart handling.
605 * exec.c: Update to version 2.6a. Add sparclite support.
606 * float.c: Update to version 2.6a. Convert comments to
607 preprocessor warnings. Add __setfpucw() for i385 hosts so floating
608 point exceptions work on win32.
609 * func.c: Update to version 2.6a. Fix uart handling, add support
610 for user error traps.
611 * help.c: Update to version 2.6a. Add help note on user error
613 * interf.c: Update to version 2.6a. Fix uart handling, and add
615 * examples/gccx: Use sparclite cross compiler, not native gcc.
616 * examples/srt0.S: Use "mov" rather than "wr" for manipulating
621 * Makefile.in (run.o): Remove this rule, it hides the one in
622 ../common/Make-common.in that correctly references the source
623 in the sibling ../common directory.
627 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
628 (SIM_{OBJS,EXTRA_LIBS,EXTRA_LIBDEPS,EXTRA_ALL,EXTRA_INSTALL}): Define.
629 (SIM_{EXTRA_CLEAN,EXTRA_CFLAGS}): Define.
630 * configure.in: Simplify using macros in ../common/aclocal.m4.
631 Call AC_CHECK_HEADERS(stdlib.h).
632 * configure: Regenerated.
633 * config.in: New file.
634 * func.c (sim_set_callbacks): Delete, moved to
635 * interf.c (sim_set_callbacks): here.
636 (sim_callback): New global.
637 Rewrite all calls to printf_filtered to go through callback.
638 (sim_size,sim_trace): New functions.
639 (sim_{insert,remove}_breakpoint): #if 0 out.
640 * sis.c: #include "config.h". #include <stdlib.h> if present.
641 (main): Coerce fprintf arg to INIT_DISASSEMBLE_INFO to fprintf_ftype.
642 * sis.h: #include "callback.h".
643 * run.c: Deleted, using one in ../common now.
647 * Makefile.in (clean): Move config.log to distclean.
651 * Makefile.in (clean): Also remove config.log.
655 * Makefile.in (CC_FOR_BUILD): New variable.
656 (AR, AR_FLAGS, BISON, MAKEINFO): Remove duplicate variables.
657 (RANLIB, CC): Likewise.
658 (end): Use $(CC_FOR_BUILD), not $(CC).
659 * configure.in: Set CC_FOR_BUILD.
660 * configure: Rebuild.
664 * erc32.c (port_init): Disable this for __GO32__ (got no pty's
669 * erc32.c: Don't include sys/ioctl.h or sys/file.h. They aren't
671 * (port_init): Don't even *try* to open pty's under _WIN32.
672 * Use SIM_ADDR, not caddr_t for declaring vars that hold addresses.
673 * float.c: Get rid of #warning. Makes Microsoft C barf.
674 * interf.c (sim_open): Cast fprintf to (fprintf_ftype) to fix
676 * (sim_load sim_create_inferior sim_read): Use prototypes only in
678 * Get rid of enum sim_stop. It's defined in remote-sim.h.
679 * (sim_stop_reason): Define SIGTRAP if _WIN32.
680 * sis.h: Include ansidecl.h and remote-sim.h.
684 * erc32.c (mec_reset mec_read mec_write memory_read memory_write),
685 sis.h: Get rid of all uses of long long's.
686 * (close_port read_uart write_uart uarta_tx): Don't seg fault
687 when can't open pty's.
688 * exec.c: Add two new instructions: smul, and divscc.
689 * interf.c (flush_windows): New routine to flush the register
690 windows out to the stack just before returning to GDB. Makes
691 backtraces work much better.
695 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
696 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
697 (docdir, oldincludedir): Removed.
698 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
699 (AC_PROG_INSTALL): Added.
700 * configure: Rebuilt.
704 * configure.in: Call AC_PROG_CC before running configure.host.
705 * configure: Rebuild with autoconf 2.10.
709 * Makefile.in (install): Don't check to see if tooldir exists.
710 Make $(tooldir) and $(tooldir)/bin.
714 * Makefile.in (end.h): Use explicit ./ when running end.
718 * func.c(bfd_load): Don't try to print the filename if the pfbd is
720 * interf.c(sim_load): Pass the whole string, not just the first
726 * Fixed bug in "go" command.
731 * Fixed bug in interrupt force register (erc32.c).
733 * Change file load function to use bfd_openr.
735 * SIS should now be endian independent.
740 * Fixed FPU timing - some sequences of FPU instructions did not calculate
741 the resource dependencies right.
743 * Corrected STDFQ when qne = 0 (again!). The ftt is set to sequence_error
744 but no FPU trap is generated.
746 version 1.7.1 31-10-95
749 * Corrected STDFQ when qne = 0. Now, a trap is immidiately generated but
750 the FPU stays in execute mode.
752 * Corrected JMPL and RETT timing (these instructions takes two cycles).
758 * Interrupt during annuled instruction corrupted return address - fixed.
761 version 1.6.2 25-10-95
764 * Added -DFAST_UART to Makefile
767 version 1.6.1 24-10-95
770 * Fixed bug in STDFQ which caused bus error
776 * Modified srt0.s to include code that initiates registers in IU and FPU
777 and initializes the data segment. The simulator 'load' command does not
778 longer initialize the data segment!
780 * Corrected MEC timer operation; scalers now divide the frequency by
783 * MEC breakpoints are not checked during store operation
789 * Fixed some bugs in the cycle counting for IU & FPU instructions.
791 * Fixed bug that allowed an annuled instruction to cause memory exception.
793 * The *ws parameter in mem.c should now contain the number of waitstates
794 required by the memory access (was total number of cycles).
796 * The supplied srt0.s now clears the BSS (thanks Joel).
801 * Added a '-g' switch to enable/disable the GNU readline(), which cause
802 some problems on solaris 2.x machines.
804 * Enabled MEC watchpoint and breakpoint function to mem.c. Performance
807 NOTE: The UARTs are now connected to /dev/ttypc and /dev/ttypd.
812 * Fixed bug in mulscc instruction (how could that ever have worked?)
814 * Fixed bug in UART B (flushed characters on UART A), thanks Paul.
819 * Fixed bug in interrupt handling (wrong interrupt selected when more that
820 one interrupt pending)
822 * Fixed updating of condition codes during logical instructions (carry and
823 overflow were not reset)
825 * Fixed bug in WRTBR (tt field was wrongly over-written)
830 * Fixed several bugs in the interrupt handler and callback routines.
831 (reported by Paul Warren, Alsys)