* callback.c (os_evprintf_filtered): Fix typo.
[platform/upstream/binutils.git] / sim / common / ChangeLog
1 Thu Mar 20 21:50:44 1997  Jeffrey A Law  (law@cygnus.com)
2
3         * callback.c (os_evprintf_filtered): Fix typo.
4
5 Fri Mar 21 13:36:20 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
6
7         * run.c (string.h, strings.h, stdlib.h): Include.
8
9         * sim-events.c (sim_events_tick): Recent cleanup failed to return
10         0 when nothing pending.
11
12         * run.c (sim_size, sim_trace): Plicate GCC - these two functions
13         will soon be going away.
14         (getopt): Plicate GCC.
15
16         * sim-endian.c (sim-io.h): Plicate GCC.
17         * sim-bits.c (sim-io.h): Ditto.
18         * sim-n-bits.h (ROTn): Ditto.
19
20         * sim-io.c (sim_io_error): Correct check for NULL.
21
22         * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
23         the __FILE__.
24         * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
25         path.
26
27 Wed Mar 19 01:12:06 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
28
29         * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
30         SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
31
32 Tue Mar 18 20:48:12 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
33
34         * sim-alu.h: Include sim-xcat.h.
35         
36 Tue Mar 18 13:58:18 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
37
38         * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
39         sim-events.c, sim-inline.c, sim-io.c): Define rules for building
40         these.
41
42         * sim-events.c (sim_events_at_large_int): New function.  Just
43         schedules an event every large-int ticks.
44         (sim_events_init): Call.
45         (sim_events_tick, sim_events_process): Move async handing to
46         sim_events_process.  Move timer decrement so that it occures after
47         events have been processed.
48         
49         * sim-basics.h (struct _engine): Remove declaration.
50
51         * sim-events.h, sim-events.c: Rename type to sim_events.  Prefix
52         everything with same.  Rename global struct to SIM_DESC.
53         * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
54         * sim-io.h, sim-io.c: Ditto.
55         
56         * sim-assert.h: New file. Optional assertion checking macros.
57         * sim-io.c (sim_io_error): Make just this function tolerant to
58         null pointers.
59         
60         * sim-xcat.h: New file. Define concatenate macros.
61         * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
62         * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
63         concat macros.
64         
65
66 Tue Mar 18 12:44:55 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
67
68         * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
69
70 Mon Mar 17 18:10:05 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
71
72         * sim-inline.h: Add definitions for sim-types.
73         (ALL_BY_MODULE): New macro, encapsulate full inlining by the
74         module.
75
76 Mon Mar 17 15:38:27 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
77         
78         * sim-events.h: Remove defunct reference to callback struct.
79
80 Mon Mar 17 15:10:07 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
81
82         * configure: Re-generate.
83
84 Mon Mar 17 15:04:47 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
85
86         * Make-common.in (CSEARCH): Do not include the gdb directory in
87         the search path.
88
89 Mon Mar 17 13:16:26 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
90
91         * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
92         SIM_WARNING): Drop, requiring the simulator specific Makefile.in
93         to explicitly incorporate these.
94
95         * aclocal.m4 (--enable-sim-alignment); New option. Strongly
96         specify the alignment restrictions of the target architecture -
97         without this option all alignment restrictions are accomodated.
98         (--enable-sim-assert): New option.  Conditionally compile in
99         assertion statements.
100         (--enable-sim-float): New option. Strongly specify the target's
101         floating point support.
102         (--enable-sim-hardware): New option.  Specify the hardware devices
103         included in the simulation.
104         (--enable-sim-packages): New option.  Specify the hardware
105         packages included in the simulation.
106         (--enable-sim-regparm): New option.  Specify that parameters be
107         passed in registers instead of on the stack.
108         (--enable-sim-reserved-bits): New option. Specify that reserved
109         bits within an instruction are are correctly set.
110         (--enable-sim-smp): New option. Specify the level of SMP support
111         to be included in the simulator.
112         (--enable-sim-stdcall): New option.  Specify an alternative
113         function call convention.
114         (--enable-sim-xor-endian): New option.  Configure xor-endian
115         support used by some targets to implement bi-endian support.
116         
117 Fri Mar 14 19:51:21 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
118
119         * aclocal.m4 (--enable-sim-hostendian): New option.  Allow the
120         host endianness to be overridden.
121         (--enable-sim-endian): Allow the target platform's byte order
122         to be overridden.
123         (--enable-sim-inline): Control the inlining of common components.
124         (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
125         (--enable-sim-warnings): Enable additional GCC compiler checks.
126         * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
127         SIM_WARNINGS): Add.
128         
129         * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
130         sim-*-n.h so that the names are uniq on dos machines
131         * sim-core.c, sim-bits.c, sim-endian.c: Update.
132         
133 Thu Mar 13 12:32:42 1997  Doug Evans  <dje@canuck.cygnus.com>
134
135         * run.c: #include "libiberty.h".
136         (main): New locals sd,no_args,sim_argv.
137         Run buildargv on -a option.  Pass argv to sim_open, argv[0]
138         is program name.  Update call to sim_set_callbacks.
139         Record result of sim_open, pass to other sim_foo routines.
140
141 Thu Mar 13 10:24:05 1997  Michael Meissner  <meissner@cygnus.com>
142
143         * callback.c (os_printf_filtered): Do not call exit(1) or print a
144         final newline.
145
146 Thu Mar  6 15:50:28 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
147
148         * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
149         Route stdout through buffered IO.
150
151         * callback.c: Add os_flush_stderr, os_write_stderr,
152         os_evprintf_filtered functions to route error output through
153         stderr.
154         
155         * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
156         Correct return type - should be void.
157
158 Fri Mar  7 20:14:37 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
159
160         * sim-basics.h: Clean up.  Many macro's moved to sim-inline.h.
161
162         * sim-config.h: Ditto.  For some options - eg WITH_DEVICES - do
163         not provide a default value as undefined indicates disable code.
164
165 Thu Mar  6 15:50:28 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
166
167         * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
168         directory.
169         * sim-events.h, sim-events.c: Ditto.
170         * sim-io.h, sim-io.c: Ditto.
171         
172 Tue Mar  4 09:35:56 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
173         
174         * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
175
176         * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
177         extract the tail or least signifiant bits from an integer of the
178         specified size.
179         
180         * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
181         WITH_TARGET_BITSIZE so that the compilation will fail when an
182         unsupported bitsize value is defined.
183
184         (INSERTED*): Convert to functions.
185         (EXTRACTED*): Ditto.
186         
187         (SIGN_EXTEND, SEXT): Change to more terse name.
188         
189 Tue Mar  4 09:35:56 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
190
191         * sim-inline.h: Allow explicit control over which .c files will be
192         included by their header.
193
194         * sim-inline.h: Allow explicit control over which .c files use the
195         alternative - REGPARM - parameter passing mechanism.
196         
197         * sim-inline.h, sim-inline.c: Don't attempt to include any of
198         icache.c, idecode.c, semantics.c or support.c.  Those names are
199         not generally applicable.
200         
201 Thu Feb 27 10:17:23 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
202
203         * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
204         in a fashion similar to sim-endian-n.
205
206         * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
207         both value and address macro's.
208
209 Tue Feb 25 18:51:57 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
210
211         * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
212
213         * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
214         generic L_word, H_word macro's.
215
216 Thu Feb 20 18:36:55 1997  Andrew Cagney  <cagney@critters.cygnus.com>
217
218         * sim-basics.h: Borrow code from ppc directory.
219         * sim-bits.c: Ditto.
220         * sim-bits.h: Ditto.
221         * sim-config.h: Ditto.
222         * sim-endian-n.h: Ditto.
223         * sim-endian.c: Ditto.
224         * sim-endian.h: Ditto.
225         * sim-inline.c: Ditto.
226         * sim-inline.h: Ditto.
227         * sim-types.h: Ditto.
228
229 Wed Feb 19 12:40:50 1997  Andrew Cagney  <cagney@critters.cygnus.com>
230
231         * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
232         all the ALU size alternatives and then auto-configure a default.
233         
234         * sim-alu.h: Copy ppc/idecode_expression.h.
235
236 Mon Feb 17 10:44:18 1997  Andrew Cagney  <cagney@critters.cygnus.com>
237
238         * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
239         sign extend a bit within a value.
240
241         * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
242         a pointer into the middle of a host word.
243         * sim-endian.h (MS2W_4, LS2W_4): Use this function.
244         
245 Tue Feb 11 13:46:49 1997  Michael Meissner  <meissner@tiktok.cygnus.com>
246
247         * callback.c: If HAVE_CONFIG_H is defined, include config.h from
248         autoconf.  If HAVE_UNISTD_H is defined, include unistd.h to get
249         appropriate definitions of read, write, etc.  Add prototype for
250         system.
251
252 Tue Feb  4 13:24:44 1997  Doug Evans  <dje@canuck.cygnus.com>
253
254         * Makefile.in (libcommon.a): Delete.
255         (callback.o,targ-map.o): Delete, moved to Make-common.in.
256         (gentmap,targ-vals.h,targ-map.c): Likewise.
257         (run-autoconf): Delete.
258         * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
259         (common makefile fragment): Moved back into ...
260         * Make-common.in: Resurrect.
261         * configure.in (AC_LINK_FILES): Delete, unnecessary now.
262         * configure: Regenerated.
263
264 Fri Jan 31 07:16:49 1997  Doug Evans  <dje@canuck.cygnus.com>
265
266         * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
267         (SIM_AC_OUTPUT): To here.
268
269 Fri Jan 24 10:37:17 1997  Stu Grossman  (grossman@critters.cygnus.com)
270
271         * aclocal.m4 (COMMON_MAKEFILE_FRAG):  Quote a couple of $'s in
272         comments and single quotes.  Fixes a problem found on hpux.
273
274 Thu Jan 23 13:35:03 1997  Stu Grossman  (grossman@critters.cygnus.com)
275
276         * aclocal.m4:  Remove Make-common.in from dependencies.
277         * (distclean):  Remove targ-vals.def.
278
279         * aclocal.m4 (SIM_AC_COMMON):  Move contents of Make-common.in
280         into here.  Makes insertion into makefiles easier.  Also, change
281         the way that callback.o, gentmap, targ-vals.h, targ-map.c,
282         targ-map.o, and run are built.  They are now built in the
283         individual simulator directories, taking sources from ../common as
284         necessary.  This replaces the merging of libcommon.a into
285         linsim.a, which was problematic for the WinGDB build process.
286         * run.c:  Include config.h from . instead of ../common.
287         * Make-common.in:  Remove.  It's no longer necessary.
288
289 Mon Dec 16 15:02:33 1996  Ian Lance Taylor  <ian@cygnus.com>
290
291         * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
292         (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
293
294 Wed Dec 11 11:30:58 1996  Jim Wilson  <wilson@cygnus.com>
295
296         * run.c (main): Set target_byte_order before call to sim_open.
297
298 Sun Dec  8 18:22:06 1996  Doug Evans  <dje@canuck.cygnus.com>
299
300         * callback.c: #include <stdlib.h>
301         (os_error): New function.
302         (default_callback): Add os_error.
303
304 Mon Nov 25 19:44:35 1996  Doug Evans  <dje@canuck.cygnus.com>
305
306         * Make-common.in (Makefile): Set CONFIG_HEADERS="".
307         * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
308         specific.
309         (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
310
311 Wed Nov 20 01:11:04 1996  Doug Evans  <dje@canuck.cygnus.com>
312
313         * run.c: #include ../common/config.h, tconfig.h.
314         (myname): New static global.
315         (main): Recognize new options -a, -c.  Also recognize -h if h8/300.
316         Only process -c ifdef SIM_HAVE_SIMCACHE.
317         Only process -p/-s ifdef SIM_HAVE_PROFILE.
318         Parse program name from argv[0] and use in error messages.
319         Pass sim_args to sim_open.  Pass prog_args to sim_create_inferior.
320         Add support for incomplete h8/300 termination indicators.
321         (usage): Make more verbose.
322         * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
323         * Makefile.in,Make-common.in,callback.c: New files.
324         * nltvals.def,gentmap.c,gentvals.sh: New files.
325
326 Tue Nov 12 13:34:00 1996  Dawn Perchik  <dawn@cygnus.com>   
327
328         * run.c: Include stdarg.h if __STDC__.
329
330 Tue Oct 15 11:16:31 1996  Jeffrey A Law  (law@cygnus.com)
331
332         * run.c (main): Don't print out anything if the signal
333         number is zero (ie no signal).
334
335 Tue Oct 15 11:20:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
336
337         * run.c (main): Print out if the program raised a signal.
338
339 Wed Sep 18 09:52:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
340
341         * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
342         (main): Ditto.
343
344 Tue Sep 17 11:04:50 1996  James G. Smith  <jsmith@cygnus.co.uk>
345
346         * run.c (main): Explicitly cast malloc() parameter.
347
348 Thu Sep 12 11:27:21 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
349
350         * run.c (sim_bfd): New global to hold the bfd pointer for the
351         executable.
352         (main): Initialize sim_bfd.
353
354 Fri Dec 15 16:27:49 1995  Ian Lance Taylor  <ian@cygnus.com>
355
356         * run.c (main): Use new bfd_big_endian macro.
357
358 Wed Nov  8 15:49:49 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
359
360         * run.c (main): Removed SH specific comments, so source is
361         generic. Also updated to only load relevant sections. Moved
362         sim_open() to after callback attach (to match GDB).
363
364         * run.1: Removed SH specific comments.
365
366 Sat Oct 21 12:31:01 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
367
368         * run.c (main): Always return sigrc at end.
369
370 Tue Oct 10 12:03:13 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
371
372         * run.c (main): Print error diagnostic and exit if bfd_openr() or
373         bfd_check_format() fails.
374
375 Thu Sep 28 15:40:36 1995  steve chamberlain  <sac@slash.cygnus.com>
376
377         * run.c, run.1: From sh directory.
378
379