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