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