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