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