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