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