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