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