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