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