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