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