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