]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/d10v/ChangeLog
* aclocal.m4: Recognize --enable-maintainer-mode.
[thirdparty/binutils-gdb.git] / sim / d10v / ChangeLog
1 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
2
3 * configure: Regenerated to track ../common/aclocal.m4 changes.
4
5 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
6
7 * configure: Regenerated to track ../common/aclocal.m4 changes.
8 * config.in: Ditto.
9
10 Tue Dec 9 10:28:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
11
12 * d10v_sim.h (RPT_S): Index cregs with RPT_S_CR not RPT_E_CR.
13 (BPSW): Ditto for BPSW_CR and not PSW_CR.
14
15 * simops.c (OP_5F40): JMP to BPC instead of assigning PC directly.
16
17 Mon Dec 8 12:58:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
18
19 * simops.c (OP_5F00): From Martin Hunt <hunt@cygnus.com>. Change
20 reserved trap from 0 to 15. Add trap emulation code for 0-14.
21
22 * interp.c (sim_resume): From Martin Hunt <hunt@cygnus.com>. Check
23 IBA for SDBT.
24
25 * d10v_sim.h (AE_VECTOR_START, RIE_VECTOR_START,
26 SDBT_VECTOR_START, TRAP_VECTOR_START): Define.
27
28 * simops.c (OP_5F00): For "trap", mask out all but SM bit in PSW,
29 use move_to_cr.
30 (OP_5F00): For "trap", update BPSW with move_to_cr.
31
32 Fri Dec 5 15:31:17 1997 Andrew Cagney <cagney@b1.cygnus.com>
33
34 * d10v_sim.h (enum): Enumerate CR register names.
35 (enum): Enumerate PSW bit values.
36 (PSW): Obtain value uing move_from_cr.
37 (MOD_S, MOD_E, BPSW): Make r-values.
38 (move_from_cr, move_to_cr): Declare functions.
39
40 * interp.c (sim_fetch_register, sim_store_register): Use
41 move_from_cr and move_to_cr for CR register transfers.
42
43 * simops.c (move_from_cr, move_to_cr): New functions.
44 (OP_5F40): Move BPSW to PSW using move_to_cr and move_from_cr.
45 (OP_5600): For "mvtc", use function move_to_cr.
46 (OP_5200): For "mvfc", use function move_from_cr.
47
48 Fri Dec 5 13:33:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
49
50 * simops.c (OP_5600): For "mvtc" MOD_E and MOD_S, ensure that the
51 LSbit is zero.
52
53 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
54
55 * configure: Regenerated to track ../common/aclocal.m4 changes.
56
57 Thu Dec 4 16:51:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
58
59 * d10v_sim.h (struct _state): Add DM - PSW debug mask.
60
61 * simops.c (OP_5600): For "mvtc", save PSW.DM.
62 (OP_5200): Ditto for "mvfc".
63
64 Wed Dec 3 17:27:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
65
66 * d10v_sim.h (SEXT56): Define.
67
68 * simops.c (OP_4201): For "rac", sign extend 56 bit value before
69 it is shifted.
70
71 * d10v_sim.h (MAX32, MIN32, MASK32, MASK40): Re-define using
72 SIGNED64 macro.
73
74 Tue Dec 2 15:38:34 1997 Fred Fish <fnf@cygnus.com>
75
76 * interp.c (sim_resume): Call do_2_short with LEFT_FIRST or
77 RIGHT_FIRST, as appropriate, instead of hardcoded ints that
78 don't match enum values.
79
80 Tue Dec 2 15:01:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
81
82 * simops.c (OP_3A00): For "macu", perform multiply stage using 32
83 bit rather than 16 bit precision.
84 (OP_3C00): For "mulxu", store unsigned product in ACC.
85 (OP_3800): For "msbu", subtract unsigned product from ACC,
86 (OP_0): For "sub", compute carry by comparing inputs.
87
88 Tue Dec 2 11:04:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
89
90 * simops.c (OP_1000): For "sub2w", compute carry by comparing
91 inputs.
92
93 Mon Nov 17 20:57:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
94
95 * simops.c (OP_1): Use 32 bit unsigned arithmetic for subtract,
96 carry indicated by value > 0xffff.
97
98 Fri Nov 14 12:51:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
99
100 * interp.c (sim_resume): Don't set up SIGINT handler using signal,
101 handled by client.
102 (sim_resume): Fix race condition of a direct assignment to
103 stop_simulator, conditionally call sim_stop.
104 (sim_stop_reason): Check stop_simulator returning SIGINT. Clear
105 stop_simulator ready for next sim_resume call.
106 (sim_ctrl_c): Delete function.
107
108 Thu Nov 13 19:29:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
109
110 * interp.c (sim_resume): For "REP", only check/update the PC when
111 a branch instruction has not been executed.
112
113 Mon Nov 10 17:50:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
114
115 * simops.c (OP_4201): "rachi". Sign extend bit 40 of ACC. Sign
116 extend bit 44 all constants.
117 (OP_4201): Replace GCC specific 0x..LL with SIGNED64 macro.
118
119 Fri Oct 24 10:26:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
120
121 * d10v_sim.h: Include sim-types.h.
122 (uint8, in816, uiny16, int32, uint32, int64, uint64): Typedef
123 using unsigned8 et.al. from sim-types.h.
124 (SEXT32, SEXT40, SEXT44, SEXT60): Replace GCC specific 0x..LL with
125 SIGNED64 macro.
126
127 Wed Oct 22 14:43:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
128
129 * interp.c (sim_write_phys): New function, write to physical
130 instead of virtual memory.
131
132 * interp.c (sim_load): Pass lma_p and sim_write_phys to
133 sim_load_file.
134
135 Mon Oct 13 10:55:07 1997 Fred Fish <cygnus.com>
136
137 * simops.c (OP_6A01): Change OP_POSTDEC to OP_POSTINC and move
138 exception generation code to OP_6E01.
139 (OP_6E01): Change OP_POSTINC to OP_POSTDEC and insert exception
140 generation code.
141
142 Sat Oct 11 09:02:08 1997 Fred Fish <fnf@cygnus.com>
143
144 * simops.c (OP_6401): postdecrement on r15 is OK, remove exception.
145 (OP_6601): Ditto.
146
147 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
148
149 * configure: Regenerated to track ../common/aclocal.m4 changes.
150
151 Sat Sep 27 12:51:34 1997 Fred Fish <fnf@cygnus.com>
152
153 * interp.c (pc_addr): Discard upper bit(s) of PC in case
154 IMAP1 selects unified memory.
155 * d10v_sim.h (INC_ADDR): Align MOD_E to increment before testing
156 for end condition.
157
158 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
159
160 * configure: Regenerated to track ../common/aclocal.m4 changes.
161
162 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
163
164 * configure: Regenerated to track ../common/aclocal.m4 changes.
165
166 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
167
168 * configure: Regenerated to track ../common/aclocal.m4 changes.
169
170 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
171
172 * configure: Regenerated to track ../common/aclocal.m4 changes.
173
174 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
175
176 * configure: Regenerated to track ../common/aclocal.m4 changes.
177
178 Wed Sep 10 22:30:24 1997 Martin M. Hunt <hunt@cygnus.com>
179
180 * interp.c (sim_resume): Increment PC at end of rep
181 loop.
182
183 * simops.c (OP_4201): Fix rachi instruction.
184
185 Thu Sep 4 17:21:23 1997 Doug Evans <dje@seba>
186
187 * configure: Regenerated to track ../common/aclocal.m4 changes.
188
189 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
190
191 * configure: Regenerated to track ../common/aclocal.m4 changes.
192 * config.in: Ditto.
193
194 Tue Aug 26 10:37:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
195
196 * interp.c (sim_kill): Delete.
197 (sim_create_inferior): Add ABFD argument.
198 (sim_load): Move setting of PC from here.
199 (sim_create_inferior): To here.
200 (start_address): Delete variable.
201
202 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
203
204 * configure: Regenerated to track ../common/aclocal.m4 changes.
205 * config.in: Ditto.
206
207 Mon Aug 25 15:39:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
208
209 * interp.c (sim_open): Add ABFD argument.
210
211 Tue May 20 10:14:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
212
213 * interp.c (sim_open): Add callback argument.
214 (sim_set_callbacks): Remove SIM_DESC argument.
215
216 Thu Apr 24 00:39:51 1997 Doug Evans <dje@canuck.cygnus.com>
217
218 * configure: Regenerated to track ../common/aclocal.m4 changes.
219
220 Tue Apr 22 10:29:23 1997 Doug Evans <dje@canuck.cygnus.com>
221
222 * interp.c (sim_open): Undo patch to add -E support.
223
224 Fri Apr 18 13:39:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
225
226 * interp.c (sim_stop): New function.
227
228 Thu Apr 17 02:42:00 1997 Doug Evans <dje@canuck.cygnus.com>
229
230 * Makefile.in (SIM_OBJS): Add sim-load.o.
231 * d10v_sim.h (exec_bfd): Rename to prog_bfd.
232 * interp.c: #include bfd.h.
233 (myname, sim_kind, start_address): New static locals.
234 (prog_bfd_was_opened_p, prog_bfd): New static locals.
235 (decode_pc): Update to use prog_bfd.
236 (sim_open): Set sim_kind, myname. Ignore -E arg.
237 (sim_close): Close prog_bfd if simulator opened it.
238 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
239 (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd.
240 Call sim_load_file to load file into simulator.
241 * simops.c (trace_input_func): exec_bfd renamed to prog_bfd.
242
243 Wed Apr 16 16:12:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
244
245 * simops.c (OP_5F00): Only provide system calls SYS_execv,
246 SYS_wait, SYS_wait, SYS_utime, SYS_time if defined by the host.
247
248 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
249
250 * configure: Regenerated to track ../common/aclocal.m4 changes.
251 * config.in: Ditto.
252
253 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
254
255 * interp.c (sim_open): New arg `kind'.
256
257 * configure: Regenerated to track ../common/aclocal.m4 changes.
258
259 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
260
261 * configure: Regenerated to track ../common/aclocal.m4 changes.
262
263 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
264
265 * configure: Re-generate.
266
267 Fri Mar 14 10:34:11 1997 Michael Meissner <meissner@cygnus.com>
268
269 * configure: Regenerate to track ../common/aclocal.m4 changes.
270
271 * simops.c (OP_5F00): Remove old traps 1-3. Make trap 15 the same
272 as trap 0, which will be deprecated. Only set errno, if an error
273 in fact was returned.
274
275 Thu Mar 13 12:41:20 1997 Doug Evans <dje@canuck.cygnus.com>
276
277 * interp.c: Delete redundant prototypes of sim_foo fns.
278 (sim_open): New SIM_DESC result. Argument is now in argv form.
279 (other sim_*): New SIM_DESC argument.
280
281 Thu Mar 13 10:29:04 1997 Michael Meissner <meissner@cygnus.com>
282
283 * simops.c (trace_{input,output}_func): Call flush_stdout from the
284 callback functions.
285 (OP_5F00): Ditto.
286 (OP_6{4,6,C,A}01): Test for post decrement on the stack pointer.
287 (OP_{1200,1000000,201,5FE0,1003,17001002}): Fix problems in
288 setting the carry bit after an add or a subtract.
289
290 Wed Feb 12 16:04:15 1997 Michael Meissner <meissner@cygnus.com>
291
292 * simops.c (OP_{1403,15002A02,3{0,4}0{0,1}}): Only use the bottom
293 40 bits of accumulators. Sign/zero extend as appropriate.
294
295 Tue Feb 4 13:33:30 1997 Doug Evans <dje@canuck.cygnus.com>
296
297 * Makefile.in (@COMMON_MAKEFILE_FRAG): Use
298 COMMON_{PRE,POST}_CONFIG_FRAG instead.
299 * configure.in: sinclude ../common/aclocal.m4.
300 * configure: Regenerated.
301
302 Thu Jan 23 11:46:23 1997 Stu Grossman (grossman@critters.cygnus.com)
303
304 * configure configure.in Makefile.in: Update to new configure
305 scheme which is more compatible with WinGDB builds.
306 * configure.in: Improve comment on how to run autoconf.
307 * configure: Re-run autoconf to get new ../common/aclocal.m4.
308 * Makefile.in: Use autoconf substitution to install common
309 makefile fragment.
310
311 Fri Dec 27 22:54:05 1996 Angela Marie Thomas (angela@cygnus.com)
312
313 * gencode.c: patch to not #include "d10v_sim.h" which
314 unecessarily includes bfd.h and causes wingdb configure
315 to fail.
316
317 Mon Dec 16 13:39:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
318
319 * interp.c (xfer_mem): Change unified memory to 0x0.
320
321 Thu Nov 28 20:42:56 1996 Michael Meissner <meissner@tiktok.cygnus.com>
322
323 * simops.c (OP_3E01): Fix tracing information.
324 (OP_300{0,1}): Do not propigate sign.
325
326 Mon Nov 25 19:47:40 1996 Doug Evans <dje@canuck.cygnus.com>
327
328 * config.in (WORDS_BIGENDIAN): Add.
329 * configure: Regenerated.
330 * d10v_sim.h: #include "config.h"
331
332 Sat Nov 23 09:34:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
333
334 * gencode.c (write_opcodes): Eliminate warnings when generated
335 table.c is compiled.
336
337 Wed Nov 20 19:41:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
338
339 * interp.c (sim_open): Cast result of calloc, and make sure NULL
340 was not returned.
341 (dmem_addr): If address is illegal or in I/O space, signal a bus
342 error.
343 (pc_addr): Signal bus error, not illegal instruction for bogus
344 pc.
345
346 Wed Nov 20 01:23:03 1996 Doug Evans <dje@canuck.cygnus.com>
347
348 * Makefile.in: Delete all stuff moved to ../common/Make-common.in.
349 (SIM_OBJS,SIM_EXTRA_CFLAGS,SIM_EXTRA_CLEAN): Define.
350 * configure.in: Simplify using macros in ../common/aclocal.m4.
351 Call AC_CHECK_HEADERS(unistd.h).
352 * configure: Regenerated.
353 * config.in: New file.
354 * interp.c: #include "callback.h".
355 * simops.c: #include "config.h". #include <unistd.h> if present.
356
357 Fri Nov 8 16:19:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
358
359 * d10v-sim.h (simops): Add flag is_long.
360 (State): Add pc_changed. Instructions which update the PC should
361 use the JMP macro which sets this.
362 (JMP): New macro. Sets the PC and the pc_changed flag.
363
364 * gencode.c (write_opcodes): Add is_long field.
365
366 * interp.c (lookup_hash): If we blindly apply a short opcode's mask
367 to a long opcode we could get a false match. Check the opcode size.
368 (hash): Add a size field to the hash table.
369 (sim_open): Initialize size field in hash table.
370 (sim_resume): Change to logic for setting the PC. Used to increment the
371 PC if it had not been changed. This didn't allow single-instruction loops.
372 Now checks the flag State.pc_changed. Also now stops when ^C is received.
373 (dmem_addr): Fix translation of data segments to unified memory.
374 (sim_ctrl_c): New function. When ^C is received, set stop_simulator flag.
375
376 * simops.c: Changed all branch and jump instructions to use new JMP macro.
377 (OP_20000000): Corrected trace information to show this is a ldi.l, not
378 a ldi.s instruction.
379
380 Thu Oct 31 19:13:55 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
381
382 * interp.c (sim_fetch_register, sim_store_register): Fix bug where
383 updating the accumulators was overwriting other parts of the global
384 State variable.
385
386 Wed Oct 30 17:35:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
387
388 * interp.c (bfd.h) Don't include it here any more.
389 (text{,_start,_end}): Move here from simops.c and make extern.
390 (decode_pc): New function to return the PC as an address that the
391 debugger can use.
392 (dmem_addr): Print decoded PC in error message.
393 (pc_addr): Ditto.
394
395 * simops.c (bfd.h) Don't include it here any more.
396 (text{,_start,_end}): Move to simops.c.
397 (trace_input_func): Move decoding of PC, and looking up .text
398 start to decode_pc.
399
400 * d10v_sim.h (bfd.h): Include it here.
401 (text{,_start,_end}): Add external declarations.
402 (exec_bfd): Ditto.
403 (decode_pc): Ditto.
404
405 Tue Oct 29 12:13:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
406
407 * interp.c (sim_size): Now allocates unified memory for imap segments
408 0,1,2, and 127. Initializes imap0 and imap1 to 0x1000. Initializes dmap to 0.
409 (sim_write): Just call xfer_mem().
410 (sim_read): Just call xfer_mem().
411 (xfer_mem): New function. Does appropriate memory mapping and copies bytes.
412 (dmem_addr): New function. Reads dmap register and translates data
413 addresses to local addresses.
414 (pc_addr): New function. Reads imap register and computes local address
415 corresponding to contents of the PC.
416 (sim_resume): Change to use pc_addr().
417 (sim_create_inferior): Change reinitialization code. Also reinitializes
418 imap[01] and dmap.
419 (sim_fetch_register): Add fake registers 32,33,34 for imap0, imap1, and dmap.
420 (sim_store_register): Add fake registers 32,33,34 for imap0, imap1, and dmap.
421
422 * simops.c (MEMPTR): Redefine to use dmem_addr().
423 (OP_5F00): Replace references to STate.imem with dmem_addr().
424
425 * d10v-sim.h (State): Remove mem_min and mem_max. Add umem[128].
426 (RB,SW,RW,SLW,RLW): Redefine to use dmem_addr().
427 (IMAP0,IMAP1,DMAP,SET_IMAP,SET_IMAP1,SET_DMAP): Define.
428
429 Tue Oct 22 15:22:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
430
431 * d10v_sim.h (_ins_type): Reorganize, so that we can provide
432 better statistics, like not counting NOPS as parallel
433 instructions, and printing total cycles.
434 (ins_type_counters): Make unsigned long.
435 (left_nops,right_nops): Fold into ins_type_counters.
436
437 * simops.c (trace_input_func): Print new instruction types.
438 Handle OP_R2R3 as input types.
439 (OP_{38000000,7000}): Correctly sign extend bytes.
440 (OP_5E00): Don't count NOPs as parallel instructions.
441 (OP_460B): Remove unused variable.
442 (OP_5F00): Ditto.
443
444 * interp.c (ins_type_counters): Make unsigned long.
445 (left_nops,right_nops): Delete.
446 (most functions): Add prototypes.
447 (INLINE): If GCC and optimize define as __inline__.
448 ({,lookup_}hash,get_operands): Declare as INLINE.
449 (do_parallel): Count conditional operations.
450 (add_commas): New function, to add commas every 3 digits.
451 (sim_size): Call add_commas to print numbers.
452 (sim_{open,resume}): Delete unused variables.
453 (sim_info): Provide better statistics.
454 (sim_read): Add int return type.
455
456 Mon Oct 21 16:16:26 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
457
458 * interp.c (sim_resume): Change the way single-stepping and exceptions
459 are handled so single-stepping works again.
460
461 Thu Oct 17 12:24:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
462
463 * endian.c: Optimize simulated loads/stores on x86, AIX, and big
464 endian hosts.
465
466 * configure.in (--enable-sim-bswap): New switch to enable using
467 the BSWAP instruction on x86's.
468 * configure: Regenerate.
469
470 * Makefile.in ({SWAP,CONFIG}_CFLAGS): Add --enable-sim-bswap
471 support.
472
473 Wed Oct 16 13:50:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
474
475 * endian.c: New file. Move endian functions here from interp.c.
476 Optimize code, and make it work as either inline functions or as a
477 separate file.
478
479 * interp.c: Move endian functions from here to endian.c.
480
481 * Makefile.in (INCLUDE): Add endian.c.
482 (run,libsim.a): Add dependency on endian.o.
483 (endian.o): Add dependency.
484
485 * d10v_sim.h (read/write support): Always go through the machine
486 independent endian functions. If compiling with GCC and
487 optimizing, include endian.c so the endian functions are inlined.
488
489 * simops.c (OP_5F00): Correct tracing of accumulators.
490
491 Tue Oct 15 10:57:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
492
493 * simops.c (OP_5F00): Add support for getpid, kill system calls.
494
495 * interp.c (do_{2_short,parallel}): If an exception is raised,
496 don't execute the second instruction.
497
498 Sat Oct 12 22:17:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
499
500 * simops.c (OP_{31000000,6601,6201,6200}): Store address in a
501 temporary in case the register is overriden when loading.
502 (OP_6200): Output type is OP_DREG for tracing.
503
504 Fri Oct 4 23:46:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
505
506 * d10v_sim.h (struct _state): Add mem_{min,max} fields.
507
508 * interp.c (sim_size): Initialize mem_{min,max} fields.
509 (sim_write): Update mem_{min,max} fields.
510 (sim_resume): If PC is not in the minimum/maximum memory range,
511 abort.
512 (sim_create_inferior): Preserve mem_{min,max} fields.
513
514 Fri Sep 27 13:11:58 1996 Mark Alexander <marka@cygnus.com>
515
516 * simops.c (OP_5F00): Add support for time() system call.
517
518 Wed Sep 25 16:31:41 1996 Michael Meissner <meissner@tiktok.cygnus.com>
519
520 * simops.c (OP_{6E01,6A01,6E1F,6A00}): Print both words being
521 stored if tracing.
522 (OP_5F00,trace_{in,out}put_func): Add finer grain tracing for
523 system calls.
524
525 Mon Sep 23 17:55:30 1996 Michael Meissner <meissner@tiktok.cygnus.com>
526
527 * simops.c (op_types): Add OP_{CONSTANT8,R2,R3}.
528 (trace_input_func): Add support for OP_{CONSTANT8,R2,R3}.
529 (OP_{4900,24800000,4800,4A00,4B00,4D00,4C00}): Add OP_R2 and OP_R3
530 to call/subroutine returns to trace the first two arguments and
531 the return value. For small jumps, use CONSTANT8, not CONSTANT16.
532
533 Fri Sep 20 15:36:45 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
534
535 * interp.c (sim_create_inferior): Reinitialize State every time
536 sim_create_inferior() is called.
537
538 Thu Sep 19 21:38:20 1996 Michael Meissner <meissner@wogglebug.ziplink.net>
539
540 * simops.c (OP_{401,2000000,601,3000000,23000000}): Get sign right
541 on comparisons.
542 (OP_401): Fix tracing information.
543
544 Thu Sep 19 10:30:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
545
546 * simops.c (SIZE_{PC,LINE_NUMBER}): New default sizes for output.
547 (trace_input_func): Use them.
548 (trace_input_func): Make sure there is a trailing space after the
549 instruction.
550 (OP_6200): Fix tracing info.
551
552 * Makefile.in (run): Add dependencies on libbfd.a and
553 libiberity.a.
554
555 Wed Sep 18 09:13:25 1996 Michael Meissner <meissner@tiktok.cygnus.com>
556
557 * d10v_sim.h (DEBUG_INSTRUCTION): New debug value to include line
558 numbers and function names in debug trace.
559 (DEBUG): If not defined, set to DEBUG_TRACE, DEBUG_VALUES, and
560 DEBUG_LINE_NUMBER.
561 (SIG_D10V_{STOP,EXIT}): Values to represent the stop instruction
562 and exit system call trap being executed.
563
564 * interp.c (sim_stop_reason): Set exit code correctly for stop
565 instruction and exit system call trap.
566
567 * configure.in (--enable-sim-cflags): Remove trace case.
568 (--enable-sim-debug): New switch to set the debug values.
569 * configure: Regenerate.
570
571 * simops.c (trace_{input,output}_func): Rename from
572 trace_{input,output}.
573 (trace_{input,output}): Call trace_{input,output}_func if
574 d10v_debug is non-zero.
575 (SIZE_INSTRUCTION): Cut down to 8.
576 (SIZE_OPERANDS): Cut down to 18.
577 (SIZE_LOCATION): New value for size of line number, function name
578 field.
579 (init_text_p,text{,_start,_end}): New static variables for
580 printing line number and function name.
581 (exec_bfd): New external that run.c sets.
582 (trace_input_func): Print line number and function name if
583 available and if desired.
584 (OP_4E09): Don't print out DBT message.
585 (OP_5FE0): Set exception field to SIG_D10V_STOP.
586 (OP_5F00): Set exception field to SIG_D10V_EXIT.
587
588 Sat Sep 14 22:18:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
589
590 * interp.c (do_2_short): If the instruction encodes jump->ins,
591 don't do the second instruction if the jump succeeds.
592
593 Fri Sep 13 22:35:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
594
595 * simops.c (OP_5F00): Use unknown traps to print all GPRs,
596 accumulators, PC, and F0/F1/C flags.
597
598 Thu Sep 12 12:50:11 1996 Mark Alexander <marka@cygnus.com>
599
600 * simops.c (OP_5F00): Fix problems with system calls.
601
602 Thu Sep 12 12:19:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
603
604 * simops.c (OP_5F00): Correct tracing information for trap.
605
606 Wed Sep 11 18:55:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
607
608 * Makefile.in (CSEARCH): Correctly find opcodes directory.
609
610 Mon Sep 9 13:27:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
611
612 * simops.c (trace_output): Properly align accumulator output.
613 (OP_3{0,2,4}00): Properly parenthesize test expression. Add error
614 if shift count is too high.
615 (OP_4E{00,02,04,20,22,40,42}): Make tests agree with book.
616 (OP_4E09): Make cpfg properly trace the input flags.
617 (op_types): Add OP_FLAG_OUTPUT.
618 (trace_{input,output}): Support OP_FLAG_OUTPUT.
619 (OP_31000000): This ld2w varient is a 16-bit memory reference, not
620 an 8-bit memory reference instruction for tracing purposes.
621 (OP_201): Addi needs to set the carry.
622
623 Fri Sep 6 17:56:17 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
624
625 * simops.c (OP_2600, OP_2601): Changed min and max comparisons
626 to use signed register values.
627
628 Wed Sep 4 11:35:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
629
630 * d10v_sim.h (DEBUG_*): Add bit flags for controlling debug
631 output.
632 (_ins_type): New enumeration to specify which container an
633 instruction is in, and whether it is part of a parallel operation.
634 (_state): Add ins_type field.
635 ({,u}int{8,16,32,64}): Use limits.h to size the appropriate types.
636 (ins_type_counters): Counters for the various instruction types.
637 ({left,right}_nops): Counters for the number of nops in each
638 container.
639 (d10v_debug): New variable to indicate whether debugging is turned
640 on.
641
642 * simops.c: (all functions): Change all #ifdef DEBUG code so that
643 the input and output values can be traced, along with the
644 instruction type. Make the -t option enable tracing.
645 (all functions): Change printf calls to use the printf_filtered
646 function in the callback table.
647
648 * interp.c (_leftright): New enumeration to say whether 2 short
649 instructions are done left first or right first.
650 (do_{long,2_short,parallel}): Indicate in the machine state which
651 type of instruction this is. Count each of the types of
652 instructions executed.
653 (sim_size): Only print the memory sizes if DEBUG_MEMSIZE debug
654 flag is set.
655 (sim_resume): Pass left/right indication to do_2_short.
656 (all functions): Change printf calls to use the printf_filtered
657 function in the callback table.
658 (sim_trace): Turn on debug flag if DEBUG was defined, and call
659 sim_resume.
660 (sim_info): Print out statistics on instructions.
661 (sim_{trace,create_inferior}): Eliminate extraneous output unless
662 debugging.
663 (sim_open): If args == -t and DEBUG was defined, set d10v_debug.
664 Only initialize the hash table the first time sim_open is called.
665
666 * Makefile.in: Make objects depend on d10v_sim.h.
667 ({,SIM_}CFLAGS): Include configure dependent switches. Setting
668 CFLAGS does not override host/target defines or SIM_CFLAGS.
669 (CC_FOR_BUILD,gencode): Use CC_FOR_BUILD to compile gencode.
670 (run): By default, the math library is not needed to be linked
671 in.
672 ({BFD,LIBIBERTY}_LIB): Define as variables so they can be
673 overridden.
674 (VPATH): Don't set to anything but @srcdir@ to work with non-GNU
675 makes.
676 ({run,callback}.o): Provide explicit paths to their appropriate
677 source directories.
678 (gencode{,.o},d10v-opc.o): Split compilation into creating object
679 and linking. Instead of linking in libopcodes.a, just compile
680 d10v-opc.o directly to handle canadian cross.
681 (CSEARCH): Add opcodes directory.
682
683 * configure.in (--enable-sim-cflags): New switch to allow user to
684 set the defaults.
685 (CC_FOR_BUILD): Deal with canadian crosses.
686 * configure: Regenerate.
687
688 Wed Sep 04 04:45:34 1996 Mark Alexander <marka@cygnus.com>
689
690 * simops.c: Include correct syscall.h for d10v, not host's.
691 Fix #ifdef SYS_stat.
692
693 Tue Sep 3 14:00:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
694
695 * simops.c (OP_5F00): Wrap all SYS_xxx traps with #ifdef.
696 Add trap 2 to be printf and trap 3 to be putchar.
697
698 Wed Aug 28 21:42:34 1996 Mark Alexander <marka@cygnus.com>
699
700 * Makefile.in, d10v_sim.h, interp.c, simops.c: Add support
701 for low-level system calls.
702
703 Wed Aug 28 17:33:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
704
705 * Makefile.in, d10v_sim.h, interp.c: Fix byte-order problems.
706
707 Mon Aug 26 18:30:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
708
709 * d10v_sim.h (SEXT32): Added.
710 * interp.c: Commented out printfs.
711 * simops.c: Fixed error in sb and st2w.
712
713 Thu Aug 15 13:30:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
714
715 * Makefile.in, d10v_sim.h, interp.c, simops.c: Added remaining
716 DSP instructions. Added modulo addressing.
717
718 Sun Aug 11 12:57:15 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
719
720 * Makefile.in, d10v_sim.h, interp.c, simops.c: Snapshot.
721
722 Fri Aug 2 17:44:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
723
724 * d10v_sim.h, simops.c: Snapshot.
725
726 Thu Aug 1 17:05:24 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
727
728 * ChangeLog, Makefile.in, configure, configure.in, d10v_sim.h,
729 gencode.c, interp.c, simops.c: Created.
730