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