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