]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/d10v/ChangeLog
22d1e8fdf836c1207b7bb9df26f9e822865f3452
[thirdparty/binutils-gdb.git] / sim / d10v / ChangeLog
1 2021-04-22 Tom Tromey <tom@tromey.com>
2
3 * configure, config.in: Rebuild.
4
5 2021-04-22 Tom Tromey <tom@tromey.com>
6
7 * Makefile.in (SIM_EXTRA_DEPS): New variable.
8 (simops.o): Remove.
9
10 2021-04-22 Tom Tromey <tom@tromey.com>
11
12 * configure: Rebuild.
13
14 2021-04-21 Mike Frysinger <vapier@gentoo.org>
15
16 * aclocal.m4: Regenerate.
17
18 2021-04-21 Simon Marchi <simon.marchi@polymtl.ca>
19
20 * configure: Regenerate.
21
22 2021-04-18 Mike Frysinger <vapier@gentoo.org>
23
24 * configure: Regenerate.
25
26 2021-04-18 Mike Frysinger <vapier@gentoo.org>
27
28 * interp.c (xfer_mem): Use PRIxTA for printf format.
29 (sim_write): Cast buffer to (void *).
30 (sim_open): Add const to p.
31 * configure.ac (SIM_AC_OPTION_WARNINGS): Delete call.
32 * configure: Regenerate.
33
34 2021-04-12 Mike Frysinger <vapier@gentoo.org>
35
36 * interp.c (sim_open): Delete 3rd arg to sim_cpu_alloc_all.
37
38 2021-04-02 Mike Frysinger <vapier@gentoo.org>
39
40 * aclocal.m4, configure: Regenerate.
41
42 2021-03-13 Mike Frysinger <vapier@gentoo.org>
43
44 * Makefile.in (gencode.o, d10v-opc.o): Call COMPILE_FOR_BUILD.
45 (gencode): Call LINK_FOR_BUILD.
46
47 2021-03-08 Mike Frysinger <vapier@gentoo.org>
48
49 * Makefile.in (gencode): Delete $(BUILD_LIB).
50
51 2021-02-28 Mike Frysinger <vapier@gentoo.org>
52
53 * configure: Regenerate.
54
55 2021-02-21 Mike Frysinger <vapier@gentoo.org>
56
57 * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4.
58 * aclocal.m4, configure: Regenerate.
59
60 2021-02-13 Mike Frysinger <vapier@gentoo.org>
61
62 * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS.
63 * aclocal.m4, configure: Regenerate.
64
65 2021-02-06 Mike Frysinger <vapier@gentoo.org>
66
67 * configure: Regenerate.
68
69 2021-01-11 Mike Frysinger <vapier@gentoo.org>
70
71 * config.in, configure: Regenerate.
72 * interp.c, simops.c: Delete HAVE_STRING_H, HAVE_STRINGS_H,
73 HAVE_STDLIB_H, and strings.h include.
74
75 2021-01-09 Mike Frysinger <vapier@gentoo.org>
76
77 * d10v_sim.h (State): Change to an extern.
78 * interp.c (State): Define.
79
80 2021-01-09 Mike Frysinger <vapier@gentoo.org>
81
82 * configure: Regenerate.
83
84 2021-01-09 Mike Frysinger <vapier@gentoo.org>
85
86 * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no".
87 * configure: Regenerate.
88
89 2021-01-08 Mike Frysinger <vapier@gentoo.org>
90
91 * configure: Regenerate.
92
93 2021-01-04 Mike Frysinger <vapier@gentoo.org>
94
95 * configure: Regenerate.
96
97 2017-09-06 John Baldwin <jhb@FreeBSD.org>
98
99 * configure: Regenerate.
100
101 2016-01-10 Mike Frysinger <vapier@gentoo.org>
102
103 * config.in, configure: Regenerate.
104
105 2016-01-10 Mike Frysinger <vapier@gentoo.org>
106
107 * configure: Regenerate.
108
109 2016-01-10 Mike Frysinger <vapier@gentoo.org>
110
111 * configure.ac (SIM_AC_OPTION_ENVIRONMENT): Delete call.
112 * configure: Regenerate.
113
114 2016-01-10 Mike Frysinger <vapier@gentoo.org>
115
116 * configure: Regenerate.
117
118 2016-01-10 Mike Frysinger <vapier@gentoo.org>
119
120 * configure: Regenerate.
121
122 2016-01-10 Mike Frysinger <vapier@gentoo.org>
123
124 * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
125 * configure: Regenerate.
126
127 2016-01-10 Mike Frysinger <vapier@gentoo.org>
128
129 * configure: Regenerate.
130
131 2016-01-10 Mike Frysinger <vapier@gentoo.org>
132
133 * configure: Regenerate.
134
135 2016-01-09 Mike Frysinger <vapier@gentoo.org>
136
137 * config.in, configure: Regenerate.
138
139 2016-01-06 Mike Frysinger <vapier@gentoo.org>
140
141 * interp.c (sim_open): Mark argv const.
142 (sim_create_inferior): Mark argv and env const.
143
144 2016-01-04 Mike Frysinger <vapier@gentoo.org>
145
146 * endian.c (get_word): Delete all arch/big endian logic.
147 (get_longword, write_word, write_longword): Likewise.
148
149 2016-01-03 Mike Frysinger <vapier@gentoo.org>
150
151 * interp.c (sim_open): Update sim_parse_args comment.
152
153 2016-01-03 Mike Frysinger <vapier@gentoo.org>
154
155 * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete.
156 * configure: Regenerate.
157
158 2016-01-02 Mike Frysinger <vapier@gentoo.org>
159
160 * configure: Regenerate.
161
162 2015-12-30 Mike Frysinger <vapier@gentoo.org>
163
164 * wrapper.c (d10v_reg_store, d10v_reg_fetch): Define.
165 (sim_open): Call CPU_REG_FETCH/CPU_REG_STORE.
166 (sim_store_register): Rename to ...
167 (d10v_reg_store): ... this. Rename cpu to sd.
168 (sim_fetch_register): Rename to ...
169 (d10v_reg_fetch): ... this. Rename cpu to sd.
170
171 2015-12-27 Mike Frysinger <vapier@gentoo.org>
172
173 * Makefile.in (SIM_OBJS): Delete sim-hload.o.
174
175 2015-12-26 Mike Frysinger <vapier@gentoo.org>
176
177 * config.in, configure: Regenerate.
178
179 2015-11-15 Mike Frysinger <vapier@gentoo.org>
180
181 * Makefile.in (SIM_OBJS): Delete sim-reason.o and sim-stop.o.
182
183 2015-11-15 Mike Frysinger <vapier@gentoo.org>
184
185 * interp.c (sim_open): Delete sim_create_inferior call.
186
187 2015-11-15 Mike Frysinger <vapier@gentoo.org>
188
189 * d10v_sim.h (d10v_callback): Delete.
190 * interp.c (d10v_callback): Delete.
191 (do_long, do_2_short, do_parallel, set_dmap_register,
192 set_imap_register, xfer_mem, dmem_addr, imem_addr, sim_info,
193 sim_create_inferior): Replace d10v_callback->printf_filtered
194 with sim_io_printf.
195 (sim_open): Delete d10v_callback assignment.
196 * simops.c (move_to_cr, trace_input_func, do_trace_output_flush,
197 do_trace_output_finish, trace_output_40, trace_output_32,
198 trace_output_16, trace_output_void, trace_output_flag, OP_5F20,
199 OP_5201, OP_27000000, OP_3220, OP_3400, OP_3000, OP_6C1F, OP_6C01,
200 OP_6E1F, OP_6E01): Replace d10v_callback->printf_filtered with
201 sim_io_printf and d10v_callback->flush_stdout with
202 sim_io_flush_stdout.
203 (OP_5F00): Likewise. Rename d10v_callback to cb.
204
205 2015-11-15 Mike Frysinger <vapier@gentoo.org>
206
207 * Makefile.in (SIM_OBJS): Add sim-reason.o, sim-resume.o, and
208 sim-stop.o.
209 * d10v_sim.h (struct d10v_memory): Delete fault member.
210 (struct _state): Delete exception member.
211 * interp.c (lookup_hash): Call sim_engine_halt instead of setting
212 State.exception.
213 (do_2_short, do_parallel): Delete State.exception checks.
214 (sim_size): Mark static.
215 (map_memory): Call sim_engine_halt instead of returning fault.
216 Call xcalloc instead of calloc and checking the return.
217 (dmem_addr): Call sim_engine_halt when phys_size is 0.
218 (imem_addr): Likewise.
219 (stop_simulator, sim_stop, sim_stop_reason): Delete.
220 (sim_resume): Rename to ...
221 (step_once): ... this. Delete State.exception code and move
222 siggnal checking to sim_engine_run.
223 (sim_engine_run): New function.
224 * simops.c (EXCEPTION): Define.
225 (move_to_cr): Call EXCEPTION instead of setting State.exception.
226 (OP_30000000, OP_6401, OP_6001, OP_6000, OP_32010000, OP_31000000,
227 OP_6601, OP_6201, OP_6200, OP_33010000, OP_5201, OP_27000000,
228 OP_2F000000, OP_3220, OP_3200, OP_3400, OP_3000, OP_34000000,
229 OP_6800, OP_6C1F, OP_6801, OP_6C01, OP_36010000, OP_35000000,
230 OP_6A00, OP_6E1F, OP_6A01, OP_6E01, OP_37010000, OP_5FE0): Likewise.
231 (OP_5F20): Call sim_engine_halt instead of setting State.exception.
232 (OP_5F00): Call sim_engine_halt and EXCEPTION instead of setting
233 State.exception.
234
235 2015-11-15 Mike Frysinger <vapier@gentoo.org>
236
237 * d10v_sim.h (struct simops): Add SIM_DESC and SIM_CPU to func args.
238 (SET_CREG, SET_HW_CREG, SET_PSW_BIT): Pass sd and cpu to move_to_cr.
239 (dmem_addr, imem_addr, move_to_cr): Add SIM_DESC and SIM_CPU args.
240 (RB, SW, RW, SLW, RLW): Pass sd and cpu to dmem_addr.
241 * endian.c: Change d10v_sim.h include to sim-main.h.
242 * gencode.c: Likewise. Add SIM_DESC and SIM_CPU args to all OPs.
243 * interp.c (lookup_hash, do_long, do_2_short, do_parallel,
244 map_memory, set_dmap_register, dmap_register, set_imap_register,
245 imap_register, sim_d10v_translate_dmap_addr, xfer_mem,
246 sim_d10v_translate_imap_addr, sim_d10v_translate_addr): Add
247 SIM_DESC and SIM_CPU args and adjust all callers.
248 (trace_sd): Delete.
249 (sim_open): Do not assign trace_sd.
250 (sim_resume, sim_create_inferior, sim_fetch_register,
251 sim_store_register): Set up cpu from the first one in sd.
252 * simops.c (move_to_cr): Add SIM_DESC and SIM_CPU args.
253 (trace_input_func, trace_input, do_trace_output_finish,
254 do_trace_output_finish, trace_output_40, trace_output_32,
255 trace_output_16, trace_output_void, trace_output_flag): Add
256 SIM_DESC arg.
257 (trace_input_func): Likewise. Change trace_sd to sd.
258 (OP_*): Add SIM_DESC and SIM_CPU args to all OP funcs.
259
260 2015-11-14 Mike Frysinger <vapier@gentoo.org>
261
262 * interp.c (sim_close): Delete.
263
264 2015-11-10 Mike Frysinger <vapier@gentoo.org>
265
266 * interp.c (sim_d10v_translate_dmap_addr): Mark static.
267 (sim_d10v_translate_imap_addr): Likewise.
268 (sim_d10v_translate_addr): Likewise.
269
270 2015-06-23 Mike Frysinger <vapier@gentoo.org>
271
272 * configure: Regenerate.
273
274 2015-06-12 Mike Frysinger <vapier@gentoo.org>
275
276 * configure: Regenerate.
277
278 2015-06-12 Mike Frysinger <vapier@gentoo.org>
279
280 * configure: Regenerate.
281
282 2015-04-18 Mike Frysinger <vapier@gentoo.org>
283
284 * sim-main.h (SIM_CPU): Delete.
285
286 2015-04-18 Mike Frysinger <vapier@gentoo.org>
287
288 * sim-main.h (sim_cia): Delete.
289
290 2015-04-17 Mike Frysinger <vapier@gentoo.org>
291
292 * sim-main.h (CIA_GET, CIA_SET): Delete.
293
294 2015-04-17 Mike Frysinger <vapier@gentoo.org>
295
296 * interp.c (d10v_pc_get, d10v_pc_set): New functions.
297 (sim_open): Declare new local var i. Call CPU_PC_FETCH &
298 CPU_PC_STORE for all cpus.
299
300 2015-04-15 Mike Frysinger <vapier@gentoo.org>
301
302 * Makefile.in (SIM_OBJS): Delete sim-cpu.o.
303 * sim-main.h (STATE_CPU): Delete.
304
305 2015-04-13 Mike Frysinger <vapier@gentoo.org>
306
307 * configure: Regenerate.
308
309 2015-04-06 Mike Frysinger <vapier@gentoo.org>
310
311 * Makefile.in (SIM_OBJS): Delete sim-engine.o.
312
313 2015-04-02 Mike Frysinger <vapier@gentoo.org>
314
315 * interp.c (lookup_hash): Change SIGILL to GDB_SIGNAL_ILL.
316 (sim_resume): Change SIGBUS/SIGSEGV to GDB_SIGNAL_BUS, SIGILL to
317 GDB_SIGNAL_ILL, and SIGTRAP to GDB_SIGNAL_TRAP.
318
319 2015-04-01 Mike Frysinger <vapier@gentoo.org>
320
321 * interp.c (sim_set_profile, sim_set_profile_size): Delete.
322
323 2015-03-31 Mike Frysinger <vapier@gentoo.org>
324
325 * Makefile.in (simops.o): New rule.
326
327 2015-03-30 Mike Frysinger <vapier@gentoo.org>
328
329 * d10v_sim.h (text, text_start, text_end, prog_bfd): Delete.
330 (SEXT8, SEXT16, SEXT32, MASK32): Undefine.
331 * interp.c: Delete run-sim.h and d10v_sim.h includes. Include
332 sim-main.h and sim-options.h.
333 (myname, sim_kind, init_text_p, prog_bfd_was_opened_p, prog_bfd,
334 text, text_start, text_end, decode_pc, sim_set_profile,
335 sim_set_profile_size, sim_set_trace, sim_set_callbacks,
336 sim_trace, sim_do_command, sim_load): Delete.
337 (INLINE): Delete define.
338 (free_state): New function.
339 (trace_sd): Declare global variable.
340 (sim_open): Rewrite to use new common logic.
341 (sim_close): Delete body.
342 * Makefile.in (SIM_RUN_OBJS, SIM_EXTRA_CFLAGS): Delete.
343 (SIM_OBJS): Change to $(SIM_NEW_COMMON_OBJS).
344 * sim-main.h: New file.
345 * simops.c: Change d10v_sim.h include to sim-main.h.
346 (trace_input_func): Rewrite pc checks to use trace_sd.
347
348 2015-03-30 Mike Frysinger <vapier@gentoo.org>
349
350 * Makefile.in (SIM_EXTRA_CFLAGS): Delete -DNEED_UI_LOOP_HOOK.
351 * interp.c [NEED_UI_LOOP_HOOK] (UI_LOOP_POLL_INTERVAL,
352 ui_loop_hook_counter, deprecated_ui_loop_hook): Delete.
353 (sim_resume) [NEED_UI_LOOP_HOOK]: Delete ui code.
354
355 2015-03-30 Mike Frysinger <vapier@gentoo.org>
356
357 * Makefile.in (gencode.o, d10v-opc.o): Add $(WARN_CFLAGS).
358 (gencode): Add $(BUILD_LDFLAGS).
359 * endian.c (get_word, get_longword, get_longlong, write_word,
360 write_longword, write_longlong): Convert old style prototypes.
361 * gencode.c: Include string.h.
362 (main): Convert old style prototype.
363 (write_header): Convert old style prototype and fix printf format.
364 (write_template, write_opcodes): Likewise.
365 (check_opcodes): Mark static void.
366 * interp.c: Include inttypes.h and run-sim.h.
367 (hash, lookup_hash, decode_pc, do_long, do_2_short, do_parallel,
368 add_commas, sim_size, sim_write, sim_read, sim_open, sim_close,
369 sim_set_profile, sim_set_profile_size, sim_stop, +sim_resume,
370 sim_info, sim_set_callbacks, sim_stop_reason, sim_fetch_register,
371 sim_store_register, sim_do_command, sim_load): Convert old style
372 prototypes.
373 (sim_create_inferior): Fix pointer cast to use uintptr_t.
374 * simops.c (strrchr): Delete prototype.
375 (trace_input_func): Mark name static.
376 (trace_input_func, trace_output_void, trace_output_flag): Convert old style
377 prototypes.
378 (OP_*): Convert old style prototypes.
379
380 2015-03-30 Mike Frysinger <vapier@gentoo.org>
381
382 * Makefile.in (interp.o, simops.o, endian.o, table.o): Delete rules.
383 * configure.ac: Call SIM_AC_OPTION_ENDIAN, SIM_AC_OPTION_ALIGNMENT,
384 SIM_AC_OPTION_HOSTENDIAN, SIM_AC_OPTION_ENVIRONMENT, and
385 SIM_AC_OPTION_INLINE.
386 * config.in, configure: Regenerate.
387 * interp.c (sim_trace): Define.
388
389 2015-03-16 Mike Frysinger <vapier@gentoo.org>
390
391 * config.in, configure: Regenerate.
392
393 2015-03-14 Mike Frysinger <vapier@gentoo.org>
394
395 * Makefile.in (SIM_EXTRA_CFLAGS): Add
396 -DSIM_USE_DEPRECATED_RUN_FRONTEND.
397 (SIM_RUN_OBJS): Set to run.o.
398
399 2015-03-14 Mike Frysinger <vapier@gentoo.org>
400
401 * configure.ac (AC_CHECK_HEADERS): Delete.
402 * aclocal.m4, configure: Regenerate.
403
404 2014-08-19 Alan Modra <amodra@gmail.com>
405
406 * configure: Regenerate.
407
408 2014-08-15 Roland McGrath <mcgrathr@google.com>
409
410 * configure: Regenerate.
411 * config.in: Regenerate.
412
413 2014-03-10 Mike Frysinger <vapier@gentoo.org>
414
415 * interp.c (sim_do_command): Add const to cmd.
416
417 2014-03-05 Mike Frysinger <vapier@gentoo.org>
418
419 * interp.c (sim_load): Add const to prog.
420
421 2014-03-04 Mike Frysinger <vapier@gentoo.org>
422
423 * configure: Regenerate.
424
425 2013-09-23 Alan Modra <amodra@gmail.com>
426
427 * configure: Regenerate.
428
429 2013-06-03 Mike Frysinger <vapier@gentoo.org>
430
431 * aclocal.m4, configure: Regenerate.
432
433 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
434
435 * configure: Rebuild.
436
437 2012-06-19 Joel Brobecker <brobecker@adacore.com>
438
439 * interp.c: #include "config.h" instead of "sysdep.h".
440 Add conditional include of string.h or strings.h, as well as
441 conditional include of stdlib.h.
442
443 2012-06-15 Joel Brobecker <brobecker@adacore.com>
444
445 * config.in, configure: Regenerate.
446
447 2012-05-24 Pedro Alves <palves@redhat.com>
448
449 PR gdb/7205
450
451 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
452
453 2012-03-24 Mike Frysinger <vapier@gentoo.org>
454
455 * aclocal.m4, config.in, configure: Regenerate.
456
457 2011-12-03 Mike Frysinger <vapier@gentoo.org>
458
459 * aclocal.m4: New file.
460 * configure: Regenerate.
461
462 2011-10-17 Mike Frysinger <vapier@gentoo.org>
463
464 * configure.ac: Change include to common/acinclude.m4.
465
466 2011-10-17 Mike Frysinger <vapier@gentoo.org>
467
468 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
469 call. Replace common.m4 include with SIM_AC_COMMON.
470 * configure: Regenerate.
471
472 2010-04-14 Mike Frysinger <vapier@gentoo.org>
473
474 * interp.c (sim_write): Add const to buffer arg.
475
476 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
477
478 * configure: Regenerate.
479
480 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
481
482 * config.in: Regenerate.
483 * configure: Likewise.
484
485 * configure: Regenerate.
486
487 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
488
489 * configure: Regenerate to track ../common/common.m4 changes.
490 * config.in: Ditto.
491
492 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
493 Daniel Jacobowitz <dan@codesourcery.com>
494 Joseph Myers <joseph@codesourcery.com>
495
496 * configure: Regenerate.
497
498 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
499
500 * acconfig.h: Remove.
501 * config.in: Regenerate.
502
503 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
504
505 * configure: Regenerated.
506
507 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
508
509 * configure: Regenerated.
510
511 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
512
513 * configure: Regenerated.
514
515 2006-04-18 Nick Clifton <nickc@redhat.com>
516
517 * interp.c (sim_stop_reason): Fix typo.
518
519 2005-11-28 Mark Mitchell <mark@codesourcery.com>
520
521 * interp.c (gdb/signals.h): Include it.
522 (sim_stop_reason): Use TARGET_SIGNAL_*.
523
524 2005-03-23 Mark Kettenis <kettenis@gnu.org>
525
526 * configure: Regenerate.
527
528 2005-01-14 Andrew Cagney <cagney@gnu.org>
529
530 * configure.ac: Sinclude aclocal.m4 before common.m4. Add
531 explicit call to AC_CONFIG_HEADER.
532 * configure: Regenerate.
533
534 2005-01-12 Andrew Cagney <cagney@gnu.org>
535
536 * configure.ac: Update to use ../common/common.m4.
537 * configure: Re-generate.
538
539 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
540
541 * configure: Regenerated to track ../common/aclocal.m4 changes.
542
543 2005-01-07 Andrew Cagney <cagney@gnu.org>
544
545 * configure.ac: Rename configure.in, require autoconf 2.59.
546 * configure: Re-generate.
547
548 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
549
550 * configure: Regenerate for ../common/aclocal.m4 update.
551
552 2004-06-28 Andrew Cagney <cagney@gnu.org>
553
554 * interp.c (sim_resume): Rename ui_loop_hook to
555 deprecated_ui_loop_hook.
556
557 2003-10-30 Andrew Cagney <cagney@redhat.com>
558
559 * simops.c: Replace "struct symbol_cache_entry" with "struct
560 bfd_symbol".
561
562 2003-06-22 Andrew Cagney <cagney@redhat.com>
563
564 * interp.c (xfer_mem): Simplify. Only do a single partial
565 transfer. Problem reported by Tom Rix.
566
567 2003-05-07 Andrew Cagney <cagney@redhat.com>
568
569 * interp.c (sim_d10v_translate_addr): Add "regcache" parameter.
570 (sim_d10v_translate_imap_addr): Ditto.
571 (sim_d10v_translate_dmap_addr): Ditto.
572 (xfer_mem): Pass NULL regcache to sim_d10v_translate_addr.
573 (dmem_addr): Pass NULL regcache to sim_d10v_translate_dmap_addr.
574 (dmap_register, imap_register): Add "regcache" parameter.
575 (imem_addr): Pass NULL regcache to sim_d10v_translate_imap_addr.
576 (sim_fetch_register): Pass NULL regcache to imap_register and
577 dmap_register.
578
579 2003-02-27 Andrew Cagney <cagney@redhat.com>
580
581 * interp.c (sim_open, sim_create_inferior): Rename _bfd to bfd.
582
583 2002-11-13 Andrew Cagney <cagney@redhat.com>
584
585 * simops.c: Include <string.h>.
586
587 2002-06-17 Andrew Cagney <cagney@redhat.com>
588
589 * d10v_sim.h (SET_PSW_BIT): Add cast to avoid inverting an enum.
590
591 2002-06-16 Andrew Cagney <ac131313@redhat.com>
592
593 * configure: Regenerated to track ../common/aclocal.m4 changes.
594
595 2002-06-13 Tom Rix <trix@redhat.com>
596
597 * interp.c (xfer_mem): Fix transfers across multiple segments.
598
599 2002-06-09 Andrew Cagney <cagney@redhat.com>
600
601 * Makefile.in (INCLUDE): Update path to callback.h.
602 * gencode.c: Do not include "callback.h".
603 * d10v_sim.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
604 * interp.c: Ditto.
605
606 2002-06-08 Andrew Cagney <cagney@redhat.com>
607
608 * interp.c (sim_fetch_register): Fix name of enum used in cast.
609 (sim_store_register): Ditto.
610
611 2002-06-02 Elena Zannoni <ezannoni@redhat.com>
612
613 From Jason Eckhardt <jle@redhat.com>
614 * d10v_sim.h (INC_ADDR): Correctly handle the case where MOD_E is
615 less than MOD_S (post-decrement).
616
617 2002-06-01 Andrew Cagney <ac131313@redhat.com>
618
619 * interp.c (sim_fetch_register, sim_store_register): Use a switch
620 statement and enums from "sim-d10v.h".
621
622 2002-05-28 Elena Zannoni <ezannoni@redhat.com>
623
624 * interp.c (sim_create_inferior): Add comment.
625
626 From Alan Matsuoka <alanm@redhat.com>:
627 From 2001-04-27 Jason Eckhardt <jle@cygnus.com>:
628 * simops.c (OP_4400): Output "mvf0f" instead of "mf0f".
629 (OP_4401): Output "mvf0t" instead of "mf0t".
630 (OP_460B): Do not output a flag register.
631 (OP_4609): Do not output a flag register.
632
633 2002-05-23 Andrew Cagney <ac131313@redhat.com>
634
635 * Makefile.in (INCLUDE): Add "gdb/sim-d10v.h".
636 * interp.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
637
638 2001-08-01 John R. Moore <jmoore@redhat.com>
639
640 * interp.c (sim_create_inferior): Removed a hack that stated
641 it was setting r0/r1 with argc/argv.
642
643 2001-04-15 J.T. Conklin <jtc@redback.com>
644
645 * Makefile.in (simops.o): Add simops.h to dependency list.
646
647 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
648
649 * configure: Regenerated to track ../common/aclocal.m4 changes.
650
651 Tue Apr 18 16:26:41 2000 Andrew Cagney <cagney@b1.cygnus.com>
652
653 * interp.c (sim_resume): Deliver SIGILL.
654 (lookup_hash): Do not print SIGILL message.
655
656 Tue Feb 22 18:24:56 2000 Andrew Cagney <cagney@b1.cygnus.com>
657
658 * Makefile.in (SIM_EXTRA_CFLAGS): Define SIM_HAVE_ENVIRONMENT.
659 * interp.c (sim_set_trace): Replace sim_trace. Enable tracing.
660
661 Tue Feb 8 17:41:12 2000 Andrew Cagney <cagney@b1.cygnus.com>
662
663 * d10v_sim.h (SIG_D10V_BUS): Define.
664
665 * simops.c (address_exception): Delete function.
666 (OP_30000000, OP_6401, OP_6001, OP_6000, OP_32010000, OP_31000000,
667 OP_6601, OP_6201, OP_6200, OP_33010000, OP_34000000, OP_6800,
668 OP_6C1F, OP_6801, OP_6C01, OP_36010000, OP_35000000, OP_6A00,
669 OP_6E1F, OP_6A01, OP_6E01, OP_37010000): Replace call to
670 address_exception with code that sets SIG_D10V_BUS.
671
672 * interp.c (sim_resume): When SIGBUS or SIGSEGV, deliver a bus
673 error to the simulator before resuming execution.
674 (sim_trace): Check stop reason and use that to determine sim_trace
675 return value.
676 (sim_stop_reason): For SIG_D10V_BUS return a SIGBUS / SIGSEGV
677 sigrc.
678
679 Tue Jan 18 16:07:42 MST 2000 Diego Novillo <dnovillo@cygnus.com>
680
681 * interp.c (sim_create_inferior): Change internal initial value for
682 DMAP2 to 0x2000.
683
684 Mon Jan 3 02:06:07 2000 Andrew Cagney <cagney@b1.cygnus.com>
685
686 * interp.c (lookup_hash): Stop the update of the PC when there was
687 an illegal instruction exception.
688
689 Mon Jan 3 00:14:33 2000 Andrew Cagney <cagney@b1.cygnus.com>
690
691 * simops.c (address_exception): New function.
692 (OP_30000000, OP_6401, OP_6001, OP_6000, OP_32010000, OP_31000000,
693 OP_6601, OP_6201, OP_6200, OP_33010000, OP_34000000, OP_6800,
694 OP_6C1F, OP_6801, OP_6C01, OP_36010000, OP_35000000, OP_6A00,
695 OP_6E1F, OP_6A01, OP_6E01, OP_37010000): For "ld", "ld2w", "st"
696 and "st2w" check that the address is aligned.
697
698 1999-12-30 Chandra Chavva <cchavva@cygnus.com>
699
700 * d10v_sim.h (INC_ADDR): Added code to assign
701 proper address for loads with predec operations.
702
703 1999-11-25 Nick Clifton <nickc@cygnus.com>
704
705 * simops.c (OP_4E0F): New function: Simulate new bit pattern for
706 cpfg instruction.
707
708 Fri Oct 29 18:34:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
709
710 * simops.c (move_to_cr): Don't allow user to set PSW.DM in either
711 DPSW and BPSW.
712
713 Thu Oct 28 01:26:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
714
715 * simops.c (OP_5F20): Use SET_HW_PSW when updating PSW.
716 (PSW_HW_MASK): Declare.
717
718 * d10v_sim.h (move_to_cr): Add ``psw_hw_p'' parameter.
719 (SET_CREG, SET_PSW_BIT): Update.
720 (SET_HW_CREG, SET_HW_PSW): Define.
721
722 Sun Oct 24 21:38:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
723
724 * interp.c (sim_d10v_translate_dmap_addr): Fix extraction of IOSP
725 for DMAP3.
726
727 Sun Oct 24 16:04:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
728
729 * interp.c (sim_d10v_translate_addr): New function.
730 (xfer_mem): Rewrite. Use sim_d10v_translate_addr.
731 (map_memory): Make INLINE.
732
733 Sun Oct 24 13:45:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
734
735 * interp.c (sim_d10v_translate_dmap_addr): New function.
736 (dmem_addr): Rewrite. Use sim_d10v_translate_dmap_addr. Change
737 offset parameter to type uint16.
738 * d10v_sim.h (dmem_addr): Update declaration.
739
740 Sun Oct 24 13:07:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
741
742 * interp.c (imap_register, set_imap_register, dmap_register,
743 set_imap_register): Use map_memory.
744 (DMAP): Update.
745 (sim_create_inferior): Initialize all DMAP registers. NOTE that
746 DMAP2, in internal memory mode, is set to 0x0000 and NOT
747 0x2000. This is consistent with the older d10v boards.
748
749 Sun Oct 24 11:22:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
750
751 * interp.c (sim_d10v_translate_imap_addr): New function.
752 (imem_addr): Rewrite. Use sim_d10v_translate_imap_addr.
753 (last_from, last_to): Declare.
754
755 Sun Oct 24 01:21:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
756
757 * d10v_sim.h (struct d10v_memory): Define. Support very long
758 memories.
759 (struct _state): Replace imem, dmem and umem by mem.
760 (IMAP_BLOCK_SIZE, DMAP_BLOCK_SIZE, SEGMENT_SIZE, IMEM_SEGMENTS,
761 DMEM_SEGMENTS, UMEM_SEGMENTS): Define.
762
763 * interp.c (map_memory): New function.
764 (sim_size, xfer_memory, imem_addr, dmem_addr): Update.
765 (UMEM_SEGMENTS): Moveed to "d10v_sim.h".
766 (IMEM_SIZEDMEM_SIZE): Delete.
767
768 Sat Oct 23 20:06:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
769
770 * interp.c: Include "sim-d10v.h".
771 (imap_register, set_imap_register, dmap_register,
772 set_dmap_register, spi_register, spu_register, set_spi_register,
773 set_spu_register): New functions.
774 (sim_create_inferior): Update.
775 (sim_fetch_register, sim_store_register): Rewrite. Use enums
776 defined in sim-d10v.h.
777
778 * d10v_sim.h (DEBUG_MEMORY): Define.
779 (IMAP0, IMAP1, DMAP, SET_IMAP0, SET_IMAP1, SET_DMAP): Delete.
780
781 Sat Oct 23 18:41:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
782
783 * interp.c (sim_open): Allow a debug value to be passed to the -t
784 option.
785 (lookup_hash): Don't exit on an illegal instruction.
786 (do_long, do_2_short, do_parallel): Check for failed instruction
787 lookup.
788
789 Mon Oct 18 18:03:24 MDT 1999 Diego Novillo <dnovillo@cygnus.com>
790
791 * simops.c (OP_3220): Fix trace output for illegal accumulator
792 message.
793
794 1999-09-14 Nick Clifton <nickc@cygnus.com>
795
796 * simops.c: Disable setting of DM bit in PSW.
797
798 Wed Sep 8 19:34:55 MDT 1999 Diego Novillo <dnovillo@cygnus.com>
799
800 * simops.c (op_types): Added new memory indirect type OP_MEMREF3.
801 (trace_input_func): Added support for OP_MEMREF3.
802 (OP_32010000): New instruction ld.
803 (OP_33010000): New instruction ld2w.
804 (OP_5209): New instruction sac.
805 (OP_4209): New instruction sachi.
806 (OP_3220): New instruction slae.
807 (OP_36010000): New instruction st.
808 (OP_37010000): New instruction st2w.
809
810 1999-09-09 Stan Shebs <shebs@andros.cygnus.com>
811
812 * interp.c (old_segment_mapping): New global.
813 (xfer_mem): Change the default segment mapping to be the way
814 that Mitsubishi prefers, but use the previous mapping if
815 old_segment_mapping is true.
816 (sim_open): Add an option -oldseg to get the old mapping.
817 (sim_create_inferior): Init mapping registers based on the
818 value of old_segment_mapping.
819
820 1999-09-07 Nick Clifton <nickc@cygnus.com>
821
822 * simops.c (OP_6601): Do not write back decremented address if
823 either of the destination registers was the same as the address
824 register.
825 (OP_6201): Do not write back incremented address if either of the
826 destination registers was the same as the address register.
827
828 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
829
830 * configure: Regenerated to track ../common/aclocal.m4 changes.
831
832 1999-05-08 Felix Lee <flee@cygnus.com>
833
834 * configure: Regenerated to track ../common/aclocal.m4 changes.
835
836 1999-04-02 Keith Seitz <keiths@cygnus.com>
837
838 * interp.c (ui_loop_hook_counter): New global (when NEED_UI_LOOP_HOOK
839 defined).
840 (sim_resume): If the counter has expired, call the ui_loop_hook,
841 if defined.
842 (UI_LOOP_POLL_INTERVAL): Define. Used to tweak the frequency of
843 ui_loop_hook calls.
844 * Makefile.in (SIM_EXTRA_CFLAGS): Include NEED_UI_LOOP_HOOK.
845
846 Wed Mar 10 19:32:13 1999 Nick Clifton <nickc@cygnus.com>
847
848 * simops.c: If load instruction with auto increment/decrement
849 addressing is used when the destination register is the same as
850 the address register, then ignore the auto increment/decrement.
851
852 Wed Mar 10 19:32:13 1999 Martin M. Hunt <hunt@cygnus.com>
853
854 * simops.c (OP_5F00): Ifdef SYS_stat case because
855 not all systems have it defined.
856
857 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
858
859 * simops.c (OP_5607): Correct saturation comparison/assignment.
860 (OP_1201, OP_1203, OP_17001200, OP_17001202,
861 OP_2A00, OP_2800, OP_2C00, OP_3200, OP_3201,
862 OP_1001, OP_1003, OP_17001000, OP_17001002): Ditto.
863
864 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
865
866 * simops.c (OP_5605): Sign extend MIN32 and MAX32 before saturation
867 comparison.
868 (OP_5607): Ditto.
869 (OP_2A00): Ditto.
870 (OP_2800): Ditto.
871
872 1999-01-13 Jason Molenda (jsm@bugshack.cygnus.com)
873
874 * simops.c (OP_1223): Sign extend MIN32 and MAX32 before saturation
875 comparison.
876
877 Tue Nov 24 17:04:43 1998 Andrew Cagney <cagney@b1.cygnus.com>
878
879 * simops.c (sys/syscall.h): Include targ-vals.h instead.
880 (SYS_*): Replace with TARGET_SYS_*.
881
882 * Makefile.in: Add dependency on targ-vals.h.
883 (NL_TARGET): Define as NL_TARGET_d10v.
884
885 Wed Sep 30 00:06:32 1998 Andrew Cagney <cagney@amy.cygnus.com>
886
887 * interp.c (xfer_mem): Missing break, instruction memory case
888 flowed into unified memory case.
889
890 Wed Sep 30 10:14:18 1998 Nick Clifton <nickc@cygnus.com>
891
892 * simops.c: If load instruction with auto increment/decrement
893 addressing is used when the destination register is the same as
894 the address register, then ignore the auto increment/decrement.
895
896 Tue Apr 28 18:33:31 1998 Geoffrey Noer <noer@cygnus.com>
897
898 * configure: Regenerated to track ../common/aclocal.m4 changes.
899
900 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
901
902 * configure: Regenerated to track ../common/aclocal.m4 changes.
903 * config.in: Ditto.
904
905 Sun Apr 26 15:20:23 1998 Tom Tromey <tromey@cygnus.com>
906
907 * acconfig.h: New file.
908 * configure.in: Reverted change of Apr 24; use sinclude again.
909
910 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
911
912 * configure: Regenerated to track ../common/aclocal.m4 changes.
913 * config.in: Ditto.
914
915 Fri Apr 24 11:20:06 1998 Tom Tromey <tromey@cygnus.com>
916
917 * configure.in: Don't call sinclude.
918
919 Fri Apr 24 11:04:46 1998 Andrew Cagney <cagney@chook.cygnus.com>
920
921 * interp.c (struct hash_entry): OPCODE and MASK are unsigned.
922
923 * d10v_sim.h (remote-sim.h, sim-config.h): Include.
924
925 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
926
927 * configure: Regenerated to track ../common/aclocal.m4 changes.
928
929 Wed Apr 1 12:59:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
930
931 * simops.c (trace_input_func): Use move_from_cr / CREGS to obtain
932 up-to-date CR value.
933 (OP_OP_1000000, add3): Trace inputs before performing add.
934 (OP_5F00, <*>): Trace input registers before making system call.
935 (OP_5F00, <kill>): Trace R0, R1 not REGn.
936 (OP_5F00, <getpid>): Always return 47.
937
938 * d10v_sim.h (SLOT, SLOT_NR, SLOT_PEND_MASK, SLOT_PEND,
939 SLOT_DISCARD, SLOT_FLUSH): Define. An implementation of write
940 back slots.
941 (struct _state): Add struct slot slot to global state variable.
942 (struct _state): Delete fields SM, EA, DB, DM, IE, RP, MD, FX, ST,
943 F0, F1, C from global State variable.
944 (struct _state): Add struct trace to global State variable.
945 (GPR, SET_GPR): Define. SET_GPR uses SLOT_PEND.
946 (PSW*, SET_PSW*): Define. SET_PSW* uses SET_CREG.
947 (CREG, SET_CREG, SET_*): Define. SET_CREG uses func move_to_cr.
948 (INC_ADDR): Re-implement. Use SET_GPR to update registers.
949 (JMP): Re-implement. Use SET_* to update registers.
950
951 * interp.c: Use new SET_* et.al. macros to fetch / store
952 registers.
953 (get_operands): Squirrel away trace values at start of each
954 operand decode.
955 (do_2_short): Flush pending writes before issuing second
956 instruction.
957 (sim_resume): Flush pending writes at end of instruction cycle.
958 (sim_fetch_register, sim_store_register, sim_create_inferior):
959 After scheduling updates to registers using SET_*, flush updates.
960 (sim_resume): Re-order handling of RPT/repeat and IBA/hbreak so
961 that each sets pc using SET_* and last SET_* eventually winds out.
962
963 * simops.c: Use new SET_* et.al. macros to fetch / store
964 registers.
965 (move_to_cr): Add MASK argument for selective update of CREG bits.
966 Re-implement using new SET_* macros.
967 (trace_output_func, trace_output): Delete. Replace with.
968 (do_trace_output_flush, trace_output_finish, trace_output_40,
969 trace_output_32, trace_output_16, trace_output_void,
970 trace_output_flag): New functions. Handle specific trace cases.
971 (OP_*): Re-write tracing to use new trace_output_* functions.
972 (OP_*): Re-write to use new SET_* et.al. macros.
973 (FUNC, PARM[1-4], RETVAL, RETVAL32): Redo definition.
974 (RETVAL_HIGH, RETVAL_LOW): Delete, use RETVAL32.
975
976 Wed Apr 1 12:55:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
977
978 * configure.in (SIM_AC_OPTION_WARNINGS): Add.
979 configure: Re-generate.
980
981 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
982
983 * configure: Regenerated to track ../common/aclocal.m4 changes.
984
985 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
986
987 * configure: Regenerated to track ../common/aclocal.m4 changes.
988
989 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
990
991 * configure: Regenerated to track ../common/aclocal.m4 changes.
992
993 Tue Feb 17 12:38:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
994
995 * interp.c (sim_store_register, sim_fetch_register): Pass in
996 length parameter. Return -1.
997
998 Mon Oct 27 14:43:33 1997 Fred Fish <fnf@cygnus.com>
999
1000 * (dmem_addr): If address is illegal or in I/O space, signal a bus
1001 error. Allocate unified memory on demand. Fix DMEM address
1002 calculations.
1003
1004 Mon Feb 16 10:27:53 1998 Andrew Cagney <cagney@b1.cygnus.com>
1005
1006 * simops.c (OP_5F20): Implement "dbt".
1007 (OP_5F60): Implement "rtd".
1008
1009 * d10v_sim.h (DPC_CR): Define enum.
1010 (DBT_VECTOR_START): Define
1011 (DPSW, DPC): Define.
1012
1013 Fri Feb 13 15:15:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
1014
1015 * simops.c (move_to_cr): Sync regs[SP_IDX] with State.sp according
1016 to PSW:SM.
1017
1018 * d10v_sim.h (struct _state): Add sp, as holding area for SPI/SPU.
1019 (SP_IDX): Define.
1020
1021 Wed Feb 11 16:53:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
1022
1023 * simops.c (OP_5F00): Call error instead of abort for unknown
1024 syscalls.
1025
1026 * d10v_sim.h (enum): Define DPSW_CR.
1027
1028 * simops.c (move_to_cr): Mask out hardwired zero bits in DPSW.
1029
1030 Tue Feb 10 18:28:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
1031
1032 * interp.c (sim_write_phys): Delete.
1033 (sim_load): Call sim_load_file with sim_write and LMA.
1034
1035 Mon Feb 9 12:05:01 1998 Andrew Cagney <cagney@b1.cygnus.com>
1036
1037 * interp.c: Rewrite xfer_mem so that it translates addresses as -
1038 0x00... - DMAP translated memory, 0x01... IMAP translated memory,
1039 0x10... - on-chip data, 0x11... - on-chip insn, 0x12... - unified
1040 memory.
1041 (pc_addr): Delete.
1042 (imem_addr): New function - translate IMEM address.
1043 (sim_resume): Use imem_addr to translate insn address, abort if
1044 translation failed.
1045 (sim_create_inferior): Write ARGV to memory using sim_write. Pass
1046 argc/argv using r0/r1 not r2/r3.
1047 (sim_size): Do not initialize IMAP/DMAP here.
1048 (sim_open): Call sim_create_inferior and sim_size to initialize
1049 the system.
1050 (sim_create_inferior): Initialize IMAP/DMAP to hardware reset
1051 defaults.
1052 (init_system): Delete.
1053 (xfer_mem, sim_fetch_register, sim_store_register): Do not call
1054 init_system.
1055 (decode_pc): Check prog_bfd is defined before looking up .text
1056 section.
1057
1058 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
1059
1060 * configure: Regenerated to track ../common/aclocal.m4 changes.
1061
1062 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
1063
1064 * configure: Regenerated to track ../common/aclocal.m4 changes.
1065
1066 Sun Jan 25 22:23:01 1998 Michael Meissner <meissner@cygnus.com>
1067
1068 * interp.c (sim_stop_reason): Exit status is now in r0, not r2.
1069
1070 Sat Jan 24 19:00:30 1998 Michael Meissner <meissner@cygnus.com>
1071
1072 * d10v_sim.h (DEBUG_TRAP): New debug flag.
1073
1074 * simops.c (OP_5F00): If DEBUG_TRAP is on, turn traps 0-14 into
1075 printing the registers.
1076
1077 Thu Jan 22 17:54:01 1998 Michael Meissner <meissner@cygnus.com>
1078
1079 * simops.c (op_types): New ABI, args are r0..r3, system call # is
1080 in r4.
1081 (trace_{in,out}put_func): Ditto.
1082 (OP_4900): Ditto.
1083 (OP_24800000): Ditto.
1084 (OP_4D00): Ditto.
1085 (OP_5F00): Ditto.
1086
1087 Thu Jan 22 14:30:36 1998 Fred Fish <fnf@cygnus.com>
1088
1089 * interp.c (UMEM_SEGMENTS): New define, set to 128.
1090 (sim_size): Use UMEM_SEGMENTS rather than hardwired constant.
1091 (sim_close): Reset prog_bfd to NULL after closing it. Also
1092 reset prog_bfd_was_opened_p after closing prog_bfd.
1093 (sim_load): Reset prog_bfd_was_opened_p after closing prog_bfd.
1094 (sim_create_inferior): Get start address from abfd not prog_bfd.
1095 (xfer_mem): Do bounds checking on addresses and return zero length
1096 read/write on bad addresses, rather than aborting. Prepare to
1097 be able to handle xfers that cross segment boundaries, but not
1098 yet implemented. Only emit debug message when d10v_debug is
1099 set as well as DEBUG being defined.
1100
1101 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
1102
1103 * configure: Regenerated to track ../common/aclocal.m4 changes.
1104
1105 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
1106
1107 * configure: Regenerated to track ../common/aclocal.m4 changes.
1108 * config.in: Ditto.
1109
1110 Tue Dec 9 10:28:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
1111
1112 * d10v_sim.h (RPT_S): Index cregs with RPT_S_CR not RPT_E_CR.
1113 (BPSW): Ditto for BPSW_CR and not PSW_CR.
1114
1115 * simops.c (OP_5F40): JMP to BPC instead of assigning PC directly.
1116
1117 Mon Dec 8 12:58:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
1118
1119 * simops.c (OP_5F00): From Martin Hunt <hunt@cygnus.com>. Change
1120 reserved trap from 0 to 15. Add trap emulation code for 0-14.
1121
1122 * interp.c (sim_resume): From Martin Hunt <hunt@cygnus.com>. Check
1123 IBA for SDBT.
1124
1125 * d10v_sim.h (AE_VECTOR_START, RIE_VECTOR_START,
1126 SDBT_VECTOR_START, TRAP_VECTOR_START): Define.
1127
1128 * simops.c (OP_5F00): For "trap", mask out all but SM bit in PSW,
1129 use move_to_cr.
1130 (OP_5F00): For "trap", update BPSW with move_to_cr.
1131
1132 Fri Dec 5 15:31:17 1997 Andrew Cagney <cagney@b1.cygnus.com>
1133
1134 * d10v_sim.h (enum): Enumerate CR register names.
1135 (enum): Enumerate PSW bit values.
1136 (PSW): Obtain value uing move_from_cr.
1137 (MOD_S, MOD_E, BPSW): Make r-values.
1138 (move_from_cr, move_to_cr): Declare functions.
1139
1140 * interp.c (sim_fetch_register, sim_store_register): Use
1141 move_from_cr and move_to_cr for CR register transfers.
1142
1143 * simops.c (move_from_cr, move_to_cr): New functions.
1144 (OP_5F40): Move BPSW to PSW using move_to_cr and move_from_cr.
1145 (OP_5600): For "mvtc", use function move_to_cr.
1146 (OP_5200): For "mvfc", use function move_from_cr.
1147
1148 Fri Dec 5 13:33:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
1149
1150 * simops.c (OP_5600): For "mvtc" MOD_E and MOD_S, ensure that the
1151 LSbit is zero.
1152
1153 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
1154
1155 * configure: Regenerated to track ../common/aclocal.m4 changes.
1156
1157 Thu Dec 4 16:51:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
1158
1159 * d10v_sim.h (struct _state): Add DM - PSW debug mask.
1160
1161 * simops.c (OP_5600): For "mvtc", save PSW.DM.
1162 (OP_5200): Ditto for "mvfc".
1163
1164 Wed Dec 3 17:27:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1165
1166 * d10v_sim.h (SEXT56): Define.
1167
1168 * simops.c (OP_4201): For "rac", sign extend 56 bit value before
1169 it is shifted.
1170
1171 * d10v_sim.h (MAX32, MIN32, MASK32, MASK40): Re-define using
1172 SIGNED64 macro.
1173
1174 Tue Dec 2 15:38:34 1997 Fred Fish <fnf@cygnus.com>
1175
1176 * interp.c (sim_resume): Call do_2_short with LEFT_FIRST or
1177 RIGHT_FIRST, as appropriate, instead of hardcoded ints that
1178 don't match enum values.
1179
1180 Tue Dec 2 15:01:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
1181
1182 * simops.c (OP_3A00): For "macu", perform multiply stage using 32
1183 bit rather than 16 bit precision.
1184 (OP_3C00): For "mulxu", store unsigned product in ACC.
1185 (OP_3800): For "msbu", subtract unsigned product from ACC,
1186 (OP_0): For "sub", compute carry by comparing inputs.
1187
1188 Tue Dec 2 11:04:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
1189
1190 * simops.c (OP_1000): For "sub2w", compute carry by comparing
1191 inputs.
1192
1193 Mon Nov 17 20:57:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
1194
1195 * simops.c (OP_1): Use 32 bit unsigned arithmetic for subtract,
1196 carry indicated by value > 0xffff.
1197
1198 Fri Nov 14 12:51:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1199
1200 * interp.c (sim_resume): Don't set up SIGINT handler using signal,
1201 handled by client.
1202 (sim_resume): Fix race condition of a direct assignment to
1203 stop_simulator, conditionally call sim_stop.
1204 (sim_stop_reason): Check stop_simulator returning SIGINT. Clear
1205 stop_simulator ready for next sim_resume call.
1206 (sim_ctrl_c): Delete function.
1207
1208 Thu Nov 13 19:29:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
1209
1210 * interp.c (sim_resume): For "REP", only check/update the PC when
1211 a branch instruction has not been executed.
1212
1213 Mon Nov 10 17:50:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
1214
1215 * simops.c (OP_4201): "rachi". Sign extend bit 40 of ACC. Sign
1216 extend bit 44 all constants.
1217 (OP_4201): Replace GCC specific 0x..LL with SIGNED64 macro.
1218
1219 Fri Oct 24 10:26:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
1220
1221 * d10v_sim.h: Include sim-types.h.
1222 (uint8, in816, uiny16, int32, uint32, int64, uint64): Typedef
1223 using unsigned8 et.al. from sim-types.h.
1224 (SEXT32, SEXT40, SEXT44, SEXT60): Replace GCC specific 0x..LL with
1225 SIGNED64 macro.
1226
1227 Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1228
1229 * interp.c (sim_write_phys): New function, write to physical
1230 instead of virtual memory.
1231
1232 * interp.c (sim_load): Pass lma_p and sim_write_phys to
1233 sim_load_file.
1234
1235 Mon Oct 13 10:55:07 1997 Fred Fish <cygnus.com>
1236
1237 * simops.c (OP_6A01): Change OP_POSTDEC to OP_POSTINC and move
1238 exception generation code to OP_6E01.
1239 (OP_6E01): Change OP_POSTINC to OP_POSTDEC and insert exception
1240 generation code.
1241
1242 Sat Oct 11 09:02:08 1997 Fred Fish <fnf@cygnus.com>
1243
1244 * simops.c (OP_6401): postdecrement on r15 is OK, remove exception.
1245 (OP_6601): Ditto.
1246
1247 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1248
1249 * configure: Regenerated to track ../common/aclocal.m4 changes.
1250
1251 Sat Sep 27 12:51:34 1997 Fred Fish <fnf@cygnus.com>
1252
1253 * interp.c (pc_addr): Discard upper bit(s) of PC in case
1254 IMAP1 selects unified memory.
1255 * d10v_sim.h (INC_ADDR): Align MOD_E to increment before testing
1256 for end condition.
1257
1258 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
1259
1260 * configure: Regenerated to track ../common/aclocal.m4 changes.
1261
1262 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1263
1264 * configure: Regenerated to track ../common/aclocal.m4 changes.
1265
1266 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1267
1268 * configure: Regenerated to track ../common/aclocal.m4 changes.
1269
1270 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
1271
1272 * configure: Regenerated to track ../common/aclocal.m4 changes.
1273
1274 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1275
1276 * configure: Regenerated to track ../common/aclocal.m4 changes.
1277
1278 Wed Sep 10 22:30:24 1997 Martin M. Hunt <hunt@cygnus.com>
1279
1280 * interp.c (sim_resume): Increment PC at end of rep
1281 loop.
1282
1283 * simops.c (OP_4201): Fix rachi instruction.
1284
1285 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
1286
1287 * configure: Regenerated to track ../common/aclocal.m4 changes.
1288
1289 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1290
1291 * configure: Regenerated to track ../common/aclocal.m4 changes.
1292 * config.in: Ditto.
1293
1294 Tue Aug 26 10:37:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
1295
1296 * interp.c (sim_kill): Delete.
1297 (sim_create_inferior): Add ABFD argument.
1298 (sim_load): Move setting of PC from here.
1299 (sim_create_inferior): To here.
1300 (start_address): Delete variable.
1301
1302 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1303
1304 * configure: Regenerated to track ../common/aclocal.m4 changes.
1305 * config.in: Ditto.
1306
1307 Mon Aug 25 15:39:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
1308
1309 * interp.c (sim_open): Add ABFD argument.
1310
1311 Tue May 20 10:14:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
1312
1313 * interp.c (sim_open): Add callback argument.
1314 (sim_set_callbacks): Remove SIM_DESC argument.
1315
1316 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
1317
1318 * configure: Regenerated to track ../common/aclocal.m4 changes.
1319
1320 Tue Apr 22 10:29:23 1997 Doug Evans <dje@canuck.cygnus.com>
1321
1322 * interp.c (sim_open): Undo patch to add -E support.
1323
1324 Fri Apr 18 13:39:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
1325
1326 * interp.c (sim_stop): New function.
1327
1328 Thu Apr 17 02:42:00 1997 Doug Evans <dje@canuck.cygnus.com>
1329
1330 * Makefile.in (SIM_OBJS): Add sim-load.o.
1331 * d10v_sim.h (exec_bfd): Rename to prog_bfd.
1332 * interp.c: #include bfd.h.
1333 (myname, sim_kind, start_address): New static locals.
1334 (prog_bfd_was_opened_p, prog_bfd): New static locals.
1335 (decode_pc): Update to use prog_bfd.
1336 (sim_open): Set sim_kind, myname. Ignore -E arg.
1337 (sim_close): Close prog_bfd if simulator opened it.
1338 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
1339 (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd.
1340 Call sim_load_file to load file into simulator.
1341 * simops.c (trace_input_func): exec_bfd renamed to prog_bfd.
1342
1343 Wed Apr 16 16:12:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
1344
1345 * simops.c (OP_5F00): Only provide system calls SYS_execv,
1346 SYS_wait, SYS_wait, SYS_utime, SYS_time if defined by the host.
1347
1348 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1349
1350 * configure: Regenerated to track ../common/aclocal.m4 changes.
1351 * config.in: Ditto.
1352
1353 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
1354
1355 * interp.c (sim_open): New arg `kind'.
1356
1357 * configure: Regenerated to track ../common/aclocal.m4 changes.
1358
1359 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1360
1361 * configure: Regenerated to track ../common/aclocal.m4 changes.
1362
1363 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1364
1365 * configure: Re-generate.
1366
1367 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
1368
1369 * configure: Regenerate to track ../common/aclocal.m4 changes.
1370
1371 * simops.c (OP_5F00): Remove old traps 1-3. Make trap 15 the same
1372 as trap 0, which will be deprecated. Only set errno, if an error
1373 in fact was returned.
1374
1375 Thu Mar 13 12:41:20 1997 Doug Evans <dje@canuck.cygnus.com>
1376
1377 * interp.c: Delete redundant prototypes of sim_foo fns.
1378 (sim_open): New SIM_DESC result. Argument is now in argv form.
1379 (other sim_*): New SIM_DESC argument.
1380
1381 Thu Mar 13 10:29:04 1997 Michael Meissner <meissner@cygnus.com>
1382
1383 * simops.c (trace_{input,output}_func): Call flush_stdout from the
1384 callback functions.
1385 (OP_5F00): Ditto.
1386 (OP_6{4,6,C,A}01): Test for post decrement on the stack pointer.
1387 (OP_{1200,1000000,201,5FE0,1003,17001002}): Fix problems in
1388 setting the carry bit after an add or a subtract.
1389
1390 Wed Feb 12 16:04:15 1997 Michael Meissner <meissner@cygnus.com>
1391
1392 * simops.c (OP_{1403,15002A02,3{0,4}0{0,1}}): Only use the bottom
1393 40 bits of accumulators. Sign/zero extend as appropriate.
1394
1395 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
1396
1397 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
1398 COMMON_{PRE,POST}_CONFIG_FRAG instead.
1399 * configure.in: sinclude ../common/aclocal.m4.
1400 * configure: Regenerated.
1401
1402 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
1403
1404 * configure configure.in Makefile.in: Update to new configure
1405 scheme which is more compatible with WinGDB builds.
1406 * configure.in: Improve comment on how to run autoconf.
1407 * configure: Re-run autoconf to get new ../common/aclocal.m4.
1408 * Makefile.in: Use autoconf substitution to install common
1409 makefile fragment.
1410
1411 Fri Dec 27 22:54:05 1996 Angela Marie Thomas (angela@cygnus.com)
1412
1413 * gencode.c: patch to not #include "d10v_sim.h" which
1414 unecessarily includes bfd.h and causes wingdb configure
1415 to fail.
1416
1417 Mon Dec 16 13:39:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1418
1419 * interp.c (xfer_mem): Change unified memory to 0x0.
1420
1421 Thu Nov 28 20:42:56 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1422
1423 * simops.c (OP_3E01): Fix tracing information.
1424 (OP_300{0,1}): Do not propigate sign.
1425
1426 Mon Nov 25 19:47:40 1996 Doug Evans <dje@canuck.cygnus.com>
1427
1428 * config.in (WORDS_BIGENDIAN): Add.
1429 * configure: Regenerated.
1430 * d10v_sim.h: #include "config.h"
1431
1432 Sat Nov 23 09:34:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1433
1434 * gencode.c (write_opcodes): Eliminate warnings when generated
1435 table.c is compiled.
1436
1437 Wed Nov 20 19:41:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1438
1439 * interp.c (sim_open): Cast result of calloc, and make sure NULL
1440 was not returned.
1441 (dmem_addr): If address is illegal or in I/O space, signal a bus
1442 error.
1443 (pc_addr): Signal bus error, not illegal instruction for bogus
1444 pc.
1445
1446 Wed Nov 20 01:23:03 1996 Doug Evans <dje@canuck.cygnus.com>
1447
1448 * Makefile.in: Delete all stuff moved to ../common/Make-common.in.
1449 (SIM_OBJS,SIM_EXTRA_CFLAGS,SIM_EXTRA_CLEAN): Define.
1450 * configure.in: Simplify using macros in ../common/aclocal.m4.
1451 Call AC_CHECK_HEADERS(unistd.h).
1452 * configure: Regenerated.
1453 * config.in: New file.
1454 * interp.c: #include "callback.h".
1455 * simops.c: #include "config.h". #include <unistd.h> if present.
1456
1457 Fri Nov 8 16:19:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1458
1459 * d10v-sim.h (simops): Add flag is_long.
1460 (State): Add pc_changed. Instructions which update the PC should
1461 use the JMP macro which sets this.
1462 (JMP): New macro. Sets the PC and the pc_changed flag.
1463
1464 * gencode.c (write_opcodes): Add is_long field.
1465
1466 * interp.c (lookup_hash): If we blindly apply a short opcode's mask
1467 to a long opcode we could get a false match. Check the opcode size.
1468 (hash): Add a size field to the hash table.
1469 (sim_open): Initialize size field in hash table.
1470 (sim_resume): Change to logic for setting the PC. Used to increment the
1471 PC if it had not been changed. This didn't allow single-instruction loops.
1472 Now checks the flag State.pc_changed. Also now stops when ^C is received.
1473 (dmem_addr): Fix translation of data segments to unified memory.
1474 (sim_ctrl_c): New function. When ^C is received, set stop_simulator flag.
1475
1476 * simops.c: Changed all branch and jump instructions to use new JMP macro.
1477 (OP_20000000): Corrected trace information to show this is a ldi.l, not
1478 a ldi.s instruction.
1479
1480 Thu Oct 31 19:13:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1481
1482 * interp.c (sim_fetch_register, sim_store_register): Fix bug where
1483 updating the accumulators was overwriting other parts of the global
1484 State variable.
1485
1486 Wed Oct 30 17:35:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1487
1488 * interp.c (bfd.h) Don't include it here any more.
1489 (text{,_start,_end}): Move here from simops.c and make extern.
1490 (decode_pc): New function to return the PC as an address that the
1491 debugger can use.
1492 (dmem_addr): Print decoded PC in error message.
1493 (pc_addr): Ditto.
1494
1495 * simops.c (bfd.h) Don't include it here any more.
1496 (text{,_start,_end}): Move to simops.c.
1497 (trace_input_func): Move decoding of PC, and looking up .text
1498 start to decode_pc.
1499
1500 * d10v_sim.h (bfd.h): Include it here.
1501 (text{,_start,_end}): Add external declarations.
1502 (exec_bfd): Ditto.
1503 (decode_pc): Ditto.
1504
1505 Tue Oct 29 12:13:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1506
1507 * interp.c (sim_size): Now allocates unified memory for imap segments
1508 0,1,2, and 127. Initializes imap0 and imap1 to 0x1000. Initializes dmap to 0.
1509 (sim_write): Just call xfer_mem().
1510 (sim_read): Just call xfer_mem().
1511 (xfer_mem): New function. Does appropriate memory mapping and copies bytes.
1512 (dmem_addr): New function. Reads dmap register and translates data
1513 addresses to local addresses.
1514 (pc_addr): New function. Reads imap register and computes local address
1515 corresponding to contents of the PC.
1516 (sim_resume): Change to use pc_addr().
1517 (sim_create_inferior): Change reinitialization code. Also reinitializes
1518 imap[01] and dmap.
1519 (sim_fetch_register): Add fake registers 32,33,34 for imap0, imap1, and dmap.
1520 (sim_store_register): Add fake registers 32,33,34 for imap0, imap1, and dmap.
1521
1522 * simops.c (MEMPTR): Redefine to use dmem_addr().
1523 (OP_5F00): Replace references to STate.imem with dmem_addr().
1524
1525 * d10v-sim.h (State): Remove mem_min and mem_max. Add umem[128].
1526 (RB,SW,RW,SLW,RLW): Redefine to use dmem_addr().
1527 (IMAP0,IMAP1,DMAP,SET_IMAP,SET_IMAP1,SET_DMAP): Define.
1528
1529 Tue Oct 22 15:22:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1530
1531 * d10v_sim.h (_ins_type): Reorganize, so that we can provide
1532 better statistics, like not counting NOPS as parallel
1533 instructions, and printing total cycles.
1534 (ins_type_counters): Make unsigned long.
1535 (left_nops,right_nops): Fold into ins_type_counters.
1536
1537 * simops.c (trace_input_func): Print new instruction types.
1538 Handle OP_R2R3 as input types.
1539 (OP_{38000000,7000}): Correctly sign extend bytes.
1540 (OP_5E00): Don't count NOPs as parallel instructions.
1541 (OP_460B): Remove unused variable.
1542 (OP_5F00): Ditto.
1543
1544 * interp.c (ins_type_counters): Make unsigned long.
1545 (left_nops,right_nops): Delete.
1546 (most functions): Add prototypes.
1547 (INLINE): If GCC and optimize define as __inline__.
1548 ({,lookup_}hash,get_operands): Declare as INLINE.
1549 (do_parallel): Count conditional operations.
1550 (add_commas): New function, to add commas every 3 digits.
1551 (sim_size): Call add_commas to print numbers.
1552 (sim_{open,resume}): Delete unused variables.
1553 (sim_info): Provide better statistics.
1554 (sim_read): Add int return type.
1555
1556 Mon Oct 21 16:16:26 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1557
1558 * interp.c (sim_resume): Change the way single-stepping and exceptions
1559 are handled so single-stepping works again.
1560
1561 Thu Oct 17 12:24:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1562
1563 * endian.c: Optimize simulated loads/stores on x86, AIX, and big
1564 endian hosts.
1565
1566 * configure.in (--enable-sim-bswap): New switch to enable using
1567 the BSWAP instruction on x86's.
1568 * configure: Regenerate.
1569
1570 * Makefile.in ({SWAP,CONFIG}_CFLAGS): Add --enable-sim-bswap
1571 support.
1572
1573 Wed Oct 16 13:50:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1574
1575 * endian.c: New file. Move endian functions here from interp.c.
1576 Optimize code, and make it work as either inline functions or as a
1577 separate file.
1578
1579 * interp.c: Move endian functions from here to endian.c.
1580
1581 * Makefile.in (INCLUDE): Add endian.c.
1582 (run,libsim.a): Add dependency on endian.o.
1583 (endian.o): Add dependency.
1584
1585 * d10v_sim.h (read/write support): Always go through the machine
1586 independent endian functions. If compiling with GCC and
1587 optimizing, include endian.c so the endian functions are inlined.
1588
1589 * simops.c (OP_5F00): Correct tracing of accumulators.
1590
1591 Tue Oct 15 10:57:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1592
1593 * simops.c (OP_5F00): Add support for getpid, kill system calls.
1594
1595 * interp.c (do_{2_short,parallel}): If an exception is raised,
1596 don't execute the second instruction.
1597
1598 Sat Oct 12 22:17:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1599
1600 * simops.c (OP_{31000000,6601,6201,6200}): Store address in a
1601 temporary in case the register is overriden when loading.
1602 (OP_6200): Output type is OP_DREG for tracing.
1603
1604 Fri Oct 4 23:46:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1605
1606 * d10v_sim.h (struct _state): Add mem_{min,max} fields.
1607
1608 * interp.c (sim_size): Initialize mem_{min,max} fields.
1609 (sim_write): Update mem_{min,max} fields.
1610 (sim_resume): If PC is not in the minimum/maximum memory range,
1611 abort.
1612 (sim_create_inferior): Preserve mem_{min,max} fields.
1613
1614 Fri Sep 27 13:11:58 1996 Mark Alexander <marka@cygnus.com>
1615
1616 * simops.c (OP_5F00): Add support for time() system call.
1617
1618 Wed Sep 25 16:31:41 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1619
1620 * simops.c (OP_{6E01,6A01,6E1F,6A00}): Print both words being
1621 stored if tracing.
1622 (OP_5F00,trace_{in,out}put_func): Add finer grain tracing for
1623 system calls.
1624
1625 Mon Sep 23 17:55:30 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1626
1627 * simops.c (op_types): Add OP_{CONSTANT8,R2,R3}.
1628 (trace_input_func): Add support for OP_{CONSTANT8,R2,R3}.
1629 (OP_{4900,24800000,4800,4A00,4B00,4D00,4C00}): Add OP_R2 and OP_R3
1630 to call/subroutine returns to trace the first two arguments and
1631 the return value. For small jumps, use CONSTANT8, not CONSTANT16.
1632
1633 Fri Sep 20 15:36:45 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1634
1635 * interp.c (sim_create_inferior): Reinitialize State every time
1636 sim_create_inferior() is called.
1637
1638 Thu Sep 19 21:38:20 1996 Michael Meissner <meissner@wogglebug.ziplink.net>
1639
1640 * simops.c (OP_{401,2000000,601,3000000,23000000}): Get sign right
1641 on comparisons.
1642 (OP_401): Fix tracing information.
1643
1644 Thu Sep 19 10:30:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1645
1646 * simops.c (SIZE_{PC,LINE_NUMBER}): New default sizes for output.
1647 (trace_input_func): Use them.
1648 (trace_input_func): Make sure there is a trailing space after the
1649 instruction.
1650 (OP_6200): Fix tracing info.
1651
1652 * Makefile.in (run): Add dependencies on libbfd.a and
1653 libiberity.a.
1654
1655 Wed Sep 18 09:13:25 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1656
1657 * d10v_sim.h (DEBUG_INSTRUCTION): New debug value to include line
1658 numbers and function names in debug trace.
1659 (DEBUG): If not defined, set to DEBUG_TRACE, DEBUG_VALUES, and
1660 DEBUG_LINE_NUMBER.
1661 (SIG_D10V_{STOP,EXIT}): Values to represent the stop instruction
1662 and exit system call trap being executed.
1663
1664 * interp.c (sim_stop_reason): Set exit code correctly for stop
1665 instruction and exit system call trap.
1666
1667 * configure.in (--enable-sim-cflags): Remove trace case.
1668 (--enable-sim-debug): New switch to set the debug values.
1669 * configure: Regenerate.
1670
1671 * simops.c (trace_{input,output}_func): Rename from
1672 trace_{input,output}.
1673 (trace_{input,output}): Call trace_{input,output}_func if
1674 d10v_debug is non-zero.
1675 (SIZE_INSTRUCTION): Cut down to 8.
1676 (SIZE_OPERANDS): Cut down to 18.
1677 (SIZE_LOCATION): New value for size of line number, function name
1678 field.
1679 (init_text_p,text{,_start,_end}): New static variables for
1680 printing line number and function name.
1681 (exec_bfd): New external that run.c sets.
1682 (trace_input_func): Print line number and function name if
1683 available and if desired.
1684 (OP_4E09): Don't print out DBT message.
1685 (OP_5FE0): Set exception field to SIG_D10V_STOP.
1686 (OP_5F00): Set exception field to SIG_D10V_EXIT.
1687
1688 Sat Sep 14 22:18:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1689
1690 * interp.c (do_2_short): If the instruction encodes jump->ins,
1691 don't do the second instruction if the jump succeeds.
1692
1693 Fri Sep 13 22:35:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1694
1695 * simops.c (OP_5F00): Use unknown traps to print all GPRs,
1696 accumulators, PC, and F0/F1/C flags.
1697
1698 Thu Sep 12 12:50:11 1996 Mark Alexander <marka@cygnus.com>
1699
1700 * simops.c (OP_5F00): Fix problems with system calls.
1701
1702 Thu Sep 12 12:19:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1703
1704 * simops.c (OP_5F00): Correct tracing information for trap.
1705
1706 Wed Sep 11 18:55:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1707
1708 * Makefile.in (CSEARCH): Correctly find opcodes directory.
1709
1710 Mon Sep 9 13:27:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1711
1712 * simops.c (trace_output): Properly align accumulator output.
1713 (OP_3{0,2,4}00): Properly parenthesize test expression. Add error
1714 if shift count is too high.
1715 (OP_4E{00,02,04,20,22,40,42}): Make tests agree with book.
1716 (OP_4E09): Make cpfg properly trace the input flags.
1717 (op_types): Add OP_FLAG_OUTPUT.
1718 (trace_{input,output}): Support OP_FLAG_OUTPUT.
1719 (OP_31000000): This ld2w varient is a 16-bit memory reference, not
1720 an 8-bit memory reference instruction for tracing purposes.
1721 (OP_201): Addi needs to set the carry.
1722
1723 Fri Sep 6 17:56:17 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1724
1725 * simops.c (OP_2600, OP_2601): Changed min and max comparisons
1726 to use signed register values.
1727
1728 Wed Sep 4 11:35:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1729
1730 * d10v_sim.h (DEBUG_*): Add bit flags for controlling debug
1731 output.
1732 (_ins_type): New enumeration to specify which container an
1733 instruction is in, and whether it is part of a parallel operation.
1734 (_state): Add ins_type field.
1735 ({,u}int{8,16,32,64}): Use limits.h to size the appropriate types.
1736 (ins_type_counters): Counters for the various instruction types.
1737 ({left,right}_nops): Counters for the number of nops in each
1738 container.
1739 (d10v_debug): New variable to indicate whether debugging is turned
1740 on.
1741
1742 * simops.c: (all functions): Change all #ifdef DEBUG code so that
1743 the input and output values can be traced, along with the
1744 instruction type. Make the -t option enable tracing.
1745 (all functions): Change printf calls to use the printf_filtered
1746 function in the callback table.
1747
1748 * interp.c (_leftright): New enumeration to say whether 2 short
1749 instructions are done left first or right first.
1750 (do_{long,2_short,parallel}): Indicate in the machine state which
1751 type of instruction this is. Count each of the types of
1752 instructions executed.
1753 (sim_size): Only print the memory sizes if DEBUG_MEMSIZE debug
1754 flag is set.
1755 (sim_resume): Pass left/right indication to do_2_short.
1756 (all functions): Change printf calls to use the printf_filtered
1757 function in the callback table.
1758 (sim_trace): Turn on debug flag if DEBUG was defined, and call
1759 sim_resume.
1760 (sim_info): Print out statistics on instructions.
1761 (sim_{trace,create_inferior}): Eliminate extraneous output unless
1762 debugging.
1763 (sim_open): If args == -t and DEBUG was defined, set d10v_debug.
1764 Only initialize the hash table the first time sim_open is called.
1765
1766 * Makefile.in: Make objects depend on d10v_sim.h.
1767 ({,SIM_}CFLAGS): Include configure dependent switches. Setting
1768 CFLAGS does not override host/target defines or SIM_CFLAGS.
1769 (CC_FOR_BUILD,gencode): Use CC_FOR_BUILD to compile gencode.
1770 (run): By default, the math library is not needed to be linked
1771 in.
1772 ({BFD,LIBIBERTY}_LIB): Define as variables so they can be
1773 overridden.
1774 (VPATH): Don't set to anything but @srcdir@ to work with non-GNU
1775 makes.
1776 ({run,callback}.o): Provide explicit paths to their appropriate
1777 source directories.
1778 (gencode{,.o},d10v-opc.o): Split compilation into creating object
1779 and linking. Instead of linking in libopcodes.a, just compile
1780 d10v-opc.o directly to handle canadian cross.
1781 (CSEARCH): Add opcodes directory.
1782
1783 * configure.in (--enable-sim-cflags): New switch to allow user to
1784 set the defaults.
1785 (CC_FOR_BUILD): Deal with canadian crosses.
1786 * configure: Regenerate.
1787
1788 Wed Sep 04 04:45:34 1996 Mark Alexander <marka@cygnus.com>
1789
1790 * simops.c: Include correct syscall.h for d10v, not host's.
1791 Fix #ifdef SYS_stat.
1792
1793 Tue Sep 3 14:00:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1794
1795 * simops.c (OP_5F00): Wrap all SYS_xxx traps with #ifdef.
1796 Add trap 2 to be printf and trap 3 to be putchar.
1797
1798 Wed Aug 28 21:42:34 1996 Mark Alexander <marka@cygnus.com>
1799
1800 * Makefile.in, d10v_sim.h, interp.c, simops.c: Add support
1801 for low-level system calls.
1802
1803 Wed Aug 28 17:33:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1804
1805 * Makefile.in, d10v_sim.h, interp.c: Fix byte-order problems.
1806
1807 Mon Aug 26 18:30:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1808
1809 * d10v_sim.h (SEXT32): Added.
1810 * interp.c: Commented out printfs.
1811 * simops.c: Fixed error in sb and st2w.
1812
1813 Thu Aug 15 13:30:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1814
1815 * Makefile.in, d10v_sim.h, interp.c, simops.c: Added remaining
1816 DSP instructions. Added modulo addressing.
1817
1818 Sun Aug 11 12:57:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1819
1820 * Makefile.in, d10v_sim.h, interp.c, simops.c: Snapshot.
1821
1822 Fri Aug 2 17:44:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1823
1824 * d10v_sim.h, simops.c: Snapshot.
1825
1826 Thu Aug 1 17:05:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1827
1828 * ChangeLog, Makefile.in, configure, configure.in, d10v_sim.h,
1829 gencode.c, interp.c, simops.c: Created.