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