]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/sh/ChangeLog
sim: ppc: use common sim-assert setting
[thirdparty/binutils-gdb.git] / sim / sh / ChangeLog
CommitLineData
52d37d2c
MF
12021-06-16 Mike Frysinger <vapier@gentoo.org>
2
3 * configure: Regenerate.
4 * config.in: Removed.
5
bcaa61f7
MF
62021-06-15 Mike Frysinger <vapier@gentoo.org>
7
8 * config.in, configure: Regenerate.
9
ba307cdd
MF
102021-06-12 Mike Frysinger <vapier@gentoo.org>
11
12 * configure.ac: Delete call to SIM_AC_OPTION_ALIGNMENT.
13 * interp.c (sim_open): Set current_alignment.
14
dba333c1
MF
152021-06-12 Mike Frysinger <vapier@gentoo.org>
16
17 * aclocal.m4, config.in, configure: Regenerate.
18
b15c5d7a
MF
192021-06-12 Mike Frysinger <vapier@gentoo.org>
20
21 * config.in, configure: Regenerate.
22
cd7caae6
MF
232021-05-29 Mike Frysinger <vapier@gentoo.org>
24
25 * interp.c (SET_RC): Add parenthesis.
26 (sim_open): Add const to p.
27
f4fdd845
MF
282021-05-17 Mike Frysinger <vapier@gentoo.org>
29
30 * sim-main.h (SIM_HAVE_COMMON_SIM_STATE): Delete.
31
383861bd
MF
322021-05-17 Mike Frysinger <vapier@gentoo.org>
33
34 * sim-main.h (SIM_HAVE_COMMON_SIM_STATE): Define.
35 (struct sim_state): Delete.
36
6df01ab8
MF
372021-05-16 Mike Frysinger <vapier@gentoo.org>
38
39 * interp.c: Replace config.h include with defs.h.
40
79633c12
MF
412021-05-16 Mike Frysinger <vapier@gentoo.org>
42
43 * config.in, configure: Regenerate.
44
df68e12b
MF
452021-05-14 Mike Frysinger <vapier@gentoo.org>
46
47 * interp.c: Update include path.
48
aa0fca16
MF
492021-05-04 Mike Frysinger <vapier@gentoo.org>
50
51 * configure: Regenerate.
52
fe348617
MF
532021-05-01 Mike Frysinger <vapier@gentoo.org>
54
55 * config.in, configure: Regenerate.
56
66d055c7
MF
572021-04-26 Mike Frysinger <vapier@gentoo.org>
58
59 * aclocal.m4, config.in, configure: Regenerate.
60
19f6a43c
TT
612021-04-22 Tom Tromey <tom@tromey.com>
62
63 * interp.c: Update includes.
64 * configure, config.in: Rebuild.
65
e7d8f1da
TT
662021-04-22 Tom Tromey <tom@tromey.com>
67
68 * Makefile.in (SIM_EXTRA_DEPS): New variable.
69 (interp.o): Remove.
70
efd82ac7
TT
712021-04-22 Tom Tromey <tom@tromey.com>
72
73 * configure: Rebuild.
74
2662c237
MF
752021-04-21 Mike Frysinger <vapier@gentoo.org>
76
77 * aclocal.m4: Regenerate.
78
1f195bc3
SM
792021-04-21 Simon Marchi <simon.marchi@polymtl.ca>
80
81 * configure: Regenerate.
82
2c2645d7
MF
832021-04-18 Mike Frysinger <vapier@gentoo.org>
84
85 * configure: Regenerate.
86
b7c5246b
MF
872021-04-18 Mike Frysinger <vapier@gentoo.org>
88
89 * Makefile.in (NL_TARGET): Define.
90 * interp.c: Change syscall.h include to targ-vals.h.
91 (trap): Add TARGET_ prefix to all SYS_ constants.
92 * syscall.h: Removed.
93
37e9f182
MF
942021-04-18 Mike Frysinger <vapier@gentoo.org>
95
96 * configure: Regenerate.
97
d5a71b11
MF
982021-04-12 Mike Frysinger <vapier@gentoo.org>
99
100 * interp.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
101
c2783492
MF
1022021-04-02 Mike Frysinger <vapier@gentoo.org>
103
104 * aclocal.m4, configure: Regenerate.
105
c6c7769d
MF
1062021-03-13 Mike Frysinger <vapier@gentoo.org>
107
108 * Makefile.in (gencode.o): New rule.
109 (gencode): Call LINK_FOR_BUILD.
110
ebe9564b
MF
1112021-02-28 Mike Frysinger <vapier@gentoo.org>
112
113 * configure: Regenerate.
114
760b3e8b
MF
1152021-02-21 Mike Frysinger <vapier@gentoo.org>
116
117 * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
118 * aclocal.m4, configure: Regenerate.
119
136da8cd
MF
1202021-02-13 Mike Frysinger <vapier@gentoo.org>
121
122 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
123 * aclocal.m4, configure: Regenerate.
124
aa09469f
MF
1252021-02-06 Mike Frysinger <vapier@gentoo.org>
126
127 * configure: Regenerate.
128
68ed2854
MF
1292021-01-11 Mike Frysinger <vapier@gentoo.org>
130
131 * config.in, configure: Regenerate.
132 * interp.c, simops.c: Delete HAVE_STRING_H, HAVE_STRINGS_H,
133 HAVE_STDLIB_H, HAVE_TIME_H, and strings.h include.
134
50df264d
MF
1352021-01-09 Mike Frysinger <vapier@gentoo.org>
136
137 * configure: Regenerate.
138
bf470982
MF
1392021-01-09 Mike Frysinger <vapier@gentoo.org>
140
141 * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no".
142 * configure: Regenerate.
143
46f900c0
MF
1442021-01-08 Mike Frysinger <vapier@gentoo.org>
145
146 * configure: Regenerate.
147
dfb856ba
MF
1482021-01-04 Mike Frysinger <vapier@gentoo.org>
149
150 * configure: Regenerate.
151
5c887dd5
JB
1522017-09-06 John Baldwin <jhb@FreeBSD.org>
153
154 * configure: Regenerate.
155
13a590ca
MF
1562017-02-13 Mike Frysinger <vapier@gentoo.org>
157
158 * gencode.c: Include libiberty.h.
159 (conflict_warn): Use ARRAY_SIZE.
160 * interp.c (init_dsp): Likewise.
161
93e6fe04
OE
1622016-04-10 Oleg Endo <olegendo@gcc.gnu.org>
163
164 * interp.c (dmul): Split into dmul_s and dmul_u. Use explicit integer
165 width types and simplify implementation.
166 * gencode.c (dmuls.l, dmulu.l): Use new functions dmul_s and dmul_u.
167
ba442f0f
OE
1682016-04-09 Oleg Endo <olegendo@gcc.gnu.org>
169
93e6fe04 170 * interp.c (sim_memory_size): Default init to 30.
ba442f0f
OE
171 (parse_and_set_memory_size): Adjust upper bound to 31.
172
ce39bd38
MF
1732016-01-10 Mike Frysinger <vapier@gentoo.org>
174
175 * config.in, configure: Regenerate.
176
e19418e0
MF
1772016-01-10 Mike Frysinger <vapier@gentoo.org>
178
179 * configure: Regenerate.
180
16f7876d
MF
1812016-01-10 Mike Frysinger <vapier@gentoo.org>
182
183 * configure.ac (SIM_AC_OPTION_ENVIRONMENT): Delete call.
184 * configure: Regenerate.
185
99d8e879
MF
1862016-01-10 Mike Frysinger <vapier@gentoo.org>
187
188 * configure: Regenerate.
189
35656e95
MF
1902016-01-10 Mike Frysinger <vapier@gentoo.org>
191
192 * configure: Regenerate.
193
347fe5bb
MF
1942016-01-10 Mike Frysinger <vapier@gentoo.org>
195
196 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
197 * configure: Regenerate.
198
22be3fbe
MF
1992016-01-10 Mike Frysinger <vapier@gentoo.org>
200
201 * configure: Regenerate.
202
0dc73ef7
MF
2032016-01-10 Mike Frysinger <vapier@gentoo.org>
204
205 * configure: Regenerate.
206
936df756
MF
2072016-01-09 Mike Frysinger <vapier@gentoo.org>
208
209 * config.in, configure: Regenerate.
210
2e3d4f4d
MF
2112016-01-06 Mike Frysinger <vapier@gentoo.org>
212
213 * interp.c (sim_open): Mark argv const.
214 (sim_create_inferior): Mark argv and env const.
215
9bbf6f91
MF
2162016-01-04 Mike Frysinger <vapier@gentoo.org>
217
218 * configure: Regenerate.
219
77cf2ef5
MF
2202016-01-03 Mike Frysinger <vapier@gentoo.org>
221
222 * interp.c (sim_open): Update sim_parse_args comment.
223
34fed699
MF
2242016-01-03 Mike Frysinger <vapier@gentoo.org>
225
226 * interp.c (count_argc): Delete.
227 (trap): Change count_argc to countargv.
228
0cb8d851
MF
2292016-01-03 Mike Frysinger <vapier@gentoo.org>
230
231 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
232 * configure: Regenerate.
233 * interp.c (host_little_endian): Change CURRENT_HOST_BYTE_ORDER
234 to HOST_BYTE_ORDER.
235
1ac72f06
MF
2362016-01-02 Mike Frysinger <vapier@gentoo.org>
237
238 * configure: Regenerate.
239 * interp.c (target_little_endian): Change LITTLE_ENDIAN to
240 BFD_ENDIAN_LITTLE.
241 (host_little_endian): Likewise.
242
e1211e55
MF
2432015-12-30 Mike Frysinger <vapier@gentoo.org>
244
245 * wrapper.c (sim_store_register): Rename to ...
246 (sh_reg_store): ... this.
247 (sim_fetch_register): Rename to ...
248 (sh_reg_fetch): ... this.
249 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
250
5e744ef8
MF
2512015-12-27 Mike Frysinger <vapier@gentoo.org>
252
253 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
254
1b393626
MF
2552015-12-26 Mike Frysinger <vapier@gentoo.org>
256
257 * config.in, configure: Regenerate.
258
6cc98856
MF
2592015-11-21 Mike Frysinger <vapier@gentoo.org>
260
261 * gencode.c (tab): Pass sd into trap calls.
262 * interp.c (prog_argv, callback): Delete.
263 (parse_and_set_memory_size): Add SIM_DESC arg.
264 (trap): Declare callback and prog_argv.
265 (sim_resume): Declare callback.
266 (sim_info): Change callback->printf_filtered calls to sim_io_printf.
267 (sim_open): Delete callback assignment. Pass sd to
268 parse_and_set_memory_size.
269 (parse_and_set_memory_size): Change callback->printf_filtered call
270 to sim_io_printf.
271 (sim_create_inferior): Delete prog_argv assignment.
272 (sim_do_command): Change callback->printf_filtered calls to
273 sim_io_printf. Pass sd to parse_and_set_memory_size.
274
797eee42
MF
2752015-11-15 Mike Frysinger <vapier@gentoo.org>
276
277 * Makefile.in (SIM_OBJS): Delete sim-stop.o.
278
6e4f085c
MF
2792015-11-14 Mike Frysinger <vapier@gentoo.org>
280
281 * interp.c (sim_close): Delete.
282
8d0978fb
MF
2832015-06-23 Mike Frysinger <vapier@gentoo.org>
284
285 * configure: Regenerate.
286
a3487082
MF
2872015-06-12 Mike Frysinger <vapier@gentoo.org>
288
289 * configure: Regenerate.
290
306f4178
MF
2912015-06-12 Mike Frysinger <vapier@gentoo.org>
292
293 * configure: Regenerate.
294
20bca71d
MF
2952015-04-18 Mike Frysinger <vapier@gentoo.org>
296
297 * sim-main.h (SIM_CPU): Delete.
298
7e83aa92
MF
2992015-04-18 Mike Frysinger <vapier@gentoo.org>
300
301 * sim-main.h (sim_cia): Delete.
302
034685f9
MF
3032015-04-17 Mike Frysinger <vapier@gentoo.org>
304
305 * sim-main.h (CIA_GET, CIA_SET): Delete.
306
27b97b40
MF
3072015-04-17 Mike Frysinger <vapier@gentoo.org>
308
309 * interp.c (sh_pc_get, sh_pc_set): New functions.
310 (sim_open): Call CPU_PC_FETCH & CPU_PC_STORE for all cpus.
311
78e9aa70
MF
3122015-04-15 Mike Frysinger <vapier@gentoo.org>
313
314 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
315 * sim-main.h (STATE_CPU): Delete.
316
bf12d44e
MF
3172015-04-13 Mike Frysinger <vapier@gentoo.org>
318
319 * configure: Regenerate.
320
122bbfb5
MF
3212015-04-06 Mike Frysinger <vapier@gentoo.org>
322
323 * Makefile.in (SIM_OBJS): Delete sim-engine.o.
324
aadc9410
MF
3252015-03-31 Mike Frysinger <vapier@gentoo.org>
326
327 * config.in, configure: Regenerate.
328
62454d3d
MF
3292015-03-28 Mike Frysinger <vapier@gentoo.org>
330
331 * Makefile.in (SIM_RUN_OBJS, SIM_EXTRA_CFLAGS): Delete.
332 (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
333 * interp.c: Delete run-sim.h include. Include sim-main.h, sim-base.h,
334 and sim-options.h.
335 (SEXT, SEXT32): Undefine.
336 (sim_write): Delete prototype.
337 (regstacktype, saved_state_type): Move to sim-main.h.
338 (target_little_endian): Replace with CURRENT_TARGET_BYTE_ORDER.
339 (host_little_endian): Replace with CURRENT_HOST_BYTE_ORDER.
340 (sim_kind, myname, tracing, sim_stop, sim_trace, sim_set_profile,
341 sim_set_profile_size, sim_load, sim_set_callbacks,
342 sim_complete_command): Delete.
343 (sim_size): Mark static.
344 (init_pointers): Delete host_little_endian setup.
345 (sim_resume): Delete tracing check.
346 (free_state): New cleanup function.
347 (sim_open): Rewrite to use new common logic.
348 (sim_create_inferior): Call init_dsp.
349 * sim-main.h: New file.
350 * tconfig.h: Delete file.
351
5fa71a1b
MF
3522015-03-28 Mike Frysinger <vapier@gentoo.org>
353
354 * gencode.c (ppi_gensim): Convert old style prototype with ppi_insn.
355 * interp.c: Include ctype.h and run-sim.h.
356 [HAVE_TIME_H]: Include time.h
357 [HAVE_SYS_TIME_H]: Include sys/time.h
358 [!_WIN32]: Include utime.h and sys/wait.h.
359 (set_fpscr1, raise_exception, raise_buserror, get_dr, set_dr, set_sr,
360 do_rdat, do_wdat, process_wlat_addr, process_wwat_addr,
361 process_wbat_addr, process_rlat_addr, process_rwat_addr,
362 process_rbat_addr, IOMEM, get_now, now_persec, swapout, swapout16,
363 ptr, strswaplen, strnswap, dmul, macw, macl, get_loop_bounds_ext,
364 get_loop_bounds, sim_size, init_dsp, init_pointers, dump_profile,
365 gotcall, sim_stop, sim_write, sim_read, sim_store_register,
366 sim_fetch_register, sim_trace, sim_stop_reason, sim_info,
367 sim_set_profile, sim_set_profile_size, sim_open,
368 parse_and_set_memory_size, sim_close, sim_load, sim_create_inferior,
369 sim_do_command, sim_set_callbacks): Convert old style prototype.
370 (fail): Delete unused function.
371 (wlat_fast, wwat_fast, wbat_fast, rlat_fast, rwat_fast, rbat_fast):
372 Delete unused prototypes.
373 (wlat_fast, wwat_fast, wbat_fast, rlat_fast, rwat_fast, rbat_fast,
374 swap, swap16):
375 Convert old style prototype and move INLINE before the type.
376 (trap): Convert old style prototype. Add casts to wait and sim_write
377 calls.
378 (div1): Convert old style prototype. Change return to void.
379 (do_long_move_insn, do_blog_insn, fsca_s, fsrra_s, mcalloc): Mark
380 static.
381 (sim_resume): Convert old style prototype. Align printf format and
382 args.
383
02131c7f
MF
3842015-03-28 Mike Frysinger <vapier@gentoo.org>
385
386 * gencode.c (ppi_gensim): Add missing */. Change case 4 to case 5.
387
ed4d32c2
MF
3882015-03-28 Mike Frysinger <vapier@gentoo.org>
389
390 * Makefile.in (gencode): Add $(BUILD_CFLAGS), $(BUILD_LDFLAGS),
391 and $(WARN_CFLAGS).
392 * gencode.c: Include ctype.h, stdlib.h, string.h, and unistd.h.
393 (struct op): Mark members const.
394 (tab): Mark static.
395 (nibble_type_list): Mark const.
396 (arg_type_list): Mark const.
397 (make_enum_list): Delete unused func.
398 (qfunc, expand_opcode, dumptable, expand_ppi_code): Convert old
399 style prototype and mark args const.
400 (sorttab, gengastab, conflict_warn, filltable, expand_ppi_movxy,
401 gensim, ppi_filltable): Convert old style prototype.
402 (gensim_caselist): Convert old style prototype. Mark local
403 variables s and r const.
404 (gendefines): Convert old style prototype. Mark s const. Move
405 tolower call into printf statement.
406 (ppi_gensim): Convert old style prototype. Mark local variable
407 s const.
408 (main): Convert old style prototype. Change printf %d to %zu.
409
6d89786c
MF
4102015-03-28 Mike Frysinger <vapier@gentoo.org>
411
412 * config.in, configure: Regenerate.
413 * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT,
414 SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT,
415 SIM_AC_OPTION_INLINE, SIM_AC_OPTION_WARNINGS.
416
ae7d0cac
MF
4172015-03-16 Mike Frysinger <vapier@gentoo.org>
418
419 * config.in, configure: Regenerate.
420 * tconfig.in: Rename file ...
421 * tconfig.h: ... here.
422
465fb143
MF
4232015-03-14 Mike Frysinger <vapier@gentoo.org>
424
425 * Makefile.in (SIM_EXTRA_CFLAGS): Set to
426 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
427 (SIM_RUN_OBJS): Set to run.o.
428
5cddc23a
MF
4292015-03-14 Mike Frysinger <vapier@gentoo.org>
430
431 * configure.ac (AC_CHECK_HEADERS): Delete.
432 * aclocal.m4, configure: Regenerate.
433
57df9adf
OE
4342014-10-14 Oleg Endo <olegendo@gcc.gnu.org> (tiny patch)
435
436 * gencode.c (fabs, fneg): Implement as integer operation
437 instead of using the FP_UNARY macro.
438
2974be62
AM
4392014-08-19 Alan Modra <amodra@gmail.com>
440
441 * configure: Regenerate.
442
faa743bb
RM
4432014-08-15 Roland McGrath <mcgrathr@google.com>
444
445 * configure: Regenerate.
446 * config.in: Regenerate.
447
60d847df
MF
4482014-03-10 Mike Frysinger <vapier@gentoo.org>
449
450 * interp.c (parse_and_set_memory_size): Add const to str.
451 (sim_do_command): Add const to cmd and sms_cmd.
452
b2b255bd
MF
4532014-03-05 Mike Frysinger <vapier@gentoo.org>
454
455 * interp.c (sim_load): Add const to prog.
456
ef3e8cf7
MF
4572014-02-17 Mike Frysinger <vapier@gentoo.org>
458
459 PR gdb/16450
460 * interp.c (control_c): Delete.
461 (sim_resume): Delete signal(SIGINT) handling.
462
bf3d9781
AM
4632013-09-23 Alan Modra <amodra@gmail.com>
464
465 * configure: Regenerate.
466
31e6ad7d
MF
4672013-06-03 Mike Frysinger <vapier@gentoo.org>
468
469 * aclocal.m4, configure: Regenerate.
470
5f3ef9d0
JB
4712012-06-15 Joel Brobecker <brobecker@adacore.com>
472
473 * config.in, configure: Regenerate.
474
2232061b
MF
4752012-03-24 Mike Frysinger <vapier@gentoo.org>
476
477 * aclocal.m4, config.in, configure: Regenerate.
478
f95586a4
KB
4792012-02-16 Kevin Buettner <kevinb@redhat.com>
480
481 * interp.c (MA): Adjust cast to avoid warning on 64-bit hosts.
482
483 * interp.c (sim_store_register, sim_fetch_register): Return
484 length, not -1.
485
db2e4d67
MF
4862011-12-03 Mike Frysinger <vapier@gentoo.org>
487
488 * aclocal.m4: New file.
489 * configure: Regenerate.
490
9c082ca8
MF
4912011-10-17 Mike Frysinger <vapier@gentoo.org>
492
493 * configure.ac: Change include to common/acinclude.m4.
494
6ffe910a
MF
4952011-10-17 Mike Frysinger <vapier@gentoo.org>
496
497 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
498 call. Replace common.m4 include with SIM_AC_COMMON.
499 * configure: Regenerate.
500
af9f7da7
MF
5012011-04-16 Mike Frysinger <vapier@gentoo.org>
502
503 * interp.c (sim_complete_command): New stub function.
504
5558e7e6
MF
5052010-04-14 Mike Frysinger <vapier@gentoo.org>
506
507 * interp.c (sim_write): Add const to buffer arg.
508
22e041e2
MM
5092010-01-12 Masaki Muranaka <monaka@monami-software.com>
510
511 * interp.c: Don't include sysdep.h.
512 Include stdio.h and errno.h.
513 Include string.h strings.h stdlib.h sys/stat.h if present.
514
3725885a
RW
5152010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
516
517 * configure: Regenerate.
518
d6416cdc
RW
5192009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
520
81ecdfbb
RW
521 * config.in: Regenerate.
522 * configure: Likewise.
523
d6416cdc
RW
524 * configure: Regenerate.
525
b5bd9624
HPN
5262008-07-11 Hans-Peter Nilsson <hp@axis.com>
527
528 * configure: Regenerate to track ../common/common.m4 changes.
529 * config.in: Ditto.
530
6efef468 5312008-06-06 Vladimir Prus <vladimir@codesourcery.com>
72f4393d
L
532 Daniel Jacobowitz <dan@codesourcery.com>
533 Joseph Myers <joseph@codesourcery.com>
6efef468
JM
534
535 * configure: Regenerate.
536
f3876f69
AS
5372008-02-04 Antony King <antony.king@st.com>
538
539 * interp.c (macl): Fix non-portable implementation.
540
4d439271
DP
5412007-10-08 Andrew Stubbs <andrew.stubbs@st.com>
542
543 * gencode.c (tab): Add RAISE_EXCEPTION_IF_IN_DELAY_SLOT to the
544 definition of PC relative 'mov.l'/'mov.w' and also 'mova'.
545
6a1754a3
DJ
5462007-03-02 Andrew Stubbs <andrew.stubbs@st.com>
547
548 * gencode.c (tab): Correct pre-decrement instructions when m == n.
549
edc5d9ec
HPN
5502006-12-21 Hans-Peter Nilsson <hp@axis.com>
551
552 * acconfig.h: Remove.
553 * config.in: Regenerate.
554
e85e3205
RE
5552006-06-13 Richard Earnshaw <rearnsha@arm.com>
556
557 * configure: Regenerated.
558
2f0122dc
DJ
5592006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
560
561 * configure: Regenerated.
562
20e95c23
DJ
5632006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
564
565 * configure: Regenerated.
566
72a37d8d
AS
5672005-11-10 Andrew Stubbs <andrew.stubbs@st.com>
568
569 * interp.c (sim_memory_size): Use same amount of memory on Windows as
570 elsewhere.
571
6a8492b5
JR
5722005-09-19 J"orn Rennecke <joern.rennecke@st.com>
573
574 * interp.c (<sys/mman.h>): Include.
575 (mcalloc): New function / macro.
576 (mfree): New macro.
577 (sim_size): Use mcalloc and mfree.
578
63bee803
JR
5792005-08-02 J"orn Rennecke <joern.rennecke@st.com>
580
581 * interp.c (strswaplen): Add one for '\0' delimiter.
582
195b8a57
DJ
5832005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
584
585 * gencode.c (tab): Avoid lvalue casts. Suggested by
586 Ralf Corsepius <ralf.corsepius@rtems.org>.
587
53f541af
JL
5882005-04-12 Jonathan Larmour <jifl@eCosCentric.com>
589
590 * gencode.c (tab): Avoid inserting code before variables all declared.
591
2b193c4a
MK
5922005-03-23 Mark Kettenis <kettenis@gnu.org>
593
594 * configure: Regenerate.
595
35695fd6
AC
5962005-01-14 Andrew Cagney <cagney@gnu.org>
597
598 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
599 explicit call to AC_CONFIG_HEADER.
600 * configure: Regenerate.
601
f0569246
AC
6022005-01-12 Andrew Cagney <cagney@gnu.org>
603
604 * configure.ac: Update to use ../common/common.m4.
605 * configure: Re-generate.
606
38f48d72
AC
6072005-01-11 Andrew Cagney <cagney@localhost.localdomain>
608
609 * configure: Regenerated to track ../common/aclocal.m4 changes.
610
b7026657
AC
6112005-01-07 Andrew Cagney <cagney@gnu.org>
612
613 * configure.ac: Rename configure.in, require autoconf 2.59.
614 * configure: Re-generate.
615
379832de
HPN
6162004-12-08 Hans-Peter Nilsson <hp@axis.com>
617
618 * configure: Regenerate for ../common/aclocal.m4 update.
619
ae0a84af
CV
6202004-09-08 DJ Delorie <dj@redhat.com>
621
622 Commited by Corinna Vinschen <vinschen@redhat.com>
623 * gencode.c (movua.l): Compensate for endianness.
624
6252004-09-08 Corinna Vinschen <vinschen@redhat.com>
626
627 * interp.c (RAISE_EXCEPTION_IF_IN_DELAY_SLOT): New macro.
628 (in_delay_slot): New flag variable.
629 (Delay_Slot): Set in_delay_slot.
630 (sim_resume): Reset in_delay_slot after leaving code switch.
631 * gencode.c (op tab): Call RAISE_EXCEPTION_IF_IN_DELAY_SLOT for all
632 instructions not allowed in delay slots.
633
6342004-09-08 Michael Snyder <msnyder@redhat.com>
635
636 Commited by Corinna Vinschen <vinschen@redhat.com>
637 Introduce SH2a support.
638 * interp.c: Change type of jump table to short. Add various macros.
639 (sim_load): Save the bfd machine code.
640 (sim_create_inferior): Ditto.
641 (union saved_state_type): Add tbr, ibnr and ibcr registers.
642 Move bfd_mach to end of struct. Add regstack pointer.
643 (init_dsp): Don't swap contents of sh_dsp_table any more. Instead
644 use it directly in its own switch statement. Allocate space for 512
645 register banks.
646 (do_long_move_insn): New function.
647 (do_blog_insn): Ditto.
648 (trap): Use trap #13 and trap #14 to set ibnr and ibcr.
649 * gencode.c: Move movx/movy insns into separate switch statement.
650 (op tab): Add sh2a insns. Reject instructions that are disabled
651 on that chip.
652 (gensim_caselist): Generate default case here instead of in caller.
653 (gensim): Generate two separate switch statements. Call
654 gensim_caselist once for each (for movsxy_tab and for tab).
655 Add tokens for r15 and multiple regs.
656 (conflict_warn, warn_conflicts): Add for debugging.
657
a134f341
JR
6582004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
659
660 * gencode.c (tab): For shad snd shld, fix result for
661 (op1 < 0 && shift_amount == 0).
662
915213a4
MS
6632004-02-02 Michael Snyder <msnyder@redhat.com>
664
665 * gencode.c (movua.l): Set thislock to 0, not n.
666
3e511797
MS
6672004-02-12 Michael Snyder <msnyder@redhat.com>
668
669 * gencode.c (table): Change from char to short.
670 (dumptable): Change generated table from char to short.
671 * interp.c (sh_jump_table, sh_dsp_table, ppi_table): char to short.
672 (init_dsp): Compute size of sh_dsp_table.
673 (sim_resume): Change jump_table from char to short.
674
4ae0cff4
MS
6752004-01-27 Michael Snyder <msnyder@redhat.com>
676
0145ab2e
MS
677 * gencode.c: (op tab): Some refs and defs fixes.
678 "fsrra" -> "fsrra <FREG_N>".
679 "sleep": replace array ref with array addr.
72f4393d 680 "trapa": ditto.
0145ab2e 681 Comment and whitespace clean-ups.
4ae0cff4 682
86bc60eb
MS
6832004-01-07 Michael Snyder <msnyder@redhat.com>
684
87acb4a7
MS
685 * gencode.c: Whitespace cleanup.
686 * interp.c: Ditto.
687
86bc60eb
MS
688 * gencode.c: Replace 'Hitachi' with 'Renesas'.
689 (op tab): Add new instructions for sh4a, DBR, SBR.
690 (expand_opcode): Add handling for new movxy combinations.
691 (gensym_caselist): Ditto.
72f4393d 692 (expand_ppi_movxy): Remove movx/movy expansions,
86bc60eb
MS
693 now handled in expand_opcode.
694 (gensym): Add some helpful macros.
695 (expand_ppi_code): Flatten loop for simplicity, tweak for 12-bit
696 instead of 8-bit table (some insns are ambiguous to 8 bits).
697 (ppi_gensim, main): Generate 12-bit instead of 8-bit ppi table.
698
699 * interp.c: Replace 'Hitachi' with 'Renesas'.
700 (union saved_state_type): Add dbr, sgr, ldst.
701 (get_loop_bounds_ext): New function.
702 (init_dsp): Add bfd_mach_sh4al_dsp.
72f4393d 703 (sim_resume): Handle extended loop bounds.
86bc60eb 704
673fc5d0
MS
7052003-12-18 Michael Snyder <msnyder@redhat.com>
706
707 * gencode.c (expand_opcode): Simplify and reorganize.
708 Eliminate "shift" parameter. Eliminate "4 bits at a time"
709 assumption. Flatten switch statement to a single level.
710 Add "eeee" token for even-numbered registers.
711 (bton): Delete.
712 (fsca): Use "eeee" token.
713 (ppi_moves): Rename to "expand_ppi_movxy". Do the ddt
714 [movx/movy] expansion here, as well as the ppi expansion.
715 (gensim_caselist): Accept 'eeee' along with 'nnnn'.
716
794cd17b
JR
7172003-11-03 J"orn Rennecke <joern.rennecke@superh.com>
718
719 * interp.c (fsca_s, fsrra_s): New functions.
720 * gencode.c (tab): Add entries for fsca and fsrra.
721 (expand_opcode): Allow variable length n / m fields.
722
8822d001
JR
7232003-10-15 J"orn Rennecke <joern.rennecke@superh.com>
724
725 * syscall.h (SYS_truncate, SYS_ftruncate): Define.
726 * interp.c (trap): Add support for SYS_ftruncate and SYS_truncate.
727
72f4393d
L
7282003-08-11 Shrinivas Atre <shrinivasa@KPITCummins.com>
729 * sim/sh/gencode.c ( tab[] ): Addition of MAC.L handler and
d1789ace 730 correction for MAC.W handler
72f4393d 731 * sim/sh/interp.c ( macl ): New Function. Implementation of
d1789ace
MS
732 MAC.L handler.
733
240f98d3
MS
7342003-08-07 Michael Snyder <msnyder@redhat.com>
735
736 * gencode.c (expand_ppi_code): Comment spelling fix.
737
437b0e60
MS
7382003-07-25 Michael Snyder <msnyder@redhat.com>
739
740 * gencode.c (pshl): Change < to <= (shift by 16 is allowed).
741 Cast argument of >> to unsigned to prevent sign extension.
72f4393d 742 (psha): Change < to <= (shift by 32 is allowed).
437b0e60 743
32fcda6a
MS
7442003-07-24 Michael Snyder <msnyder@redhat.com>
745
746 * gencode.c: Fix typo in comment.
747
e343a93a
MS
7482003-07-23 Michael Snyder <msnyder@redhat.com>
749
750 * gencode.c: A few more fix-ups of refs and defs.
751 (frchg): Raise SIGILL if in double-precision mode.
752 (ldtlb): We don't simulate cache, so this is a no-op.
753 (movsxy_tab): Correct a few bit pattern errors.
754
c13a4caa
MS
7552003-07-09 Michael Snyder <msnyder@redhat.com>
756
1b606171 757 * gencode.c (prnd): Clear LSW of result to zeros.
fcfae95c 758 * gencode.c (pmuls): Expression is mis-parenthesized.
c13a4caa
MS
759 * gencode.c (ppi_gensim): For a conditional ppi insn, if the
760 condition is false, we want to return (not break). A break
761 will take us to the end of the function where registers will
762 be updated, whereas the desired outcome is for nothing to change.
763
e53a5a69
MS
7642003-07-03 Michael Snyder <msnyder@redhat.com>
765
766 * gencode.c (movs): Fix a couple of text transpositions.
767
15dee5d5
MS
7682003-06-27 Michael Snyder <msnyder@redhat.com>
769
b939d772
MS
770 * gencode.c (op tab): Some fix-ups of refs and defs.
771 (ocbi, ocbp): Cache not simulated, but may cause memory fault.
772 (gensym_caselist): Add default case to switch statement.
773 (expand_ppi_code): Add default case to switch statement.
d2f18ae4 774 * gencode.c (op tab): Implement movca.l.
9e1d0fc1 775 * gencode.c (op movsxy_tab): Fix an error in the bit pattern.
15dee5d5
MS
776 * gencode.c (gensim_caselist): The movy instructions use
777 registers R6 and R7 (not R4 and R5 like the movx insns).
778
8dc30ef7
MS
7792003-06-27 Michael Snyder <msnyder@redhat.com>
780
0b282859
MS
781 * gencode.c (op movsxy_tab): Fix up some copy/paste errors
782 in name: s/REG_x/REG_y/.
783
8dc30ef7
MS
784 * gencode.c (op tab): Move misplaced semicolon.
785
6b4a8935
AC
7862003-02-27 Andrew Cagney <cagney@redhat.com>
787
788 * interp.c (init_dsp, sim_open, sim_create_inferior): Rename _bfd
789 to bfd.
790
fd8f4948
JR
791Fri Oct 11 16:22:28 2002 J"orn Rennecke <joern.rennecke@superh.com>
792
793 * interp.c (trap): Return int. Take extra parameter for address
794 of the trap instruction. Changed all callers.
795 Add case 33 for profiling.
796 * gencode.c (trapa): Handle trap 33 using the trap function.
797 Add read of vector for generic traps.
798
2f14585c
JR
799Wed Jul 17 19:36:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
800
801 * Makefile.in (interp.o): Depend on $(srcroot)/include/gdb/sim-sh.h.
802 * interp.c: Include "gdb/sim-sh.h".
803 (sim_store_register, sim_fetch_register): Use constants defined there.
804
dc9feb5c
JR
805Tue Jun 18 16:53:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
806
807 * interp.c (sim_resume): Fix setting of bus error for
808 instruction fetch.
809
c8cca39f
AC
8102002-06-16 Andrew Cagney <ac131313@redhat.com>
811
812 * configure: Regenerated to track ../common/aclocal.m4 changes.
813
3c25f8c7
AC
8142002-06-08 Andrew Cagney <cagney@redhat.com>
815
816 * interp.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
817
de0492b6
AO
8182001-01-30 Ben Elliston <bje@redhat.com>
819
820 * interp.c (sim_create_inferior): Record program arguments for
821 later inspection by the trap handler.
822 (count_argc): New function.
823 (prog_argv): Declare static.
824 (sim_write): Declare.
825 (trap): Implement argc, argnlen and argn system calls. Do not
826 abort on unknown system calls--simply return -1.
827 * syscall.h (SYS_argc, SYS_argnlen, SYS_argn): Define.
828
55406459
AO
8292001-01-24 Alexandre Oliva <aoliva@redhat.com>
830
831 * interp.c (trap): Implement time.
832
8f1e3ff5
BE
8332000-10-24 Ben Elliston <bje@redhat.com>
834
835 * gencode.c (tab): Delimit strings with commas where applicable.
836
eb2d80b4
AC
837Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
838
839 * configure: Regenerated to track ../common/aclocal.m4 changes.
840
63978407
JR
841Mon May 15 22:04:51 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
842
843sh-dsp support, simulator speedup by using host byte order:
844
845 * Makefile.in (interp.o): Depends on ppi.c .
846 (ppi.c): New rule.
847 * gencode.c (printonmatch, think, genopc): Deleted.
848 (MAX_NR_STUFF): Now 42.
849 (tab): Add SH-DSP CPU instructions.
850 Amalgamate ldc / stc / lds / sts instructions with similar
851 bit patterns. Fix opcodes of stc Rm_BANK,@-<REG_N>.
852 Fix semantics of lds.l @<REG_N>+,MACH (no sign extend).
853 (movsxy_tab): New array.
854 For movs, change MMMM field to GGGG, and mmmm field to MMMM.
855 Added entries for movx, movy and parallel processing insns.
856 (ppi_tab): New array.
857 (qfunc): Stabilize sort.
858 (expand_opcode): Handle [01][01]NN, [01][01]xx and [01][01]yy.
859 Handle 'M', 'G' 's' 'X', 'a', 'Y' and 'A'.
860 (dumptable): Now takes three arguments. Changed all callers.
861 Emit just one contigous jump table.
862 (filltable): Now takes an argument. Changed all callers.
863 Make index static.
864 (ppi_moves, expand_ppi_code, ppi_filltable, ppi_gensim): New functions.
865 (gensim_caselist): New function, broken out of gensim.
866 Handle opcode fields 'x', 'y', 's', 'M', 'G', 'X', 'a', and 'Y'.
867 Handle ref '9'.
868 (gensim): Handle 'N' in code field and '8' in refs field.
869 Call gensim_caselist - twice.
870 (ppi_index): New static variable.
871 (main): Unsupport default action.
872 Add dsp support for -x / -s option. Add -p option.
873 * interp.c (sh_jump_table, sh_dsp_table, ppi_table): Declare.
874 (saved_state_type): Rearrange to allow amalgamated ldc / stc /
875 lds / sts to work efficiently.
876 (target_dsp): New static variable.
877 (GBR, VBR, SSR, SPC, MACH, MACL): Reflect saved_state_type change.
878 (FPUL, Rn_BANK, SET_Rn_BANK, M, Q, S, T, SR_BL, SR_RB): Likewise.
879 (SR_MD, SR_RC, SET_SR_BIT, GET_SR, SET_RC, GET_FPSCR): Likewise.
880 (RS, RE, MOD, MOD_ME, DSP_R): Likewise.
881 (set_fpscr1): Likewise. Use target_dsp to check for dsp.
882 (MOD_MSi, SIG_BUS_FETCH): Deleted.
883 (CREG, SREG, PR, SR_MASK_DMY, SR_MASK_DMX, SR_DMY): New macros.
884 (SR_DMX, DSR, MOD_DELTA, GET_DSP_GRD): Likewise.
885 (SET_MOD): Reflect saved_state_type change. Set MOD_DELTA instead
886 of MOD_MS, and encode SR_DMY / SR_DMX into high word of MOD_ME.
887 (set_sr): Reflect saved_state_type change. Fix SR_RB handling.
888 Use SET_MOD.
889 (MA, L, TL, TB): Now controlled by ACE_FAST.
890 (SEXT32): Just cast to int.
891 (SIGN32): Fixed to only shift by 31.
892 (CHECK_INSN_PTR): SIGBUS at insn fetch now represented by insn_end 0.
893 (ppi_insn): Declare.
894 (ppi.c): Include.
895 (init_dsp): Set target_dsp. When it changes, switch end of
896 sh_jump_table with sh_dsp_table.
897 (sim_resume) Don't declare sh_jump_table0. Use sh_jump_table instead.
898 Don't Declare PR if it's #defined.
899 Fix single-stepping (Was broken in Mar 6 16:59:10 patch).
900 (sim_store_register, sim_read_register): Translate accesses to
901 reflect saved_state_type change.
902
903 * interp.c (set_sr): Set sr.
904 (SET_RC, MOD, MOD_MS, MOD_ME, SET_MOD, MOD_MS, MOD_ME): New macros.
905 (set_fpscr1): Don't bank-switch fpu registers when simulating sh-dsp.
906 (DSP_R): Fix definition.
907 (sim_resume): Remove outdated SET_SR use.
908
909 * interp.c (saved_state): New members for struct member asregs:
910 rs, re, insn_end, xram_start, yram_start.
911 (struct loop_bounds): New struct.
912 (SKIP_INSN): New macro.
913 (get_loop_bounds): New function.
914 (endianw): Renamed to global_endianw.
915 (maskw): negated bits.
916 (PC): Now insn_ptr.
917 (SR_MASK_RC, SR_RC_INCREMENT, SR_RC, RAISE_EXCEPTION): New macros.
918 (RS, RE, DSP_R, DSP_GRD, A1, A0, X0, X1, Y0, Y1, M0, A1G): Likewise.
919 (M1, A0G, RIAT, PT2H, PH2T, SET_NIP, CHECK_INSN_PTR): Likewise.
920 (SIG_BUS_FETCH): Likewise
921 (raise_exception, riat_fast): New functions.
922 (raise_buserror, sim_stop): Use raise_exception.
923 (PROCESS_SPECIAL_ADDRESS): Use xram_start / yram_start.
924 (BUSERROR, WRITE_BUSERROR, READ_BUSERROR):
925 Reverse sense of mask argument.
926 (FP_OP, set_dr): Use RAISE_EXCEPTION.
927 (wlat_fast, wwat_fast, wbat_fast, rlat_fast, rwat_fast, rbat_fast):
928 Declare. Remove redundant masking.
929 (wwat_fast, rwat_fast): Add argument endianw. Changed callers.
930 (MA): Updated for change pc -> PC.
931 (Delay_Slot): Use RIAT.
932 (empty): Deleted.
933 (trap): Remove argument little_endian. Add argument endianw.
934 Changed all callers. Use raise_exception.
935 (macw): Add argument endainw. Changed all callers.
936 (init_dsp): New function, extended after broken out of init_pointers.
937 (sim_resume): Replace pc with insn_ptr. Replace little_endian with
938 endianw. Replace nia with nip. Reverse sense of maskb / maskw /
939 maskl. Implement logic for zero-overhead loops. Don't try to
940 interpret garbage when getting a SIGBUS at insn fetch.
941 (sim_open): Call init_dsp.
942 * gencode.c (tab): Use SET_NIP instead of nia = . Use PH2T / PT2H /
943 RAISE_EXCEPTION where appropriate.
944 Add extra cycles for brai, braf , bsr, bsrf, jmp, jsr.
945
946 * interp.c (sim_store_register, sim_fetch_register):
947 Do proper endianness switch.
948
949 * interp.c (saved_state_type): New members for struct member asregs:
950 xymem_select, xmem, ymem, xmem_offset, ymem_offset.
951 (special_address): Delete.
952 (BUSERROR): Now a two-argument predicate.
953 (PROCESS_SPECIAL_ADDRESS, WRITE_BUSERROR, READ_BUSERROR): New macros.
954 (wlat_little, wwat_little, wbat_any, wlat_big, wwat_big): Delete.
955 (process_wlat_addr, process_wwat_addr): New functions.
956 (process_wbat_addr, process_rlat_addr, process_rwat_addr): Likewise.
957 (process_rbat_addr): Likewise.
958 (wlat_fast, wwat_fast, wbat_fast): Use WRITE_BUSERROR.
959 (rlat_little, rwat_little, rbat_any, rlat_big, rwat_big): Delete.
960 (rlat_fast, rwat_fast, rbat_fast): Use READ_BUSERROR.
961 (RWAT, RLAT, RBAT, WWAT, WLAT, WBAT): Delete SLOW versions.
962 (do_rdat, trap): Delete SLOW code.
963 (SEXT32, SIGN32): New macros.
964 (swap, swap16): Now integer in - integer out. Changed all callers.
965 (strswaplen, strnswap): Delete SLOW versions.
966 (init_pointers): Initialize dsp memory selection (preliminary).
967 (sim_store_register, sim_fetch_register): Use swap instead of
968 big / little endian read / write functions.
969
970 * interp.c (maskl): Deleted.
971 (endianw, endianb): New variables.
972 (special_address): Now inline.
973 (bp_holder): Put raising of buserror there, rename to:
974 (raise_buserror).
975 (BUSERROR): Now yields a value. Changed all users.
976 (wbat_big): Delete.
977 (wlat_fast, wwat_fast, wbat_fast): New functions.
978 (rlat_fast, rwat_fast, rbat_fast): Likewise.
979 (RWAT, RLAT, RBAT, WWAT, WLAT, WBAT): Use new functions.
980 (do_rdat, do_wdat): Likewise. Take maskl argument instead of
981 little_endian one. Changed caller macros.
982 (swap, swap16): Use w[rw]lat_big / w[rw]lat_little directly.
983 (strswaplen, strnswap): New functions.
984 (trap): Use them to fix up endian mismatches;
985 disable SYS_execve and SYS_execv; fix double address translation for
986 SYS_pipe and SYS_stat.
987 (sym_write, sym_read): Add endianness translation.
988 (sym_store_register, sym_fetch_register): Add maskl local variable.
989 (sim_open): Set endianw and endianb.
990
d4f3574e
SS
991Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
992
993 * configure: Regenerated to track ../common/aclocal.m4 changes.
994
104c1213
JM
995Wed Aug 25 07:55:23 1999 Brendan Kehoe <brendan@cygnus.com>
996
997 * gencode.c (fcnvds <DR_N>,FPUL): Rewrite to use a local anonymous
998 union type, instead of casting to an int* then a float*.
999 (fcnvsd FPUL,<DR_N>): Likewise.
1000 (flds <FREG_N>,FPUL): Likewise.
1001 (fsts FPUL,<FREG_N>): Likewise.
1002
cd0fc7c3
SS
10031999-05-08 Felix Lee <flee@cygnus.com>
1004
1005 * configure: Regenerated to track ../common/aclocal.m4 changes.
72f4393d 1006
7a292a7a
SS
10071999-04-02 Keith Seitz <keiths@cygnus.com>
1008
1009 * interp.c (POLL_QUIT_INTERVAL): Define. Used to tweak the
1010 frequency at which the poll_quit callback is called.
1011 (sim_resume): Use POLL_QUIT_INTERVAL instead of a
1012 hard-coded value.
1013
c906108c
SS
1014Thu Sep 10 02:16:39 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1015
1016 * interp.c (saved_state.asregs): Add new member pad_dummy.
1017 (sim_store_register, sim_fetch_regsiter): Add 1 to rn for use
1018 as index into saved_state.asints.
1019
1020Mon Jun 29 19:35:24 1998 Jason Molenda (crash@bugshack.cygnus.com)
1021
1022 * interp.c (sim_open): set endianness based on the ABFD if a -E
1023 option is not present and we have an ABFD.
1024
1025Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
1026
72f4393d 1027 * configure: Regenerated to track ../common/aclocal.m4 changes.
c906108c
SS
1028
1029Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
1030
1031 * configure: Regenerated to track ../common/aclocal.m4 changes.
1032 * config.in: Ditto.
1033
1034Sun Apr 26 15:19:48 1998 Tom Tromey <tromey@cygnus.com>
1035
1036 * acconfig.h: New file.
1037 * configure.in: Reverted change of Apr 24; use sinclude again.
1038
1039Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
1040
1041 * configure: Regenerated to track ../common/aclocal.m4 changes.
1042 * config.in: Ditto.
1043
1044Fri Apr 24 11:18:35 1998 Tom Tromey <tromey@cygnus.com>
1045
1046 * configure.in: Don't call sinclude.
1047
1048Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
1049
1050 * configure: Regenerated to track ../common/aclocal.m4 changes.
1051
1052Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
1053
1054 * configure: Regenerated to track ../common/aclocal.m4 changes.
1055
1056Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
1057
1058 * configure: Regenerated to track ../common/aclocal.m4 changes.
1059
1060Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
1061
1062 * configure: Regenerated to track ../common/aclocal.m4 changes.
1063
1064Tue Feb 17 12:49:44 1998 Andrew Cagney <cagney@b1.cygnus.com>
1065
1066 * interp.c (sim_fetch_register, sim_store_register): Pass in
1067 length parameter. Return -1.
1068
1069Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
1070
1071 * configure: Regenerated to track ../common/aclocal.m4 changes.
1072
1073Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
1074
1075 * configure: Regenerated to track ../common/aclocal.m4 changes.
1076
1077Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
1078
1079 * configure: Regenerated to track ../common/aclocal.m4 changes.
1080
1081Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
1082
1083 * configure: Regenerated to track ../common/aclocal.m4 changes.
1084 * config.in: Ditto.
1085
1086Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
1087
1088 * configure: Regenerated to track ../common/aclocal.m4 changes.
1089
1090Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1091
1092 * interp.c (sim_load): Pass lma_p and sim_write args to
1093 sim_load_file.
1094
1095Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1096
1097 * configure: Regenerated to track ../common/aclocal.m4 changes.
1098
1099Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
1100
1101 * configure: Regenerated to track ../common/aclocal.m4 changes.
1102
1103Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1104
1105 * configure: Regenerated to track ../common/aclocal.m4 changes.
1106
1107Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1108
1109 * configure: Regenerated to track ../common/aclocal.m4 changes.
1110
1111Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
1112
1113 * configure: Regenerated to track ../common/aclocal.m4 changes.
1114
1115Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1116
1117 * configure: Regenerated to track ../common/aclocal.m4 changes.
1118
1119Tue Sep 9 20:52:21 1997 Felix Lee <flee@cygnus.com>
1120
1121 * interp.c (sim_resume): poll_quit() at least once per call;
1122 otherwise gdb can loop sim_resume() uninterruptably.
1123
1124Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
1125
1126 * configure: Regenerated to track ../common/aclocal.m4 changes.
1127
1128Tue Sep 2 13:15:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
1129
1130 * gencode.c (tab): Order instructions according to SH3 document.
1131
1132Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1133
1134 * configure: Regenerated to track ../common/aclocal.m4 changes.
1135 * config.in: Ditto.
1136
1137Tue Aug 26 10:41:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
1138
1139 * interp.c (sim_kill): Delete.
1140 (sim_create_inferior): Add ABFD argument.
1141 (sim_load): Move setting of PC from here.
1142 (sim_create_inferior): To here.
1143
1144Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1145
1146 * configure: Regenerated to track ../common/aclocal.m4 changes.
1147 * config.in: Ditto.
1148
1149Mon Aug 25 16:17:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
1150
1151 * interp.c (sim_open): Add ABFD argument.
1152
1153Mon Jun 23 15:49:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
1154
1155 * interp.c (get_dr): Avoid SIGFPE by moving integers instead of
1156 FP's around.
1157 (set_dr): Ditto.
72f4393d 1158
7a292a7a
SS
1159Mon Jun 23 15:02:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
1160
1161 * interp.c (XD, SET_XD): Delete.
1162 (XF, SET_XF, XD_TO_XF): Define, move around registers in either
1163 FP bank.
72f4393d 1164
7a292a7a
SS
1165 * gencode.c (fmov): Update.
1166
c906108c
SS
1167Sun Jun 22 19:33:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
1168
1169 * interp.c (set_fpscr1): From J"orn Rennecke
1170 <amylaar@cygnus.co.uk>, Fix typo. Ditto for comment.
72f4393d 1171
7a292a7a
SS
1172Tue Aug 12 00:19:11 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1173
1174 * interp.c (special_address): New function.
1175 (BUSERROR): Call it. Added parameters bits_written and data.
1176 Changed all callers.
1177 * gencode.c (tab): Fixed ocbwb and pref.
1178
1179Fri Jun 20 22:03:18 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1180
1181 * interp.c (do_wdat, do_wdat): Fix bug in register number calculation.
1182
c906108c
SS
1183Thu Jun 19 00:28:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
1184
1185 * interp.c (sim_create_inferior): Clear registers each time an
1186 inferior is started.
1187
7a292a7a
SS
1188Mon Jun 16 14:01:55 1997 Andrew Cagney <cagney@b1.cygnus.com>
1189
1190 * interp.c (*FP, FP_OP, FP_CMP, FP_UNARY): Provide a hook for
1191 when a host doesn't support IEEE FP.
1192 (*DP): Provide alternative definition that supports 64bit floating
1193 point.
1194 (target_little_endian): Combine little_endian and little_endian_p.
1195 (saved_state_type): Make fpscr and sr simple integers.
1196 (SET_FPSCR, GET_FPSCR): Use macros to update fpscr register.
1197 (set_fpscr1): New function. Handle swapping when PR / FR bits
1198 changed. Call via *_FPSCR macro.
1199 (SET_SR*, GET_SR*): Use macro's to access the SR bits - avoids
1200 endian problems.
1201
1202 * gencode.c (tab): Update.
72f4393d 1203
c906108c
SS
1204Sun Jun 15 15:22:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
1205
1206 * gencode.c (main): Perform basic checks on tab entries.
1207
1208 * Makefile.in (gencode): Always compile with -g.
1209
1210Sat Jun 14 13:45:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
1211
1212 * gencode.c (gensim): Move ref checking code to before `stuff'.
1213 For branches with delay slots refs were not being checked.
1214
1215 * interp.c (sim_resume): Use nia to specify the next instruction
1216 address instead of overloading pc.
1217 (C): Delete definiton - refer to cycles directly.
1218 (SEXT12): New macro - sign extend a 12 bit quantity.
1219 (Delay_Slot): Rename from SL.
1220
1221 * gencode.c (tab): Update/simplify.
72f4393d 1222
c906108c
SS
1223 * gencode.c (gensim): Better formatting of output code.
1224 (gensim): Replace 10 with constant MAX_NR_STUFF- define as 15.
1225 (tab): Sort alphabetically. Break `stuff' into multiple lines.
1226
1227Fri Jun 13 22:10:13 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1228
1229 * gencode.c (braf, bsrf): Fix branch destination calculation to
1230 be in accordance with the documentation.
1231
1232Fri Jun 13 15:33:53 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1233
1234 * interp.c (init_pointers): Fix little endian test.
1235
7a292a7a
SS
1236Thu Jun 5 12:56:08 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1237
1238 * interp.c (init_pointers): SH4 hardware is always WORDS_BIT_ENDIAN.
1239 * gencode (fmov from/to memory): take endian_mismatch into account
1240 for 32 bit moves too.
1241
c906108c
SS
1242Wed May 28 23:42:35 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1243
72f4393d 1244 * gencode.c (swap.b): Fix treatment of high word.
c906108c 1245
7a292a7a
SS
1246Wed May 28 23:42:35 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1247
72f4393d
L
1248 * sh/gencode.c,
1249 * interp.c: experimental SH4 support.
1250 DFmode moves are probaly broken for target little endian.
7a292a7a 1251
c906108c
SS
1252Tue May 20 10:23:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
1253
1254 * interp.c (sim_open): Add callback argument.
1255 (sim_set_callbacks): Delete SIM_DESC argument.
1256
1257Wed Apr 30 11:38:08 1997 Doug Evans <dje@canuck.cygnus.com>
1258
1259 * Makefile.in (SIM_EXTRA_CLEAN): Define.
1260 (clean targets): Delete.
1261 (sh-clean): New target.
1262
1263Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
1264
1265 * configure: Regenerated to track ../common/aclocal.m4 changes.
1266
1267Wed Apr 23 17:55:22 1997 Doug Evans <dje@canuck.cygnus.com>
1268
1269 * tconfig.in: New file.
1270 * interp.c (sim_open): Handle missing arg to -E.
1271
1272Tue Apr 22 08:55:35 1997 Stu Grossman (grossman@critters.cygnus.com)
1273
1274 * Makefile.in: Add clean targets.
1275
1276Fri Apr 18 18:57:04 1997 Stu Grossman (grossman@critters.cygnus.com)
1277
1278 * interp.c: Include float.h and define SIGTRAP if _WIN32.
1279 WIN32 -> _WIN32.
1280 * (trap): Do do SYS_chown for _WIN32.
1281
1282Fri Apr 18 13:33:09 1997 Doug Evans <dje@canuck.cygnus.com>
1283
1284 * interp.c (sim_resume): Fix argument to poll_quit.
1285
1286Fri Apr 18 14:14:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
1287
1288 * interp.c (sim_stop): New function.
1289 (sim_resume): Use poll_quit for polling.
1290
1291Thu Apr 17 03:32:04 1997 Doug Evans <dje@canuck.cygnus.com>
1292
1293 * Makefile.in (SIM_OBJS): Add sim-load.o.
1294 * interp.c (target_byte_order): Delete.
1295 (sim_kind, myname, little_endian_p): New static locals.
1296 (init_pointers): Use little_endian_p instead of target_byte_order.
1297 (sim_resume): Likewise.
1298 (sim_open): Set sim_kind, myname. Set little_endian_p from -E arg.
1299 (sim_load): Return SIM_RC. New arg abfd. Call sim_load_file to
1300 load file into simulator. Set start address from bfd.
1301 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1302
1303Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1304
1305 * configure: Regenerated to track ../common/aclocal.m4 changes.
1306 * config.in: Ditto.
1307
1308Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
1309
1310 * interp.c (sim_open): New arg `kind'.
1311
1312 * configure: Regenerated to track ../common/aclocal.m4 changes.
1313
1314Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1315
1316 * configure: Regenerated to track ../common/aclocal.m4 changes.
1317
1318Wed Mar 19 09:34:36 1997 Fred Fish <fnf@cygnus.com>
1319
1320 * interp.c (sim_do_command): Check for NULL command or empty
1321 string and handle it the same as a "help" command. Use callback
1322 to print error message for unrecognized commands. Replace
1323 hardcoded tab in literal string with a \t. Other minor code
1324 cleanup.
1325
1326Wed Mar 19 01:14:00 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1327
1328 * configure: Regenerated to track ../common/aclocal.m4 changes.
1329
1330Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1331
1332 * configure: Re-generate.
1333
1334Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
1335
1336 * configure: Regenerate to track ../common/aclocal.m4 changes.
1337
1338Thu Mar 13 13:00:00 1997 Doug Evans <dje@canuck.cygnus.com>
1339
1340 * interp.c (sim_open): New SIM_DESC result. Argument is now
1341 in argv form.
1342 (other sim_*): New SIM_DESC argument.
1343
1344Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
1345
1346 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
1347 COMMON_{PRE,POST}_CONFIG_FRAG instead.
1348 * configure.in: sinclude ../common/aclocal.m4.
1349 * configure: Regenerated.
1350
1351Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
1352
1353 * configure configure.in Makefile.in: Update to new configure
1354 scheme which is more compatible with WinGDB builds.
1355 * configure.in: Improve comment on how to run autoconf.
1356 * configure: Re-run autoconf to get new ../common/aclocal.m4.
1357 * Makefile.in: Use autoconf substitution to install common
1358 makefile fragment.
1359
1360Wed Nov 20 02:04:32 1996 Doug Evans <dje@canuck.cygnus.com>
1361
1362 * Makefile.in: Delete stuff moved to ../common/Make-common.in.
1363 (SIM_OBJS,SIM_EXTRA_LIBS): Define.
1364 * configure.in: Simplify using macros in ../common/aclocal.m4.
1365 Call AC_CHECK_HEADERS(unistd.h).
1366 * configure: Regenerated.
1367 * config.in: New file.
1368 * interp.c: #include "config.h". #include <unistd.h> if present.
1369 (trap): Fetch errno value with callback->get_errno.
1370
72f4393d 1371Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
c906108c
SS
1372
1373 * interp.c: Don't include windows polling code if inside simluator.
1374
1375Fri Sep 20 14:57:50 1996 Stan Shebs <shebs@andros.cygnus.com>
1376
1377 * interp.c: Minor formatting improvements.
1378 (saved_state_type): Add bank registers.
1379 (bp_holder): New function, use to break on when debugging BUSERROR.
1380 (BUSERROR): Call it if bus error occurs.
1381
1382Wed Jun 26 12:29:22 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1383
72f4393d
L
1384 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
1385 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
1386 (docdir): Removed.
1387 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1388 (AC_PROG_INSTALL): Added.
1389 * configure: Rebuilt.
c906108c
SS
1390
1391Thu May 16 15:44:29 1996 Ian Lance Taylor <ian@cygnus.com>
1392
1393 * interp.c (saved_state_type): Add memstalls field.
1394 (MA) Define macro.
1395 (sim_resume): New local variable memstalls. Add it back in to
1396 saved_state at the end of the function.
1397 (sim_info): Report memstalls.
1398 * gencode.c (tab): Add MA() to the execution string of all
1399 instructions which access memory.
1400
1401Wed Feb 21 12:16:41 1996 Ian Lance Taylor <ian@cygnus.com>
1402
1403 * configure: Regenerate with autoconf 2.7.
1404
1405Tue Dec 5 16:38:55 1995 Stu Grossman (grossman@cygnus.com)
1406
1407 * gencode.c (mac.l): Don't abort GDB if executing mac.l
1408 instruction (which is unimplemented). Generate a SIGTRAP (in the
1409 simulated target) instead.
1410
1411Mon Dec 4 12:22:24 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1412
1413 * gencode.c (tab): Added several sh3 opcodes.
1414 (think): Added printonmatch for A_SSR and A_SPC.
1415 * interp.c (SSR, SPC): Added definitions.
1416 (saved_state_type): Added ssr and spc registers.
1417
1418Wed Nov 29 12:39:27 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1419
1420 * gencode.c (tab): In shad/shld definitions, negate R[m] before
1421 the and operation instead of after. For shad delete cast. For shld
1422 use UR instead of R and delete cast.
1423
1424Fri Nov 17 12:48:55 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1425
1426 * gencode.c (tab): Add explicit NaN support for ftrc instruction.
1427
1428Wed Nov 15 11:25:27 1995 Stu Grossman (grossman@cygnus.com)
1429
1430 * interp.c: Make target_byte_order be extern to prevent SGI cc from
1431 issuing warnings about the use of common symbols.
1432
1433Tue Nov 14 15:19:43 1995 Stu Grossman (grossman@cygnus.com)
1434
1435 * gencode.c: jsr, bsr and bsrf actually save pc+4 in pr, and rts
1436 actually uses pr+0.
1437
1438Sat Oct 21 13:01:18 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1439
1440 * sh/interp.c (sim_stop_reason): Catch SIGQUIT and indicate
1441 program exited.
1442 (sim_get_quit_code): Delete.
72f4393d 1443
c906108c
SS
1444 * gencode.c (gensim): Indicate SIGILL instead of calling abort for
1445 default case.
1446
1447Mon Oct 16 18:24:03 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1448
1449 * interp.c (saved_state_type): Move FP registers to immediately
1450 after SR.
1451
1452Tue Oct 10 11:12:15 1995 Fred Fish <fnf@cygnus.com>
1453
1454 * Makefile.in (BISON): Remove macro.
1455
1456Fri Oct 6 12:08:18 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1457
1458 * interp.c (trap, case SYS_utime): Cast second arg of utime to
1459 void * to avoid compiler error.
72f4393d 1460
c906108c
SS
1461 * interp.c (callback): Remove last change. It is initialized by
1462 a sim_set_callbacks call.
72f4393d 1463
c906108c
SS
1464Thu Oct 5 14:13:29 1995 steve chamberlain <sac@slash.cygnus.com>
1465
1466 * interp.c (callback): Initialize to default callback.
1467
1468Thu Sep 28 15:26:59 1995 steve chamberlain <sac@slash.cygnus.com>
1469
1470 * run.c: Moved to ../common.
1471 * interp.c (trap): Use gdb's callback interface.
1472 * Makefile.in: Updated.
1473
1474Wed Sep 20 13:35:13 1995 Ian Lance Taylor <ian@cygnus.com>
1475
1476 * Makefile.in (maintainer-clean): New synonym for realclean.
1477
1478Wed Sep 20 09:51:50 1995 steve chamberlain <sac@slash.cygnus.com>
1479
1480 * run.c (sim_callback_write_stdout): New.
1481 * interp.c (trap): Call sim_callback_write_stdout when needed.
1482
1483Mon Sep 18 18:42:27 1995 steve chamberlain <sac@slash.cygnus.com>
1484
1485 * interp.c (trap): Remove useless code.
1486
1487Fri Sep 15 19:30:05 1995 steve chamberlain <sac@slash.cygnus.com>
1488
1489 * syscall.h: Copy from newlib.
1490
1491Thu Sep 14 19:32:59 1995 Stu Grossman (grossman@cygnus.com)
1492
1493 * gencode.c: Back up PC by 2 for breakpoints.
1494 * interp.c: Move fp regs beyond pc/pr/etc to avoid confusing GDB,
fcb38129 1495 which expect pc to immediately follow regs[].
c906108c
SS
1496
1497Fri Sep 8 14:18:13 1995 Ian Lance Taylor <ian@cygnus.com>
1498
1499 * configure.in: Define CC_FOR_BUILD. Don't call AC_PROG_INSTALL.
1500 * configure: Rebuild.
1501 * Makefile.in (INSTALL): Revert to using install.sh.
1502 (INSTALL_PROGRAM, INSTALL_DATA): Set to $(INSTALL).
1503 (INSTALL_XFORM, INSTALL_XFORM1): Restore.
1504 (CC_FOR_BUILD): Restore.
1505 (gencode): Build using $(CC_FOR_BUILD).
1506 (install): Don't install in $(tooldir).
1507
1508Thu Sep 7 15:02:31 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1509
1510 (Try to) Update to new bfd autoconf scheme.
1511 * run.c: Don't include sysdep.h.
1512 * Makefile.in (INSTALL{,_PROGRAM,_DATA}): Use autoconf computed value.
1513 (CC, CFLAGS, AR, RANLIB): Likewise.
1514 (HDEFINES, TDEFINES): Define.
1515 (CC_FOR_BUILD): Delete.
1516 (host_makefile_frag): Delete.
1517 (Makefile): Don't depend on frags.
1518 * configure.in (sysdep.h): Don't create symlink.
1519 (host_makefile_frag, frags): Deleted.
1520 (CC, CFLAGS, AR, RANLIB, INSTALL): Compute values.
1521 * configure: Regenerated.
1522
1523Thu Aug 31 12:39:07 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1524
1525 * interp.c: Include <math.h>.
1526
1527Wed Aug 30 22:05:17 1995 Jeff Law (law@snake.cs.utah.edu)
1528
1529 * Makefile.in (run): Link in math library too.
1530 * gencode.c (gensim): abort if an unknown opcode is encountered.
1531 * interp.c (FPSCR, FPUL): Define.
1532 (struct save_state): Add fields for floating point registers,
1533 FPSCR and FPUL.
1534 (sim_resume): Add 'F' for accessing floating point registers
1535 in the save state structure.
1536 * gencode.c: Add sh3e opcodes.
1537 (gensym): Define a buffer for int<->fp conversions.
1538
1539Tue Aug 22 14:16:46 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1540
1541 * interp.c (trap): Use trap vector 34 for host system interface.
1542 * gencode.c: Add 34 to conditional which determines which traps
1543 will be handled by simulator.
1544
1545Fri Aug 11 17:59:15 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1546
1547 * run.c: Include <signal.h>. Define SIGQUIT if not defined.
1548 (main): New variables reason and sigrc. After simulator exits,
1549 check to see if it exited because of a signal, and if so, then
1550 use the signal number as the return value.
1551
1552Thu Aug 3 10:45:37 1995 Fred Fish <fnf@cygnus.com>
1553
1554 * Update all FSF addresses except those in COPYING* files.
1555
1556Tue Jul 18 23:33:10 1995 Fred Fish <fnf@fishbowl>
1557
1558 * interp.c (trap): Only use SYS_execv if defined. Might be
1559 implemented as execve(arg1,arg2,0), as with Unixware 2.0.
1560 (sim_resume): In sbit initializer, cast shifted arg to unsigned
1561 to avoid signed integer overflow.
1562
1563Wed Jul 5 14:32:54 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1564
1565 * Makefile.in (clean): Remove run, libsim.a.
72f4393d 1566 (distclean, mostlyclean, realclean): Remove Makefile and
c906108c
SS
1567 autoconf files.
1568
1569 * sh.mt: Removed.
1570
1571 * Makefile.in, configure.in: converted to autoconf.
1572 * configure: New file, generated with autconf 2.4.
1573
1574Fri Jun 30 16:51:38 1995 Stan Shebs <shebs@andros.cygnus.com>
1575
1576 * interp.c (sim_open): If argument supplied, interpret as
1577 desired memory size.
1578 (parse_and_set_memory_size): New function.
1579 (sim_do_command): New function.
1580
1581Thu Jun 29 10:02:28 1995 Fred Fish <fnf@deneb.cygnus.com>
1582
1583 * interp.c (SYS_wait): Define as SYS_wait4 if available and
1584 SYS_wait is not already defined (SunOS 4.1.3 for example).
1585 (SYS_utime): Define as SYS_utimes if available and
1586 SYS_utime is not already defined.
1587
1588Thu Jun 22 17:25:57 1995 Steve Chamberlain <sac@slash.cygnus.com>
1589
1590 * interp.c: Don't include sys/times.h or sys/param.h
1591
1592Wed Jun 21 15:03:49 1995 Steve Chamberlain <sac@slash.cygnus.com>
1593
1594 * interp.c (SIGBUS, SIGTERM): Define if not.
1595 (sim_memory_size): default to 2^19 on PCs.
1596 (sim_resume): Poll for quits on win32.
1597
1598Wed May 24 16:22:48 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1599
1600 * gencode.c (op_tab): Add SH3 support.
1601
1602Wed May 24 14:07:11 1995 Steve Chamberlain <sac@slash.cygnus.com>
1603
1604 * gencode.c (tab): Add bsrf and braf.
1605
1606Mon Apr 24 15:09:49 1995 Jason Molenda (crash@cygnus.com)
1607
72f4393d 1608 * configure.in: use ../../bfd/hosts/std-host.h, not
c906108c
SS
1609 ../bfd/hosts/std-host.h (which doesn't exist).
1610
1611Mon Mar 27 10:32:34 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1612
1613 * run.c: parse arguments with getopt().
1614
1615Sun Feb 26 15:27:24 1995 Steve Chamberlain <sac@cygnus.com>
1616
1617 * configure.in: Use ../../bfd/hosts/std-host.h if specific
1618 host unavailable.
1619
1620Mon Jan 23 16:10:58 1995 Torbjorn Granlund <tege@rtl.cygnus.com>
1621
1622 * interp.c (macw): Sign extend MACH at bit 10 for non-saturating case.
1623
1624Sun Jan 22 13:55:36 1995 Torbjorn Granlund <tege@rtl.cygnus.com>
1625
1626 * gencode.c (op_tab): Make MAC.W call macw, not abort.
1627 * interp.c (macw): New function.
1628 (S): New #define.
1629
1630Sat Jan 21 15:52:30 1995 Torbjorn Granlund <tege@rtl.cygnus.com>
1631
1632 * gencode.c (op_tab): New code for ADDV and SUBV.
1633 Make MAC.L abort sicne it is not implemented.
1634
1635 * interp.c (dmul): Handle the signed case by adjusting after unsigned multiply.
1636 Get rid of __GNUC__ conditional.
1637
1638aThu Jan 19 05:50:50 1995 Torbjorn Granlund <tege@rtl.cygnus.com>
1639
1640 * gencode.c (op_tab): Also replace NEGC, and try again with SUBC.
1641 Change ADDC for symmetry.
1642
1643 * gencode.c (op_tab): Replace code for ADDC and SUBC.
1644
1645Mon Jan 9 15:43:53 1995 Stu Grossman (grossman@cygnus.com)
1646
1647 * interp.c: Remove def of INLINE. This comes from bfd.h. Also,
1648 declare IOMEM before using it.
1649
1650Wed Dec 28 21:25:31 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1651
1652 * interp.c (BUSERROR): New macro.
1653 ([r|w][bwl]at[little|big]) New functions.
1654 (sim_resume): If GO32 check for interrupt every now
1655 and again. Decrement PC if SIGBUS seen.
1656 * run.c (main): Return result of simulated _exit.
1657
1658Mon Dec 5 21:59:51 1994 Doug Evans <dje@canuck.cygnus.com>
1659
1660 * Makefile.in (gencode): Allow build in different directory.
1661
1662Wed Nov 30 17:47:13 1994 Jim Wilson <wilson@chestnut.cygnus.com>
1663
1664 * Makefile.in (gencode): Change $< to gencode.c for portability.
1665
1666Wed Nov 23 21:31:55 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1667
1668 * interp.c ([wr][bwl]at): New functions.
1669 (trap): Cope with both byte modes.
1670
1671Thu Sep 8 17:35:07 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1672
1673 * gencode.c (tab): Simulate T bit after a negc insn right.
1674 * interp.c (RSBAT): Sign extend the arg.
1675 (ACE_FAST): New macro.
1676 (sim_resume): Remove obsolete test of sim_timeout.
72f4393d 1677
c906108c
SS
1678Fri Aug 5 14:12:31 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1679
1680 * interp.c (IOMEM): New function, simulates very basic I/O area of
1681 the SH.
1682 (WBAT, RBAT) : Call I/O functions.
1683 * gencode.c (tab): Special case trapa #3.
1684
1685Mon Jun 27 18:04:54 1994 Steve Chamberlain (sac@cirdan.cygnus.com)
1686
1687 * run.c (main): Specify the file type again.
1688
1689Thu May 26 19:04:37 1994 Steve Chamberlain (sac@thepub.cygnus.com)
1690
1691 * interp.c (trap): Fix irix incompatibility.
1692 * run.c (main): open without specifying file type.
1693
1694Wed May 18 14:18:53 1994 Doug Evans (dje@canuck.cygnus.com)
1695
1696 * interp.c (sim_*): Make result void where there isn't one.
1697 (sim_set_pc): Delete.
1698 (sim_info): Delete printf_fn arg, all callers changed.
1699 Call printf_filtered instead.
1700 (sim_close): New function.
1701 (sim_load): New function.
1702 (sim_create_inferior): Renamed from sim_set_args, all callers changed.
1703 * run.c: #include <varargs.h>, "remote-sim.h".
1704 (printf_filtered): New function.
1705
1706Wed Apr 27 12:03:48 1994 Steve Chamberlain (sac@cygnus.com)
1707
1708 * gencode.c (table): Get direction of some opcodes right.
72f4393d 1709 (trapa, rte): Implement fully.
c906108c
SS
1710 * interp.c (trap): Make stat call more portable.
1711
1712Fri Feb 11 21:59:38 1994 Steve Chamberlain (sac@sphagnum.cygnus.com)
1713
1714 * gencode.c (main, gendefines): New -d option prints table of defines.
72f4393d 1715 * interp.c (trap): Add a load of system calls.
c906108c 1716 (sim_memory_size): Now default to 8Mbyte.
72f4393d 1717 (PARANOID): Keep vector of registers with undefined contents.
c906108c
SS
1718
1719Mon Nov 15 14:37:18 1993 Steve Chamberlain (sac@jonny.cygnus.com)
1720
1721 * gencode.c: mova uses aligned addresses
1722 * interp.c (trap): Return results in r0.
1723
1724Tue Oct 26 10:38:55 1993 Doug Evans (dje@canuck.cygnus.com)
1725
1726 * Makefile.in (CSEARCH): Add -I$(srcdir)/../../gdb
1727 * interp.c: #include "remote-sim.h".
1728 (sim_resume): int result, new arg `siggnal'.
1729 (sim_write): Use SIM_ADDR for type of arg `addr'.
1730 (sim_read): Use SIM_ADDR for type of arg `addr'.
1731 Use unsigned char * for `buffer'.
1732 (sim_store_register): int result.
1733 (sim_fetch_register): Ditto.
1734 (sim_stop_reason): Renamed from sim_stop_signal. New arg `reason'.
1735 (sim_set_pc): int result, use SIM_ADDR for type of arg `x'.
1736 (sim_info): int result, new args `verbose', `printf_fn'.
1737 (sim_kill): int result.
1738 (sim_open): int result, new arg `name'.
1739 * run.c: #include <stdio.h>
1740 (main): Update call to sim_info.
1741
1742Sat Oct 23 15:09:29 1993 Doug Evans (dje@canuck.cygnus.com)
1743
1744 * interp.c (sim_stop_signal): Result is now enum sim_stop.
1745
1746Fri Oct 8 10:47:09 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1747
1748 * gencode.c (table): Becomes unsigned.
1749 * interp.c (trap): Get right breakpoint SIGnum. (sim_write,
1750 sim_read): Return number of bytes copied. (sim_store_register):
1751 Value passed by reference. (sim_kill, sim_open, sim_set_args): New functions.
1752
1753Tue Sep 7 16:24:13 1993 Stan Shebs (shebs@rtl.cygnus.com)
1754
1755 * interp.c (sim_info): Fix small typo in printf string.
1756
1757Thu Aug 5 11:37:48 1993 Stan Shebs (shebs@rtl.cygnus.com)
1758
1759 * interp.c (sim_resume): Set memory after pointers inited.
1760
1761Mon Aug 2 14:13:22 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1762
1763 * interp.c (get_now): Use time system call.
1764 * Makefile.in: install correctly.
1765
1766Tue Jul 6 10:30:46 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1767
1768 * run.c (main), interp.c (sim_set_timeout): Remove timeout
1769 functionality.
1770
1771Thu Jun 24 13:29:57 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
1772
1773 * Makefile.in: don't run indent everytime; also add a space in the
72f4393d 1774 includes
c906108c
SS
1775
1776Thu Jun 17 18:30:42 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1777
1778 * gencode.c: Fix some opcodes.
1779 * interp.c: Support for profiling and portability fixes.
1780 * run.c (main): Get profiling args.
1781
1782Wed May 5 13:17:22 1993 Steve Chamberlain (sac@cygnus.com)
1783
1784 * gencode.c (tab): Lint for sgi compiler
1785 * interp.c: Lint for sgi compiler.
1786
1787Mon May 3 15:25:33 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1788
72f4393d 1789 * run.c (main): Support for resizing simulated RAM.
c906108c
SS
1790 * Makefile.in: Support for broken makes.
1791 * interp.c, gencode.c: Lint.
1792
1793Mon Apr 26 18:01:10 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1794
1795 * created