1 2017-09-06 John Baldwin <jhb@FreeBSD.org>
3 * configure: Regenerate.
5 2017-02-13 Mike Frysinger <vapier@gentoo.org>
7 * gencode.c: Include libiberty.h.
8 (conflict_warn): Use ARRAY_SIZE.
9 * interp.c (init_dsp): Likewise.
11 2016-04-10 Oleg Endo <olegendo@gcc.gnu.org>
13 * interp.c (dmul): Split into dmul_s and dmul_u. Use explicit integer
14 width types and simplify implementation.
15 * gencode.c (dmuls.l, dmulu.l): Use new functions dmul_s and dmul_u.
17 2016-04-09 Oleg Endo <olegendo@gcc.gnu.org>
19 * interp.c (sim_memory_size): Default init to 30.
20 (parse_and_set_memory_size): Adjust upper bound to 31.
22 2016-01-10 Mike Frysinger <vapier@gentoo.org>
24 * config.in, configure: Regenerate.
26 2016-01-10 Mike Frysinger <vapier@gentoo.org>
28 * configure: Regenerate.
30 2016-01-10 Mike Frysinger <vapier@gentoo.org>
32 * configure.ac (SIM_AC_OPTION_ENVIRONMENT): Delete call.
33 * configure: Regenerate.
35 2016-01-10 Mike Frysinger <vapier@gentoo.org>
37 * configure: Regenerate.
39 2016-01-10 Mike Frysinger <vapier@gentoo.org>
41 * configure: Regenerate.
43 2016-01-10 Mike Frysinger <vapier@gentoo.org>
45 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
46 * configure: Regenerate.
48 2016-01-10 Mike Frysinger <vapier@gentoo.org>
50 * configure: Regenerate.
52 2016-01-10 Mike Frysinger <vapier@gentoo.org>
54 * configure: Regenerate.
56 2016-01-09 Mike Frysinger <vapier@gentoo.org>
58 * config.in, configure: Regenerate.
60 2016-01-06 Mike Frysinger <vapier@gentoo.org>
62 * interp.c (sim_open): Mark argv const.
63 (sim_create_inferior): Mark argv and env const.
65 2016-01-04 Mike Frysinger <vapier@gentoo.org>
67 * configure: Regenerate.
69 2016-01-03 Mike Frysinger <vapier@gentoo.org>
71 * interp.c (sim_open): Update sim_parse_args comment.
73 2016-01-03 Mike Frysinger <vapier@gentoo.org>
75 * interp.c (count_argc): Delete.
76 (trap): Change count_argc to countargv.
78 2016-01-03 Mike Frysinger <vapier@gentoo.org>
80 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
81 * configure: Regenerate.
82 * interp.c (host_little_endian): Change CURRENT_HOST_BYTE_ORDER
85 2016-01-02 Mike Frysinger <vapier@gentoo.org>
87 * configure: Regenerate.
88 * interp.c (target_little_endian): Change LITTLE_ENDIAN to
90 (host_little_endian): Likewise.
92 2015-12-30 Mike Frysinger <vapier@gentoo.org>
94 * wrapper.c (sim_store_register): Rename to ...
95 (sh_reg_store): ... this.
96 (sim_fetch_register): Rename to ...
97 (sh_reg_fetch): ... this.
98 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
100 2015-12-27 Mike Frysinger <vapier@gentoo.org>
102 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
104 2015-12-26 Mike Frysinger <vapier@gentoo.org>
106 * config.in, configure: Regenerate.
108 2015-11-21 Mike Frysinger <vapier@gentoo.org>
110 * gencode.c (tab): Pass sd into trap calls.
111 * interp.c (prog_argv, callback): Delete.
112 (parse_and_set_memory_size): Add SIM_DESC arg.
113 (trap): Declare callback and prog_argv.
114 (sim_resume): Declare callback.
115 (sim_info): Change callback->printf_filtered calls to sim_io_printf.
116 (sim_open): Delete callback assignment. Pass sd to
117 parse_and_set_memory_size.
118 (parse_and_set_memory_size): Change callback->printf_filtered call
120 (sim_create_inferior): Delete prog_argv assignment.
121 (sim_do_command): Change callback->printf_filtered calls to
122 sim_io_printf. Pass sd to parse_and_set_memory_size.
124 2015-11-15 Mike Frysinger <vapier@gentoo.org>
126 * Makefile.in (SIM_OBJS): Delete sim-stop.o.
128 2015-11-14 Mike Frysinger <vapier@gentoo.org>
130 * interp.c (sim_close): Delete.
132 2015-06-23 Mike Frysinger <vapier@gentoo.org>
134 * configure: Regenerate.
136 2015-06-12 Mike Frysinger <vapier@gentoo.org>
138 * configure: Regenerate.
140 2015-06-12 Mike Frysinger <vapier@gentoo.org>
142 * configure: Regenerate.
144 2015-04-18 Mike Frysinger <vapier@gentoo.org>
146 * sim-main.h (SIM_CPU): Delete.
148 2015-04-18 Mike Frysinger <vapier@gentoo.org>
150 * sim-main.h (sim_cia): Delete.
152 2015-04-17 Mike Frysinger <vapier@gentoo.org>
154 * sim-main.h (CIA_GET, CIA_SET): Delete.
156 2015-04-17 Mike Frysinger <vapier@gentoo.org>
158 * interp.c (sh_pc_get, sh_pc_set): New functions.
159 (sim_open): Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
161 2015-04-15 Mike Frysinger <vapier@gentoo.org>
163 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
164 * sim-main.h (STATE_CPU): Delete.
166 2015-04-13 Mike Frysinger <vapier@gentoo.org>
168 * configure: Regenerate.
170 2015-04-06 Mike Frysinger <vapier@gentoo.org>
172 * Makefile.in (SIM_OBJS): Delete sim-engine.o.
174 2015-03-31 Mike Frysinger <vapier@gentoo.org>
176 * config.in, configure: Regenerate.
178 2015-03-28 Mike Frysinger <vapier@gentoo.org>
180 * Makefile.in (SIM_RUN_OBJS, SIM_EXTRA_CFLAGS): Delete.
181 (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
182 * interp.c: Delete run-sim.h include. Include sim-main.h, sim-base.h,
184 (SEXT, SEXT32): Undefine.
185 (sim_write): Delete prototype.
186 (regstacktype, saved_state_type): Move to sim-main.h.
187 (target_little_endian): Replace with CURRENT_TARGET_BYTE_ORDER.
188 (host_little_endian): Replace with CURRENT_HOST_BYTE_ORDER.
189 (sim_kind, myname, tracing, sim_stop, sim_trace, sim_set_profile,
190 sim_set_profile_size, sim_load, sim_set_callbacks,
191 sim_complete_command): Delete.
192 (sim_size): Mark static.
193 (init_pointers): Delete host_little_endian setup.
194 (sim_resume): Delete tracing check.
195 (free_state): New cleanup function.
196 (sim_open): Rewrite to use new common logic.
197 (sim_create_inferior): Call init_dsp.
198 * sim-main.h: New file.
199 * tconfig.h: Delete file.
201 2015-03-28 Mike Frysinger <vapier@gentoo.org>
203 * gencode.c (ppi_gensim): Convert old style prototype with ppi_insn.
204 * interp.c: Include ctype.h and run-sim.h.
205 [HAVE_TIME_H]: Include time.h
206 [HAVE_SYS_TIME_H]: Include sys/time.h
207 [!_WIN32]: Include utime.h and sys/wait.h.
208 (set_fpscr1, raise_exception, raise_buserror, get_dr, set_dr, set_sr,
209 do_rdat, do_wdat, process_wlat_addr, process_wwat_addr,
210 process_wbat_addr, process_rlat_addr, process_rwat_addr,
211 process_rbat_addr, IOMEM, get_now, now_persec, swapout, swapout16,
212 ptr, strswaplen, strnswap, dmul, macw, macl, get_loop_bounds_ext,
213 get_loop_bounds, sim_size, init_dsp, init_pointers, dump_profile,
214 gotcall, sim_stop, sim_write, sim_read, sim_store_register,
215 sim_fetch_register, sim_trace, sim_stop_reason, sim_info,
216 sim_set_profile, sim_set_profile_size, sim_open,
217 parse_and_set_memory_size, sim_close, sim_load, sim_create_inferior,
218 sim_do_command, sim_set_callbacks): Convert old style prototype.
219 (fail): Delete unused function.
220 (wlat_fast, wwat_fast, wbat_fast, rlat_fast, rwat_fast, rbat_fast):
221 Delete unused prototypes.
222 (wlat_fast, wwat_fast, wbat_fast, rlat_fast, rwat_fast, rbat_fast,
224 Convert old style prototype and move INLINE before the type.
225 (trap): Convert old style prototype. Add casts to wait and sim_write
227 (div1): Convert old style prototype. Change return to void.
228 (do_long_move_insn, do_blog_insn, fsca_s, fsrra_s, mcalloc): Mark
230 (sim_resume): Convert old style prototype. Align printf format and
233 2015-03-28 Mike Frysinger <vapier@gentoo.org>
235 * gencode.c (ppi_gensim): Add missing */. Change case 4 to case 5.
237 2015-03-28 Mike Frysinger <vapier@gentoo.org>
239 * Makefile.in (gencode): Add $(BUILD_CFLAGS), $(BUILD_LDFLAGS),
241 * gencode.c: Include ctype.h, stdlib.h, string.h, and unistd.h.
242 (struct op): Mark members const.
244 (nibble_type_list): Mark const.
245 (arg_type_list): Mark const.
246 (make_enum_list): Delete unused func.
247 (qfunc, expand_opcode, dumptable, expand_ppi_code): Convert old
248 style prototype and mark args const.
249 (sorttab, gengastab, conflict_warn, filltable, expand_ppi_movxy,
250 gensim, ppi_filltable): Convert old style prototype.
251 (gensim_caselist): Convert old style prototype. Mark local
252 variables s and r const.
253 (gendefines): Convert old style prototype. Mark s const. Move
254 tolower call into printf statement.
255 (ppi_gensim): Convert old style prototype. Mark local variable
257 (main): Convert old style prototype. Change printf %d to %zu.
259 2015-03-28 Mike Frysinger <vapier@gentoo.org>
261 * config.in, configure: Regenerate.
262 * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT,
263 SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT,
264 SIM_AC_OPTION_INLINE, SIM_AC_OPTION_WARNINGS.
266 2015-03-16 Mike Frysinger <vapier@gentoo.org>
268 * config.in, configure: Regenerate.
269 * tconfig.in: Rename file ...
270 * tconfig.h: ... here.
272 2015-03-14 Mike Frysinger <vapier@gentoo.org>
274 * Makefile.in (SIM_EXTRA_CFLAGS): Set to
275 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
276 (SIM_RUN_OBJS): Set to run.o.
278 2015-03-14 Mike Frysinger <vapier@gentoo.org>
280 * configure.ac (AC_CHECK_HEADERS): Delete.
281 * aclocal.m4, configure: Regenerate.
283 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org> (tiny patch)
285 * gencode.c (fabs, fneg): Implement as integer operation
286 instead of using the FP_UNARY macro.
288 2014-08-19 Alan Modra <amodra@gmail.com>
290 * configure: Regenerate.
292 2014-08-15 Roland McGrath <mcgrathr@google.com>
294 * configure: Regenerate.
295 * config.in: Regenerate.
297 2014-03-10 Mike Frysinger <vapier@gentoo.org>
299 * interp.c (parse_and_set_memory_size): Add const to str.
300 (sim_do_command): Add const to cmd and sms_cmd.
302 2014-03-05 Mike Frysinger <vapier@gentoo.org>
304 * interp.c (sim_load): Add const to prog.
306 2014-02-17 Mike Frysinger <vapier@gentoo.org>
309 * interp.c (control_c): Delete.
310 (sim_resume): Delete signal(SIGINT) handling.
312 2013-09-23 Alan Modra <amodra@gmail.com>
314 * configure: Regenerate.
316 2013-06-03 Mike Frysinger <vapier@gentoo.org>
318 * aclocal.m4, configure: Regenerate.
320 2012-06-15 Joel Brobecker <brobecker@adacore.com>
322 * config.in, configure: Regenerate.
324 2012-03-24 Mike Frysinger <vapier@gentoo.org>
326 * aclocal.m4, config.in, configure: Regenerate.
328 2012-02-16 Kevin Buettner <kevinb@redhat.com>
330 * interp.c (MA): Adjust cast to avoid warning on 64-bit hosts.
332 * interp.c (sim_store_register, sim_fetch_register): Return
335 2011-12-03 Mike Frysinger <vapier@gentoo.org>
337 * aclocal.m4: New file.
338 * configure: Regenerate.
340 2011-10-17 Mike Frysinger <vapier@gentoo.org>
342 * configure.ac: Change include to common/acinclude.m4.
344 2011-10-17 Mike Frysinger <vapier@gentoo.org>
346 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
347 call. Replace common.m4 include with SIM_AC_COMMON.
348 * configure: Regenerate.
350 2011-04-16 Mike Frysinger <vapier@gentoo.org>
352 * interp.c (sim_complete_command): New stub function.
354 2010-04-14 Mike Frysinger <vapier@gentoo.org>
356 * interp.c (sim_write): Add const to buffer arg.
358 2010-01-12 Masaki Muranaka <monaka@monami-software.com>
360 * interp.c: Don't include sysdep.h.
361 Include stdio.h and errno.h.
362 Include string.h strings.h stdlib.h sys/stat.h if present.
364 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
366 * configure: Regenerate.
368 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
370 * config.in: Regenerate.
371 * configure: Likewise.
373 * configure: Regenerate.
375 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
377 * configure: Regenerate to track ../common/common.m4 changes.
380 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
381 Daniel Jacobowitz <dan@codesourcery.com>
382 Joseph Myers <joseph@codesourcery.com>
384 * configure: Regenerate.
386 2008-02-04 Antony King <antony.king@st.com>
388 * interp.c (macl): Fix non-portable implementation.
390 2007-10-08 Andrew Stubbs <andrew.stubbs@st.com>
392 * gencode.c (tab): Add RAISE_EXCEPTION_IF_IN_DELAY_SLOT to the
393 definition of PC relative 'mov.l'/'mov.w' and also 'mova'.
395 2007-03-02 Andrew Stubbs <andrew.stubbs@st.com>
397 * gencode.c (tab): Correct pre-decrement instructions when m == n.
399 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
401 * acconfig.h: Remove.
402 * config.in: Regenerate.
404 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
406 * configure: Regenerated.
408 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
410 * configure: Regenerated.
412 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
414 * configure: Regenerated.
416 2005-11-10 Andrew Stubbs <andrew.stubbs@st.com>
418 * interp.c (sim_memory_size): Use same amount of memory on Windows as
421 2005-09-19 J"orn Rennecke <joern.rennecke@st.com>
423 * interp.c (<sys/mman.h>): Include.
424 (mcalloc): New function / macro.
426 (sim_size): Use mcalloc and mfree.
428 2005-08-02 J"orn Rennecke <joern.rennecke@st.com>
430 * interp.c (strswaplen): Add one for '\0' delimiter.
432 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
434 * gencode.c (tab): Avoid lvalue casts. Suggested by
435 Ralf Corsepius <ralf.corsepius@rtems.org>.
437 2005-04-12 Jonathan Larmour <jifl@eCosCentric.com>
439 * gencode.c (tab): Avoid inserting code before variables all declared.
441 2005-03-23 Mark Kettenis <kettenis@gnu.org>
443 * configure: Regenerate.
445 2005-01-14 Andrew Cagney <cagney@gnu.org>
447 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
448 explicit call to AC_CONFIG_HEADER.
449 * configure: Regenerate.
451 2005-01-12 Andrew Cagney <cagney@gnu.org>
453 * configure.ac: Update to use ../common/common.m4.
454 * configure: Re-generate.
456 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
458 * configure: Regenerated to track ../common/aclocal.m4 changes.
460 2005-01-07 Andrew Cagney <cagney@gnu.org>
462 * configure.ac: Rename configure.in, require autoconf 2.59.
463 * configure: Re-generate.
465 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
467 * configure: Regenerate for ../common/aclocal.m4 update.
469 2004-09-08 DJ Delorie <dj@redhat.com>
471 Commited by Corinna Vinschen <vinschen@redhat.com>
472 * gencode.c (movua.l): Compensate for endianness.
474 2004-09-08 Corinna Vinschen <vinschen@redhat.com>
476 * interp.c (RAISE_EXCEPTION_IF_IN_DELAY_SLOT): New macro.
477 (in_delay_slot): New flag variable.
478 (Delay_Slot): Set in_delay_slot.
479 (sim_resume): Reset in_delay_slot after leaving code switch.
480 * gencode.c (op tab): Call RAISE_EXCEPTION_IF_IN_DELAY_SLOT for all
481 instructions not allowed in delay slots.
483 2004-09-08 Michael Snyder <msnyder@redhat.com>
485 Commited by Corinna Vinschen <vinschen@redhat.com>
486 Introduce SH2a support.
487 * interp.c: Change type of jump table to short. Add various macros.
488 (sim_load): Save the bfd machine code.
489 (sim_create_inferior): Ditto.
490 (union saved_state_type): Add tbr, ibnr and ibcr registers.
491 Move bfd_mach to end of struct. Add regstack pointer.
492 (init_dsp): Don't swap contents of sh_dsp_table any more. Instead
493 use it directly in its own switch statement. Allocate space for 512
495 (do_long_move_insn): New function.
496 (do_blog_insn): Ditto.
497 (trap): Use trap #13 and trap #14 to set ibnr and ibcr.
498 * gencode.c: Move movx/movy insns into separate switch statement.
499 (op tab): Add sh2a insns. Reject instructions that are disabled
501 (gensim_caselist): Generate default case here instead of in caller.
502 (gensim): Generate two separate switch statements. Call
503 gensim_caselist once for each (for movsxy_tab and for tab).
504 Add tokens for r15 and multiple regs.
505 (conflict_warn, warn_conflicts): Add for debugging.
507 2004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
509 * gencode.c (tab): For shad snd shld, fix result for
510 (op1 < 0 && shift_amount == 0).
512 2004-02-02 Michael Snyder <msnyder@redhat.com>
514 * gencode.c (movua.l): Set thislock to 0, not n.
516 2004-02-12 Michael Snyder <msnyder@redhat.com>
518 * gencode.c (table): Change from char to short.
519 (dumptable): Change generated table from char to short.
520 * interp.c (sh_jump_table, sh_dsp_table, ppi_table): char to short.
521 (init_dsp): Compute size of sh_dsp_table.
522 (sim_resume): Change jump_table from char to short.
524 2004-01-27 Michael Snyder <msnyder@redhat.com>
526 * gencode.c: (op tab): Some refs and defs fixes.
527 "fsrra" -> "fsrra <FREG_N>".
528 "sleep": replace array ref with array addr.
530 Comment and whitespace clean-ups.
532 2004-01-07 Michael Snyder <msnyder@redhat.com>
534 * gencode.c: Whitespace cleanup.
537 * gencode.c: Replace 'Hitachi' with 'Renesas'.
538 (op tab): Add new instructions for sh4a, DBR, SBR.
539 (expand_opcode): Add handling for new movxy combinations.
540 (gensym_caselist): Ditto.
541 (expand_ppi_movxy): Remove movx/movy expansions,
542 now handled in expand_opcode.
543 (gensym): Add some helpful macros.
544 (expand_ppi_code): Flatten loop for simplicity, tweak for 12-bit
545 instead of 8-bit table (some insns are ambiguous to 8 bits).
546 (ppi_gensim, main): Generate 12-bit instead of 8-bit ppi table.
548 * interp.c: Replace 'Hitachi' with 'Renesas'.
549 (union saved_state_type): Add dbr, sgr, ldst.
550 (get_loop_bounds_ext): New function.
551 (init_dsp): Add bfd_mach_sh4al_dsp.
552 (sim_resume): Handle extended loop bounds.
554 2003-12-18 Michael Snyder <msnyder@redhat.com>
556 * gencode.c (expand_opcode): Simplify and reorganize.
557 Eliminate "shift" parameter. Eliminate "4 bits at a time"
558 assumption. Flatten switch statement to a single level.
559 Add "eeee" token for even-numbered registers.
561 (fsca): Use "eeee" token.
562 (ppi_moves): Rename to "expand_ppi_movxy". Do the ddt
563 [movx/movy] expansion here, as well as the ppi expansion.
564 (gensim_caselist): Accept 'eeee' along with 'nnnn'.
566 2003-11-03 J"orn Rennecke <joern.rennecke@superh.com>
568 * interp.c (fsca_s, fsrra_s): New functions.
569 * gencode.c (tab): Add entries for fsca and fsrra.
570 (expand_opcode): Allow variable length n / m fields.
572 2003-10-15 J"orn Rennecke <joern.rennecke@superh.com>
574 * syscall.h (SYS_truncate, SYS_ftruncate): Define.
575 * interp.c (trap): Add support for SYS_ftruncate and SYS_truncate.
577 2003-08-11 Shrinivas Atre <shrinivasa@KPITCummins.com>
578 * sim/sh/gencode.c ( tab[] ): Addition of MAC.L handler and
579 correction for MAC.W handler
580 * sim/sh/interp.c ( macl ): New Function. Implementation of
583 2003-08-07 Michael Snyder <msnyder@redhat.com>
585 * gencode.c (expand_ppi_code): Comment spelling fix.
587 2003-07-25 Michael Snyder <msnyder@redhat.com>
589 * gencode.c (pshl): Change < to <= (shift by 16 is allowed).
590 Cast argument of >> to unsigned to prevent sign extension.
591 (psha): Change < to <= (shift by 32 is allowed).
593 2003-07-24 Michael Snyder <msnyder@redhat.com>
595 * gencode.c: Fix typo in comment.
597 2003-07-23 Michael Snyder <msnyder@redhat.com>
599 * gencode.c: A few more fix-ups of refs and defs.
600 (frchg): Raise SIGILL if in double-precision mode.
601 (ldtlb): We don't simulate cache, so this is a no-op.
602 (movsxy_tab): Correct a few bit pattern errors.
604 2003-07-09 Michael Snyder <msnyder@redhat.com>
606 * gencode.c (prnd): Clear LSW of result to zeros.
607 * gencode.c (pmuls): Expression is mis-parenthesized.
608 * gencode.c (ppi_gensim): For a conditional ppi insn, if the
609 condition is false, we want to return (not break). A break
610 will take us to the end of the function where registers will
611 be updated, whereas the desired outcome is for nothing to change.
613 2003-07-03 Michael Snyder <msnyder@redhat.com>
615 * gencode.c (movs): Fix a couple of text transpositions.
617 2003-06-27 Michael Snyder <msnyder@redhat.com>
619 * gencode.c (op tab): Some fix-ups of refs and defs.
620 (ocbi, ocbp): Cache not simulated, but may cause memory fault.
621 (gensym_caselist): Add default case to switch statement.
622 (expand_ppi_code): Add default case to switch statement.
623 * gencode.c (op tab): Implement movca.l.
624 * gencode.c (op movsxy_tab): Fix an error in the bit pattern.
625 * gencode.c (gensim_caselist): The movy instructions use
626 registers R6 and R7 (not R4 and R5 like the movx insns).
628 2003-06-27 Michael Snyder <msnyder@redhat.com>
630 * gencode.c (op movsxy_tab): Fix up some copy/paste errors
631 in name: s/REG_x/REG_y/.
633 * gencode.c (op tab): Move misplaced semicolon.
635 2003-02-27 Andrew Cagney <cagney@redhat.com>
637 * interp.c (init_dsp, sim_open, sim_create_inferior): Rename _bfd
640 Fri Oct 11 16:22:28 2002 J"orn Rennecke <joern.rennecke@superh.com>
642 * interp.c (trap): Return int. Take extra parameter for address
643 of the trap instruction. Changed all callers.
644 Add case 33 for profiling.
645 * gencode.c (trapa): Handle trap 33 using the trap function.
646 Add read of vector for generic traps.
648 Wed Jul 17 19:36:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
650 * Makefile.in (interp.o): Depend on $(srcroot)/include/gdb/sim-sh.h.
651 * interp.c: Include "gdb/sim-sh.h".
652 (sim_store_register, sim_fetch_register): Use constants defined there.
654 Tue Jun 18 16:53:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
656 * interp.c (sim_resume): Fix setting of bus error for
659 2002-06-16 Andrew Cagney <ac131313@redhat.com>
661 * configure: Regenerated to track ../common/aclocal.m4 changes.
663 2002-06-08 Andrew Cagney <cagney@redhat.com>
665 * interp.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
667 2001-01-30 Ben Elliston <bje@redhat.com>
669 * interp.c (sim_create_inferior): Record program arguments for
670 later inspection by the trap handler.
671 (count_argc): New function.
672 (prog_argv): Declare static.
673 (sim_write): Declare.
674 (trap): Implement argc, argnlen and argn system calls. Do not
675 abort on unknown system calls--simply return -1.
676 * syscall.h (SYS_argc, SYS_argnlen, SYS_argn): Define.
678 2001-01-24 Alexandre Oliva <aoliva@redhat.com>
680 * interp.c (trap): Implement time.
682 2000-10-24 Ben Elliston <bje@redhat.com>
684 * gencode.c (tab): Delimit strings with commas where applicable.
686 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
688 * configure: Regenerated to track ../common/aclocal.m4 changes.
690 Mon May 15 22:04:51 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
692 sh-dsp support, simulator speedup by using host byte order:
694 * Makefile.in (interp.o): Depends on ppi.c .
696 * gencode.c (printonmatch, think, genopc): Deleted.
697 (MAX_NR_STUFF): Now 42.
698 (tab): Add SH-DSP CPU instructions.
699 Amalgamate ldc / stc / lds / sts instructions with similar
700 bit patterns. Fix opcodes of stc Rm_BANK,@-<REG_N>.
701 Fix semantics of lds.l @<REG_N>+,MACH (no sign extend).
702 (movsxy_tab): New array.
703 For movs, change MMMM field to GGGG, and mmmm field to MMMM.
704 Added entries for movx, movy and parallel processing insns.
705 (ppi_tab): New array.
706 (qfunc): Stabilize sort.
707 (expand_opcode): Handle [01][01]NN, [01][01]xx and [01][01]yy.
708 Handle 'M', 'G' 's' 'X', 'a', 'Y' and 'A'.
709 (dumptable): Now takes three arguments. Changed all callers.
710 Emit just one contigous jump table.
711 (filltable): Now takes an argument. Changed all callers.
713 (ppi_moves, expand_ppi_code, ppi_filltable, ppi_gensim): New functions.
714 (gensim_caselist): New function, broken out of gensim.
715 Handle opcode fields 'x', 'y', 's', 'M', 'G', 'X', 'a', and 'Y'.
717 (gensim): Handle 'N' in code field and '8' in refs field.
718 Call gensim_caselist - twice.
719 (ppi_index): New static variable.
720 (main): Unsupport default action.
721 Add dsp support for -x / -s option. Add -p option.
722 * interp.c (sh_jump_table, sh_dsp_table, ppi_table): Declare.
723 (saved_state_type): Rearrange to allow amalgamated ldc / stc /
724 lds / sts to work efficiently.
725 (target_dsp): New static variable.
726 (GBR, VBR, SSR, SPC, MACH, MACL): Reflect saved_state_type change.
727 (FPUL, Rn_BANK, SET_Rn_BANK, M, Q, S, T, SR_BL, SR_RB): Likewise.
728 (SR_MD, SR_RC, SET_SR_BIT, GET_SR, SET_RC, GET_FPSCR): Likewise.
729 (RS, RE, MOD, MOD_ME, DSP_R): Likewise.
730 (set_fpscr1): Likewise. Use target_dsp to check for dsp.
731 (MOD_MSi, SIG_BUS_FETCH): Deleted.
732 (CREG, SREG, PR, SR_MASK_DMY, SR_MASK_DMX, SR_DMY): New macros.
733 (SR_DMX, DSR, MOD_DELTA, GET_DSP_GRD): Likewise.
734 (SET_MOD): Reflect saved_state_type change. Set MOD_DELTA instead
735 of MOD_MS, and encode SR_DMY / SR_DMX into high word of MOD_ME.
736 (set_sr): Reflect saved_state_type change. Fix SR_RB handling.
738 (MA, L, TL, TB): Now controlled by ACE_FAST.
739 (SEXT32): Just cast to int.
740 (SIGN32): Fixed to only shift by 31.
741 (CHECK_INSN_PTR): SIGBUS at insn fetch now represented by insn_end 0.
744 (init_dsp): Set target_dsp. When it changes, switch end of
745 sh_jump_table with sh_dsp_table.
746 (sim_resume) Don't declare sh_jump_table0. Use sh_jump_table instead.
747 Don't Declare PR if it's #defined.
748 Fix single-stepping (Was broken in Mar 6 16:59:10 patch).
749 (sim_store_register, sim_read_register): Translate accesses to
750 reflect saved_state_type change.
752 * interp.c (set_sr): Set sr.
753 (SET_RC, MOD, MOD_MS, MOD_ME, SET_MOD, MOD_MS, MOD_ME): New macros.
754 (set_fpscr1): Don't bank-switch fpu registers when simulating sh-dsp.
755 (DSP_R): Fix definition.
756 (sim_resume): Remove outdated SET_SR use.
758 * interp.c (saved_state): New members for struct member asregs:
759 rs, re, insn_end, xram_start, yram_start.
760 (struct loop_bounds): New struct.
761 (SKIP_INSN): New macro.
762 (get_loop_bounds): New function.
763 (endianw): Renamed to global_endianw.
764 (maskw): negated bits.
766 (SR_MASK_RC, SR_RC_INCREMENT, SR_RC, RAISE_EXCEPTION): New macros.
767 (RS, RE, DSP_R, DSP_GRD, A1, A0, X0, X1, Y0, Y1, M0, A1G): Likewise.
768 (M1, A0G, RIAT, PT2H, PH2T, SET_NIP, CHECK_INSN_PTR): Likewise.
769 (SIG_BUS_FETCH): Likewise
770 (raise_exception, riat_fast): New functions.
771 (raise_buserror, sim_stop): Use raise_exception.
772 (PROCESS_SPECIAL_ADDRESS): Use xram_start / yram_start.
773 (BUSERROR, WRITE_BUSERROR, READ_BUSERROR):
774 Reverse sense of mask argument.
775 (FP_OP, set_dr): Use RAISE_EXCEPTION.
776 (wlat_fast, wwat_fast, wbat_fast, rlat_fast, rwat_fast, rbat_fast):
777 Declare. Remove redundant masking.
778 (wwat_fast, rwat_fast): Add argument endianw. Changed callers.
779 (MA): Updated for change pc -> PC.
780 (Delay_Slot): Use RIAT.
782 (trap): Remove argument little_endian. Add argument endianw.
783 Changed all callers. Use raise_exception.
784 (macw): Add argument endainw. Changed all callers.
785 (init_dsp): New function, extended after broken out of init_pointers.
786 (sim_resume): Replace pc with insn_ptr. Replace little_endian with
787 endianw. Replace nia with nip. Reverse sense of maskb / maskw /
788 maskl. Implement logic for zero-overhead loops. Don't try to
789 interpret garbage when getting a SIGBUS at insn fetch.
790 (sim_open): Call init_dsp.
791 * gencode.c (tab): Use SET_NIP instead of nia = . Use PH2T / PT2H /
792 RAISE_EXCEPTION where appropriate.
793 Add extra cycles for brai, braf , bsr, bsrf, jmp, jsr.
795 * interp.c (sim_store_register, sim_fetch_register):
796 Do proper endianness switch.
798 * interp.c (saved_state_type): New members for struct member asregs:
799 xymem_select, xmem, ymem, xmem_offset, ymem_offset.
800 (special_address): Delete.
801 (BUSERROR): Now a two-argument predicate.
802 (PROCESS_SPECIAL_ADDRESS, WRITE_BUSERROR, READ_BUSERROR): New macros.
803 (wlat_little, wwat_little, wbat_any, wlat_big, wwat_big): Delete.
804 (process_wlat_addr, process_wwat_addr): New functions.
805 (process_wbat_addr, process_rlat_addr, process_rwat_addr): Likewise.
806 (process_rbat_addr): Likewise.
807 (wlat_fast, wwat_fast, wbat_fast): Use WRITE_BUSERROR.
808 (rlat_little, rwat_little, rbat_any, rlat_big, rwat_big): Delete.
809 (rlat_fast, rwat_fast, rbat_fast): Use READ_BUSERROR.
810 (RWAT, RLAT, RBAT, WWAT, WLAT, WBAT): Delete SLOW versions.
811 (do_rdat, trap): Delete SLOW code.
812 (SEXT32, SIGN32): New macros.
813 (swap, swap16): Now integer in - integer out. Changed all callers.
814 (strswaplen, strnswap): Delete SLOW versions.
815 (init_pointers): Initialize dsp memory selection (preliminary).
816 (sim_store_register, sim_fetch_register): Use swap instead of
817 big / little endian read / write functions.
819 * interp.c (maskl): Deleted.
820 (endianw, endianb): New variables.
821 (special_address): Now inline.
822 (bp_holder): Put raising of buserror there, rename to:
824 (BUSERROR): Now yields a value. Changed all users.
826 (wlat_fast, wwat_fast, wbat_fast): New functions.
827 (rlat_fast, rwat_fast, rbat_fast): Likewise.
828 (RWAT, RLAT, RBAT, WWAT, WLAT, WBAT): Use new functions.
829 (do_rdat, do_wdat): Likewise. Take maskl argument instead of
830 little_endian one. Changed caller macros.
831 (swap, swap16): Use w[rw]lat_big / w[rw]lat_little directly.
832 (strswaplen, strnswap): New functions.
833 (trap): Use them to fix up endian mismatches;
834 disable SYS_execve and SYS_execv; fix double address translation for
835 SYS_pipe and SYS_stat.
836 (sym_write, sym_read): Add endianness translation.
837 (sym_store_register, sym_fetch_register): Add maskl local variable.
838 (sim_open): Set endianw and endianb.
840 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
842 * configure: Regenerated to track ../common/aclocal.m4 changes.
844 Wed Aug 25 07:55:23 1999 Brendan Kehoe <brendan@cygnus.com>
846 * gencode.c (fcnvds <DR_N>,FPUL): Rewrite to use a local anonymous
847 union type, instead of casting to an int* then a float*.
848 (fcnvsd FPUL,<DR_N>): Likewise.
849 (flds <FREG_N>,FPUL): Likewise.
850 (fsts FPUL,<FREG_N>): Likewise.
852 1999-05-08 Felix Lee <flee@cygnus.com>
854 * configure: Regenerated to track ../common/aclocal.m4 changes.
856 1999-04-02 Keith Seitz <keiths@cygnus.com>
858 * interp.c (POLL_QUIT_INTERVAL): Define. Used to tweak the
859 frequency at which the poll_quit callback is called.
860 (sim_resume): Use POLL_QUIT_INTERVAL instead of a
863 Thu Sep 10 02:16:39 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
865 * interp.c (saved_state.asregs): Add new member pad_dummy.
866 (sim_store_register, sim_fetch_regsiter): Add 1 to rn for use
867 as index into saved_state.asints.
869 Mon Jun 29 19:35:24 1998 Jason Molenda (crash@bugshack.cygnus.com)
871 * interp.c (sim_open): set endianness based on the ABFD if a -E
872 option is not present and we have an ABFD.
874 Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
876 * configure: Regenerated to track ../common/aclocal.m4 changes.
878 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
880 * configure: Regenerated to track ../common/aclocal.m4 changes.
883 Sun Apr 26 15:19:48 1998 Tom Tromey <tromey@cygnus.com>
885 * acconfig.h: New file.
886 * configure.in: Reverted change of Apr 24; use sinclude again.
888 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
890 * configure: Regenerated to track ../common/aclocal.m4 changes.
893 Fri Apr 24 11:18:35 1998 Tom Tromey <tromey@cygnus.com>
895 * configure.in: Don't call sinclude.
897 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
899 * configure: Regenerated to track ../common/aclocal.m4 changes.
901 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
903 * configure: Regenerated to track ../common/aclocal.m4 changes.
905 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
907 * configure: Regenerated to track ../common/aclocal.m4 changes.
909 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
911 * configure: Regenerated to track ../common/aclocal.m4 changes.
913 Tue Feb 17 12:49:44 1998 Andrew Cagney <cagney@b1.cygnus.com>
915 * interp.c (sim_fetch_register, sim_store_register): Pass in
916 length parameter. Return -1.
918 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
920 * configure: Regenerated to track ../common/aclocal.m4 changes.
922 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
924 * configure: Regenerated to track ../common/aclocal.m4 changes.
926 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
928 * configure: Regenerated to track ../common/aclocal.m4 changes.
930 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
932 * configure: Regenerated to track ../common/aclocal.m4 changes.
935 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
937 * configure: Regenerated to track ../common/aclocal.m4 changes.
939 Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
941 * interp.c (sim_load): Pass lma_p and sim_write args to
944 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
946 * configure: Regenerated to track ../common/aclocal.m4 changes.
948 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
950 * configure: Regenerated to track ../common/aclocal.m4 changes.
952 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
954 * configure: Regenerated to track ../common/aclocal.m4 changes.
956 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
958 * configure: Regenerated to track ../common/aclocal.m4 changes.
960 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
962 * configure: Regenerated to track ../common/aclocal.m4 changes.
964 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
966 * configure: Regenerated to track ../common/aclocal.m4 changes.
968 Tue Sep 9 20:52:21 1997 Felix Lee <flee@cygnus.com>
970 * interp.c (sim_resume): poll_quit() at least once per call;
971 otherwise gdb can loop sim_resume() uninterruptably.
973 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
975 * configure: Regenerated to track ../common/aclocal.m4 changes.
977 Tue Sep 2 13:15:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
979 * gencode.c (tab): Order instructions according to SH3 document.
981 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
983 * configure: Regenerated to track ../common/aclocal.m4 changes.
986 Tue Aug 26 10:41:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
988 * interp.c (sim_kill): Delete.
989 (sim_create_inferior): Add ABFD argument.
990 (sim_load): Move setting of PC from here.
991 (sim_create_inferior): To here.
993 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
995 * configure: Regenerated to track ../common/aclocal.m4 changes.
998 Mon Aug 25 16:17:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
1000 * interp.c (sim_open): Add ABFD argument.
1002 Mon Jun 23 15:49:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
1004 * interp.c (get_dr): Avoid SIGFPE by moving integers instead of
1008 Mon Jun 23 15:02:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
1010 * interp.c (XD, SET_XD): Delete.
1011 (XF, SET_XF, XD_TO_XF): Define, move around registers in either
1014 * gencode.c (fmov): Update.
1016 Sun Jun 22 19:33:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
1018 * interp.c (set_fpscr1): From J"orn Rennecke
1019 <amylaar@cygnus.co.uk>, Fix typo. Ditto for comment.
1021 Tue Aug 12 00:19:11 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1023 * interp.c (special_address): New function.
1024 (BUSERROR): Call it. Added parameters bits_written and data.
1025 Changed all callers.
1026 * gencode.c (tab): Fixed ocbwb and pref.
1028 Fri Jun 20 22:03:18 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1030 * interp.c (do_wdat, do_wdat): Fix bug in register number calculation.
1032 Thu Jun 19 00:28:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
1034 * interp.c (sim_create_inferior): Clear registers each time an
1035 inferior is started.
1037 Mon Jun 16 14:01:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
1039 * interp.c (*FP, FP_OP, FP_CMP, FP_UNARY): Provide a hook for
1040 when a host doesn't support IEEE FP.
1041 (*DP): Provide alternative definition that supports 64bit floating
1043 (target_little_endian): Combine little_endian and little_endian_p.
1044 (saved_state_type): Make fpscr and sr simple integers.
1045 (SET_FPSCR, GET_FPSCR): Use macros to update fpscr register.
1046 (set_fpscr1): New function. Handle swapping when PR / FR bits
1047 changed. Call via *_FPSCR macro.
1048 (SET_SR*, GET_SR*): Use macro's to access the SR bits - avoids
1051 * gencode.c (tab): Update.
1053 Sun Jun 15 15:22:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
1055 * gencode.c (main): Perform basic checks on tab entries.
1057 * Makefile.in (gencode): Always compile with -g.
1059 Sat Jun 14 13:45:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
1061 * gencode.c (gensim): Move ref checking code to before `stuff'.
1062 For branches with delay slots refs were not being checked.
1064 * interp.c (sim_resume): Use nia to specify the next instruction
1065 address instead of overloading pc.
1066 (C): Delete definiton - refer to cycles directly.
1067 (SEXT12): New macro - sign extend a 12 bit quantity.
1068 (Delay_Slot): Rename from SL.
1070 * gencode.c (tab): Update/simplify.
1072 * gencode.c (gensim): Better formatting of output code.
1073 (gensim): Replace 10 with constant MAX_NR_STUFF- define as 15.
1074 (tab): Sort alphabetically. Break `stuff' into multiple lines.
1076 Fri Jun 13 22:10:13 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1078 * gencode.c (braf, bsrf): Fix branch destination calculation to
1079 be in accordance with the documentation.
1081 Fri Jun 13 15:33:53 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1083 * interp.c (init_pointers): Fix little endian test.
1085 Thu Jun 5 12:56:08 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1087 * interp.c (init_pointers): SH4 hardware is always WORDS_BIT_ENDIAN.
1088 * gencode (fmov from/to memory): take endian_mismatch into account
1089 for 32 bit moves too.
1091 Wed May 28 23:42:35 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1093 * gencode.c (swap.b): Fix treatment of high word.
1095 Wed May 28 23:42:35 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1098 * interp.c: experimental SH4 support.
1099 DFmode moves are probaly broken for target little endian.
1101 Tue May 20 10:23:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
1103 * interp.c (sim_open): Add callback argument.
1104 (sim_set_callbacks): Delete SIM_DESC argument.
1106 Wed Apr 30 11:38:08 1997 Doug Evans <dje@canuck.cygnus.com>
1108 * Makefile.in (SIM_EXTRA_CLEAN): Define.
1109 (clean targets): Delete.
1110 (sh-clean): New target.
1112 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
1114 * configure: Regenerated to track ../common/aclocal.m4 changes.
1116 Wed Apr 23 17:55:22 1997 Doug Evans <dje@canuck.cygnus.com>
1118 * tconfig.in: New file.
1119 * interp.c (sim_open): Handle missing arg to -E.
1121 Tue Apr 22 08:55:35 1997 Stu Grossman (grossman@critters.cygnus.com)
1123 * Makefile.in: Add clean targets.
1125 Fri Apr 18 18:57:04 1997 Stu Grossman (grossman@critters.cygnus.com)
1127 * interp.c: Include float.h and define SIGTRAP if _WIN32.
1129 * (trap): Do do SYS_chown for _WIN32.
1131 Fri Apr 18 13:33:09 1997 Doug Evans <dje@canuck.cygnus.com>
1133 * interp.c (sim_resume): Fix argument to poll_quit.
1135 Fri Apr 18 14:14:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
1137 * interp.c (sim_stop): New function.
1138 (sim_resume): Use poll_quit for polling.
1140 Thu Apr 17 03:32:04 1997 Doug Evans <dje@canuck.cygnus.com>
1142 * Makefile.in (SIM_OBJS): Add sim-load.o.
1143 * interp.c (target_byte_order): Delete.
1144 (sim_kind, myname, little_endian_p): New static locals.
1145 (init_pointers): Use little_endian_p instead of target_byte_order.
1146 (sim_resume): Likewise.
1147 (sim_open): Set sim_kind, myname. Set little_endian_p from -E arg.
1148 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
1149 load file into simulator. Set start address from bfd.
1150 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1152 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1154 * configure: Regenerated to track ../common/aclocal.m4 changes.
1157 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
1159 * interp.c (sim_open): New arg `kind'.
1161 * configure: Regenerated to track ../common/aclocal.m4 changes.
1163 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1165 * configure: Regenerated to track ../common/aclocal.m4 changes.
1167 Wed Mar 19 09:34:36 1997 Fred Fish <fnf@cygnus.com>
1169 * interp.c (sim_do_command): Check for NULL command or empty
1170 string and handle it the same as a "help" command. Use callback
1171 to print error message for unrecognized commands. Replace
1172 hardcoded tab in literal string with a \t. Other minor code
1175 Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1177 * configure: Regenerated to track ../common/aclocal.m4 changes.
1179 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1181 * configure: Re-generate.
1183 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
1185 * configure: Regenerate to track ../common/aclocal.m4 changes.
1187 Thu Mar 13 13:00:00 1997 Doug Evans <dje@canuck.cygnus.com>
1189 * interp.c (sim_open): New SIM_DESC result. Argument is now
1191 (other sim_*): New SIM_DESC argument.
1193 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
1195 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
1196 COMMON_{PRE,POST}_CONFIG_FRAG instead.
1197 * configure.in: sinclude ../common/aclocal.m4.
1198 * configure: Regenerated.
1200 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
1202 * configure configure.in Makefile.in: Update to new configure
1203 scheme which is more compatible with WinGDB builds.
1204 * configure.in: Improve comment on how to run autoconf.
1205 * configure: Re-run autoconf to get new ../common/aclocal.m4.
1206 * Makefile.in: Use autoconf substitution to install common
1209 Wed Nov 20 02:04:32 1996 Doug Evans <dje@canuck.cygnus.com>
1211 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
1212 (SIM_OBJS,SIM_EXTRA_LIBS): Define.
1213 * configure.in: Simplify using macros in ../common/aclocal.m4.
1214 Call AC_CHECK_HEADERS(unistd.h).
1215 * configure: Regenerated.
1216 * config.in: New file.
1217 * interp.c: #include "config.h". #include <unistd.h> if present.
1218 (trap): Fetch errno value with callback->get_errno.
1220 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
1222 * interp.c: Don't include windows polling code if inside simluator.
1224 Fri Sep 20 14:57:50 1996 Stan Shebs <shebs@andros.cygnus.com>
1226 * interp.c: Minor formatting improvements.
1227 (saved_state_type): Add bank registers.
1228 (bp_holder): New function, use to break on when debugging BUSERROR.
1229 (BUSERROR): Call it if bus error occurs.
1231 Wed Jun 26 12:29:22 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1233 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
1234 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
1236 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1237 (AC_PROG_INSTALL): Added.
1238 * configure: Rebuilt.
1240 Thu May 16 15:44:29 1996 Ian Lance Taylor <ian@cygnus.com>
1242 * interp.c (saved_state_type): Add memstalls field.
1244 (sim_resume): New local variable memstalls. Add it back in to
1245 saved_state at the end of the function.
1246 (sim_info): Report memstalls.
1247 * gencode.c (tab): Add MA() to the execution string of all
1248 instructions which access memory.
1250 Wed Feb 21 12:16:41 1996 Ian Lance Taylor <ian@cygnus.com>
1252 * configure: Regenerate with autoconf 2.7.
1254 Tue Dec 5 16:38:55 1995 Stu Grossman (grossman@cygnus.com)
1256 * gencode.c (mac.l): Don't abort GDB if executing mac.l
1257 instruction (which is unimplemented). Generate a SIGTRAP (in the
1258 simulated target) instead.
1260 Mon Dec 4 12:22:24 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1262 * gencode.c (tab): Added several sh3 opcodes.
1263 (think): Added printonmatch for A_SSR and A_SPC.
1264 * interp.c (SSR, SPC): Added definitions.
1265 (saved_state_type): Added ssr and spc registers.
1267 Wed Nov 29 12:39:27 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1269 * gencode.c (tab): In shad/shld definitions, negate R[m] before
1270 the and operation instead of after. For shad delete cast. For shld
1271 use UR instead of R and delete cast.
1273 Fri Nov 17 12:48:55 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1275 * gencode.c (tab): Add explicit NaN support for ftrc instruction.
1277 Wed Nov 15 11:25:27 1995 Stu Grossman (grossman@cygnus.com)
1279 * interp.c: Make target_byte_order be extern to prevent SGI cc from
1280 issuing warnings about the use of common symbols.
1282 Tue Nov 14 15:19:43 1995 Stu Grossman (grossman@cygnus.com)
1284 * gencode.c: jsr, bsr and bsrf actually save pc+4 in pr, and rts
1287 Sat Oct 21 13:01:18 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1289 * sh/interp.c (sim_stop_reason): Catch SIGQUIT and indicate
1291 (sim_get_quit_code): Delete.
1293 * gencode.c (gensim): Indicate SIGILL instead of calling abort for
1296 Mon Oct 16 18:24:03 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1298 * interp.c (saved_state_type): Move FP registers to immediately
1301 Tue Oct 10 11:12:15 1995 Fred Fish <fnf@cygnus.com>
1303 * Makefile.in (BISON): Remove macro.
1305 Fri Oct 6 12:08:18 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1307 * interp.c (trap, case SYS_utime): Cast second arg of utime to
1308 void * to avoid compiler error.
1310 * interp.c (callback): Remove last change. It is initialized by
1311 a sim_set_callbacks call.
1313 Thu Oct 5 14:13:29 1995 steve chamberlain <sac@slash.cygnus.com>
1315 * interp.c (callback): Initialize to default callback.
1317 Thu Sep 28 15:26:59 1995 steve chamberlain <sac@slash.cygnus.com>
1319 * run.c: Moved to ../common.
1320 * interp.c (trap): Use gdb's callback interface.
1321 * Makefile.in: Updated.
1323 Wed Sep 20 13:35:13 1995 Ian Lance Taylor <ian@cygnus.com>
1325 * Makefile.in (maintainer-clean): New synonym for realclean.
1327 Wed Sep 20 09:51:50 1995 steve chamberlain <sac@slash.cygnus.com>
1329 * run.c (sim_callback_write_stdout): New.
1330 * interp.c (trap): Call sim_callback_write_stdout when needed.
1332 Mon Sep 18 18:42:27 1995 steve chamberlain <sac@slash.cygnus.com>
1334 * interp.c (trap): Remove useless code.
1336 Fri Sep 15 19:30:05 1995 steve chamberlain <sac@slash.cygnus.com>
1338 * syscall.h: Copy from newlib.
1340 Thu Sep 14 19:32:59 1995 Stu Grossman (grossman@cygnus.com)
1342 * gencode.c: Back up PC by 2 for breakpoints.
1343 * interp.c: Move fp regs beyond pc/pr/etc to avoid confusing GDB,
1344 which expect pc to immediately follow regs[].
1346 Fri Sep 8 14:18:13 1995 Ian Lance Taylor <ian@cygnus.com>
1348 * configure.in: Define CC_FOR_BUILD. Don't call AC_PROG_INSTALL.
1349 * configure: Rebuild.
1350 * Makefile.in (INSTALL): Revert to using install.sh.
1351 (INSTALL_PROGRAM, INSTALL_DATA): Set to $(INSTALL).
1352 (INSTALL_XFORM, INSTALL_XFORM1): Restore.
1353 (CC_FOR_BUILD): Restore.
1354 (gencode): Build using $(CC_FOR_BUILD).
1355 (install): Don't install in $(tooldir).
1357 Thu Sep 7 15:02:31 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1359 (Try to) Update to new bfd autoconf scheme.
1360 * run.c: Don't include sysdep.h.
1361 * Makefile.in (INSTALL{,_PROGRAM,_DATA}): Use autoconf computed value.
1362 (CC, CFLAGS, AR, RANLIB): Likewise.
1363 (HDEFINES, TDEFINES): Define.
1364 (CC_FOR_BUILD): Delete.
1365 (host_makefile_frag): Delete.
1366 (Makefile): Don't depend on frags.
1367 * configure.in (sysdep.h): Don't create symlink.
1368 (host_makefile_frag, frags): Deleted.
1369 (CC, CFLAGS, AR, RANLIB, INSTALL): Compute values.
1370 * configure: Regenerated.
1372 Thu Aug 31 12:39:07 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1374 * interp.c: Include <math.h>.
1376 Wed Aug 30 22:05:17 1995 Jeff Law (law@snake.cs.utah.edu)
1378 * Makefile.in (run): Link in math library too.
1379 * gencode.c (gensim): abort if an unknown opcode is encountered.
1380 * interp.c (FPSCR, FPUL): Define.
1381 (struct save_state): Add fields for floating point registers,
1383 (sim_resume): Add 'F' for accessing floating point registers
1384 in the save state structure.
1385 * gencode.c: Add sh3e opcodes.
1386 (gensym): Define a buffer for int<->fp conversions.
1388 Tue Aug 22 14:16:46 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1390 * interp.c (trap): Use trap vector 34 for host system interface.
1391 * gencode.c: Add 34 to conditional which determines which traps
1392 will be handled by simulator.
1394 Fri Aug 11 17:59:15 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1396 * run.c: Include <signal.h>. Define SIGQUIT if not defined.
1397 (main): New variables reason and sigrc. After simulator exits,
1398 check to see if it exited because of a signal, and if so, then
1399 use the signal number as the return value.
1401 Thu Aug 3 10:45:37 1995 Fred Fish <fnf@cygnus.com>
1403 * Update all FSF addresses except those in COPYING* files.
1405 Tue Jul 18 23:33:10 1995 Fred Fish <fnf@fishbowl>
1407 * interp.c (trap): Only use SYS_execv if defined. Might be
1408 implemented as execve(arg1,arg2,0), as with Unixware 2.0.
1409 (sim_resume): In sbit initializer, cast shifted arg to unsigned
1410 to avoid signed integer overflow.
1412 Wed Jul 5 14:32:54 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1414 * Makefile.in (clean): Remove run, libsim.a.
1415 (distclean, mostlyclean, realclean): Remove Makefile and
1420 * Makefile.in, configure.in: converted to autoconf.
1421 * configure: New file, generated with autconf 2.4.
1423 Fri Jun 30 16:51:38 1995 Stan Shebs <shebs@andros.cygnus.com>
1425 * interp.c (sim_open): If argument supplied, interpret as
1426 desired memory size.
1427 (parse_and_set_memory_size): New function.
1428 (sim_do_command): New function.
1430 Thu Jun 29 10:02:28 1995 Fred Fish <fnf@deneb.cygnus.com>
1432 * interp.c (SYS_wait): Define as SYS_wait4 if available and
1433 SYS_wait is not already defined (SunOS 4.1.3 for example).
1434 (SYS_utime): Define as SYS_utimes if available and
1435 SYS_utime is not already defined.
1437 Thu Jun 22 17:25:57 1995 Steve Chamberlain <sac@slash.cygnus.com>
1439 * interp.c: Don't include sys/times.h or sys/param.h
1441 Wed Jun 21 15:03:49 1995 Steve Chamberlain <sac@slash.cygnus.com>
1443 * interp.c (SIGBUS, SIGTERM): Define if not.
1444 (sim_memory_size): default to 2^19 on PCs.
1445 (sim_resume): Poll for quits on win32.
1447 Wed May 24 16:22:48 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1449 * gencode.c (op_tab): Add SH3 support.
1451 Wed May 24 14:07:11 1995 Steve Chamberlain <sac@slash.cygnus.com>
1453 * gencode.c (tab): Add bsrf and braf.
1455 Mon Apr 24 15:09:49 1995 Jason Molenda (crash@cygnus.com)
1457 * configure.in: use ../../bfd/hosts/std-host.h, not
1458 ../bfd/hosts/std-host.h (which doesn't exist).
1460 Mon Mar 27 10:32:34 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1462 * run.c: parse arguments with getopt().
1464 Sun Feb 26 15:27:24 1995 Steve Chamberlain <sac@cygnus.com>
1466 * configure.in: Use ../../bfd/hosts/std-host.h if specific
1469 Mon Jan 23 16:10:58 1995 Torbjorn Granlund <tege@rtl.cygnus.com>
1471 * interp.c (macw): Sign extend MACH at bit 10 for non-saturating case.
1473 Sun Jan 22 13:55:36 1995 Torbjorn Granlund <tege@rtl.cygnus.com>
1475 * gencode.c (op_tab): Make MAC.W call macw, not abort.
1476 * interp.c (macw): New function.
1479 Sat Jan 21 15:52:30 1995 Torbjorn Granlund <tege@rtl.cygnus.com>
1481 * gencode.c (op_tab): New code for ADDV and SUBV.
1482 Make MAC.L abort sicne it is not implemented.
1484 * interp.c (dmul): Handle the signed case by adjusting after unsigned multiply.
1485 Get rid of __GNUC__ conditional.
1487 aThu Jan 19 05:50:50 1995 Torbjorn Granlund <tege@rtl.cygnus.com>
1489 * gencode.c (op_tab): Also replace NEGC, and try again with SUBC.
1490 Change ADDC for symmetry.
1492 * gencode.c (op_tab): Replace code for ADDC and SUBC.
1494 Mon Jan 9 15:43:53 1995 Stu Grossman (grossman@cygnus.com)
1496 * interp.c: Remove def of INLINE. This comes from bfd.h. Also,
1497 declare IOMEM before using it.
1499 Wed Dec 28 21:25:31 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1501 * interp.c (BUSERROR): New macro.
1502 ([r|w][bwl]at[little|big]) New functions.
1503 (sim_resume): If GO32 check for interrupt every now
1504 and again. Decrement PC if SIGBUS seen.
1505 * run.c (main): Return result of simulated _exit.
1507 Mon Dec 5 21:59:51 1994 Doug Evans <dje@canuck.cygnus.com>
1509 * Makefile.in (gencode): Allow build in different directory.
1511 Wed Nov 30 17:47:13 1994 Jim Wilson <wilson@chestnut.cygnus.com>
1513 * Makefile.in (gencode): Change $< to gencode.c for portability.
1515 Wed Nov 23 21:31:55 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1517 * interp.c ([wr][bwl]at): New functions.
1518 (trap): Cope with both byte modes.
1520 Thu Sep 8 17:35:07 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1522 * gencode.c (tab): Simulate T bit after a negc insn right.
1523 * interp.c (RSBAT): Sign extend the arg.
1524 (ACE_FAST): New macro.
1525 (sim_resume): Remove obsolete test of sim_timeout.
1527 Fri Aug 5 14:12:31 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1529 * interp.c (IOMEM): New function, simulates very basic I/O area of
1531 (WBAT, RBAT) : Call I/O functions.
1532 * gencode.c (tab): Special case trapa #3.
1534 Mon Jun 27 18:04:54 1994 Steve Chamberlain (sac@cirdan.cygnus.com)
1536 * run.c (main): Specify the file type again.
1538 Thu May 26 19:04:37 1994 Steve Chamberlain (sac@thepub.cygnus.com)
1540 * interp.c (trap): Fix irix incompatibility.
1541 * run.c (main): open without specifying file type.
1543 Wed May 18 14:18:53 1994 Doug Evans (dje@canuck.cygnus.com)
1545 * interp.c (sim_*): Make result void where there isn't one.
1546 (sim_set_pc): Delete.
1547 (sim_info): Delete printf_fn arg, all callers changed.
1548 Call printf_filtered instead.
1549 (sim_close): New function.
1550 (sim_load): New function.
1551 (sim_create_inferior): Renamed from sim_set_args, all callers changed.
1552 * run.c: #include <varargs.h>, "remote-sim.h".
1553 (printf_filtered): New function.
1555 Wed Apr 27 12:03:48 1994 Steve Chamberlain (sac@cygnus.com)
1557 * gencode.c (table): Get direction of some opcodes right.
1558 (trapa, rte): Implement fully.
1559 * interp.c (trap): Make stat call more portable.
1561 Fri Feb 11 21:59:38 1994 Steve Chamberlain (sac@sphagnum.cygnus.com)
1563 * gencode.c (main, gendefines): New -d option prints table of defines.
1564 * interp.c (trap): Add a load of system calls.
1565 (sim_memory_size): Now default to 8Mbyte.
1566 (PARANOID): Keep vector of registers with undefined contents.
1568 Mon Nov 15 14:37:18 1993 Steve Chamberlain (sac@jonny.cygnus.com)
1570 * gencode.c: mova uses aligned addresses
1571 * interp.c (trap): Return results in r0.
1573 Tue Oct 26 10:38:55 1993 Doug Evans (dje@canuck.cygnus.com)
1575 * Makefile.in (CSEARCH): Add -I$(srcdir)/../../gdb
1576 * interp.c: #include "remote-sim.h".
1577 (sim_resume): int result, new arg `siggnal'.
1578 (sim_write): Use SIM_ADDR for type of arg `addr'.
1579 (sim_read): Use SIM_ADDR for type of arg `addr'.
1580 Use unsigned char * for `buffer'.
1581 (sim_store_register): int result.
1582 (sim_fetch_register): Ditto.
1583 (sim_stop_reason): Renamed from sim_stop_signal. New arg `reason'.
1584 (sim_set_pc): int result, use SIM_ADDR for type of arg `x'.
1585 (sim_info): int result, new args `verbose', `printf_fn'.
1586 (sim_kill): int result.
1587 (sim_open): int result, new arg `name'.
1588 * run.c: #include <stdio.h>
1589 (main): Update call to sim_info.
1591 Sat Oct 23 15:09:29 1993 Doug Evans (dje@canuck.cygnus.com)
1593 * interp.c (sim_stop_signal): Result is now enum sim_stop.
1595 Fri Oct 8 10:47:09 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1597 * gencode.c (table): Becomes unsigned.
1598 * interp.c (trap): Get right breakpoint SIGnum. (sim_write,
1599 sim_read): Return number of bytes copied. (sim_store_register):
1600 Value passed by reference. (sim_kill, sim_open, sim_set_args): New functions.
1602 Tue Sep 7 16:24:13 1993 Stan Shebs (shebs@rtl.cygnus.com)
1604 * interp.c (sim_info): Fix small typo in printf string.
1606 Thu Aug 5 11:37:48 1993 Stan Shebs (shebs@rtl.cygnus.com)
1608 * interp.c (sim_resume): Set memory after pointers inited.
1610 Mon Aug 2 14:13:22 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1612 * interp.c (get_now): Use time system call.
1613 * Makefile.in: install correctly.
1615 Tue Jul 6 10:30:46 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1617 * run.c (main), interp.c (sim_set_timeout): Remove timeout
1620 Thu Jun 24 13:29:57 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
1622 * Makefile.in: don't run indent everytime; also add a space in the
1625 Thu Jun 17 18:30:42 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1627 * gencode.c: Fix some opcodes.
1628 * interp.c: Support for profiling and portability fixes.
1629 * run.c (main): Get profiling args.
1631 Wed May 5 13:17:22 1993 Steve Chamberlain (sac@cygnus.com)
1633 * gencode.c (tab): Lint for sgi compiler
1634 * interp.c: Lint for sgi compiler.
1636 Mon May 3 15:25:33 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1638 * run.c (main): Support for resizing simulated RAM.
1639 * Makefile.in: Support for broken makes.
1640 * interp.c, gencode.c: Lint.
1642 Mon Apr 26 18:01:10 1993 Steve Chamberlain (sac@thepub.cygnus.com)