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