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