3 * config.in: Regenerate.
6 * configure: Regenerate.
10 * erc32.c, exec.c: Fix warnings.
14 * configure: Regenerate to track ../common/common.m4 changes.
19 * sis.c: Correct spelling error.
25 * configure: Regenerate.
30 * config.in: Regenerate.
34 * configure.ac: Add test for readline, substitute READLINE.
35 * Makefile.in (READLINE_LIB): New substituted-contents variable.
36 (SIM_EXTRA_LIBDEPS): Don't set.
37 (SIM_EXTRA_LIBS): Use $(READLINE_LIB) instead of
38 ../../readline/libreadline.a.
39 * configure: Regenerate.
43 * Makefile.in (func.o, help.o): Correct dependencies.
47 * Makefile.in (install-sis): Honor DESTDIR.
51 * configure: Regenerated.
55 * configure: Regenerated.
59 * configure: Regenerated.
63 * interf.c: (gdb/signals.h): Include it.
64 (sim_stop_reason): Use TARGET_SIGNAL_*.
68 * func.c: Remove ANSI_PROTOTYPES conditional code.
72 * configure: Regenerate.
76 * sim/erc32/float.c (set_fsr): Do not use deprecated multi-line
79 * sim/erc32/interf.c: Remove the redeclaration of fprintf.
80 * sim/erc32/sis.c: Ditto.
81 * sim/erc32/exec.c: Add missing semicolon.
82 * sim/erc32/func.c: Remove definitions of generic_print_address,
83 generic_symbol_at_address, buffer_read_memory and perror_memory, as
84 they are already defined in opcodes/dis-buf.c.
88 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
89 explicit call to AC_CONFIG_HEADER.
90 * configure: Regenerate.
94 * configure.ac: Update to use ../common/common.m4.
95 * configure: Re-generate.
99 * configure: Regenerated to track ../common/aclocal.m4 changes.
103 * configure.ac: Rename configure.in, require autoconf 2.59.
104 * configure: Re-generate.
108 * configure: Regenerate for ../common/aclocal.m4 update.
112 * interf.c: Include "libiberty.h" instead of declaring buildargv
117 * interf.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
121 * configure: Regenerated to track ../common/aclocal.m4 changes.
125 * sis.h: Include "gdb/remote-sim.h" and "gdb/callback.h".
126 * interf.c: Include "gdb/remote-sim.h".
130 * configure: Regenerated to track ../common/aclocal.m4 changes.
135 * Makefile.in (install-sis): Add $(EXEEXT) for Windows host.
139 * func.c (buffer_read_memory): Change type of size to unsigned to
144 * configure: Regenerated to track ../common/aclocal.m4 changes.
148 * configure: Regenerated to track ../common/aclocal.m4 changes.
152 * configure.in: add termcap and -luser32 for host=cygwin
153 * configure: regenerate
157 * exec.c (dispatch_instruction):
158 Correct the sense of the
160 sregs->trap = TRAP_UNIMP;
163 clause that has been pasted around: it's correct in the SCAN and
164 DIVScc (divide step) cases (where it was probably originally
165 written?), but reversed in the SDIV, SDIVcc, UDIV, UDIVcc cases
166 ie. instructions only in the SPARC V8 or SPARClite 86x
167 architectures. It was also present when not required for SMUL,
168 SMULcc, UMUL, UMULcc instructions that are present in all
173 * interf.c (run_sim): Fix a bug in the main loop's handling of
174 annulled delay slot instructions. There is precedent for this
175 change; the _other_ main loop in sis.c gets it right according to
176 my reading of the code.
178 The bug is: if an interrupt happens when the next instruction
179 (at sregs->pc) is annulled, the trap is taken (by execute_trap())
180 with the current values of PC and NPC, so when the trap returns,
181 the annulled instruction is indeed executed. Another giveaway is
182 that the annul flag is cleared in execute_trap(): the information
183 is demonstrably discarded.
185 The solution is: perform annulling before looking for traps, in
186 fact it's neater to do annulling, see if there's an interrupt and
187 if not, do the instruction, then handle traps be they generated by
188 interrupts pending or by the instruction we might just have done.
189 That's what the sis.c one does.
193 * sis.h: Add asr17 register for support of SparcLITE (at least the
194 Hitachi ones I find before me)
196 * exec.c (dispatch_instruction): Case WRY: Allow write of asr17 if
197 sparclite. Other ASR numbers than 17 or 0 (Y) trap out.
198 Case RDY: Allow read of asr17 if sparclite. Other ASRs ditto.
199 (execute_trap): Do single-vector-trapping if asr17 bit 0 is set.
200 (init_regs): Initialize y and asr17.
201 NB: In instruction-set space, the Y register is asr0; the
202 instructions have different names for human reasons only.
205 * interf.c: Set boolean mode variable dumbio if invoked with
206 argument "-dumbio" and mention it of verbose.
207 * erc32.c: if "dumbio" is set, do not assume that there is a
208 terminal type device attached to stdin/stdout. Do not set
209 buffering or mess with tcsetattr or do any read operations in
210 order to make UART interrupts; not input data is supported.
211 This is necessary to allow the sim to be used within the eCos
212 testing infrastructure where stdin/stdout are pipes to a TCL
213 program; the sim hangs otherwise.
217 * exec.c (dispatch_instruction): Add SPARClite 'scan' instruction.
221 * func.c (bfd_load): Add special handling of a.out executables.
225 * func.c (bfd_load): Print correct endianness.
226 * interf.c (run_sim): Print debugging information if verbosity level
228 (sim_open): Repeated -v options now increment verbosity level.
229 (sim_store_register): Handle little-endian case.
230 (flush_window): Print debugging information if verbosity level
235 * interf.c (sim_open): Use revamped memory_read, which makes
236 byte-swapping unnecessary. Add -sparclite-board option for
237 emulating RAM found on typical SPARClite boards. Print
238 error message for unrecognized option.
239 * erc32.c: Change RAM address and size from constants to variables,
240 to allow emulation of SPARClite board RAM.
241 (fetch_bytes, store_bytes): New helper functions for revamped
242 mememory_read and memory_write.
243 (memory_read, memory_write): Rewrite to store bytes in target
244 byte order instead of storing words in host byte order; this
245 greatly simplifies support of little-endian programs.
246 (get_mem_ptr): Remove unnecessary byte parameter.
247 (sis_memory_write, sis_memory_read): Store words in target
248 byte order instead of host byte order.
249 (byte_swap_words): Remove, no longer needed.
250 * sis.h ((byte_swap_words): Remove declaration, no longer needed.
251 (memory_read): Add new sz parameter.
252 * sis.c (run_sim): Use revamped memory_read, which makes
253 byte-swapping unnecessary.
254 * exec.c (dispatch_instruction): Use revamped memory_read, which
255 makes byte-swapping and double-word fetching unnecessary.
256 * func.c (sparclite_board): Declare new variable.
257 (get_regi): Handle little-endian data.
258 (bfd_load): Recognize little-endian SPARClite as having
263 * erc32.c (port_init): Print messages only if sis_verbose is true.
264 * func.c (bfd_load): Ditto.
265 * interf.c (sim_open): Ditto.
269 * sis.h (uint64, int64): Define.
270 * exec.c (SDIV, SDIVCC, UDIV, UDIVCC): Define new opcodes.
271 * (mul64): Simplify calculation of negative result.
272 * (div64): New helper function for 64-bit division.
273 * (dispatch_instruction): Add emulation of SDIV, SDIVCC, UDIV,
278 * erc32.c (close_port): Don't close stdin; it kills GDB.
279 (byte_swap_words): New function.
280 * sis.h: (byte_swap_words): Declare.
281 * interf.c (run_sim): Always fetch instructions as big-endian.
282 * sis.c (run_sim): Ditto.
286 * configure: Regenerated to track ../common/aclocal.m4 changes.
288 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
290 * configure: Regenerated to track ../common/aclocal.m4 changes.
295 * acconfig.h: New file.
296 * configure.in: Reverted change of Apr 24; use sinclude again.
298 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
300 * configure: Regenerated to track ../common/aclocal.m4 changes.
305 * configure.in: Don't call sinclude.
309 * func.c (disp_fpu): Fix build problem on big-endian hosts.
313 * erc32.c (sim_stop): Handle SIGINT gracefully.
314 * interf.c (sim_open): Don't catch SIGINT; GDB will do that for us.
318 * exec.c (dispatch_instruction): Change how carry out is calculated
319 in DIVSCC. Add emulation of SMULCC, UMUL, and UMULCC.
323 * configure: Regenerated to track ../common/aclocal.m4 changes.
327 * end.c: Update to version 2.7.5, fix compiler warnings and bugs.
339 * configure: Regenerated to track ../common/aclocal.m4 changes.
343 * configure: Regenerated to track ../common/aclocal.m4 changes.
347 * configure: Regenerated to track ../common/aclocal.m4 changes.
351 * interf.c (sim_store_register, sim_fetch_register): Pass in
352 length parameter. Return -1.
356 * configure: Regenerated to track ../common/aclocal.m4 changes.
360 * configure: Regenerated to track ../common/aclocal.m4 changes.
362 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
364 * configure: Regenerated to track ../common/aclocal.m4 changes.
368 * configure: Regenerated to track ../common/aclocal.m4 changes.
373 * 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.
406 * float.c (__setfpucw): Compile on any i386 target. Not just NT.
408 * interf.c (sim_kill): Delete.
409 (sim_create_inferior): Add ABFD argument. Initialize PC from ABFD
411 (sim_load): Don't save start address.
412 (start_address): Delete variable.
416 * configure: Regenerated to track ../common/aclocal.m4 changes.
421 * interf.c (sim_open): Add ABFD argument. Change ARGV to PARGV.
425 * Makefile.in (install-sis): Change $(srcdir)/sis to sis.
429 * interf.c (sim_set_callbacks): Drop SD argument - not applicable.
430 (sim_open): Add callback arg, save it.
434 * configure: Regenerated to track ../common/aclocal.m4 changes.
438 * interf.c (sim_open): Undo patch to add -E support.
442 * interf.c (sim_open): Ignore -E arg.
443 (start_address): New static local.
444 (sim_load): Return SIM_RC. New arg abfd. Set start_address from bfd.
445 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
449 * Makefile.in (install-sis): Depend upon installdirs. Use
450 $(program_transform_name) directly, rather than using
455 * configure: Regenerated to track ../common/aclocal.m4 changes.
460 * interf.c (sim_open): New arg `kind'.
462 * configure: Regenerated to track ../common/aclocal.m4 changes.
466 * configure: Regenerated to track ../common/aclocal.m4 changes.
470 * configure: Re-generate.
474 * interf.c (sim_open): New SIM_DESC result. Argument is now in
476 (other sim_*): New SIM_DESC argument.
480 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
481 COMMON_{PRE,POST}_CONFIG_FRAG instead.
482 * configure.in: sinclude ../common/aclocal.m4.
483 * configure: Regenerated.
487 * configure configure.in Makefile.in: Update to new configure
488 scheme which is more compatible with WinGDB builds.
489 * configure.in: Improve comment on how to run autoconf.
490 * configure: Re-run autoconf to get new ../common/aclocal.m4.
491 * Makefile.in: Use autoconf substitution to install common
496 * interf.c (run_sim): Stop the simulator and reset the stdio after
501 * configure.in: Look for libtermcap.a.
502 * Makefile.in: Only link in -ltermcap if it exists.
503 * erc32.c: Update to version 2.6a. Fix uart handling.
504 * exec.c: Update to version 2.6a. Add sparclite support.
505 * float.c: Update to version 2.6a. Convert comments to
506 preprocessor warnings. Add __setfpucw() for i385 hosts so floating
507 point exceptions work on win32.
508 * func.c: Update to version 2.6a. Fix uart handling, add support
509 for user error traps.
510 * help.c: Update to version 2.6a. Add help note on user error
512 * interf.c: Update to version 2.6a. Fix uart handling, and add
514 * examples/gccx: Use sparclite cross compiler, not native gcc.
515 * examples/srt0.S: Use "mov" rather than "wr" for manipulating
520 * Makefile.in (run.o): Remove this rule, it hides the one in
521 ../common/Make-common.in that correctly references the source
522 in the sibling ../common directory.
526 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
527 (SIM_{OBJS,EXTRA_LIBS,EXTRA_LIBDEPS,EXTRA_ALL,EXTRA_INSTALL}): Define.
528 (SIM_{EXTRA_CLEAN,EXTRA_CFLAGS}): Define.
529 * configure.in: Simplify using macros in ../common/aclocal.m4.
530 Call AC_CHECK_HEADERS(stdlib.h).
531 * configure: Regenerated.
532 * config.in: New file.
533 * func.c (sim_set_callbacks): Delete, moved to
534 * interf.c (sim_set_callbacks): here.
535 (sim_callback): New global.
536 Rewrite all calls to printf_filtered to go through callback.
537 (sim_size,sim_trace): New functions.
538 (sim_{insert,remove}_breakpoint): #if 0 out.
539 * sis.c: #include "config.h". #include <stdlib.h> if present.
540 (main): Coerce fprintf arg to INIT_DISASSEMBLE_INFO to fprintf_ftype.
541 * sis.h: #include "callback.h".
542 * run.c: Deleted, using one in ../common now.
546 * Makefile.in (clean): Move config.log to distclean.
550 * Makefile.in (clean): Also remove config.log.
554 * Makefile.in (CC_FOR_BUILD): New variable.
555 (AR, AR_FLAGS, BISON, MAKEINFO): Remove duplicate variables.
556 (RANLIB, CC): Likewise.
557 (end): Use $(CC_FOR_BUILD), not $(CC).
558 * configure.in: Set CC_FOR_BUILD.
559 * configure: Rebuild.
563 * erc32.c (port_init): Disable this for __GO32__ (got no pty's
568 * erc32.c: Don't include sys/ioctl.h or sys/file.h. They aren't
570 * (port_init): Don't even *try* to open pty's under _WIN32.
571 * Use SIM_ADDR, not caddr_t for declaring vars that hold addresses.
572 * float.c: Get rid of #warning. Makes Microsoft C barf.
573 * interf.c (sim_open): Cast fprintf to (fprintf_ftype) to fix
575 * (sim_load sim_create_inferior sim_read): Use prototypes only in
577 * Get rid of enum sim_stop. It's defined in remote-sim.h.
578 * (sim_stop_reason): Define SIGTRAP if _WIN32.
579 * sis.h: Include ansidecl.h and remote-sim.h.
583 * erc32.c (mec_reset mec_read mec_write memory_read memory_write),
584 sis.h: Get rid of all uses of long long's.
585 * (close_port read_uart write_uart uarta_tx): Don't seg fault
586 when can't open pty's.
587 * exec.c: Add two new instructions: smul, and divscc.
588 * interf.c (flush_windows): New routine to flush the register
589 windows out to the stack just before returning to GDB. Makes
590 backtraces work much better.
594 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
595 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
596 (docdir, oldincludedir): Removed.
597 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
598 (AC_PROG_INSTALL): Added.
599 * configure: Rebuilt.
603 * configure.in: Call AC_PROG_CC before running configure.host.
604 * configure: Rebuild with autoconf 2.10.
608 * Makefile.in (install): Don't check to see if tooldir exists.
609 Make $(tooldir) and $(tooldir)/bin.
613 * Makefile.in (end.h): Use explicit ./ when running end.
617 * func.c(bfd_load): Don't try to print the filename if the pfbd is
619 * interf.c(sim_load): Pass the whole string, not just the first
625 * Fixed bug in "go" command.
630 * Fixed bug in interrupt force register (erc32.c).
632 * Change file load function to use bfd_openr.
634 * SIS should now be endian independent.
639 * Fixed FPU timing - some sequences of FPU instructions did not calculate
640 the resource dependencies right.
642 * Corrected STDFQ when qne = 0 (again!). The ftt is set to sequence_error
643 but no FPU trap is generated.
645 version 1.7.1 31-10-95
648 * Corrected STDFQ when qne = 0. Now, a trap is immidiately generated but
649 the FPU stays in execute mode.
651 * Corrected JMPL and RETT timing (these instructions takes two cycles).
657 * Interrupt during annuled instruction corrupted return address - fixed.
660 version 1.6.2 25-10-95
663 * Added -DFAST_UART to Makefile
666 version 1.6.1 24-10-95
669 * Fixed bug in STDFQ which caused bus error
675 * Modified srt0.s to include code that initiates registers in IU and FPU
676 and initializes the data segment. The simulator 'load' command does not
677 longer initialize the data segment!
679 * Corrected MEC timer operation; scalers now divide the frequency by
682 * MEC breakpoints are not checked during store operation
688 * Fixed some bugs in the cycle counting for IU & FPU instructions.
690 * Fixed bug that allowed an annuled instruction to cause memory exception.
692 * The *ws parameter in mem.c should now contain the number of waitstates
693 required by the memory access (was total number of cycles).
695 * The supplied srt0.s now clears the BSS (thanks Joel).
700 * Added a '-g' switch to enable/disable the GNU readline(), which cause
701 some problems on solaris 2.x machines.
703 * Enabled MEC watchpoint and breakpoint function to mem.c. Performance
706 NOTE: The UARTs are now connected to /dev/ttypc and /dev/ttypd.
711 * Fixed bug in mulscc instruction (how could that ever have worked?)
713 * Fixed bug in UART B (flushed characters on UART A), thanks Paul.
718 * Fixed bug in interrupt handling (wrong interrupt selected when more that
719 one interrupt pending)
721 * Fixed updating of condition codes during logical instructions (carry and
722 overflow were not reset)
724 * Fixed bug in WRTBR (tt field was wrongly over-written)
729 * Fixed several bugs in the interrupt handler and callback routines.
730 (reported by Paul Warren, Alsys)