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