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