]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/sh/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / sim / sh / ChangeLog
CommitLineData
034685f9
MF
12015-04-17 Mike Frysinger <vapier@gentoo.org>
2
3 * sim-main.h (CIA_GET, CIA_SET): Delete.
4
27b97b40
MF
52015-04-17 Mike Frysinger <vapier@gentoo.org>
6
7 * interp.c (sh_pc_get, sh_pc_set): New functions.
8 (sim_open): Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
9
78e9aa70
MF
102015-04-15 Mike Frysinger <vapier@gentoo.org>
11
12 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
13 * sim-main.h (STATE_CPU): Delete.
14
bf12d44e
MF
152015-04-13 Mike Frysinger <vapier@gentoo.org>
16
17 * configure: Regenerate.
18
122bbfb5
MF
192015-04-06 Mike Frysinger <vapier@gentoo.org>
20
21 * Makefile.in (SIM_OBJS): Delete sim-engine.o.
22
aadc9410
MF
232015-03-31 Mike Frysinger <vapier@gentoo.org>
24
25 * config.in, configure: Regenerate.
26
62454d3d
MF
272015-03-28 Mike Frysinger <vapier@gentoo.org>
28
29 * Makefile.in (SIM_RUN_OBJS, SIM_EXTRA_CFLAGS): Delete.
30 (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
31 * interp.c: Delete run-sim.h include. Include sim-main.h, sim-base.h,
32 and sim-options.h.
33 (SEXT, SEXT32): Undefine.
34 (sim_write): Delete prototype.
35 (regstacktype, saved_state_type): Move to sim-main.h.
36 (target_little_endian): Replace with CURRENT_TARGET_BYTE_ORDER.
37 (host_little_endian): Replace with CURRENT_HOST_BYTE_ORDER.
38 (sim_kind, myname, tracing, sim_stop, sim_trace, sim_set_profile,
39 sim_set_profile_size, sim_load, sim_set_callbacks,
40 sim_complete_command): Delete.
41 (sim_size): Mark static.
42 (init_pointers): Delete host_little_endian setup.
43 (sim_resume): Delete tracing check.
44 (free_state): New cleanup function.
45 (sim_open): Rewrite to use new common logic.
46 (sim_create_inferior): Call init_dsp.
47 * sim-main.h: New file.
48 * tconfig.h: Delete file.
49
5fa71a1b
MF
502015-03-28 Mike Frysinger <vapier@gentoo.org>
51
52 * gencode.c (ppi_gensim): Convert old style prototype with ppi_insn.
53 * interp.c: Include ctype.h and run-sim.h.
54 [HAVE_TIME_H]: Include time.h
55 [HAVE_SYS_TIME_H]: Include sys/time.h
56 [!_WIN32]: Include utime.h and sys/wait.h.
57 (set_fpscr1, raise_exception, raise_buserror, get_dr, set_dr, set_sr,
58 do_rdat, do_wdat, process_wlat_addr, process_wwat_addr,
59 process_wbat_addr, process_rlat_addr, process_rwat_addr,
60 process_rbat_addr, IOMEM, get_now, now_persec, swapout, swapout16,
61 ptr, strswaplen, strnswap, dmul, macw, macl, get_loop_bounds_ext,
62 get_loop_bounds, sim_size, init_dsp, init_pointers, dump_profile,
63 gotcall, sim_stop, sim_write, sim_read, sim_store_register,
64 sim_fetch_register, sim_trace, sim_stop_reason, sim_info,
65 sim_set_profile, sim_set_profile_size, sim_open,
66 parse_and_set_memory_size, sim_close, sim_load, sim_create_inferior,
67 sim_do_command, sim_set_callbacks): Convert old style prototype.
68 (fail): Delete unused function.
69 (wlat_fast, wwat_fast, wbat_fast, rlat_fast, rwat_fast, rbat_fast):
70 Delete unused prototypes.
71 (wlat_fast, wwat_fast, wbat_fast, rlat_fast, rwat_fast, rbat_fast,
72 swap, swap16):
73 Convert old style prototype and move INLINE before the type.
74 (trap): Convert old style prototype. Add casts to wait and sim_write
75 calls.
76 (div1): Convert old style prototype. Change return to void.
77 (do_long_move_insn, do_blog_insn, fsca_s, fsrra_s, mcalloc): Mark
78 static.
79 (sim_resume): Convert old style prototype. Align printf format and
80 args.
81
02131c7f
MF
822015-03-28 Mike Frysinger <vapier@gentoo.org>
83
84 * gencode.c (ppi_gensim): Add missing */. Change case 4 to case 5.
85
ed4d32c2
MF
862015-03-28 Mike Frysinger <vapier@gentoo.org>
87
88 * Makefile.in (gencode): Add $(BUILD_CFLAGS), $(BUILD_LDFLAGS),
89 and $(WARN_CFLAGS).
90 * gencode.c: Include ctype.h, stdlib.h, string.h, and unistd.h.
91 (struct op): Mark members const.
92 (tab): Mark static.
93 (nibble_type_list): Mark const.
94 (arg_type_list): Mark const.
95 (make_enum_list): Delete unused func.
96 (qfunc, expand_opcode, dumptable, expand_ppi_code): Convert old
97 style prototype and mark args const.
98 (sorttab, gengastab, conflict_warn, filltable, expand_ppi_movxy,
99 gensim, ppi_filltable): Convert old style prototype.
100 (gensim_caselist): Convert old style prototype. Mark local
101 variables s and r const.
102 (gendefines): Convert old style prototype. Mark s const. Move
103 tolower call into printf statement.
104 (ppi_gensim): Convert old style prototype. Mark local variable
105 s const.
106 (main): Convert old style prototype. Change printf %d to %zu.
107
6d89786c
MF
1082015-03-28 Mike Frysinger <vapier@gentoo.org>
109
110 * config.in, configure: Regenerate.
111 * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT,
112 SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT,
113 SIM_AC_OPTION_INLINE, SIM_AC_OPTION_WARNINGS.
114
ae7d0cac
MF
1152015-03-16 Mike Frysinger <vapier@gentoo.org>
116
117 * config.in, configure: Regenerate.
118 * tconfig.in: Rename file ...
119 * tconfig.h: ... here.
120
465fb143
MF
1212015-03-14 Mike Frysinger <vapier@gentoo.org>
122
123 * Makefile.in (SIM_EXTRA_CFLAGS): Set to
124 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
125 (SIM_RUN_OBJS): Set to run.o.
126
5cddc23a
MF
1272015-03-14 Mike Frysinger <vapier@gentoo.org>
128
129 * configure.ac (AC_CHECK_HEADERS): Delete.
130 * aclocal.m4, configure: Regenerate.
131
57df9adf
OE
1322014-10-14 Oleg Endo <olegendo@gcc.gnu.org> (tiny patch)
133
134 * gencode.c (fabs, fneg): Implement as integer operation
135 instead of using the FP_UNARY macro.
136
2974be62
AM
1372014-08-19 Alan Modra <amodra@gmail.com>
138
139 * configure: Regenerate.
140
faa743bb
RM
1412014-08-15 Roland McGrath <mcgrathr@google.com>
142
143 * configure: Regenerate.
144 * config.in: Regenerate.
145
60d847df
MF
1462014-03-10 Mike Frysinger <vapier@gentoo.org>
147
148 * interp.c (parse_and_set_memory_size): Add const to str.
149 (sim_do_command): Add const to cmd and sms_cmd.
150
b2b255bd
MF
1512014-03-05 Mike Frysinger <vapier@gentoo.org>
152
153 * interp.c (sim_load): Add const to prog.
154
ef3e8cf7
MF
1552014-02-17 Mike Frysinger <vapier@gentoo.org>
156
157 PR gdb/16450
158 * interp.c (control_c): Delete.
159 (sim_resume): Delete signal(SIGINT) handling.
160
bf3d9781
AM
1612013-09-23 Alan Modra <amodra@gmail.com>
162
163 * configure: Regenerate.
164
31e6ad7d
MF
1652013-06-03 Mike Frysinger <vapier@gentoo.org>
166
167 * aclocal.m4, configure: Regenerate.
168
5f3ef9d0
JB
1692012-06-15 Joel Brobecker <brobecker@adacore.com>
170
171 * config.in, configure: Regenerate.
172
2232061b
MF
1732012-03-24 Mike Frysinger <vapier@gentoo.org>
174
175 * aclocal.m4, config.in, configure: Regenerate.
176
f95586a4
KB
1772012-02-16 Kevin Buettner <kevinb@redhat.com>
178
179 * interp.c (MA): Adjust cast to avoid warning on 64-bit hosts.
180
181 * interp.c (sim_store_register, sim_fetch_register): Return
182 length, not -1.
183
db2e4d67
MF
1842011-12-03 Mike Frysinger <vapier@gentoo.org>
185
186 * aclocal.m4: New file.
187 * configure: Regenerate.
188
9c082ca8
MF
1892011-10-17 Mike Frysinger <vapier@gentoo.org>
190
191 * configure.ac: Change include to common/acinclude.m4.
192
6ffe910a
MF
1932011-10-17 Mike Frysinger <vapier@gentoo.org>
194
195 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
196 call. Replace common.m4 include with SIM_AC_COMMON.
197 * configure: Regenerate.
198
af9f7da7
MF
1992011-04-16 Mike Frysinger <vapier@gentoo.org>
200
201 * interp.c (sim_complete_command): New stub function.
202
5558e7e6
MF
2032010-04-14 Mike Frysinger <vapier@gentoo.org>
204
205 * interp.c (sim_write): Add const to buffer arg.
206
22e041e2
MM
2072010-01-12 Masaki Muranaka <monaka@monami-software.com>
208
209 * interp.c: Don't include sysdep.h.
210 Include stdio.h and errno.h.
211 Include string.h strings.h stdlib.h sys/stat.h if present.
212
3725885a
RW
2132010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
214
215 * configure: Regenerate.
216
d6416cdc
RW
2172009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
218
81ecdfbb
RW
219 * config.in: Regenerate.
220 * configure: Likewise.
221
d6416cdc
RW
222 * configure: Regenerate.
223
b5bd9624
HPN
2242008-07-11 Hans-Peter Nilsson <hp@axis.com>
225
226 * configure: Regenerate to track ../common/common.m4 changes.
227 * config.in: Ditto.
228
6efef468
JM
2292008-06-06 Vladimir Prus <vladimir@codesourcery.com>
230 Daniel Jacobowitz <dan@codesourcery.com>
231 Joseph Myers <joseph@codesourcery.com>
232
233 * configure: Regenerate.
234
f3876f69
AS
2352008-02-04 Antony King <antony.king@st.com>
236
237 * interp.c (macl): Fix non-portable implementation.
238
4d439271
DP
2392007-10-08 Andrew Stubbs <andrew.stubbs@st.com>
240
241 * gencode.c (tab): Add RAISE_EXCEPTION_IF_IN_DELAY_SLOT to the
242 definition of PC relative 'mov.l'/'mov.w' and also 'mova'.
243
6a1754a3
DJ
2442007-03-02 Andrew Stubbs <andrew.stubbs@st.com>
245
246 * gencode.c (tab): Correct pre-decrement instructions when m == n.
247
edc5d9ec
HPN
2482006-12-21 Hans-Peter Nilsson <hp@axis.com>
249
250 * acconfig.h: Remove.
251 * config.in: Regenerate.
252
e85e3205
RE
2532006-06-13 Richard Earnshaw <rearnsha@arm.com>
254
255 * configure: Regenerated.
256
2f0122dc
DJ
2572006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
258
259 * configure: Regenerated.
260
20e95c23
DJ
2612006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
262
263 * configure: Regenerated.
264
72a37d8d
AS
2652005-11-10 Andrew Stubbs <andrew.stubbs@st.com>
266
267 * interp.c (sim_memory_size): Use same amount of memory on Windows as
268 elsewhere.
269
6a8492b5
JR
2702005-09-19 J"orn Rennecke <joern.rennecke@st.com>
271
272 * interp.c (<sys/mman.h>): Include.
273 (mcalloc): New function / macro.
274 (mfree): New macro.
275 (sim_size): Use mcalloc and mfree.
276
63bee803
JR
2772005-08-02 J"orn Rennecke <joern.rennecke@st.com>
278
279 * interp.c (strswaplen): Add one for '\0' delimiter.
280
195b8a57
DJ
2812005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
282
283 * gencode.c (tab): Avoid lvalue casts. Suggested by
284 Ralf Corsepius <ralf.corsepius@rtems.org>.
285
53f541af
JL
2862005-04-12 Jonathan Larmour <jifl@eCosCentric.com>
287
288 * gencode.c (tab): Avoid inserting code before variables all declared.
289
2b193c4a
MK
2902005-03-23 Mark Kettenis <kettenis@gnu.org>
291
292 * configure: Regenerate.
293
35695fd6
AC
2942005-01-14 Andrew Cagney <cagney@gnu.org>
295
296 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
297 explicit call to AC_CONFIG_HEADER.
298 * configure: Regenerate.
299
f0569246
AC
3002005-01-12 Andrew Cagney <cagney@gnu.org>
301
302 * configure.ac: Update to use ../common/common.m4.
303 * configure: Re-generate.
304
38f48d72
AC
3052005-01-11 Andrew Cagney <cagney@localhost.localdomain>
306
307 * configure: Regenerated to track ../common/aclocal.m4 changes.
308
b7026657
AC
3092005-01-07 Andrew Cagney <cagney@gnu.org>
310
311 * configure.ac: Rename configure.in, require autoconf 2.59.
312 * configure: Re-generate.
313
379832de
HPN
3142004-12-08 Hans-Peter Nilsson <hp@axis.com>
315
316 * configure: Regenerate for ../common/aclocal.m4 update.
317
ae0a84af
CV
3182004-09-08 DJ Delorie <dj@redhat.com>
319
320 Commited by Corinna Vinschen <vinschen@redhat.com>
321 * gencode.c (movua.l): Compensate for endianness.
322
3232004-09-08 Corinna Vinschen <vinschen@redhat.com>
324
325 * interp.c (RAISE_EXCEPTION_IF_IN_DELAY_SLOT): New macro.
326 (in_delay_slot): New flag variable.
327 (Delay_Slot): Set in_delay_slot.
328 (sim_resume): Reset in_delay_slot after leaving code switch.
329 * gencode.c (op tab): Call RAISE_EXCEPTION_IF_IN_DELAY_SLOT for all
330 instructions not allowed in delay slots.
331
3322004-09-08 Michael Snyder <msnyder@redhat.com>
333
334 Commited by Corinna Vinschen <vinschen@redhat.com>
335 Introduce SH2a support.
336 * interp.c: Change type of jump table to short. Add various macros.
337 (sim_load): Save the bfd machine code.
338 (sim_create_inferior): Ditto.
339 (union saved_state_type): Add tbr, ibnr and ibcr registers.
340 Move bfd_mach to end of struct. Add regstack pointer.
341 (init_dsp): Don't swap contents of sh_dsp_table any more. Instead
342 use it directly in its own switch statement. Allocate space for 512
343 register banks.
344 (do_long_move_insn): New function.
345 (do_blog_insn): Ditto.
346 (trap): Use trap #13 and trap #14 to set ibnr and ibcr.
347 * gencode.c: Move movx/movy insns into separate switch statement.
348 (op tab): Add sh2a insns. Reject instructions that are disabled
349 on that chip.
350 (gensim_caselist): Generate default case here instead of in caller.
351 (gensim): Generate two separate switch statements. Call
352 gensim_caselist once for each (for movsxy_tab and for tab).
353 Add tokens for r15 and multiple regs.
354 (conflict_warn, warn_conflicts): Add for debugging.
355
a134f341
JR
3562004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
357
358 * gencode.c (tab): For shad snd shld, fix result for
359 (op1 < 0 && shift_amount == 0).
360
915213a4
MS
3612004-02-02 Michael Snyder <msnyder@redhat.com>
362
363 * gencode.c (movua.l): Set thislock to 0, not n.
364
3e511797
MS
3652004-02-12 Michael Snyder <msnyder@redhat.com>
366
367 * gencode.c (table): Change from char to short.
368 (dumptable): Change generated table from char to short.
369 * interp.c (sh_jump_table, sh_dsp_table, ppi_table): char to short.
370 (init_dsp): Compute size of sh_dsp_table.
371 (sim_resume): Change jump_table from char to short.
372
4ae0cff4
MS
3732004-01-27 Michael Snyder <msnyder@redhat.com>
374
0145ab2e
MS
375 * gencode.c: (op tab): Some refs and defs fixes.
376 "fsrra" -> "fsrra <FREG_N>".
377 "sleep": replace array ref with array addr.
378 "trapa": ditto.
379 Comment and whitespace clean-ups.
4ae0cff4 380
86bc60eb
MS
3812004-01-07 Michael Snyder <msnyder@redhat.com>
382
87acb4a7
MS
383 * gencode.c: Whitespace cleanup.
384 * interp.c: Ditto.
385
86bc60eb
MS
386 * gencode.c: Replace 'Hitachi' with 'Renesas'.
387 (op tab): Add new instructions for sh4a, DBR, SBR.
388 (expand_opcode): Add handling for new movxy combinations.
389 (gensym_caselist): Ditto.
390 (expand_ppi_movxy): Remove movx/movy expansions,
391 now handled in expand_opcode.
392 (gensym): Add some helpful macros.
393 (expand_ppi_code): Flatten loop for simplicity, tweak for 12-bit
394 instead of 8-bit table (some insns are ambiguous to 8 bits).
395 (ppi_gensim, main): Generate 12-bit instead of 8-bit ppi table.
396
397 * interp.c: Replace 'Hitachi' with 'Renesas'.
398 (union saved_state_type): Add dbr, sgr, ldst.
399 (get_loop_bounds_ext): New function.
400 (init_dsp): Add bfd_mach_sh4al_dsp.
401 (sim_resume): Handle extended loop bounds.
402
673fc5d0
MS
4032003-12-18 Michael Snyder <msnyder@redhat.com>
404
405 * gencode.c (expand_opcode): Simplify and reorganize.
406 Eliminate "shift" parameter. Eliminate "4 bits at a time"
407 assumption. Flatten switch statement to a single level.
408 Add "eeee" token for even-numbered registers.
409 (bton): Delete.
410 (fsca): Use "eeee" token.
411 (ppi_moves): Rename to "expand_ppi_movxy". Do the ddt
412 [movx/movy] expansion here, as well as the ppi expansion.
413 (gensim_caselist): Accept 'eeee' along with 'nnnn'.
414
794cd17b
JR
4152003-11-03 J"orn Rennecke <joern.rennecke@superh.com>
416
417 * interp.c (fsca_s, fsrra_s): New functions.
418 * gencode.c (tab): Add entries for fsca and fsrra.
419 (expand_opcode): Allow variable length n / m fields.
420
8822d001
JR
4212003-10-15 J"orn Rennecke <joern.rennecke@superh.com>
422
423 * syscall.h (SYS_truncate, SYS_ftruncate): Define.
424 * interp.c (trap): Add support for SYS_ftruncate and SYS_truncate.
425
d1789ace
MS
4262003-08-11 Shrinivas Atre <shrinivasa@KPITCummins.com>
427 * sim/sh/gencode.c ( tab[] ): Addition of MAC.L handler and
428 correction for MAC.W handler
429 * sim/sh/interp.c ( macl ): New Function. Implementation of
430 MAC.L handler.
431
240f98d3
MS
4322003-08-07 Michael Snyder <msnyder@redhat.com>
433
434 * gencode.c (expand_ppi_code): Comment spelling fix.
435
437b0e60
MS
4362003-07-25 Michael Snyder <msnyder@redhat.com>
437
438 * gencode.c (pshl): Change < to <= (shift by 16 is allowed).
439 Cast argument of >> to unsigned to prevent sign extension.
440 (psha): Change < to <= (shift by 32 is allowed).
441
32fcda6a
MS
4422003-07-24 Michael Snyder <msnyder@redhat.com>
443
444 * gencode.c: Fix typo in comment.
445
e343a93a
MS
4462003-07-23 Michael Snyder <msnyder@redhat.com>
447
448 * gencode.c: A few more fix-ups of refs and defs.
449 (frchg): Raise SIGILL if in double-precision mode.
450 (ldtlb): We don't simulate cache, so this is a no-op.
451 (movsxy_tab): Correct a few bit pattern errors.
452
c13a4caa
MS
4532003-07-09 Michael Snyder <msnyder@redhat.com>
454
1b606171 455 * gencode.c (prnd): Clear LSW of result to zeros.
fcfae95c 456 * gencode.c (pmuls): Expression is mis-parenthesized.
c13a4caa
MS
457 * gencode.c (ppi_gensim): For a conditional ppi insn, if the
458 condition is false, we want to return (not break). A break
459 will take us to the end of the function where registers will
460 be updated, whereas the desired outcome is for nothing to change.
461
e53a5a69
MS
4622003-07-03 Michael Snyder <msnyder@redhat.com>
463
464 * gencode.c (movs): Fix a couple of text transpositions.
465
15dee5d5
MS
4662003-06-27 Michael Snyder <msnyder@redhat.com>
467
b939d772
MS
468 * gencode.c (op tab): Some fix-ups of refs and defs.
469 (ocbi, ocbp): Cache not simulated, but may cause memory fault.
470 (gensym_caselist): Add default case to switch statement.
471 (expand_ppi_code): Add default case to switch statement.
d2f18ae4 472 * gencode.c (op tab): Implement movca.l.
9e1d0fc1 473 * gencode.c (op movsxy_tab): Fix an error in the bit pattern.
15dee5d5
MS
474 * gencode.c (gensim_caselist): The movy instructions use
475 registers R6 and R7 (not R4 and R5 like the movx insns).
476
8dc30ef7
MS
4772003-06-27 Michael Snyder <msnyder@redhat.com>
478
0b282859
MS
479 * gencode.c (op movsxy_tab): Fix up some copy/paste errors
480 in name: s/REG_x/REG_y/.
481
8dc30ef7
MS
482 * gencode.c (op tab): Move misplaced semicolon.
483
6b4a8935
AC
4842003-02-27 Andrew Cagney <cagney@redhat.com>
485
486 * interp.c (init_dsp, sim_open, sim_create_inferior): Rename _bfd
487 to bfd.
488
fd8f4948
JR
489Fri Oct 11 16:22:28 2002 J"orn Rennecke <joern.rennecke@superh.com>
490
491 * interp.c (trap): Return int. Take extra parameter for address
492 of the trap instruction. Changed all callers.
493 Add case 33 for profiling.
494 * gencode.c (trapa): Handle trap 33 using the trap function.
495 Add read of vector for generic traps.
496
2f14585c
JR
497Wed Jul 17 19:36:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
498
499 * Makefile.in (interp.o): Depend on $(srcroot)/include/gdb/sim-sh.h.
500 * interp.c: Include "gdb/sim-sh.h".
501 (sim_store_register, sim_fetch_register): Use constants defined there.
502
dc9feb5c
JR
503Tue Jun 18 16:53:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
504
505 * interp.c (sim_resume): Fix setting of bus error for
506 instruction fetch.
507
c8cca39f
AC
5082002-06-16 Andrew Cagney <ac131313@redhat.com>
509
510 * configure: Regenerated to track ../common/aclocal.m4 changes.
511
3c25f8c7
AC
5122002-06-08 Andrew Cagney <cagney@redhat.com>
513
514 * interp.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
515
de0492b6
AO
5162001-01-30 Ben Elliston <bje@redhat.com>
517
518 * interp.c (sim_create_inferior): Record program arguments for
519 later inspection by the trap handler.
520 (count_argc): New function.
521 (prog_argv): Declare static.
522 (sim_write): Declare.
523 (trap): Implement argc, argnlen and argn system calls. Do not
524 abort on unknown system calls--simply return -1.
525 * syscall.h (SYS_argc, SYS_argnlen, SYS_argn): Define.
526
55406459
AO
5272001-01-24 Alexandre Oliva <aoliva@redhat.com>
528
529 * interp.c (trap): Implement time.
530
8f1e3ff5
BE
5312000-10-24 Ben Elliston <bje@redhat.com>
532
533 * gencode.c (tab): Delimit strings with commas where applicable.
534
eb2d80b4
AC
535Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
536
537 * configure: Regenerated to track ../common/aclocal.m4 changes.
538
63978407
JR
539Mon May 15 22:04:51 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
540
541sh-dsp support, simulator speedup by using host byte order:
542
543 * Makefile.in (interp.o): Depends on ppi.c .
544 (ppi.c): New rule.
545 * gencode.c (printonmatch, think, genopc): Deleted.
546 (MAX_NR_STUFF): Now 42.
547 (tab): Add SH-DSP CPU instructions.
548 Amalgamate ldc / stc / lds / sts instructions with similar
549 bit patterns. Fix opcodes of stc Rm_BANK,@-<REG_N>.
550 Fix semantics of lds.l @<REG_N>+,MACH (no sign extend).
551 (movsxy_tab): New array.
552 For movs, change MMMM field to GGGG, and mmmm field to MMMM.
553 Added entries for movx, movy and parallel processing insns.
554 (ppi_tab): New array.
555 (qfunc): Stabilize sort.
556 (expand_opcode): Handle [01][01]NN, [01][01]xx and [01][01]yy.
557 Handle 'M', 'G' 's' 'X', 'a', 'Y' and 'A'.
558 (dumptable): Now takes three arguments. Changed all callers.
559 Emit just one contigous jump table.
560 (filltable): Now takes an argument. Changed all callers.
561 Make index static.
562 (ppi_moves, expand_ppi_code, ppi_filltable, ppi_gensim): New functions.
563 (gensim_caselist): New function, broken out of gensim.
564 Handle opcode fields 'x', 'y', 's', 'M', 'G', 'X', 'a', and 'Y'.
565 Handle ref '9'.
566 (gensim): Handle 'N' in code field and '8' in refs field.
567 Call gensim_caselist - twice.
568 (ppi_index): New static variable.
569 (main): Unsupport default action.
570 Add dsp support for -x / -s option. Add -p option.
571 * interp.c (sh_jump_table, sh_dsp_table, ppi_table): Declare.
572 (saved_state_type): Rearrange to allow amalgamated ldc / stc /
573 lds / sts to work efficiently.
574 (target_dsp): New static variable.
575 (GBR, VBR, SSR, SPC, MACH, MACL): Reflect saved_state_type change.
576 (FPUL, Rn_BANK, SET_Rn_BANK, M, Q, S, T, SR_BL, SR_RB): Likewise.
577 (SR_MD, SR_RC, SET_SR_BIT, GET_SR, SET_RC, GET_FPSCR): Likewise.
578 (RS, RE, MOD, MOD_ME, DSP_R): Likewise.
579 (set_fpscr1): Likewise. Use target_dsp to check for dsp.
580 (MOD_MSi, SIG_BUS_FETCH): Deleted.
581 (CREG, SREG, PR, SR_MASK_DMY, SR_MASK_DMX, SR_DMY): New macros.
582 (SR_DMX, DSR, MOD_DELTA, GET_DSP_GRD): Likewise.
583 (SET_MOD): Reflect saved_state_type change. Set MOD_DELTA instead
584 of MOD_MS, and encode SR_DMY / SR_DMX into high word of MOD_ME.
585 (set_sr): Reflect saved_state_type change. Fix SR_RB handling.
586 Use SET_MOD.
587 (MA, L, TL, TB): Now controlled by ACE_FAST.
588 (SEXT32): Just cast to int.
589 (SIGN32): Fixed to only shift by 31.
590 (CHECK_INSN_PTR): SIGBUS at insn fetch now represented by insn_end 0.
591 (ppi_insn): Declare.
592 (ppi.c): Include.
593 (init_dsp): Set target_dsp. When it changes, switch end of
594 sh_jump_table with sh_dsp_table.
595 (sim_resume) Don't declare sh_jump_table0. Use sh_jump_table instead.
596 Don't Declare PR if it's #defined.
597 Fix single-stepping (Was broken in Mar 6 16:59:10 patch).
598 (sim_store_register, sim_read_register): Translate accesses to
599 reflect saved_state_type change.
600
601 * interp.c (set_sr): Set sr.
602 (SET_RC, MOD, MOD_MS, MOD_ME, SET_MOD, MOD_MS, MOD_ME): New macros.
603 (set_fpscr1): Don't bank-switch fpu registers when simulating sh-dsp.
604 (DSP_R): Fix definition.
605 (sim_resume): Remove outdated SET_SR use.
606
607 * interp.c (saved_state): New members for struct member asregs:
608 rs, re, insn_end, xram_start, yram_start.
609 (struct loop_bounds): New struct.
610 (SKIP_INSN): New macro.
611 (get_loop_bounds): New function.
612 (endianw): Renamed to global_endianw.
613 (maskw): negated bits.
614 (PC): Now insn_ptr.
615 (SR_MASK_RC, SR_RC_INCREMENT, SR_RC, RAISE_EXCEPTION): New macros.
616 (RS, RE, DSP_R, DSP_GRD, A1, A0, X0, X1, Y0, Y1, M0, A1G): Likewise.
617 (M1, A0G, RIAT, PT2H, PH2T, SET_NIP, CHECK_INSN_PTR): Likewise.
618 (SIG_BUS_FETCH): Likewise
619 (raise_exception, riat_fast): New functions.
620 (raise_buserror, sim_stop): Use raise_exception.
621 (PROCESS_SPECIAL_ADDRESS): Use xram_start / yram_start.
622 (BUSERROR, WRITE_BUSERROR, READ_BUSERROR):
623 Reverse sense of mask argument.
624 (FP_OP, set_dr): Use RAISE_EXCEPTION.
625 (wlat_fast, wwat_fast, wbat_fast, rlat_fast, rwat_fast, rbat_fast):
626 Declare. Remove redundant masking.
627 (wwat_fast, rwat_fast): Add argument endianw. Changed callers.
628 (MA): Updated for change pc -> PC.
629 (Delay_Slot): Use RIAT.
630 (empty): Deleted.
631 (trap): Remove argument little_endian. Add argument endianw.
632 Changed all callers. Use raise_exception.
633 (macw): Add argument endainw. Changed all callers.
634 (init_dsp): New function, extended after broken out of init_pointers.
635 (sim_resume): Replace pc with insn_ptr. Replace little_endian with
636 endianw. Replace nia with nip. Reverse sense of maskb / maskw /
637 maskl. Implement logic for zero-overhead loops. Don't try to
638 interpret garbage when getting a SIGBUS at insn fetch.
639 (sim_open): Call init_dsp.
640 * gencode.c (tab): Use SET_NIP instead of nia = . Use PH2T / PT2H /
641 RAISE_EXCEPTION where appropriate.
642 Add extra cycles for brai, braf , bsr, bsrf, jmp, jsr.
643
644 * interp.c (sim_store_register, sim_fetch_register):
645 Do proper endianness switch.
646
647 * interp.c (saved_state_type): New members for struct member asregs:
648 xymem_select, xmem, ymem, xmem_offset, ymem_offset.
649 (special_address): Delete.
650 (BUSERROR): Now a two-argument predicate.
651 (PROCESS_SPECIAL_ADDRESS, WRITE_BUSERROR, READ_BUSERROR): New macros.
652 (wlat_little, wwat_little, wbat_any, wlat_big, wwat_big): Delete.
653 (process_wlat_addr, process_wwat_addr): New functions.
654 (process_wbat_addr, process_rlat_addr, process_rwat_addr): Likewise.
655 (process_rbat_addr): Likewise.
656 (wlat_fast, wwat_fast, wbat_fast): Use WRITE_BUSERROR.
657 (rlat_little, rwat_little, rbat_any, rlat_big, rwat_big): Delete.
658 (rlat_fast, rwat_fast, rbat_fast): Use READ_BUSERROR.
659 (RWAT, RLAT, RBAT, WWAT, WLAT, WBAT): Delete SLOW versions.
660 (do_rdat, trap): Delete SLOW code.
661 (SEXT32, SIGN32): New macros.
662 (swap, swap16): Now integer in - integer out. Changed all callers.
663 (strswaplen, strnswap): Delete SLOW versions.
664 (init_pointers): Initialize dsp memory selection (preliminary).
665 (sim_store_register, sim_fetch_register): Use swap instead of
666 big / little endian read / write functions.
667
668 * interp.c (maskl): Deleted.
669 (endianw, endianb): New variables.
670 (special_address): Now inline.
671 (bp_holder): Put raising of buserror there, rename to:
672 (raise_buserror).
673 (BUSERROR): Now yields a value. Changed all users.
674 (wbat_big): Delete.
675 (wlat_fast, wwat_fast, wbat_fast): New functions.
676 (rlat_fast, rwat_fast, rbat_fast): Likewise.
677 (RWAT, RLAT, RBAT, WWAT, WLAT, WBAT): Use new functions.
678 (do_rdat, do_wdat): Likewise. Take maskl argument instead of
679 little_endian one. Changed caller macros.
680 (swap, swap16): Use w[rw]lat_big / w[rw]lat_little directly.
681 (strswaplen, strnswap): New functions.
682 (trap): Use them to fix up endian mismatches;
683 disable SYS_execve and SYS_execv; fix double address translation for
684 SYS_pipe and SYS_stat.
685 (sym_write, sym_read): Add endianness translation.
686 (sym_store_register, sym_fetch_register): Add maskl local variable.
687 (sim_open): Set endianw and endianb.
688
d4f3574e
SS
689Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
690
691 * configure: Regenerated to track ../common/aclocal.m4 changes.
692
104c1213
JM
693Wed Aug 25 07:55:23 1999 Brendan Kehoe <brendan@cygnus.com>
694
695 * gencode.c (fcnvds <DR_N>,FPUL): Rewrite to use a local anonymous
696 union type, instead of casting to an int* then a float*.
697 (fcnvsd FPUL,<DR_N>): Likewise.
698 (flds <FREG_N>,FPUL): Likewise.
699 (fsts FPUL,<FREG_N>): Likewise.
700
cd0fc7c3
SS
7011999-05-08 Felix Lee <flee@cygnus.com>
702
703 * configure: Regenerated to track ../common/aclocal.m4 changes.
704
7a292a7a
SS
7051999-04-02 Keith Seitz <keiths@cygnus.com>
706
707 * interp.c (POLL_QUIT_INTERVAL): Define. Used to tweak the
708 frequency at which the poll_quit callback is called.
709 (sim_resume): Use POLL_QUIT_INTERVAL instead of a
710 hard-coded value.
711
c906108c
SS
712Thu Sep 10 02:16:39 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
713
714 * interp.c (saved_state.asregs): Add new member pad_dummy.
715 (sim_store_register, sim_fetch_regsiter): Add 1 to rn for use
716 as index into saved_state.asints.
717
718Mon Jun 29 19:35:24 1998 Jason Molenda (crash@bugshack.cygnus.com)
719
720 * interp.c (sim_open): set endianness based on the ABFD if a -E
721 option is not present and we have an ABFD.
722
723Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
724
725 * configure: Regenerated to track ../common/aclocal.m4 changes.
726
727Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
728
729 * configure: Regenerated to track ../common/aclocal.m4 changes.
730 * config.in: Ditto.
731
732Sun Apr 26 15:19:48 1998 Tom Tromey <tromey@cygnus.com>
733
734 * acconfig.h: New file.
735 * configure.in: Reverted change of Apr 24; use sinclude again.
736
737Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
738
739 * configure: Regenerated to track ../common/aclocal.m4 changes.
740 * config.in: Ditto.
741
742Fri Apr 24 11:18:35 1998 Tom Tromey <tromey@cygnus.com>
743
744 * configure.in: Don't call sinclude.
745
746Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
747
748 * configure: Regenerated to track ../common/aclocal.m4 changes.
749
750Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
751
752 * configure: Regenerated to track ../common/aclocal.m4 changes.
753
754Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
755
756 * configure: Regenerated to track ../common/aclocal.m4 changes.
757
758Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
759
760 * configure: Regenerated to track ../common/aclocal.m4 changes.
761
762Tue Feb 17 12:49:44 1998 Andrew Cagney <cagney@b1.cygnus.com>
763
764 * interp.c (sim_fetch_register, sim_store_register): Pass in
765 length parameter. Return -1.
766
767Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
768
769 * configure: Regenerated to track ../common/aclocal.m4 changes.
770
771Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
772
773 * configure: Regenerated to track ../common/aclocal.m4 changes.
774
775Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
776
777 * configure: Regenerated to track ../common/aclocal.m4 changes.
778
779Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
780
781 * configure: Regenerated to track ../common/aclocal.m4 changes.
782 * config.in: Ditto.
783
784Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
785
786 * configure: Regenerated to track ../common/aclocal.m4 changes.
787
788Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
789
790 * interp.c (sim_load): Pass lma_p and sim_write args to
791 sim_load_file.
792
793Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
794
795 * configure: Regenerated to track ../common/aclocal.m4 changes.
796
797Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
798
799 * configure: Regenerated to track ../common/aclocal.m4 changes.
800
801Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
802
803 * configure: Regenerated to track ../common/aclocal.m4 changes.
804
805Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
806
807 * configure: Regenerated to track ../common/aclocal.m4 changes.
808
809Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
810
811 * configure: Regenerated to track ../common/aclocal.m4 changes.
812
813Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
814
815 * configure: Regenerated to track ../common/aclocal.m4 changes.
816
817Tue Sep 9 20:52:21 1997 Felix Lee <flee@cygnus.com>
818
819 * interp.c (sim_resume): poll_quit() at least once per call;
820 otherwise gdb can loop sim_resume() uninterruptably.
821
822Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
823
824 * configure: Regenerated to track ../common/aclocal.m4 changes.
825
826Tue Sep 2 13:15:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
827
828 * gencode.c (tab): Order instructions according to SH3 document.
829
830Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
831
832 * configure: Regenerated to track ../common/aclocal.m4 changes.
833 * config.in: Ditto.
834
835Tue Aug 26 10:41:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
836
837 * interp.c (sim_kill): Delete.
838 (sim_create_inferior): Add ABFD argument.
839 (sim_load): Move setting of PC from here.
840 (sim_create_inferior): To here.
841
842Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
843
844 * configure: Regenerated to track ../common/aclocal.m4 changes.
845 * config.in: Ditto.
846
847Mon Aug 25 16:17:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
848
849 * interp.c (sim_open): Add ABFD argument.
850
851Mon Jun 23 15:49:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
852
853 * interp.c (get_dr): Avoid SIGFPE by moving integers instead of
854 FP's around.
855 (set_dr): Ditto.
856
7a292a7a
SS
857Mon Jun 23 15:02:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
858
859 * interp.c (XD, SET_XD): Delete.
860 (XF, SET_XF, XD_TO_XF): Define, move around registers in either
861 FP bank.
862
863 * gencode.c (fmov): Update.
864
c906108c
SS
865Sun Jun 22 19:33:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
866
867 * interp.c (set_fpscr1): From J"orn Rennecke
868 <amylaar@cygnus.co.uk>, Fix typo. Ditto for comment.
869
7a292a7a
SS
870Tue Aug 12 00:19:11 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
871
872 * interp.c (special_address): New function.
873 (BUSERROR): Call it. Added parameters bits_written and data.
874 Changed all callers.
875 * gencode.c (tab): Fixed ocbwb and pref.
876
877Fri Jun 20 22:03:18 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
878
879 * interp.c (do_wdat, do_wdat): Fix bug in register number calculation.
880
c906108c
SS
881Thu Jun 19 00:28:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
882
883 * interp.c (sim_create_inferior): Clear registers each time an
884 inferior is started.
885
7a292a7a
SS
886Mon Jun 16 14:01:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
887
888 * interp.c (*FP, FP_OP, FP_CMP, FP_UNARY): Provide a hook for
889 when a host doesn't support IEEE FP.
890 (*DP): Provide alternative definition that supports 64bit floating
891 point.
892 (target_little_endian): Combine little_endian and little_endian_p.
893 (saved_state_type): Make fpscr and sr simple integers.
894 (SET_FPSCR, GET_FPSCR): Use macros to update fpscr register.
895 (set_fpscr1): New function. Handle swapping when PR / FR bits
896 changed. Call via *_FPSCR macro.
897 (SET_SR*, GET_SR*): Use macro's to access the SR bits - avoids
898 endian problems.
899
900 * gencode.c (tab): Update.
901
c906108c
SS
902Sun Jun 15 15:22:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
903
904 * gencode.c (main): Perform basic checks on tab entries.
905
906 * Makefile.in (gencode): Always compile with -g.
907
908Sat Jun 14 13:45:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
909
910 * gencode.c (gensim): Move ref checking code to before `stuff'.
911 For branches with delay slots refs were not being checked.
912
913 * interp.c (sim_resume): Use nia to specify the next instruction
914 address instead of overloading pc.
915 (C): Delete definiton - refer to cycles directly.
916 (SEXT12): New macro - sign extend a 12 bit quantity.
917 (Delay_Slot): Rename from SL.
918
919 * gencode.c (tab): Update/simplify.
920
921 * gencode.c (gensim): Better formatting of output code.
922 (gensim): Replace 10 with constant MAX_NR_STUFF- define as 15.
923 (tab): Sort alphabetically. Break `stuff' into multiple lines.
924
925Fri Jun 13 22:10:13 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
926
927 * gencode.c (braf, bsrf): Fix branch destination calculation to
928 be in accordance with the documentation.
929
930Fri Jun 13 15:33:53 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
931
932 * interp.c (init_pointers): Fix little endian test.
933
7a292a7a
SS
934Thu Jun 5 12:56:08 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
935
936 * interp.c (init_pointers): SH4 hardware is always WORDS_BIT_ENDIAN.
937 * gencode (fmov from/to memory): take endian_mismatch into account
938 for 32 bit moves too.
939
c906108c
SS
940Wed May 28 23:42:35 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
941
942 * gencode.c (swap.b): Fix treatment of high word.
943
7a292a7a
SS
944Wed May 28 23:42:35 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
945
946 * sh/gencode.c,
947 * interp.c: experimental SH4 support.
948 DFmode moves are probaly broken for target little endian.
949
c906108c
SS
950Tue May 20 10:23:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
951
952 * interp.c (sim_open): Add callback argument.
953 (sim_set_callbacks): Delete SIM_DESC argument.
954
955Wed Apr 30 11:38:08 1997 Doug Evans <dje@canuck.cygnus.com>
956
957 * Makefile.in (SIM_EXTRA_CLEAN): Define.
958 (clean targets): Delete.
959 (sh-clean): New target.
960
961Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
962
963 * configure: Regenerated to track ../common/aclocal.m4 changes.
964
965Wed Apr 23 17:55:22 1997 Doug Evans <dje@canuck.cygnus.com>
966
967 * tconfig.in: New file.
968 * interp.c (sim_open): Handle missing arg to -E.
969
970Tue Apr 22 08:55:35 1997 Stu Grossman (grossman@critters.cygnus.com)
971
972 * Makefile.in: Add clean targets.
973
974Fri Apr 18 18:57:04 1997 Stu Grossman (grossman@critters.cygnus.com)
975
976 * interp.c: Include float.h and define SIGTRAP if _WIN32.
977 WIN32 -> _WIN32.
978 * (trap): Do do SYS_chown for _WIN32.
979
980Fri Apr 18 13:33:09 1997 Doug Evans <dje@canuck.cygnus.com>
981
982 * interp.c (sim_resume): Fix argument to poll_quit.
983
984Fri Apr 18 14:14:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
985
986 * interp.c (sim_stop): New function.
987 (sim_resume): Use poll_quit for polling.
988
989Thu Apr 17 03:32:04 1997 Doug Evans <dje@canuck.cygnus.com>
990
991 * Makefile.in (SIM_OBJS): Add sim-load.o.
992 * interp.c (target_byte_order): Delete.
993 (sim_kind, myname, little_endian_p): New static locals.
994 (init_pointers): Use little_endian_p instead of target_byte_order.
995 (sim_resume): Likewise.
996 (sim_open): Set sim_kind, myname. Set little_endian_p from -E arg.
997 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
998 load file into simulator. Set start address from bfd.
999 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1000
1001Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1002
1003 * configure: Regenerated to track ../common/aclocal.m4 changes.
1004 * config.in: Ditto.
1005
1006Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
1007
1008 * interp.c (sim_open): New arg `kind'.
1009
1010 * configure: Regenerated to track ../common/aclocal.m4 changes.
1011
1012Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1013
1014 * configure: Regenerated to track ../common/aclocal.m4 changes.
1015
1016Wed Mar 19 09:34:36 1997 Fred Fish <fnf@cygnus.com>
1017
1018 * interp.c (sim_do_command): Check for NULL command or empty
1019 string and handle it the same as a "help" command. Use callback
1020 to print error message for unrecognized commands. Replace
1021 hardcoded tab in literal string with a \t. Other minor code
1022 cleanup.
1023
1024Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1025
1026 * configure: Regenerated to track ../common/aclocal.m4 changes.
1027
1028Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1029
1030 * configure: Re-generate.
1031
1032Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
1033
1034 * configure: Regenerate to track ../common/aclocal.m4 changes.
1035
1036Thu Mar 13 13:00:00 1997 Doug Evans <dje@canuck.cygnus.com>
1037
1038 * interp.c (sim_open): New SIM_DESC result. Argument is now
1039 in argv form.
1040 (other sim_*): New SIM_DESC argument.
1041
1042Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
1043
1044 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
1045 COMMON_{PRE,POST}_CONFIG_FRAG instead.
1046 * configure.in: sinclude ../common/aclocal.m4.
1047 * configure: Regenerated.
1048
1049Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
1050
1051 * configure configure.in Makefile.in: Update to new configure
1052 scheme which is more compatible with WinGDB builds.
1053 * configure.in: Improve comment on how to run autoconf.
1054 * configure: Re-run autoconf to get new ../common/aclocal.m4.
1055 * Makefile.in: Use autoconf substitution to install common
1056 makefile fragment.
1057
1058Wed Nov 20 02:04:32 1996 Doug Evans <dje@canuck.cygnus.com>
1059
1060 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
1061 (SIM_OBJS,SIM_EXTRA_LIBS): Define.
1062 * configure.in: Simplify using macros in ../common/aclocal.m4.
1063 Call AC_CHECK_HEADERS(unistd.h).
1064 * configure: Regenerated.
1065 * config.in: New file.
1066 * interp.c: #include "config.h". #include <unistd.h> if present.
1067 (trap): Fetch errno value with callback->get_errno.
1068
1069Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
1070
1071 * interp.c: Don't include windows polling code if inside simluator.
1072
1073Fri Sep 20 14:57:50 1996 Stan Shebs <shebs@andros.cygnus.com>
1074
1075 * interp.c: Minor formatting improvements.
1076 (saved_state_type): Add bank registers.
1077 (bp_holder): New function, use to break on when debugging BUSERROR.
1078 (BUSERROR): Call it if bus error occurs.
1079
1080Wed Jun 26 12:29:22 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1081
1082 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
1083 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
1084 (docdir): Removed.
1085 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1086 (AC_PROG_INSTALL): Added.
1087 * configure: Rebuilt.
1088
1089Thu May 16 15:44:29 1996 Ian Lance Taylor <ian@cygnus.com>
1090
1091 * interp.c (saved_state_type): Add memstalls field.
1092 (MA) Define macro.
1093 (sim_resume): New local variable memstalls. Add it back in to
1094 saved_state at the end of the function.
1095 (sim_info): Report memstalls.
1096 * gencode.c (tab): Add MA() to the execution string of all
1097 instructions which access memory.
1098
1099Wed Feb 21 12:16:41 1996 Ian Lance Taylor <ian@cygnus.com>
1100
1101 * configure: Regenerate with autoconf 2.7.
1102
1103Tue Dec 5 16:38:55 1995 Stu Grossman (grossman@cygnus.com)
1104
1105 * gencode.c (mac.l): Don't abort GDB if executing mac.l
1106 instruction (which is unimplemented). Generate a SIGTRAP (in the
1107 simulated target) instead.
1108
1109Mon Dec 4 12:22:24 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1110
1111 * gencode.c (tab): Added several sh3 opcodes.
1112 (think): Added printonmatch for A_SSR and A_SPC.
1113 * interp.c (SSR, SPC): Added definitions.
1114 (saved_state_type): Added ssr and spc registers.
1115
1116Wed Nov 29 12:39:27 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1117
1118 * gencode.c (tab): In shad/shld definitions, negate R[m] before
1119 the and operation instead of after. For shad delete cast. For shld
1120 use UR instead of R and delete cast.
1121
1122Fri Nov 17 12:48:55 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1123
1124 * gencode.c (tab): Add explicit NaN support for ftrc instruction.
1125
1126Wed Nov 15 11:25:27 1995 Stu Grossman (grossman@cygnus.com)
1127
1128 * interp.c: Make target_byte_order be extern to prevent SGI cc from
1129 issuing warnings about the use of common symbols.
1130
1131Tue Nov 14 15:19:43 1995 Stu Grossman (grossman@cygnus.com)
1132
1133 * gencode.c: jsr, bsr and bsrf actually save pc+4 in pr, and rts
1134 actually uses pr+0.
1135
1136Sat Oct 21 13:01:18 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1137
1138 * sh/interp.c (sim_stop_reason): Catch SIGQUIT and indicate
1139 program exited.
1140 (sim_get_quit_code): Delete.
1141
1142 * gencode.c (gensim): Indicate SIGILL instead of calling abort for
1143 default case.
1144
1145Mon Oct 16 18:24:03 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1146
1147 * interp.c (saved_state_type): Move FP registers to immediately
1148 after SR.
1149
1150Tue Oct 10 11:12:15 1995 Fred Fish <fnf@cygnus.com>
1151
1152 * Makefile.in (BISON): Remove macro.
1153
1154Fri Oct 6 12:08:18 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1155
1156 * interp.c (trap, case SYS_utime): Cast second arg of utime to
1157 void * to avoid compiler error.
1158
1159 * interp.c (callback): Remove last change. It is initialized by
1160 a sim_set_callbacks call.
1161
1162Thu Oct 5 14:13:29 1995 steve chamberlain <sac@slash.cygnus.com>
1163
1164 * interp.c (callback): Initialize to default callback.
1165
1166Thu Sep 28 15:26:59 1995 steve chamberlain <sac@slash.cygnus.com>
1167
1168 * run.c: Moved to ../common.
1169 * interp.c (trap): Use gdb's callback interface.
1170 * Makefile.in: Updated.
1171
1172Wed Sep 20 13:35:13 1995 Ian Lance Taylor <ian@cygnus.com>
1173
1174 * Makefile.in (maintainer-clean): New synonym for realclean.
1175
1176Wed Sep 20 09:51:50 1995 steve chamberlain <sac@slash.cygnus.com>
1177
1178 * run.c (sim_callback_write_stdout): New.
1179 * interp.c (trap): Call sim_callback_write_stdout when needed.
1180
1181Mon Sep 18 18:42:27 1995 steve chamberlain <sac@slash.cygnus.com>
1182
1183 * interp.c (trap): Remove useless code.
1184
1185Fri Sep 15 19:30:05 1995 steve chamberlain <sac@slash.cygnus.com>
1186
1187 * syscall.h: Copy from newlib.
1188
1189Thu Sep 14 19:32:59 1995 Stu Grossman (grossman@cygnus.com)
1190
1191 * gencode.c: Back up PC by 2 for breakpoints.
1192 * interp.c: Move fp regs beyond pc/pr/etc to avoid confusing GDB,
fcb38129 1193 which expect pc to immediately follow regs[].
c906108c
SS
1194
1195Fri Sep 8 14:18:13 1995 Ian Lance Taylor <ian@cygnus.com>
1196
1197 * configure.in: Define CC_FOR_BUILD. Don't call AC_PROG_INSTALL.
1198 * configure: Rebuild.
1199 * Makefile.in (INSTALL): Revert to using install.sh.
1200 (INSTALL_PROGRAM, INSTALL_DATA): Set to $(INSTALL).
1201 (INSTALL_XFORM, INSTALL_XFORM1): Restore.
1202 (CC_FOR_BUILD): Restore.
1203 (gencode): Build using $(CC_FOR_BUILD).
1204 (install): Don't install in $(tooldir).
1205
1206Thu Sep 7 15:02:31 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1207
1208 (Try to) Update to new bfd autoconf scheme.
1209 * run.c: Don't include sysdep.h.
1210 * Makefile.in (INSTALL{,_PROGRAM,_DATA}): Use autoconf computed value.
1211 (CC, CFLAGS, AR, RANLIB): Likewise.
1212 (HDEFINES, TDEFINES): Define.
1213 (CC_FOR_BUILD): Delete.
1214 (host_makefile_frag): Delete.
1215 (Makefile): Don't depend on frags.
1216 * configure.in (sysdep.h): Don't create symlink.
1217 (host_makefile_frag, frags): Deleted.
1218 (CC, CFLAGS, AR, RANLIB, INSTALL): Compute values.
1219 * configure: Regenerated.
1220
1221Thu Aug 31 12:39:07 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1222
1223 * interp.c: Include <math.h>.
1224
1225Wed Aug 30 22:05:17 1995 Jeff Law (law@snake.cs.utah.edu)
1226
1227 * Makefile.in (run): Link in math library too.
1228 * gencode.c (gensim): abort if an unknown opcode is encountered.
1229 * interp.c (FPSCR, FPUL): Define.
1230 (struct save_state): Add fields for floating point registers,
1231 FPSCR and FPUL.
1232 (sim_resume): Add 'F' for accessing floating point registers
1233 in the save state structure.
1234 * gencode.c: Add sh3e opcodes.
1235 (gensym): Define a buffer for int<->fp conversions.
1236
1237Tue Aug 22 14:16:46 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1238
1239 * interp.c (trap): Use trap vector 34 for host system interface.
1240 * gencode.c: Add 34 to conditional which determines which traps
1241 will be handled by simulator.
1242
1243Fri Aug 11 17:59:15 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1244
1245 * run.c: Include <signal.h>. Define SIGQUIT if not defined.
1246 (main): New variables reason and sigrc. After simulator exits,
1247 check to see if it exited because of a signal, and if so, then
1248 use the signal number as the return value.
1249
1250Thu Aug 3 10:45:37 1995 Fred Fish <fnf@cygnus.com>
1251
1252 * Update all FSF addresses except those in COPYING* files.
1253
1254Tue Jul 18 23:33:10 1995 Fred Fish <fnf@fishbowl>
1255
1256 * interp.c (trap): Only use SYS_execv if defined. Might be
1257 implemented as execve(arg1,arg2,0), as with Unixware 2.0.
1258 (sim_resume): In sbit initializer, cast shifted arg to unsigned
1259 to avoid signed integer overflow.
1260
1261Wed Jul 5 14:32:54 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1262
1263 * Makefile.in (clean): Remove run, libsim.a.
1264 (distclean, mostlyclean, realclean): Remove Makefile and
1265 autoconf files.
1266
1267 * sh.mt: Removed.
1268
1269 * Makefile.in, configure.in: converted to autoconf.
1270 * configure: New file, generated with autconf 2.4.
1271
1272Fri Jun 30 16:51:38 1995 Stan Shebs <shebs@andros.cygnus.com>
1273
1274 * interp.c (sim_open): If argument supplied, interpret as
1275 desired memory size.
1276 (parse_and_set_memory_size): New function.
1277 (sim_do_command): New function.
1278
1279Thu Jun 29 10:02:28 1995 Fred Fish <fnf@deneb.cygnus.com>
1280
1281 * interp.c (SYS_wait): Define as SYS_wait4 if available and
1282 SYS_wait is not already defined (SunOS 4.1.3 for example).
1283 (SYS_utime): Define as SYS_utimes if available and
1284 SYS_utime is not already defined.
1285
1286Thu Jun 22 17:25:57 1995 Steve Chamberlain <sac@slash.cygnus.com>
1287
1288 * interp.c: Don't include sys/times.h or sys/param.h
1289
1290Wed Jun 21 15:03:49 1995 Steve Chamberlain <sac@slash.cygnus.com>
1291
1292 * interp.c (SIGBUS, SIGTERM): Define if not.
1293 (sim_memory_size): default to 2^19 on PCs.
1294 (sim_resume): Poll for quits on win32.
1295
1296Wed May 24 16:22:48 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1297
1298 * gencode.c (op_tab): Add SH3 support.
1299
1300Wed May 24 14:07:11 1995 Steve Chamberlain <sac@slash.cygnus.com>
1301
1302 * gencode.c (tab): Add bsrf and braf.
1303
1304Mon Apr 24 15:09:49 1995 Jason Molenda (crash@cygnus.com)
1305
1306 * configure.in: use ../../bfd/hosts/std-host.h, not
1307 ../bfd/hosts/std-host.h (which doesn't exist).
1308
1309Mon Mar 27 10:32:34 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1310
1311 * run.c: parse arguments with getopt().
1312
1313Sun Feb 26 15:27:24 1995 Steve Chamberlain <sac@cygnus.com>
1314
1315 * configure.in: Use ../../bfd/hosts/std-host.h if specific
1316 host unavailable.
1317
1318Mon Jan 23 16:10:58 1995 Torbjorn Granlund <tege@rtl.cygnus.com>
1319
1320 * interp.c (macw): Sign extend MACH at bit 10 for non-saturating case.
1321
1322Sun Jan 22 13:55:36 1995 Torbjorn Granlund <tege@rtl.cygnus.com>
1323
1324 * gencode.c (op_tab): Make MAC.W call macw, not abort.
1325 * interp.c (macw): New function.
1326 (S): New #define.
1327
1328Sat Jan 21 15:52:30 1995 Torbjorn Granlund <tege@rtl.cygnus.com>
1329
1330 * gencode.c (op_tab): New code for ADDV and SUBV.
1331 Make MAC.L abort sicne it is not implemented.
1332
1333 * interp.c (dmul): Handle the signed case by adjusting after unsigned multiply.
1334 Get rid of __GNUC__ conditional.
1335
1336aThu Jan 19 05:50:50 1995 Torbjorn Granlund <tege@rtl.cygnus.com>
1337
1338 * gencode.c (op_tab): Also replace NEGC, and try again with SUBC.
1339 Change ADDC for symmetry.
1340
1341 * gencode.c (op_tab): Replace code for ADDC and SUBC.
1342
1343Mon Jan 9 15:43:53 1995 Stu Grossman (grossman@cygnus.com)
1344
1345 * interp.c: Remove def of INLINE. This comes from bfd.h. Also,
1346 declare IOMEM before using it.
1347
1348Wed Dec 28 21:25:31 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1349
1350 * interp.c (BUSERROR): New macro.
1351 ([r|w][bwl]at[little|big]) New functions.
1352 (sim_resume): If GO32 check for interrupt every now
1353 and again. Decrement PC if SIGBUS seen.
1354 * run.c (main): Return result of simulated _exit.
1355
1356Mon Dec 5 21:59:51 1994 Doug Evans <dje@canuck.cygnus.com>
1357
1358 * Makefile.in (gencode): Allow build in different directory.
1359
1360Wed Nov 30 17:47:13 1994 Jim Wilson <wilson@chestnut.cygnus.com>
1361
1362 * Makefile.in (gencode): Change $< to gencode.c for portability.
1363
1364Wed Nov 23 21:31:55 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1365
1366 * interp.c ([wr][bwl]at): New functions.
1367 (trap): Cope with both byte modes.
1368
1369Thu Sep 8 17:35:07 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1370
1371 * gencode.c (tab): Simulate T bit after a negc insn right.
1372 * interp.c (RSBAT): Sign extend the arg.
1373 (ACE_FAST): New macro.
1374 (sim_resume): Remove obsolete test of sim_timeout.
1375
1376Fri Aug 5 14:12:31 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1377
1378 * interp.c (IOMEM): New function, simulates very basic I/O area of
1379 the SH.
1380 (WBAT, RBAT) : Call I/O functions.
1381 * gencode.c (tab): Special case trapa #3.
1382
1383Mon Jun 27 18:04:54 1994 Steve Chamberlain (sac@cirdan.cygnus.com)
1384
1385 * run.c (main): Specify the file type again.
1386
1387Thu May 26 19:04:37 1994 Steve Chamberlain (sac@thepub.cygnus.com)
1388
1389 * interp.c (trap): Fix irix incompatibility.
1390 * run.c (main): open without specifying file type.
1391
1392Wed May 18 14:18:53 1994 Doug Evans (dje@canuck.cygnus.com)
1393
1394 * interp.c (sim_*): Make result void where there isn't one.
1395 (sim_set_pc): Delete.
1396 (sim_info): Delete printf_fn arg, all callers changed.
1397 Call printf_filtered instead.
1398 (sim_close): New function.
1399 (sim_load): New function.
1400 (sim_create_inferior): Renamed from sim_set_args, all callers changed.
1401 * run.c: #include <varargs.h>, "remote-sim.h".
1402 (printf_filtered): New function.
1403
1404Wed Apr 27 12:03:48 1994 Steve Chamberlain (sac@cygnus.com)
1405
1406 * gencode.c (table): Get direction of some opcodes right.
1407 (trapa, rte): Implement fully.
1408 * interp.c (trap): Make stat call more portable.
1409
1410Fri Feb 11 21:59:38 1994 Steve Chamberlain (sac@sphagnum.cygnus.com)
1411
1412 * gencode.c (main, gendefines): New -d option prints table of defines.
1413 * interp.c (trap): Add a load of system calls.
1414 (sim_memory_size): Now default to 8Mbyte.
1415 (PARANOID): Keep vector of registers with undefined contents.
1416
1417Mon Nov 15 14:37:18 1993 Steve Chamberlain (sac@jonny.cygnus.com)
1418
1419 * gencode.c: mova uses aligned addresses
1420 * interp.c (trap): Return results in r0.
1421
1422Tue Oct 26 10:38:55 1993 Doug Evans (dje@canuck.cygnus.com)
1423
1424 * Makefile.in (CSEARCH): Add -I$(srcdir)/../../gdb
1425 * interp.c: #include "remote-sim.h".
1426 (sim_resume): int result, new arg `siggnal'.
1427 (sim_write): Use SIM_ADDR for type of arg `addr'.
1428 (sim_read): Use SIM_ADDR for type of arg `addr'.
1429 Use unsigned char * for `buffer'.
1430 (sim_store_register): int result.
1431 (sim_fetch_register): Ditto.
1432 (sim_stop_reason): Renamed from sim_stop_signal. New arg `reason'.
1433 (sim_set_pc): int result, use SIM_ADDR for type of arg `x'.
1434 (sim_info): int result, new args `verbose', `printf_fn'.
1435 (sim_kill): int result.
1436 (sim_open): int result, new arg `name'.
1437 * run.c: #include <stdio.h>
1438 (main): Update call to sim_info.
1439
1440Sat Oct 23 15:09:29 1993 Doug Evans (dje@canuck.cygnus.com)
1441
1442 * interp.c (sim_stop_signal): Result is now enum sim_stop.
1443
1444Fri Oct 8 10:47:09 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1445
1446 * gencode.c (table): Becomes unsigned.
1447 * interp.c (trap): Get right breakpoint SIGnum. (sim_write,
1448 sim_read): Return number of bytes copied. (sim_store_register):
1449 Value passed by reference. (sim_kill, sim_open, sim_set_args): New functions.
1450
1451Tue Sep 7 16:24:13 1993 Stan Shebs (shebs@rtl.cygnus.com)
1452
1453 * interp.c (sim_info): Fix small typo in printf string.
1454
1455Thu Aug 5 11:37:48 1993 Stan Shebs (shebs@rtl.cygnus.com)
1456
1457 * interp.c (sim_resume): Set memory after pointers inited.
1458
1459Mon Aug 2 14:13:22 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1460
1461 * interp.c (get_now): Use time system call.
1462 * Makefile.in: install correctly.
1463
1464Tue Jul 6 10:30:46 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1465
1466 * run.c (main), interp.c (sim_set_timeout): Remove timeout
1467 functionality.
1468
1469Thu Jun 24 13:29:57 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
1470
1471 * Makefile.in: don't run indent everytime; also add a space in the
1472 includes
1473
1474Thu Jun 17 18:30:42 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1475
1476 * gencode.c: Fix some opcodes.
1477 * interp.c: Support for profiling and portability fixes.
1478 * run.c (main): Get profiling args.
1479
1480Wed May 5 13:17:22 1993 Steve Chamberlain (sac@cygnus.com)
1481
1482 * gencode.c (tab): Lint for sgi compiler
1483 * interp.c: Lint for sgi compiler.
1484
1485Mon May 3 15:25:33 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1486
1487 * run.c (main): Support for resizing simulated RAM.
1488 * Makefile.in: Support for broken makes.
1489 * interp.c, gencode.c: Lint.
1490
1491Mon Apr 26 18:01:10 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1492
1493 * created
1494