3 * configure: Regenerate.
7 * config.in: Regenerate.
10 * configure: Regenerate.
14 * erc32.c, exec.c: Fix warnings.
18 * configure: Regenerate to track ../common/common.m4 changes.
23 * sis.c: Correct spelling error.
29 * configure: Regenerate.
34 * config.in: Regenerate.
38 * configure.ac: Add test for readline, substitute READLINE.
39 * Makefile.in (READLINE_LIB): New substituted-contents variable.
40 (SIM_EXTRA_LIBDEPS): Don't set.
41 (SIM_EXTRA_LIBS): Use $(READLINE_LIB) instead of
42 ../../readline/libreadline.a.
43 * configure: Regenerate.
47 * Makefile.in (func.o, help.o): Correct dependencies.
51 * Makefile.in (install-sis): Honor DESTDIR.
55 * configure: Regenerated.
59 * configure: Regenerated.
63 * configure: Regenerated.
67 * interf.c: (gdb/signals.h): Include it.
68 (sim_stop_reason): Use TARGET_SIGNAL_*.
72 * func.c: Remove ANSI_PROTOTYPES conditional code.
76 * configure: Regenerate.
80 * sim/erc32/float.c (set_fsr): Do not use deprecated multi-line
83 * sim/erc32/interf.c: Remove the redeclaration of fprintf.
84 * sim/erc32/sis.c: Ditto.
85 * sim/erc32/exec.c: Add missing semicolon.
86 * sim/erc32/func.c: Remove definitions of generic_print_address,
87 generic_symbol_at_address, buffer_read_memory and perror_memory, as
88 they are already defined in opcodes/dis-buf.c.
92 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
93 explicit call to AC_CONFIG_HEADER.
94 * configure: Regenerate.
98 * configure.ac: Update to use ../common/common.m4.
99 * configure: Re-generate.
103 * configure: Regenerated to track ../common/aclocal.m4 changes.
107 * configure.ac: Rename configure.in, require autoconf 2.59.
108 * configure: Re-generate.
112 * configure: Regenerate for ../common/aclocal.m4 update.
116 * interf.c: Include "libiberty.h" instead of declaring buildargv
121 * interf.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
125 * configure: Regenerated to track ../common/aclocal.m4 changes.
129 * sis.h: Include "gdb/remote-sim.h" and "gdb/callback.h".
130 * interf.c: Include "gdb/remote-sim.h".
134 * configure: Regenerated to track ../common/aclocal.m4 changes.
139 * Makefile.in (install-sis): Add $(EXEEXT) for Windows host.
143 * func.c (buffer_read_memory): Change type of size to unsigned to
148 * configure: Regenerated to track ../common/aclocal.m4 changes.
152 * configure: Regenerated to track ../common/aclocal.m4 changes.
156 * configure.in: add termcap and -luser32 for host=cygwin
157 * configure: regenerate
161 * exec.c (dispatch_instruction):
162 Correct the sense of the
164 sregs->trap = TRAP_UNIMP;
167 clause that has been pasted around: it's correct in the SCAN and
168 DIVScc (divide step) cases (where it was probably originally
169 written?), but reversed in the SDIV, SDIVcc, UDIV, UDIVcc cases
170 ie. instructions only in the SPARC V8 or SPARClite 86x
171 architectures. It was also present when not required for SMUL,
172 SMULcc, UMUL, UMULcc instructions that are present in all
177 * interf.c (run_sim): Fix a bug in the main loop's handling of
178 annulled delay slot instructions. There is precedent for this
179 change; the _other_ main loop in sis.c gets it right according to
180 my reading of the code.
182 The bug is: if an interrupt happens when the next instruction
183 (at sregs->pc) is annulled, the trap is taken (by execute_trap())
184 with the current values of PC and NPC, so when the trap returns,
185 the annulled instruction is indeed executed. Another giveaway is
186 that the annul flag is cleared in execute_trap(): the information
187 is demonstrably discarded.
189 The solution is: perform annulling before looking for traps, in
190 fact it's neater to do annulling, see if there's an interrupt and
191 if not, do the instruction, then handle traps be they generated by
192 interrupts pending or by the instruction we might just have done.
193 That's what the sis.c one does.
197 * sis.h: Add asr17 register for support of SparcLITE (at least the
198 Hitachi ones I find before me)
200 * exec.c (dispatch_instruction): Case WRY: Allow write of asr17 if
201 sparclite. Other ASR numbers than 17 or 0 (Y) trap out.
202 Case RDY: Allow read of asr17 if sparclite. Other ASRs ditto.
203 (execute_trap): Do single-vector-trapping if asr17 bit 0 is set.
204 (init_regs): Initialize y and asr17.
205 NB: In instruction-set space, the Y register is asr0; the
206 instructions have different names for human reasons only.
209 * interf.c: Set boolean mode variable dumbio if invoked with
210 argument "-dumbio" and mention it of verbose.
211 * erc32.c: if "dumbio" is set, do not assume that there is a
212 terminal type device attached to stdin/stdout. Do not set
213 buffering or mess with tcsetattr or do any read operations in
214 order to make UART interrupts; not input data is supported.
215 This is necessary to allow the sim to be used within the eCos
216 testing infrastructure where stdin/stdout are pipes to a TCL
217 program; the sim hangs otherwise.
221 * exec.c (dispatch_instruction): Add SPARClite 'scan' instruction.
225 * func.c (bfd_load): Add special handling of a.out executables.
229 * func.c (bfd_load): Print correct endianness.
230 * interf.c (run_sim): Print debugging information if verbosity level
232 (sim_open): Repeated -v options now increment verbosity level.
233 (sim_store_register): Handle little-endian case.
234 (flush_window): Print debugging information if verbosity level
239 * interf.c (sim_open): Use revamped memory_read, which makes
240 byte-swapping unnecessary. Add -sparclite-board option for
241 emulating RAM found on typical SPARClite boards. Print
242 error message for unrecognized option.
243 * erc32.c: Change RAM address and size from constants to variables,
244 to allow emulation of SPARClite board RAM.
245 (fetch_bytes, store_bytes): New helper functions for revamped
246 mememory_read and memory_write.
247 (memory_read, memory_write): Rewrite to store bytes in target
248 byte order instead of storing words in host byte order; this
249 greatly simplifies support of little-endian programs.
250 (get_mem_ptr): Remove unnecessary byte parameter.
251 (sis_memory_write, sis_memory_read): Store words in target
252 byte order instead of host byte order.
253 (byte_swap_words): Remove, no longer needed.
254 * sis.h ((byte_swap_words): Remove declaration, no longer needed.
255 (memory_read): Add new sz parameter.
256 * sis.c (run_sim): Use revamped memory_read, which makes
257 byte-swapping unnecessary.
258 * exec.c (dispatch_instruction): Use revamped memory_read, which
259 makes byte-swapping and double-word fetching unnecessary.
260 * func.c (sparclite_board): Declare new variable.
261 (get_regi): Handle little-endian data.
262 (bfd_load): Recognize little-endian SPARClite as having
267 * erc32.c (port_init): Print messages only if sis_verbose is true.
268 * func.c (bfd_load): Ditto.
269 * interf.c (sim_open): Ditto.
273 * sis.h (uint64, int64): Define.
274 * exec.c (SDIV, SDIVCC, UDIV, UDIVCC): Define new opcodes.
275 * (mul64): Simplify calculation of negative result.
276 * (div64): New helper function for 64-bit division.
277 * (dispatch_instruction): Add emulation of SDIV, SDIVCC, UDIV,
282 * erc32.c (close_port): Don't close stdin; it kills GDB.
283 (byte_swap_words): New function.
284 * sis.h: (byte_swap_words): Declare.
285 * interf.c (run_sim): Always fetch instructions as big-endian.
286 * sis.c (run_sim): Ditto.
290 * configure: Regenerated to track ../common/aclocal.m4 changes.
292 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
294 * configure: Regenerated to track ../common/aclocal.m4 changes.
299 * acconfig.h: New file.
300 * configure.in: Reverted change of Apr 24; use sinclude again.
302 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
304 * configure: Regenerated to track ../common/aclocal.m4 changes.
309 * configure.in: Don't call sinclude.
313 * func.c (disp_fpu): Fix build problem on big-endian hosts.
317 * erc32.c (sim_stop): Handle SIGINT gracefully.
318 * interf.c (sim_open): Don't catch SIGINT; GDB will do that for us.
322 * exec.c (dispatch_instruction): Change how carry out is calculated
323 in DIVSCC. Add emulation of SMULCC, UMUL, and UMULCC.
327 * configure: Regenerated to track ../common/aclocal.m4 changes.
331 * end.c: Update to version 2.7.5, fix compiler warnings and bugs.
343 * configure: Regenerated to track ../common/aclocal.m4 changes.
347 * configure: Regenerated to track ../common/aclocal.m4 changes.
351 * configure: Regenerated to track ../common/aclocal.m4 changes.
355 * interf.c (sim_store_register, sim_fetch_register): Pass in
356 length parameter. Return -1.
360 * configure: Regenerated to track ../common/aclocal.m4 changes.
364 * configure: Regenerated to track ../common/aclocal.m4 changes.
366 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
368 * configure: Regenerated to track ../common/aclocal.m4 changes.
372 * configure: Regenerated to track ../common/aclocal.m4 changes.
377 * configure: Regenerated to track ../common/aclocal.m4 changes.
381 * configure: Regenerated to track ../common/aclocal.m4 changes.
385 * configure: Regenerated to track ../common/aclocal.m4 changes.
389 * configure: Regenerated to track ../common/aclocal.m4 changes.
393 * configure: Regenerated to track ../common/aclocal.m4 changes.
397 * configure: Regenerated to track ../common/aclocal.m4 changes.
401 * configure: Regenerated to track ../common/aclocal.m4 changes.
405 * configure: Regenerated to track ../common/aclocal.m4 changes.
410 * float.c (__setfpucw): Compile on any i386 target. Not just NT.
412 * interf.c (sim_kill): Delete.
413 (sim_create_inferior): Add ABFD argument. Initialize PC from ABFD
415 (sim_load): Don't save start address.
416 (start_address): Delete variable.
420 * configure: Regenerated to track ../common/aclocal.m4 changes.
425 * interf.c (sim_open): Add ABFD argument. Change ARGV to PARGV.
429 * Makefile.in (install-sis): Change $(srcdir)/sis to sis.
433 * interf.c (sim_set_callbacks): Drop SD argument - not applicable.
434 (sim_open): Add callback arg, save it.
438 * configure: Regenerated to track ../common/aclocal.m4 changes.
442 * interf.c (sim_open): Undo patch to add -E support.
446 * interf.c (sim_open): Ignore -E arg.
447 (start_address): New static local.
448 (sim_load): Return SIM_RC. New arg abfd. Set start_address from bfd.
449 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
453 * Makefile.in (install-sis): Depend upon installdirs. Use
454 $(program_transform_name) directly, rather than using
459 * configure: Regenerated to track ../common/aclocal.m4 changes.
464 * interf.c (sim_open): New arg `kind'.
466 * configure: Regenerated to track ../common/aclocal.m4 changes.
470 * configure: Regenerated to track ../common/aclocal.m4 changes.
474 * configure: Re-generate.
478 * interf.c (sim_open): New SIM_DESC result. Argument is now in
480 (other sim_*): New SIM_DESC argument.
484 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
485 COMMON_{PRE,POST}_CONFIG_FRAG instead.
486 * configure.in: sinclude ../common/aclocal.m4.
487 * configure: Regenerated.
491 * configure configure.in Makefile.in: Update to new configure
492 scheme which is more compatible with WinGDB builds.
493 * configure.in: Improve comment on how to run autoconf.
494 * configure: Re-run autoconf to get new ../common/aclocal.m4.
495 * Makefile.in: Use autoconf substitution to install common
500 * interf.c (run_sim): Stop the simulator and reset the stdio after
505 * configure.in: Look for libtermcap.a.
506 * Makefile.in: Only link in -ltermcap if it exists.
507 * erc32.c: Update to version 2.6a. Fix uart handling.
508 * exec.c: Update to version 2.6a. Add sparclite support.
509 * float.c: Update to version 2.6a. Convert comments to
510 preprocessor warnings. Add __setfpucw() for i385 hosts so floating
511 point exceptions work on win32.
512 * func.c: Update to version 2.6a. Fix uart handling, add support
513 for user error traps.
514 * help.c: Update to version 2.6a. Add help note on user error
516 * interf.c: Update to version 2.6a. Fix uart handling, and add
518 * examples/gccx: Use sparclite cross compiler, not native gcc.
519 * examples/srt0.S: Use "mov" rather than "wr" for manipulating
524 * Makefile.in (run.o): Remove this rule, it hides the one in
525 ../common/Make-common.in that correctly references the source
526 in the sibling ../common directory.
530 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
531 (SIM_{OBJS,EXTRA_LIBS,EXTRA_LIBDEPS,EXTRA_ALL,EXTRA_INSTALL}): Define.
532 (SIM_{EXTRA_CLEAN,EXTRA_CFLAGS}): Define.
533 * configure.in: Simplify using macros in ../common/aclocal.m4.
534 Call AC_CHECK_HEADERS(stdlib.h).
535 * configure: Regenerated.
536 * config.in: New file.
537 * func.c (sim_set_callbacks): Delete, moved to
538 * interf.c (sim_set_callbacks): here.
539 (sim_callback): New global.
540 Rewrite all calls to printf_filtered to go through callback.
541 (sim_size,sim_trace): New functions.
542 (sim_{insert,remove}_breakpoint): #if 0 out.
543 * sis.c: #include "config.h". #include <stdlib.h> if present.
544 (main): Coerce fprintf arg to INIT_DISASSEMBLE_INFO to fprintf_ftype.
545 * sis.h: #include "callback.h".
546 * run.c: Deleted, using one in ../common now.
550 * Makefile.in (clean): Move config.log to distclean.
554 * Makefile.in (clean): Also remove config.log.
558 * Makefile.in (CC_FOR_BUILD): New variable.
559 (AR, AR_FLAGS, BISON, MAKEINFO): Remove duplicate variables.
560 (RANLIB, CC): Likewise.
561 (end): Use $(CC_FOR_BUILD), not $(CC).
562 * configure.in: Set CC_FOR_BUILD.
563 * configure: Rebuild.
567 * erc32.c (port_init): Disable this for __GO32__ (got no pty's
572 * erc32.c: Don't include sys/ioctl.h or sys/file.h. They aren't
574 * (port_init): Don't even *try* to open pty's under _WIN32.
575 * Use SIM_ADDR, not caddr_t for declaring vars that hold addresses.
576 * float.c: Get rid of #warning. Makes Microsoft C barf.
577 * interf.c (sim_open): Cast fprintf to (fprintf_ftype) to fix
579 * (sim_load sim_create_inferior sim_read): Use prototypes only in
581 * Get rid of enum sim_stop. It's defined in remote-sim.h.
582 * (sim_stop_reason): Define SIGTRAP if _WIN32.
583 * sis.h: Include ansidecl.h and remote-sim.h.
587 * erc32.c (mec_reset mec_read mec_write memory_read memory_write),
588 sis.h: Get rid of all uses of long long's.
589 * (close_port read_uart write_uart uarta_tx): Don't seg fault
590 when can't open pty's.
591 * exec.c: Add two new instructions: smul, and divscc.
592 * interf.c (flush_windows): New routine to flush the register
593 windows out to the stack just before returning to GDB. Makes
594 backtraces work much better.
598 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
599 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
600 (docdir, oldincludedir): Removed.
601 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
602 (AC_PROG_INSTALL): Added.
603 * configure: Rebuilt.
607 * configure.in: Call AC_PROG_CC before running configure.host.
608 * configure: Rebuild with autoconf 2.10.
612 * Makefile.in (install): Don't check to see if tooldir exists.
613 Make $(tooldir) and $(tooldir)/bin.
617 * Makefile.in (end.h): Use explicit ./ when running end.
621 * func.c(bfd_load): Don't try to print the filename if the pfbd is
623 * interf.c(sim_load): Pass the whole string, not just the first
629 * Fixed bug in "go" command.
634 * Fixed bug in interrupt force register (erc32.c).
636 * Change file load function to use bfd_openr.
638 * SIS should now be endian independent.
643 * Fixed FPU timing - some sequences of FPU instructions did not calculate
644 the resource dependencies right.
646 * Corrected STDFQ when qne = 0 (again!). The ftt is set to sequence_error
647 but no FPU trap is generated.
649 version 1.7.1 31-10-95
652 * Corrected STDFQ when qne = 0. Now, a trap is immidiately generated but
653 the FPU stays in execute mode.
655 * Corrected JMPL and RETT timing (these instructions takes two cycles).
661 * Interrupt during annuled instruction corrupted return address - fixed.
664 version 1.6.2 25-10-95
667 * Added -DFAST_UART to Makefile
670 version 1.6.1 24-10-95
673 * Fixed bug in STDFQ which caused bus error
679 * Modified srt0.s to include code that initiates registers in IU and FPU
680 and initializes the data segment. The simulator 'load' command does not
681 longer initialize the data segment!
683 * Corrected MEC timer operation; scalers now divide the frequency by
686 * MEC breakpoints are not checked during store operation
692 * Fixed some bugs in the cycle counting for IU & FPU instructions.
694 * Fixed bug that allowed an annuled instruction to cause memory exception.
696 * The *ws parameter in mem.c should now contain the number of waitstates
697 required by the memory access (was total number of cycles).
699 * The supplied srt0.s now clears the BSS (thanks Joel).
704 * Added a '-g' switch to enable/disable the GNU readline(), which cause
705 some problems on solaris 2.x machines.
707 * Enabled MEC watchpoint and breakpoint function to mem.c. Performance
710 NOTE: The UARTs are now connected to /dev/ttypc and /dev/ttypd.
715 * Fixed bug in mulscc instruction (how could that ever have worked?)
717 * Fixed bug in UART B (flushed characters on UART A), thanks Paul.
722 * Fixed bug in interrupt handling (wrong interrupt selected when more that
723 one interrupt pending)
725 * Fixed updating of condition codes during logical instructions (carry and
726 overflow were not reset)
728 * Fixed bug in WRTBR (tt field was wrongly over-written)
733 * Fixed several bugs in the interrupt handler and callback routines.
734 (reported by Paul Warren, Alsys)