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