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