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