1 2021-05-04 Mike Frysinger <vapier@gentoo.org>
3 * configure: Regenerate.
5 2021-05-04 Mike Frysinger <vapier@gentoo.org>
7 * func.c (bfd_load): Use BFD_VMA_FMT.
9 2021-05-01 Mike Frysinger <vapier@gentoo.org>
11 * config.in, configure: Regenerate.
13 2021-04-26 Mike Frysinger <vapier@gentoo.org>
15 * aclocal.m4, config.in, configure: Regenerate.
17 2021-04-22 Tom Tromey <tom@tromey.com>
19 * configure, config.in: Rebuild.
21 2021-04-22 Tom Tromey <tom@tromey.com>
25 2021-04-21 Mike Frysinger <vapier@gentoo.org>
27 * aclocal.m4: Regenerate.
29 2021-04-21 Simon Marchi <simon.marchi@polymtl.ca>
31 * configure: Regenerate.
33 2021-04-18 Mike Frysinger <vapier@gentoo.org>
35 * configure: Regenerate.
37 2021-04-15 John Baldwin <jhb@FreeBSD.org>
39 * Makefile.in (READLINE_SRC, READLINE_CFLAGS): Add.
40 (SIM_EXTRA_CFLAGS): Add READLINE_CFLAGS.
42 * configure.ac (READLINE_CFLAGS): Add.
44 2021-04-08 Tom Tromey <tom@tromey.com>
46 * func.c: Include sys/time.h.
48 2021-04-08 Tom Tromey <tom@tromey.com>
50 * sis.c (run_sim, main): Use new-style declaration.
51 * interf.c (run_sim, sim_open, sim_close, sim_load)
52 (sim_create_inferior, sim_store_register, sim_fetch_register)
53 (sim_info, sim_stop_reason, flush_windows, sim_do_command): Use
54 new-style declaration.
55 * help.c (usage, gen_help): Use new-style declaration.
56 * func.c (batch, set_regi, set_rega, disp_reg, limcalc)
57 (reset_stat, show_stat, init_bpt, int_handler, init_signals)
58 (disp_fpu, disp_regs, disp_ctrl, disp_mem, dis_mem, event)
59 (init_event, set_int, advance_time, now, wait_for_irq, check_bpt)
60 (reset_all, sys_reset, sys_halt): Use new-style declaration.
61 * float.c (get_accex, clear_accex, set_fsr): Use new-style
63 * exec.c (sub_cc, add_cc, log_cc, dispatch_instruction, fpexec)
64 (chk_asi, execute_trap, check_interrupts, init_regs): Use
65 new-style declaration.
66 * erc32.c (init_sim, reset, decode_ersr, mecparerror)
67 (error_mode, decode_memcfg, decode_wcr, decode_mcr, sim_halt)
68 (close_port, exit_sim, mec_reset, mec_intack, chk_irq, mec_irq)
69 (set_sfsr, mec_read, mec_write, init_stdio, restore_stdio)
70 (port_init, read_uart, write_uart, flush_uart, uarta_tx)
71 (uartb_tx, uart_rx, uart_intr, uart_irq_start, wdog_intr)
72 (wdog_start, rtc_intr, rtc_start, rtc_counter_read)
73 (rtc_scaler_set, rtc_reload_set, gpt_intr, gpt_start)
74 (gpt_counter_read, gpt_scaler_set, gpt_reload_set, timer_ctrl)
75 (memory_read, memory_write, get_mem_ptr, sis_memory_write)
76 (sis_memory_read): Use new-style declaration.
78 2021-04-05 Tom Tromey <tromey@adacore.com>
81 * configure.ac (READLINE): Adjust in-tree value.
83 2021-04-02 Mike Frysinger <vapier@gentoo.org>
85 * aclocal.m4, configure: Regenerate.
87 2021-02-28 Mike Frysinger <vapier@gentoo.org>
89 * configure: Regenerate.
91 2021-02-27 Mike Frysinger <vapier@gentoo.org>
93 * Makefile.in (SIM_EXTRA_ALL): Delete.
96 2021-02-21 Mike Frysinger <vapier@gentoo.org>
98 * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
99 * aclocal.m4, configure: Regenerate.
101 2021-02-13 Mike Frysinger <vapier@gentoo.org>
103 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
104 * aclocal.m4, configure: Regenerate.
106 2021-02-06 Mike Frysinger <vapier@gentoo.org>
108 * interf.c (sim_memory_map): Define.
110 2021-02-06 Mike Frysinger <vapier@gentoo.org>
112 * configure: Regenerate.
114 2021-01-11 Mike Frysinger <vapier@gentoo.org>
116 * configure.ac: Call SIM_AC_OPTION_WARNINGS.
117 * configure: Regenerate.
119 2021-01-11 Mike Frysinger <vapier@gentoo.org>
121 * config.in, configure: Regenerate.
122 * sis.c: Delete HAVE_STDLIB_H.
124 2021-01-09 Mike Frysinger <vapier@gentoo.org>
126 * configure: Regenerate.
128 2021-01-08 Mike Frysinger <vapier@gentoo.org>
130 * configure: Regenerate.
132 2021-01-04 Mike Frysinger <vapier@gentoo.org>
134 * configure: Regenerate.
136 2020-07-29 Simon Marchi <simon.marchi@efficios.com>
138 * configure: Re-generate.
140 2018-10-30 Joel Sherrill <joel@rtems.org>
142 * configure.ac: Remove the Cygwin-specific libtermcap.a hack
143 and use the standard logic to determine which library to use.
144 * configure: Regenerate.
146 2017-09-06 John Baldwin <jhb@FreeBSD.org>
148 * configure: Regenerate.
150 2016-01-10 Mike Frysinger <vapier@gentoo.org>
152 * config.in, configure: Regenerate.
154 2016-01-10 Mike Frysinger <vapier@gentoo.org>
156 * configure: Regenerate.
158 2016-01-10 Mike Frysinger <vapier@gentoo.org>
160 * configure: Regenerate.
162 2016-01-10 Mike Frysinger <vapier@gentoo.org>
164 * configure: Regenerate.
166 2016-01-10 Mike Frysinger <vapier@gentoo.org>
168 * configure: Regenerate.
170 2016-01-10 Mike Frysinger <vapier@gentoo.org>
172 * configure: Regenerate.
174 2016-01-10 Mike Frysinger <vapier@gentoo.org>
176 * configure: Regenerate.
178 2016-01-10 Mike Frysinger <vapier@gentoo.org>
180 * configure: Regenerate.
182 2016-01-09 Mike Frysinger <vapier@gentoo.org>
184 * config.in, configure: Regenerate.
186 2016-01-06 Mike Frysinger <vapier@gentoo.org>
188 * interf.c (sim_open): Mark argv const.
189 (sim_create_inferior): Mark argv and env const.
191 2016-01-04 Mike Frysinger <vapier@gentoo.org>
193 * configure: Regenerate.
195 2016-01-03 Mike Frysinger <vapier@gentoo.org>
197 * interf.c (sim_open): Replace while loop with a call to countargv.
199 2016-01-03 Mike Frysinger <vapier@gentoo.org>
201 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
202 * configure: Regenerate.
203 * exec.c (fpexec): Rename CURRENT_HOST_BYTE_ORDER to
205 * sis.h (WITH_HOST_BYTE_ORDER): Rename to ...
206 (HOST_BYTE_ORDER): ... this.
208 2016-01-02 Mike Frysinger <vapier@gentoo.org>
210 * configure: Regenerate.
212 2015-12-26 Mike Frysinger <vapier@gentoo.org>
214 * config.in, configure: Regenerate.
216 2015-06-23 Mike Frysinger <vapier@gentoo.org>
218 * configure: Regenerate.
220 2015-06-12 Mike Frysinger <vapier@gentoo.org>
222 * configure: Regenerate.
224 2015-06-12 Mike Frysinger <vapier@gentoo.org>
226 * configure: Regenerate.
228 2015-05-17 Mike Frysinger <vapier@gentoo.org>
230 * erc32.c: Re-add file overview & author info.
231 * exec.c, float.c, func.c, help.c, interf.c, sis.c: Likewise.
233 2015-05-08 Joel Brobecker <brobecker@adacore.com>
235 * configure.ac: Add copyright header.
236 * erc32.c: Change copyright holder to FSF. Reformat.
237 * exec.c, float.c, func.c, interf.c, sis.c, sis.h: Likewise.
238 * help.c, startsim: Add copyright header.
240 2015-04-29 Nick Clifton <nickc@redhat.com>
243 * sis.c (main): Remove unreachable code.
245 2015-04-24 David Binderman <dcb314@hotmail.com>
246 Nick Clifton <nickc@redhat.com>
249 * exec.c (add32): Fix typo in check for overflow.
251 2015-04-19 Jiri Gaisler <jiri@gaisler.se>
253 * erc32.c (current_target_byte_order): Delete.
254 (fetch_bytes): Remove.
255 (store_bytes): Remove byte twisting.
256 (memory_read, memory_write): Access memory directly.
257 (extract_short, extract_short_signed, extract_byte,
258 extract_byte_signed): New function for for sub-word LD instructions.
259 * exec.c (extract_short, extract_short_signed, extract_byte,
260 extract_byte_signed): New functions.
261 (dispatch_instruction): Update memory reads.
262 * func.c (current_target_byte_order): Delete.
263 (get_regi): Delete little endian handling.
264 (disp_ctrl, dis_mem): Adjust print-out to new data endian.
265 (bfd_load): Delete little endian handling.
266 * interf.c (current_target_byte_order): Delete.
267 (sim_open): Set dinfo to host endian to get correct disassembly.
268 (sim_write, sim_read): Convert endian when gdb reads or writes
270 * sis.c (main): Set endian.
271 * sis.h (EBT): Define.
273 2015-04-13 Mike Frysinger <vapier@gentoo.org>
275 * configure: Regenerate.
277 2015-03-31 Mike Frysinger <vapier@gentoo.org>
279 * config.in, configure: Regenerate.
281 2015-03-28 Jiri Gaisler <jiri@gaisler.se>
283 * func.c (exec_cmd): Fix old style prototype. Mark cmd const. Save
284 the command in a new cmdsave2 to avoid modifying.
285 (bfd_load): Fix old style prototype. Mark fname const.
286 * sis.h (exec_cmd): Mark cmd const.
287 (bfd_load): Mark fname const.
289 2015-03-28 Jiri Gaisler <jiri@gaisler.se>
291 * erc32.c (memory_iread): New function to fetch instructions.
292 (memory_read): Print message in verbose mode.
293 * interf.c (run_sim): Use memory_iread.
294 * sis.c (run_sim): As above.
295 * sis.h (memory_iread): New prototype.
298 2015-03-28 Mike Frysinger <vapier@gentoo.org>
300 * erc32.c (mec_read): Delete parenthesis around return statement.
301 (mec_write, read_uart, rtc_counter_read, gpt_counter_read, memory_read,
302 memory_write, get_mem_ptr, sis_memory_write, sis_memory_read): Likewise.
303 * exec.c (sub_cc, add_cc, add32, dispatch_instruction, fpexec, chk_asi,
304 execute_trap, check_interrupts): Likewise.
305 * float.c (get_accex): Likewise.
306 * func.c (batch, limcalc, exec_cmd, disp_fpu, now, wait_for_irq,
307 check_bpt, bfd_load, get_time): Likewise.
308 * interf.c (run_sim, sim_write, sim_read): Likewise.
309 * sis.c (run_sim): Likewise.
311 2015-03-24 Mike Frysinger <vapier@gentoo.org>
313 * interf.c (sim_set_callbacks, sim_size, sim_trace): Delete.
315 2015-03-17 Jiri Gaisler <jiri@gaisler.se>
317 * func.c (exec_cmd): Silence compiler warnings when calling system().
318 (batch): Replace fgets() with getline().
320 2015-03-17 Jiri Gaisler <jiri@gaisler.se>
322 * func.c (show_stat): Print simulation time in portable long long
324 * help.c (usage): Update usage help print-out.
325 * sis.c (run_sim): Increase debug level with -v. Also print
326 simulation time in portable long long format.
327 * sis.h: Use stdint.h for portable 32- and 64-bit ints.
329 2015-03-16 Mike Frysinger <vapier@gentoo.org>
331 * config.in, configure: Regenerate.
333 2015-03-16 Jiri Gaisler <jiri@gaisler.se>
335 * Makefile.in (end, end.h): Remove target rules.
336 (clean): Remove end and end.h.
337 (erc32.o, exec.o, float.o, func.o, help.o, interf.o, sis.o): Delete
339 * configure, config.in: Regenerate.
340 * configure.ac: Use SIM_AC_OPTION_HOSTENDIAN
342 * erc32.c: Remove end.h include.
343 * exec.c: Remove end.h include. Use HOST_LITTLE_ENDIAN.
344 * func.c, sis.c: Likewise.
346 2015-03-14 Mike Frysinger <vapier@gentoo.org>
348 * Makefile.in (SIM_RUN_OBJS): Set to sis.o.
350 2015-03-14 Mike Frysinger <vapier@gentoo.org>
352 * configure.ac (AC_CHECK_HEADERS): Delete.
353 * aclocal.m4, configure: Regenerate.
355 2015-02-22 Jiri Gaisler <jiri@gaisler.se>
357 * Makefile.in: Add include path to readline.h.
358 sis.c: Remove locally define readline types.
360 2015-02-21 Jiri Gaisler <jiri@gaisler.se>
362 * func.c (reset_stat, show_stat): Switch to double in time keeping.
363 (get_time): New function to get system time.
364 * interf.c (run_sim): Use get_time() for system time.
365 * sis.c (run_sim): Likewise.
368 2015-02-21 Jiri Gaisler <jiri@gaisler.se>
370 * Makefile.in: Remove unused defines
372 2015-02-21 Jiri Gaisler <jiri@gaisler.se>
374 * float.c (get_accex, clear_accex, set_fsr): Use functions from fenv.h
375 instead of custom assembly.
377 2015-02-21 Jiri Gaisler <jiri@gaisler.se>
379 * erc32.c (mec_read): Allow simulator memory size to be read
381 (boot_init): initialize memory and timers if start address is
383 * func.c (exe_cmd): Call boot_init if start address not 0.
384 * interf.c (run_sim): Likewise.
386 2015-02-21 Jiri Gaisler <jiri@gaisler.se>
388 * exec.c (init_regs): erc32 has vendor ID 1 and version ID 1 in %psr.
390 2015-02-21 Jiri Gaisler <jiri@gaisler.se>
392 * func.c (print_insn_sparc_sis): Add helper function for disassembly.
393 (disp_ctrl): Use helper function.
395 2014-08-19 Alan Modra <amodra@gmail.com>
397 * configure: Regenerate.
399 2014-08-15 Roland McGrath <mcgrathr@google.com>
401 * configure: Regenerate.
402 * config.in: Regenerate.
404 2014-03-10 Mike Frysinger <vapier@gentoo.org>
406 * interf.c (sim_do_command): Add const to cmd.
408 2014-03-05 Mike Frysinger <vapier@gentoo.org>
410 * interf.c (sim_load): Add const to prog.
412 2013-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
415 * float.c (set_fsr): Add missing "break" statements. Reindent
418 2013-09-23 Alan Modra <amodra@gmail.com>
420 * configure: Regenerate.
422 2013-06-03 Mike Frysinger <vapier@gentoo.org>
424 * aclocal.m4, configure: Regenerate.
426 2013-03-14 Joel Sherrill <joel.sherrill@oarcorp.com>
428 * Makefile.in: Include build directory in search path to find
431 2012-08-16 Nick Clifton <nickc@redhat.com>
433 * end.c: Include config.h before system header files.
439 * interf.c: Likewise.
441 2012-06-15 Joel Brobecker <brobecker@adacore.com>
443 * sys.h: Include "config.h".
445 2012-06-15 Joel Brobecker <brobecker@adacore.com>
447 * config.in, configure: Regenerate.
449 2012-05-24 Pedro Alves <palves@redhat.com>
453 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
455 2012-03-24 Mike Frysinger <vapier@gentoo.org>
457 * aclocal.m4, config.in, configure: Regenerate.
459 2011-12-31 Mike Frysinger <vapier@gentoo.org>
462 * configure.ac: Change AC_CHECK_LIB to AC_SEARCH_LIBS to match
463 the code in gdb's configure.ac with $TERMCAP.
464 * configure: Regenerated.
466 2011-12-03 Mike Frysinger <vapier@gentoo.org>
468 * aclocal.m4: New file.
469 * configure: Regenerate.
471 2011-10-17 Mike Frysinger <vapier@gentoo.org>
473 * configure.ac: Change include to common/acinclude.m4.
475 2011-10-17 Mike Frysinger <vapier@gentoo.org>
477 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
478 call. Replace common.m4 include with SIM_AC_COMMON.
479 * configure: Regenerate.
481 2011-06-09 Mike Frysinger <vapier@gentoo.org>
483 * interf.c (sim_open): Accept and ignore `--sysroot=...'.
485 2011-06-01 Joel Brobecker <brobecker@adacore.com>
487 * interf.c (sim_complete_command): New stub function.
489 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
491 * interf.c (sim_store_register): Update return value to
494 2010-05-20 Joel Brobecker <brobecker@adacore.com>
496 * sis.h: Remove #include <stdint.h>.
497 (uint64, int64): Redefine without using stdint.h.
498 (UINT64_MAX): Define.
500 2010-04-20 Tiemen Schut <T.Schut@sron.nl>
502 * erc32.c (sis_memory_write): Change prototype to const unsigned char *.
503 * func.c (exec_cmd, event, advance_time, wait_for_irq): Use uint64
505 * interf.c (run_sim): Change icount to uint64_t. Use strtol directly.
506 (sim_resume): Specify maximum run time as uint64.
507 * sis.c (run_sim): Change icount to uint64_t.
508 * sis.h: Define uint64 as uint64_t. Change various fields and
509 prototypes to uint64 to support longer simulations.
511 2010-04-14 Mike Frysinger <vapier@gentoo.org>
513 * interp.c (sim_write): Add const to buf arg.
515 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
517 * configure: Regenerate.
519 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
521 * config.in: Regenerate.
522 * configure: Likewise.
524 * configure: Regenerate.
526 2008-11-10 Joel Sherrill <joel.sherrill@oarcorp.com>
528 * erc32.c, exec.c: Fix warnings.
530 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
532 * configure: Regenerate to track ../common/common.m4 changes.
535 2008-06-09 Joel Sherrill <joel.sherrill@oarcorp.com>
537 * sis.c: Correct spelling error.
539 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
540 Daniel Jacobowitz <dan@codesourcery.com>
541 Joseph Myers <joseph@codesourcery.com>
543 * configure: Regenerate.
545 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
547 * acconfig.h: Remove.
548 * config.in: Regenerate.
550 2006-12-20 Hans-Peter Nilsson <hp@axis.com>
552 * configure.ac: Add test for readline, substitute READLINE.
553 * Makefile.in (READLINE_LIB): New substituted-contents variable.
554 (SIM_EXTRA_LIBDEPS): Don't set.
555 (SIM_EXTRA_LIBS): Use $(READLINE_LIB) instead of
556 ../../readline/libreadline.a.
557 * configure: Regenerate.
559 2006-08-08 Daniel Jacobowitz <dan@codesourcery.com>
561 * Makefile.in (func.o, help.o): Correct dependencies.
563 2006-08-08 Joel Sherrill <joel.sherrill@oarcorp.com>
565 * Makefile.in (install-sis): Honor DESTDIR.
567 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
569 * configure: Regenerated.
571 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
573 * configure: Regenerated.
575 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
577 * configure: Regenerated.
579 2005-11-28 Mark Mitchell <mark@codesourcery.com>
581 * interf.c: (gdb/signals.h): Include it.
582 (sim_stop_reason): Use TARGET_SIGNAL_*.
584 2005-07-08 Ben Elliston <bje@au.ibm.com>
586 * func.c: Remove ANSI_PROTOTYPES conditional code.
588 2005-03-23 Mark Kettenis <kettenis@gnu.org>
590 * configure: Regenerate.
592 2005-03-07 Jerome Guitton <guitton@gnat.com>
594 * sim/erc32/float.c (set_fsr): Do not use deprecated multi-line
596 (clear_accex): Ditto.
597 * sim/erc32/interf.c: Remove the redeclaration of fprintf.
598 * sim/erc32/sis.c: Ditto.
599 * sim/erc32/exec.c: Add missing semicolon.
600 * sim/erc32/func.c: Remove definitions of generic_print_address,
601 generic_symbol_at_address, buffer_read_memory and perror_memory, as
602 they are already defined in opcodes/dis-buf.c.
604 2005-01-14 Andrew Cagney <cagney@gnu.org>
606 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
607 explicit call to AC_CONFIG_HEADER.
608 * configure: Regenerate.
610 2005-01-12 Andrew Cagney <cagney@gnu.org>
612 * configure.ac: Update to use ../common/common.m4.
613 * configure: Re-generate.
615 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
617 * configure: Regenerated to track ../common/aclocal.m4 changes.
619 2005-01-07 Andrew Cagney <cagney@gnu.org>
621 * configure.ac: Rename configure.in, require autoconf 2.59.
622 * configure: Re-generate.
624 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
626 * configure: Regenerate for ../common/aclocal.m4 update.
628 2004-11-11 Andreas Schwab <schwab@suse.de>
630 * interf.c: Include "libiberty.h" instead of declaring buildargv
633 2003-02-27 Andrew Cagney <cagney@redhat.com>
635 * interf.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
637 2002-06-16 Andrew Cagney <ac131313@redhat.com>
639 * configure: Regenerated to track ../common/aclocal.m4 changes.
641 2002-06-08 Andrew Cagney <cagney@redhat.com>
643 * sis.h: Include "gdb/remote-sim.h" and "gdb/callback.h".
644 * interf.c: Include "gdb/remote-sim.h".
646 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
648 * configure: Regenerated to track ../common/aclocal.m4 changes.
650 2000-03-07 Frank Ch. Eigler <fche@redhat.com>
652 From John Dallaway <jld@redhat.co.uk>:
653 * Makefile.in (install-sis): Add $(EXEEXT) for Windows host.
655 2000-03-03 Jonathan Larmour <jlarmour@redhat.co.uk>
657 * func.c (buffer_read_memory): Change type of size to unsigned to
660 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
662 * configure: Regenerated to track ../common/aclocal.m4 changes.
664 1999-05-08 Felix Lee <flee@cygnus.com>
666 * configure: Regenerated to track ../common/aclocal.m4 changes.
668 1999-03-03 DJ Delorie <dj@cygnus.com>
670 * configure.in: add termcap and -luser32 for host=cygwin
671 * configure: regenerate
673 1999-02-11 Hugo Tyson <hmt@cygnus.co.uk>
675 * exec.c (dispatch_instruction):
676 Correct the sense of the
678 sregs->trap = TRAP_UNIMP;
681 clause that has been pasted around: it's correct in the SCAN and
682 DIVScc (divide step) cases (where it was probably originally
683 written?), but reversed in the SDIV, SDIVcc, UDIV, UDIVcc cases
684 ie. instructions only in the SPARC V8 or SPARClite 86x
685 architectures. It was also present when not required for SMUL,
686 SMULcc, UMUL, UMULcc instructions that are present in all
689 1999-01-25 Hugo Tyson <hmt@cygnus.co.uk>
691 * interf.c (run_sim): Fix a bug in the main loop's handling of
692 annulled delay slot instructions. There is precedent for this
693 change; the _other_ main loop in sis.c gets it right according to
694 my reading of the code.
696 The bug is: if an interrupt happens when the next instruction
697 (at sregs->pc) is annulled, the trap is taken (by execute_trap())
698 with the current values of PC and NPC, so when the trap returns,
699 the annulled instruction is indeed executed. Another giveaway is
700 that the annul flag is cleared in execute_trap(): the information
701 is demonstrably discarded.
703 The solution is: perform annulling before looking for traps, in
704 fact it's neater to do annulling, see if there's an interrupt and
705 if not, do the instruction, then handle traps be they generated by
706 interrupts pending or by the instruction we might just have done.
707 That's what the sis.c one does.
709 1999-01-20 Hugo Tyson <hmt@cygnus.co.uk>
711 * sis.h: Add asr17 register for support of SparcLITE (at least the
712 Hitachi ones I find before me)
714 * exec.c (dispatch_instruction): Case WRY: Allow write of asr17 if
715 sparclite. Other ASR numbers than 17 or 0 (Y) trap out.
716 Case RDY: Allow read of asr17 if sparclite. Other ASRs ditto.
717 (execute_trap): Do single-vector-trapping if asr17 bit 0 is set.
718 (init_regs): Initialize y and asr17.
719 NB: In instruction-set space, the Y register is asr0; the
720 instructions have different names for human reasons only.
723 * interf.c: Set boolean mode variable dumbio if invoked with
724 argument "-dumbio" and mention it of verbose.
725 * erc32.c: if "dumbio" is set, do not assume that there is a
726 terminal type device attached to stdin/stdout. Do not set
727 buffering or mess with tcsetattr or do any read operations in
728 order to make UART interrupts; not input data is supported.
729 This is necessary to allow the sim to be used within the eCos
730 testing infrastructure where stdin/stdout are pipes to a TCL
731 program; the sim hangs otherwise.
733 Thu Jul 23 07:17:03 1998 Mark Alexander <marka@cygnus.com>
735 * exec.c (dispatch_instruction): Add SPARClite 'scan' instruction.
737 Tue Jul 7 21:12:41 1998 Mark Alexander <marka@cygnus.com>
739 * func.c (bfd_load): Add special handling of a.out executables.
741 Sat Jun 13 08:33:25 1998 Mark Alexander <marka@cygnus.com>
743 * func.c (bfd_load): Print correct endianness.
744 * interf.c (run_sim): Print debugging information if verbosity level
746 (sim_open): Repeated -v options now increment verbosity level.
747 (sim_store_register): Handle little-endian case.
748 (flush_window): Print debugging information if verbosity level
751 Tue Jun 2 15:20:35 1998 Mark Alexander <marka@cygnus.com>
753 * interf.c (sim_open): Use revamped memory_read, which makes
754 byte-swapping unnecessary. Add -sparclite-board option for
755 emulating RAM found on typical SPARClite boards. Print
756 error message for unrecognized option.
757 * erc32.c: Change RAM address and size from constants to variables,
758 to allow emulation of SPARClite board RAM.
759 (fetch_bytes, store_bytes): New helper functions for revamped
760 mememory_read and memory_write.
761 (memory_read, memory_write): Rewrite to store bytes in target
762 byte order instead of storing words in host byte order; this
763 greatly simplifies support of little-endian programs.
764 (get_mem_ptr): Remove unnecessary byte parameter.
765 (sis_memory_write, sis_memory_read): Store words in target
766 byte order instead of host byte order.
767 (byte_swap_words): Remove, no longer needed.
768 * sis.h ((byte_swap_words): Remove declaration, no longer needed.
769 (memory_read): Add new sz parameter.
770 * sis.c (run_sim): Use revamped memory_read, which makes
771 byte-swapping unnecessary.
772 * exec.c (dispatch_instruction): Use revamped memory_read, which
773 makes byte-swapping and double-word fetching unnecessary.
774 * func.c (sparclite_board): Declare new variable.
775 (get_regi): Handle little-endian data.
776 (bfd_load): Recognize little-endian SPARClite as having
779 Fri May 22 14:23:16 1998 Mark Alexander <marka@cygnus.com>
781 * erc32.c (port_init): Print messages only if sis_verbose is true.
782 * func.c (bfd_load): Ditto.
783 * interf.c (sim_open): Ditto.
785 Thu May 14 23:10:48 1998 Mark Alexander <marka@cygnus.com>
787 * sis.h (uint64, int64): Define.
788 * exec.c (SDIV, SDIVCC, UDIV, UDIVCC): Define new opcodes.
789 * (mul64): Simplify calculation of negative result.
790 * (div64): New helper function for 64-bit division.
791 * (dispatch_instruction): Add emulation of SDIV, SDIVCC, UDIV,
794 Wed May 13 14:59:54 1998 Mark Alexander <marka@cygnus.com>
796 * erc32.c (close_port): Don't close stdin; it kills GDB.
797 (byte_swap_words): New function.
798 * sis.h: (byte_swap_words): Declare.
799 * interf.c (run_sim): Always fetch instructions as big-endian.
800 * sis.c (run_sim): Ditto.
802 Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
804 * configure: Regenerated to track ../common/aclocal.m4 changes.
806 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
808 * configure: Regenerated to track ../common/aclocal.m4 changes.
811 Sun Apr 26 15:20:17 1998 Tom Tromey <tromey@cygnus.com>
813 * acconfig.h: New file.
814 * configure.in: Reverted change of Apr 24; use sinclude again.
816 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
818 * configure: Regenerated to track ../common/aclocal.m4 changes.
821 Fri Apr 24 11:19:52 1998 Tom Tromey <tromey@cygnus.com>
823 * configure.in: Don't call sinclude.
825 Sat Apr 18 12:00:16 1998 Mark Alexander <marka@cygnus.com>
827 * func.c (disp_fpu): Fix build problem on big-endian hosts.
829 Wed Apr 8 19:33:34 1998 Mark Alexander <marka@cygnus.com>
831 * erc32.c (sim_stop): Handle SIGINT gracefully.
832 * interf.c (sim_open): Don't catch SIGINT; GDB will do that for us.
834 Wed Apr 8 18:29:40 1998 Mark Alexander <marka@cygnus.com>
836 * exec.c (dispatch_instruction): Change how carry out is calculated
837 in DIVSCC. Add emulation of SMULCC, UMUL, and UMULCC.
839 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
841 * configure: Regenerated to track ../common/aclocal.m4 changes.
843 Wed Apr 1 21:19:18 1998 Mark Alexander <marka@cygnus.com>
845 * end.c: Update to version 2.7.5, fix compiler warnings and bugs.
855 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
857 * configure: Regenerated to track ../common/aclocal.m4 changes.
859 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
861 * configure: Regenerated to track ../common/aclocal.m4 changes.
863 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
865 * configure: Regenerated to track ../common/aclocal.m4 changes.
867 Tue Feb 17 12:41:11 1998 Andrew Cagney <cagney@b1.cygnus.com>
869 * interf.c (sim_store_register, sim_fetch_register): Pass in
870 length parameter. Return -1.
872 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
874 * configure: Regenerated to track ../common/aclocal.m4 changes.
876 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
878 * configure: Regenerated to track ../common/aclocal.m4 changes.
880 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
882 * configure: Regenerated to track ../common/aclocal.m4 changes.
884 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
886 * configure: Regenerated to track ../common/aclocal.m4 changes.
889 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
891 * configure: Regenerated to track ../common/aclocal.m4 changes.
893 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
895 * configure: Regenerated to track ../common/aclocal.m4 changes.
897 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
899 * configure: Regenerated to track ../common/aclocal.m4 changes.
901 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
903 * configure: Regenerated to track ../common/aclocal.m4 changes.
905 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
907 * configure: Regenerated to track ../common/aclocal.m4 changes.
909 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
911 * configure: Regenerated to track ../common/aclocal.m4 changes.
913 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
915 * configure: Regenerated to track ../common/aclocal.m4 changes.
917 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
919 * configure: Regenerated to track ../common/aclocal.m4 changes.
922 Tue Aug 26 10:38:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
924 * float.c (__setfpucw): Compile on any i386 target. Not just NT.
926 * interf.c (sim_kill): Delete.
927 (sim_create_inferior): Add ABFD argument. Initialize PC from ABFD
929 (sim_load): Don't save start address.
930 (start_address): Delete variable.
932 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
934 * configure: Regenerated to track ../common/aclocal.m4 changes.
937 Mon Aug 25 16:19:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
939 * interf.c (sim_open): Add ABFD argument. Change ARGV to PARGV.
941 Mon Jun 30 11:45:25 1997 Doug Evans <dje@canuck.cygnus.com>
943 * Makefile.in (install-sis): Change $(srcdir)/sis to sis.
945 Wed May 28 09:46:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
947 * interf.c (sim_set_callbacks): Drop SD argument - not applicable.
948 (sim_open): Add callback arg, save it.
950 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
952 * configure: Regenerated to track ../common/aclocal.m4 changes.
954 Tue Apr 22 11:05:01 1997 Doug Evans <dje@canuck.cygnus.com>
956 * interf.c (sim_open): Undo patch to add -E support.
958 Thu Apr 17 03:03:56 1997 Doug Evans <dje@canuck.cygnus.com>
960 * interf.c (sim_open): Ignore -E arg.
961 (start_address): New static local.
962 (sim_load): Return SIM_RC. New arg abfd. Set start_address from bfd.
963 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
965 Tue Apr 15 15:16:11 1997 Ian Lance Taylor <ian@cygnus.com>
967 * Makefile.in (install-sis): Depend upon installdirs. Use
968 $(program_transform_name) directly, rather than using
971 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
973 * configure: Regenerated to track ../common/aclocal.m4 changes.
976 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
978 * interf.c (sim_open): New arg `kind'.
980 * configure: Regenerated to track ../common/aclocal.m4 changes.
982 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
984 * configure: Regenerated to track ../common/aclocal.m4 changes.
986 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
988 * configure: Re-generate.
990 Thu Mar 13 12:46:04 1997 Doug Evans <dje@canuck.cygnus.com>
992 * interf.c (sim_open): New SIM_DESC result. Argument is now in
994 (other sim_*): New SIM_DESC argument.
996 Tue Feb 4 13:35:20 1997 Doug Evans <dje@canuck.cygnus.com>
998 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
999 COMMON_{PRE,POST}_CONFIG_FRAG instead.
1000 * configure.in: sinclude ../common/aclocal.m4.
1001 * configure: Regenerated.
1003 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
1005 * configure configure.in Makefile.in: Update to new configure
1006 scheme which is more compatible with WinGDB builds.
1007 * configure.in: Improve comment on how to run autoconf.
1008 * configure: Re-run autoconf to get new ../common/aclocal.m4.
1009 * Makefile.in: Use autoconf substitution to install common
1012 Wed Dec 4 18:25:04 1996 Rob Savoye <rob@chinadoll.cygnus.com>
1014 * interf.c (run_sim): Stop the simulator and reset the stdio after
1017 Tue Dec 3 11:54:37 1996 Rob Savoye <rob@chinadoll.cygnus.com>
1019 * configure.in: Look for libtermcap.a.
1020 * Makefile.in: Only link in -ltermcap if it exists.
1021 * erc32.c: Update to version 2.6a. Fix uart handling.
1022 * exec.c: Update to version 2.6a. Add sparclite support.
1023 * float.c: Update to version 2.6a. Convert comments to
1024 preprocessor warnings. Add __setfpucw() for i385 hosts so floating
1025 point exceptions work on win32.
1026 * func.c: Update to version 2.6a. Fix uart handling, add support
1027 for user error traps.
1028 * help.c: Update to version 2.6a. Add help note on user error
1030 * interf.c: Update to version 2.6a. Fix uart handling, and add
1032 * examples/gccx: Use sparclite cross compiler, not native gcc.
1033 * examples/srt0.S: Use "mov" rather than "wr" for manipulating
1036 Mon Nov 25 08:28:10 1996 Fred Fish <fnf@cygnus.com>
1038 * Makefile.in (run.o): Remove this rule, it hides the one in
1039 ../common/Make-common.in that correctly references the source
1040 in the sibling ../common directory.
1042 Wed Nov 20 01:30:12 1996 Doug Evans <dje@canuck.cygnus.com>
1044 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
1045 (SIM_{OBJS,EXTRA_LIBS,EXTRA_LIBDEPS,EXTRA_ALL,EXTRA_INSTALL}): Define.
1046 (SIM_{EXTRA_CLEAN,EXTRA_CFLAGS}): Define.
1047 * configure.in: Simplify using macros in ../common/aclocal.m4.
1048 Call AC_CHECK_HEADERS(stdlib.h).
1049 * configure: Regenerated.
1050 * config.in: New file.
1051 * func.c (sim_set_callbacks): Delete, moved to
1052 * interf.c (sim_set_callbacks): here.
1053 (sim_callback): New global.
1054 Rewrite all calls to printf_filtered to go through callback.
1055 (sim_size,sim_trace): New functions.
1056 (sim_{insert,remove}_breakpoint): #if 0 out.
1057 * sis.c: #include "config.h". #include <stdlib.h> if present.
1058 (main): Coerce fprintf arg to INIT_DISASSEMBLE_INFO to fprintf_ftype.
1059 * sis.h: #include "callback.h".
1060 * run.c: Deleted, using one in ../common now.
1062 Thu Oct 3 16:12:03 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1064 * Makefile.in (clean): Move config.log to distclean.
1066 Wed Oct 2 16:57:57 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1068 * Makefile.in (clean): Also remove config.log.
1070 Sat Sep 14 00:00:46 1996 Ian Lance Taylor <ian@cygnus.com>
1072 * Makefile.in (CC_FOR_BUILD): New variable.
1073 (AR, AR_FLAGS, BISON, MAKEINFO): Remove duplicate variables.
1074 (RANLIB, CC): Likewise.
1075 (end): Use $(CC_FOR_BUILD), not $(CC).
1076 * configure.in: Set CC_FOR_BUILD.
1077 * configure: Rebuild.
1079 Sun Sep 8 14:04:37 1996 Stu Grossman (grossman@critters.cygnus.com)
1081 * erc32.c (port_init): Disable this for __GO32__ (got no pty's
1084 Mon Aug 12 17:04:58 1996 Stu Grossman (grossman@critters.cygnus.com)
1086 * erc32.c: Don't include sys/ioctl.h or sys/file.h. They aren't
1088 * (port_init): Don't even *try* to open pty's under _WIN32.
1089 * Use SIM_ADDR, not caddr_t for declaring vars that hold addresses.
1090 * float.c: Get rid of #warning. Makes Microsoft C barf.
1091 * interf.c (sim_open): Cast fprintf to (fprintf_ftype) to fix
1093 * (sim_load sim_create_inferior sim_read): Use prototypes only in
1095 * Get rid of enum sim_stop. It's defined in remote-sim.h.
1096 * (sim_stop_reason): Define SIGTRAP if _WIN32.
1097 * sis.h: Include ansidecl.h and remote-sim.h.
1099 Wed Jul 3 16:05:23 1996 Stu Grossman (grossman@critters.cygnus.com)
1101 * erc32.c (mec_reset mec_read mec_write memory_read memory_write),
1102 sis.h: Get rid of all uses of long long's.
1103 * (close_port read_uart write_uart uarta_tx): Don't seg fault
1104 when can't open pty's.
1105 * exec.c: Add two new instructions: smul, and divscc.
1106 * interf.c (flush_windows): New routine to flush the register
1107 windows out to the stack just before returning to GDB. Makes
1108 backtraces work much better.
1110 Wed Jun 26 12:19:11 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1112 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
1113 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
1114 (docdir, oldincludedir): Removed.
1115 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1116 (AC_PROG_INSTALL): Added.
1117 * configure: Rebuilt.
1119 Mon Jun 24 14:19:07 1996 Ian Lance Taylor <ian@cygnus.com>
1121 * configure.in: Call AC_PROG_CC before running configure.host.
1122 * configure: Rebuild with autoconf 2.10.
1124 Tue Jun 4 10:37:12 1996 Tom Tromey <tromey@csk3.cygnus.com>
1126 * Makefile.in (install): Don't check to see if tooldir exists.
1127 Make $(tooldir) and $(tooldir)/bin.
1129 Mon Jun 3 12:33:38 1996 Ian Lance Taylor <ian@cygnus.com>
1131 * Makefile.in (end.h): Use explicit ./ when running end.
1133 Sun May 19 21:05:31 1996 Rob Savoye <rob@chinadoll.cygnus.com>
1135 * func.c(bfd_load): Don't try to print the filename if the pfbd is
1137 * interf.c(sim_load): Pass the whole string, not just the first
1140 Version 2.1 26-02-96
1141 --------------------
1143 * Fixed bug in "go" command.
1145 version 2.0 05-02-96
1146 --------------------
1148 * Fixed bug in interrupt force register (erc32.c).
1150 * Change file load function to use bfd_openr.
1152 * SIS should now be endian independent.
1154 version 1.8 24-11-95
1155 --------------------
1157 * Fixed FPU timing - some sequences of FPU instructions did not calculate
1158 the resource dependencies right.
1160 * Corrected STDFQ when qne = 0 (again!). The ftt is set to sequence_error
1161 but no FPU trap is generated.
1163 version 1.7.1 31-10-95
1164 --------------------
1166 * Corrected STDFQ when qne = 0. Now, a trap is immidiately generated but
1167 the FPU stays in execute mode.
1169 * Corrected JMPL and RETT timing (these instructions takes two cycles).
1172 version 1.7 25-10-95
1173 --------------------
1175 * Interrupt during annuled instruction corrupted return address - fixed.
1178 version 1.6.2 25-10-95
1179 --------------------
1181 * Added -DFAST_UART to Makefile
1184 version 1.6.1 24-10-95
1185 --------------------
1187 * Fixed bug in STDFQ which caused bus error
1190 version 1.6 02-10-95
1191 --------------------
1193 * Modified srt0.s to include code that initiates registers in IU and FPU
1194 and initializes the data segment. The simulator 'load' command does not
1195 longer initialize the data segment!
1197 * Corrected MEC timer operation; scalers now divide the frequency by
1200 * MEC breakpoints are not checked during store operation
1203 version 1.5 14-09-95
1204 --------------------
1206 * Fixed some bugs in the cycle counting for IU & FPU instructions.
1208 * Fixed bug that allowed an annuled instruction to cause memory exception.
1210 * The *ws parameter in mem.c should now contain the number of waitstates
1211 required by the memory access (was total number of cycles).
1213 * The supplied srt0.s now clears the BSS (thanks Joel).
1215 version 1.4 22-08-95
1216 --------------------
1218 * Added a '-g' switch to enable/disable the GNU readline(), which cause
1219 some problems on solaris 2.x machines.
1221 * Enabled MEC watchpoint and breakpoint function to mem.c. Performance
1222 may suffer a bit ...
1224 NOTE: The UARTs are now connected to /dev/ttypc and /dev/ttypd.
1226 version 1.3 26-07-95
1227 --------------------
1229 * Fixed bug in mulscc instruction (how could that ever have worked?)
1231 * Fixed bug in UART B (flushed characters on UART A), thanks Paul.
1233 version 1.2 13-07-95
1234 --------------------
1236 * Fixed bug in interrupt handling (wrong interrupt selected when more that
1237 one interrupt pending)
1239 * Fixed updating of condition codes during logical instructions (carry and
1240 overflow were not reset)
1242 * Fixed bug in WRTBR (tt field was wrongly over-written)
1244 version 1.1 07-07-95
1245 --------------------
1247 * Fixed several bugs in the interrupt handler and callback routines.
1248 (reported by Paul Warren, Alsys)