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