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