* configure: Regenerated.
[platform/upstream/binutils.git] / sim / common / ChangeLog
1 Thu May  1 10:40:47 1997  Doug Evans  <dje@canuck.cygnus.com>
2
3         * configure: Regenerated.
4
5         * cgen-sim.h (sim_signal_type): Add SIM_SIGINT.
6         (cgen_state): New member run_fast_p.
7         (cgen_init): Add prototype.
8         (sim_disassemble_insn): New arg `cpu'.
9         * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn.
10         * cgen-utils.c (cgen_init): New function.
11         (sim_disassemble_insn): New arg `cpu'.  Rewrite fetching of insn.
12         * genmloop.sh: Call engine_halt if loop exits.
13
14         * Makefile.in (sim-options_h): Define.
15         (sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
16         (sim-model.o): Add new rule.
17         (cgen-{scache,trace,utils}.o): Add new rules.
18         * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
19         * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
20         Indent output by 2 spaces.
21         * cgen-scache.h (scache_print_profile): Update.
22         * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
23         Use trace_printf, not fprintf.
24         (trace_extract): Use trace_printf, not cgen_trace_printf.
25         * genmloop.sh (!FAST case): Increment `insn_count'.
26         * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
27         (sim_cpu_base): Rename member `sd' to `state' to be consistent with
28         access macro's name.
29         * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
30         Change return type to SIM_RC.
31         (sim_core_{install,uninstall}): New functions.
32         * sim-core.h (sim_core_{install,uninstall}): Declare.
33         (sim_core_init): Use EXTERN_SIM_CORE to define it.
34         Change return type to SIM_RC.
35         * sim-model.h (models,machs,model_install): Declare.
36         * sim-module.c (modules): Add scache_install, model_install.
37         (sim_post_argv_init): Set cpu->state backlinks.
38         * sim-options.c (standard_options): Delete --simcache-size,--max-insns.
39         (standard_option_handler): Likewise.
40         * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
41         sim-profile.h.
42         (*): Assume ANSI C.
43         (profile_options): Delete --profile-simcache.
44         (profile_option_handler): Likewise.
45         (profile_print_insn): Change `sd' arg to `cpu'.  Indent output 2
46         spaces.
47         (profile_print_{memory,model}): Likewise.
48         (profile_print_simcache): Delete.
49         (profile_print_speed): New function.
50         (profile_print): Rewrite.
51         * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
52         (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
53         (PROFILE_DATA): Delete members simcache_{hits,misses}.
54         (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
55         (PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
56         (profile_print): Update prototype.
57
58 Wed Apr 30 11:34:14 1997  Doug Evans  <dje@canuck.cygnus.com>
59
60         * cgen-scache.[ch], cgen-sim.h: New files.
61         * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files.
62         * sim-model.c: New file.
63
64         * Make-common.in (clean targets): Undo patch of Apr. 22.
65
66 Fri Apr 25 15:28:32 1997  Mike Meissner  <meissner@cygnus.com>
67
68         * sim-n-bits.h (signed): If we have a standard compiler, undef
69         signed, so that signedN is defined correctly.
70
71 Thu Apr 24 00:00:07 1997  Doug Evans  <dje@canuck.cygnus.com>
72
73         * sim-module.h, sim-model.h, sim-profile.h: New files.
74         * sim-module.c, sim-profile.c: New files.
75         * Make-common.in (SIM_PROFILE): Define
76         (CONFIG_CFLAGS): Add $(SIM_PROFILE).
77         (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
78         (sim_module.o,sim-profile.o): Add rules for.
79         * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
80         (--enable-sim-profile): Add.
81         * configure: Regenerated.
82         * sim-base.h (sim_state_base): New members init_list, uninstall_list,
83         model.  Move trace and profile support to sim-{trace,profile}.h.
84         New members trace_data, profile_data.
85         * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
86         * sim-config.h: Provide default definition of WITH_PROFILE.
87         (WITH_TRACE): Change default to -1.
88         (MAX_NR_PROCESSORS): Always define.
89         * sim-options.c: Move trace and profile support to
90         sim-{trace,profile}.h.
91         (sim_pre_argv_init): Moved to sim-model.c.
92         (standard_install): New function.
93         * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
94         (standard_install): Declare.
95         * sim-trace.c: Tracing option handling moved here from sim-options.c.
96         (trace_install, trace_uninstall): New functions.
97         (trace_printf): Update reference to TRACE_FILE.
98         * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
99         (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
100         (WITH_TRACE_FOO_P): Define.
101         (trace_install): Declare.
102         (TRACE_DATA): New struct.
103
104 Wed Apr 23 17:23:15 1997  Doug Evans  <dje@canuck.cygnus.com>
105
106         * run.c: Undo last exec_bfd patch.
107         (main): Only pass -E ifdef SIM_HAVE_BIENDIAN.
108
109 Wed Apr 23 17:54:27 1997  Mike Meissner  <meissner@cygnus.com>
110
111         * run.c (exec_bfd): Add back in.
112         (main): Set exec_bfd.
113
114 Tue Apr 22 14:43:46 1997  Doug Evans  <dje@canuck.cygnus.com>
115
116         * sim-load.c (sim_load_file): #include <stdio.h> for NULL.
117
118 Wed Apr 23 02:55:54 1997  Andrew Cagney  <cagney@b1.cygnus.com>
119
120         * sim-events.c (insert_sim_event): Call sim_io_error instead of
121         less well defined engine_error.
122         * sim-core.c: Ditto.
123
124 Tue Apr 22 08:48:16 1997  Stu Grossman  (grossman@critters.cygnus.com)
125
126         * Make-common.in:  Change clean targets to use :: so that other
127         Makefiles can have their own clean targets.
128         * sim-load.c (xprintf eprintf):  Use ANSI_PROTOTYPES instead of
129         __STDC__ to control use of stdarg vs. varargs syntax.  Some
130         systems can't use __STDC__, but require stdarg.
131
132 Fri Apr 18 11:14:43 1997  Doug Evans  <dje@canuck.cygnus.com>
133
134         * sim-options.c (standard_options): Add --endian.
135         (standard_option_handler): Likewise.
136
137         * nrun.c: #include <signal.h>.
138         (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
139         handler that calls sim_stop ().
140
141 Fri Apr 18 13:11:36 1997  Andrew Cagney  <cagney@b1.cygnus.com>
142
143         * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
144         handler that calls sim_stop ().  Simulators may still be
145         establishing their own handler.
146
147         * sim-events.c (sim_events_poll): Rename from
148         sim_events_at_large_int.  Poll IO.
149
150         * sim-io.c (sim_io_poll_quit): New function - pass on a polling
151         request.
152
153         * callback.c (os_poll_quit): New function poll for quit signal
154         where needed.
155         (default_callback): Include magic number.
156
157 Thu Apr 17 02:25:11 1997  Doug Evans  <dje@canuck.cygnus.com>
158
159         * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
160         Check for functions getrusage, time.
161         * sim-basics.h (SIM_ELAPSED_TIME): New typedef.
162         (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes.
163         * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able.
164         (sim_elapsed_time_get, sim_elapsed_time_since): New functions.
165
166         * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.
167
168         * sim-options.c, sim-options.h: New files.
169         * sim-config.h (WITH_DEBUG): Provide default value of zero.
170         * Make-common.in (nrun.o): Add rules for.
171         * nrun.c: New file.
172
173         * run.c (main): Check return value of sim_open.
174
175         * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules.
176         (sim_main_headers): Add sim-trace.h.
177         * run.c (exec_bfd, target_byte_order): Delete.
178         (main): Pass -E <endian> to sim_open.  Delete code to load sections,
179         call sim_load instead.  Check return code of sim_create_inferior.
180         * sim-base.h (CURRENT_STATE): Define.
181         (sim_state_base): Make typedef.  New members options, prog_argv,
182         prog_bfd, text_{section,start,end}, start_addr, simcache_size,
183         mem_size, memory [+ corresponding access macros].
184         (sim_cpu_base): New typedef.
185         * sim-trace.h: New file.
186         * sim-trace.c: New file.
187         * sim-basics.h: #include it.
188         * sim-load.c: New file.
189
190 Tue Apr 15 15:10:13 1997  Ian Lance Taylor  <ian@cygnus.com>
191
192         * Make-common.in (INSTALL): Set to @INSTALL@.
193         (INSTALL_XFORM, INSTALL_XFORM1): Remove.
194         (install-common): Depend upon installdirs.  Use
195         $(program_transform_name) directly, rather than using
196         $(INSTALL_XFORM).
197         (installdirs): New target.
198         * Makefile.in (INSTALL): Set to @INSTALL@.
199         (INSTALL_XFORM, INSTALL_XFORM1): Remove.
200         (install-man): Depend upon installdirs.  Use
201         $(program_transform_name) directly, rather than using
202         $(INSTALL_XFORM).
203         (installdirs): New target.
204
205 Tue Apr 15 15:08:12 1997  Andrew Cagney  <cagney@b1.cygnus.com>
206
207         * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
208         be overriden.
209
210 Wed Apr  9 16:06:44 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
211
212         * sim-basics.h: Only bring in config.h and tconfig.h if
213         HAVE_CONFIG_H.
214
215 Mon Apr  7 11:39:45 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
216
217         * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
218         numbering convention of the target.
219         * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
220         and WITH_TARGET_WORD_MSB.
221         (sim_config): When possible, check for consistency with bitsize
222         and msb.
223
224         * sim-bits.h: Allow MSB to be other than zero.
225         * sim-bits.c: Ditto.
226         * sim-n-bits.h: Ditto.
227         
228         * sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
229         * sim-n-bits.h (MSMASKEDn): Ditto.
230
231 Mon Apr 14 16:29:21 1997  Ian Lance Taylor  <ian@cygnus.com>
232
233         * Makefile.in (INSTALL): Change install.sh to install-sh.
234
235 Mon Apr  7 10:46:38 1997  Doug Evans  <dje@canuck.cygnus.com>
236
237         * sim-base.h (sim_state_base): Move `magic' to end of struct.
238
239 Mon Apr  7 15:53:21 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
240
241         * run.c (main): Check that a program to run was specified.
242
243 Mon Apr  7 15:45:02 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
244
245         * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
246
247         * configure: Regenerated to track ../common/aclocal.m4 changes.
248         * config.in: Ditto.
249
250 Wed Apr  2 15:06:28 1997  Doug Evans  <dje@canuck.cygnus.com>
251
252         * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
253         * sim-config.h: To here.
254
255         * Make-common.in (SIM_EXTRA_DEPS): New config var.
256         (sim_main_headers): Define.
257         (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
258         (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
259         (clean): Use it.
260         (sim-utils.o): Add rule for.
261         * sim-utils.o: New file.
262         * sim-basics.h: #include sim-base.h.
263         (zalloc): Make argument unsigned long.
264         * sim-base.h: New file.
265         * sim-inline.h (SIM_IO support): Delete.
266         * sim-io.h: Delete inline support.
267         * sim-io.c: Likewise.  sim-state.h renamed to sim-main.h.
268         * sim-config.c: sim-state.h renamed to sim-main.h.
269         * sim-core.c: Likewise.
270         * sim-events.c: Likewise.
271
272         * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
273
274         * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
275         (sim-debug): Allow arguments.  Define WITH_DEBUG in addition to
276         -DDEBUG.
277         * configure: Regenerated to track ../common/aclocal.m4 changes.
278
279 Wed Apr  2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
280
281         * configure: Regenerated to track ../common/aclocal.m4 changes.
282
283 Wed Apr  2 11:08:11 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
284
285         * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
286         WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
287         are defined by the configure.
288
289         * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
290         
291         * aclocal.m4 (floating-point, xor-endian, alignment, smp,
292         reserved-bits): Always define.
293         
294         * sim-config.h, sim-config.c (sim_config): New function - and new
295         file - co-ordinate the setting/checking of the common simulator
296         configuration options.
297
298         * Make-common.in (sim-config.o): Add rule.
299
300 Fri Mar 28 15:32:00 1997  Mike Meissner  <meissner@cygnus.com>
301
302         * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
303         va_list from void *, since va_list might not be a pointer type.
304
305 Mon Mar 24 15:27:12 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
306
307         * sim-n-endian.h (offset_N): Correct assertion - word and sub word
308         in wrong order.
309         (offset_N): Correct computation of LE offset.
310
311         * sim-io.c (sim_io_error): Include a new line when reporting
312         errors.
313
314         * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
315         `/'.
316
317 Thu Mar 20 22:31:06 1997  Jeffrey A Law  (law@cygnus.com)
318
319         * run.c: Include alloca-conf.h.
320
321         * callback.c (os_evprintf_filtered): Fix typo.
322
323 Fri Mar 21 13:36:20 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
324
325         * run.c (string.h, strings.h, stdlib.h): Include.
326
327         * sim-events.c (sim_events_tick): Recent cleanup failed to return
328         0 when nothing pending.
329
330         * run.c (sim_size, sim_trace): Plicate GCC - these two functions
331         will soon be going away.
332         (getopt): Plicate GCC.
333
334         * sim-endian.c (sim-io.h): Plicate GCC.
335         * sim-bits.c (sim-io.h): Ditto.
336         * sim-n-bits.h (ROTn): Ditto.
337
338         * sim-io.c (sim_io_error): Correct check for NULL.
339
340         * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
341         the __FILE__.
342         * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
343         path.
344
345 Wed Mar 19 01:12:06 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
346
347         * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
348         SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
349
350 Tue Mar 18 20:48:12 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
351
352         * sim-alu.h: Include sim-xcat.h.
353         
354 Tue Mar 18 13:58:18 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
355
356         * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
357         sim-events.c, sim-inline.c, sim-io.c): Define rules for building
358         these.
359
360         * sim-events.c (sim_events_at_large_int): New function.  Just
361         schedules an event every large-int ticks.
362         (sim_events_init): Call.
363         (sim_events_tick, sim_events_process): Move async handing to
364         sim_events_process.  Move timer decrement so that it occures after
365         events have been processed.
366         
367         * sim-basics.h (struct _engine): Remove declaration.
368
369         * sim-events.h, sim-events.c: Rename type to sim_events.  Prefix
370         everything with same.  Rename global struct to SIM_DESC.
371         * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
372         * sim-io.h, sim-io.c: Ditto.
373         
374         * sim-assert.h: New file. Optional assertion checking macros.
375         * sim-io.c (sim_io_error): Make just this function tolerant to
376         null pointers.
377         
378         * sim-xcat.h: New file. Define concatenate macros.
379         * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
380         * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
381         concat macros.
382         
383
384 Tue Mar 18 12:44:55 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
385
386         * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
387
388 Mon Mar 17 18:10:05 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
389
390         * sim-inline.h: Add definitions for sim-types.
391         (ALL_BY_MODULE): New macro, encapsulate full inlining by the
392         module.
393
394 Mon Mar 17 15:38:27 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
395         
396         * sim-events.h: Remove defunct reference to callback struct.
397
398 Mon Mar 17 15:10:07 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
399
400         * configure: Re-generate.
401
402 Mon Mar 17 15:04:47 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
403
404         * Make-common.in (CSEARCH): Do not include the gdb directory in
405         the search path.
406
407 Mon Mar 17 13:16:26 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
408
409         * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
410         SIM_WARNING): Drop, requiring the simulator specific Makefile.in
411         to explicitly incorporate these.
412
413         * aclocal.m4 (--enable-sim-alignment); New option. Strongly
414         specify the alignment restrictions of the target architecture -
415         without this option all alignment restrictions are accomodated.
416         (--enable-sim-assert): New option.  Conditionally compile in
417         assertion statements.
418         (--enable-sim-float): New option. Strongly specify the target's
419         floating point support.
420         (--enable-sim-hardware): New option.  Specify the hardware devices
421         included in the simulation.
422         (--enable-sim-packages): New option.  Specify the hardware
423         packages included in the simulation.
424         (--enable-sim-regparm): New option.  Specify that parameters be
425         passed in registers instead of on the stack.
426         (--enable-sim-reserved-bits): New option. Specify that reserved
427         bits within an instruction are are correctly set.
428         (--enable-sim-smp): New option. Specify the level of SMP support
429         to be included in the simulator.
430         (--enable-sim-stdcall): New option.  Specify an alternative
431         function call convention.
432         (--enable-sim-xor-endian): New option.  Configure xor-endian
433         support used by some targets to implement bi-endian support.
434         
435 Fri Mar 14 19:51:21 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
436
437         * aclocal.m4 (--enable-sim-hostendian): New option.  Allow the
438         host endianness to be overridden.
439         (--enable-sim-endian): Allow the target platform's byte order
440         to be overridden.
441         (--enable-sim-inline): Control the inlining of common components.
442         (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
443         (--enable-sim-warnings): Enable additional GCC compiler checks.
444         * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
445         SIM_WARNINGS): Add.
446         
447         * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
448         sim-*-n.h so that the names are uniq on dos machines
449         * sim-core.c, sim-bits.c, sim-endian.c: Update.
450         
451 Thu Mar 13 12:32:42 1997  Doug Evans  <dje@canuck.cygnus.com>
452
453         * run.c: #include "libiberty.h".
454         (main): New locals sd,no_args,sim_argv.
455         Run buildargv on -a option.  Pass argv to sim_open, argv[0]
456         is program name.  Update call to sim_set_callbacks.
457         Record result of sim_open, pass to other sim_foo routines.
458
459 Thu Mar 13 10:24:05 1997  Michael Meissner  <meissner@cygnus.com>
460
461         * callback.c (os_printf_filtered): Do not call exit(1) or print a
462         final newline.
463
464 Thu Mar  6 15:50:28 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
465
466         * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
467         Route stdout through buffered IO.
468
469         * callback.c: Add os_flush_stderr, os_write_stderr,
470         os_evprintf_filtered functions to route error output through
471         stderr.
472         
473         * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
474         Correct return type - should be void.
475
476 Fri Mar  7 20:14:37 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
477
478         * sim-basics.h: Clean up.  Many macro's moved to sim-inline.h.
479
480         * sim-config.h: Ditto.  For some options - eg WITH_DEVICES - do
481         not provide a default value as undefined indicates disable code.
482
483 Thu Mar  6 15:50:28 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
484
485         * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
486         directory.
487         * sim-events.h, sim-events.c: Ditto.
488         * sim-io.h, sim-io.c: Ditto.
489         
490 Tue Mar  4 09:35:56 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
491         
492         * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
493
494         * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
495         extract the tail or least signifiant bits from an integer of the
496         specified size.
497         
498         * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
499         WITH_TARGET_BITSIZE so that the compilation will fail when an
500         unsupported bitsize value is defined.
501
502         (INSERTED*): Convert to functions.
503         (EXTRACTED*): Ditto.
504         
505         (SIGN_EXTEND, SEXT): Change to more terse name.
506         
507 Tue Mar  4 09:35:56 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
508
509         * sim-inline.h: Allow explicit control over which .c files will be
510         included by their header.
511
512         * sim-inline.h: Allow explicit control over which .c files use the
513         alternative - REGPARM - parameter passing mechanism.
514         
515         * sim-inline.h, sim-inline.c: Don't attempt to include any of
516         icache.c, idecode.c, semantics.c or support.c.  Those names are
517         not generally applicable.
518         
519 Thu Feb 27 10:17:23 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
520
521         * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
522         in a fashion similar to sim-endian-n.
523
524         * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
525         both value and address macro's.
526
527 Tue Feb 25 18:51:57 1997  Andrew Cagney  <cagney@kremvax.cygnus.com>
528
529         * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
530
531         * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
532         generic L_word, H_word macro's.
533
534 Thu Feb 20 18:36:55 1997  Andrew Cagney  <cagney@critters.cygnus.com>
535
536         * sim-basics.h: Borrow code from ppc directory.
537         * sim-bits.c: Ditto.
538         * sim-bits.h: Ditto.
539         * sim-config.h: Ditto.
540         * sim-endian-n.h: Ditto.
541         * sim-endian.c: Ditto.
542         * sim-endian.h: Ditto.
543         * sim-inline.c: Ditto.
544         * sim-inline.h: Ditto.
545         * sim-types.h: Ditto.
546
547 Wed Feb 19 12:40:50 1997  Andrew Cagney  <cagney@critters.cygnus.com>
548
549         * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
550         all the ALU size alternatives and then auto-configure a default.
551         
552         * sim-alu.h: Copy ppc/idecode_expression.h.
553
554 Mon Feb 17 10:44:18 1997  Andrew Cagney  <cagney@critters.cygnus.com>
555
556         * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
557         sign extend a bit within a value.
558
559         * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
560         a pointer into the middle of a host word.
561         * sim-endian.h (MS2W_4, LS2W_4): Use this function.
562         
563 Tue Feb 11 13:46:49 1997  Michael Meissner  <meissner@tiktok.cygnus.com>
564
565         * callback.c: If HAVE_CONFIG_H is defined, include config.h from
566         autoconf.  If HAVE_UNISTD_H is defined, include unistd.h to get
567         appropriate definitions of read, write, etc.  Add prototype for
568         system.
569
570 Tue Feb  4 13:24:44 1997  Doug Evans  <dje@canuck.cygnus.com>
571
572         * Makefile.in (libcommon.a): Delete.
573         (callback.o,targ-map.o): Delete, moved to Make-common.in.
574         (gentmap,targ-vals.h,targ-map.c): Likewise.
575         (run-autoconf): Delete.
576         * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
577         (common makefile fragment): Moved back into ...
578         * Make-common.in: Resurrect.
579         * configure.in (AC_LINK_FILES): Delete, unnecessary now.
580         * configure: Regenerated.
581
582 Fri Jan 31 07:16:49 1997  Doug Evans  <dje@canuck.cygnus.com>
583
584         * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
585         (SIM_AC_OUTPUT): To here.
586
587 Fri Jan 24 10:37:17 1997  Stu Grossman  (grossman@critters.cygnus.com)
588
589         * aclocal.m4 (COMMON_MAKEFILE_FRAG):  Quote a couple of $'s in
590         comments and single quotes.  Fixes a problem found on hpux.
591
592 Thu Jan 23 13:35:03 1997  Stu Grossman  (grossman@critters.cygnus.com)
593
594         * aclocal.m4:  Remove Make-common.in from dependencies.
595         * (distclean):  Remove targ-vals.def.
596
597         * aclocal.m4 (SIM_AC_COMMON):  Move contents of Make-common.in
598         into here.  Makes insertion into makefiles easier.  Also, change
599         the way that callback.o, gentmap, targ-vals.h, targ-map.c,
600         targ-map.o, and run are built.  They are now built in the
601         individual simulator directories, taking sources from ../common as
602         necessary.  This replaces the merging of libcommon.a into
603         linsim.a, which was problematic for the WinGDB build process.
604         * run.c:  Include config.h from . instead of ../common.
605         * Make-common.in:  Remove.  It's no longer necessary.
606
607 Mon Dec 16 15:02:33 1996  Ian Lance Taylor  <ian@cygnus.com>
608
609         * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
610         (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
611
612 Wed Dec 11 11:30:58 1996  Jim Wilson  <wilson@cygnus.com>
613
614         * run.c (main): Set target_byte_order before call to sim_open.
615
616 Sun Dec  8 18:22:06 1996  Doug Evans  <dje@canuck.cygnus.com>
617
618         * callback.c: #include <stdlib.h>
619         (os_error): New function.
620         (default_callback): Add os_error.
621
622 Mon Nov 25 19:44:35 1996  Doug Evans  <dje@canuck.cygnus.com>
623
624         * Make-common.in (Makefile): Set CONFIG_HEADERS="".
625         * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
626         specific.
627         (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
628
629 Wed Nov 20 01:11:04 1996  Doug Evans  <dje@canuck.cygnus.com>
630
631         * run.c: #include ../common/config.h, tconfig.h.
632         (myname): New static global.
633         (main): Recognize new options -a, -c.  Also recognize -h if h8/300.
634         Only process -c ifdef SIM_HAVE_SIMCACHE.
635         Only process -p/-s ifdef SIM_HAVE_PROFILE.
636         Parse program name from argv[0] and use in error messages.
637         Pass sim_args to sim_open.  Pass prog_args to sim_create_inferior.
638         Add support for incomplete h8/300 termination indicators.
639         (usage): Make more verbose.
640         * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
641         * Makefile.in,Make-common.in,callback.c: New files.
642         * nltvals.def,gentmap.c,gentvals.sh: New files.
643
644 Tue Nov 12 13:34:00 1996  Dawn Perchik  <dawn@cygnus.com>   
645
646         * run.c: Include stdarg.h if __STDC__.
647
648 Tue Oct 15 11:16:31 1996  Jeffrey A Law  (law@cygnus.com)
649
650         * run.c (main): Don't print out anything if the signal
651         number is zero (ie no signal).
652
653 Tue Oct 15 11:20:44 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
654
655         * run.c (main): Print out if the program raised a signal.
656
657 Wed Sep 18 09:52:14 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
658
659         * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
660         (main): Ditto.
661
662 Tue Sep 17 11:04:50 1996  James G. Smith  <jsmith@cygnus.co.uk>
663
664         * run.c (main): Explicitly cast malloc() parameter.
665
666 Thu Sep 12 11:27:21 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
667
668         * run.c (sim_bfd): New global to hold the bfd pointer for the
669         executable.
670         (main): Initialize sim_bfd.
671
672 Fri Dec 15 16:27:49 1995  Ian Lance Taylor  <ian@cygnus.com>
673
674         * run.c (main): Use new bfd_big_endian macro.
675
676 Wed Nov  8 15:49:49 1995  James G. Smith  <jsmith@pasanda.cygnus.co.uk>
677
678         * run.c (main): Removed SH specific comments, so source is
679         generic. Also updated to only load relevant sections. Moved
680         sim_open() to after callback attach (to match GDB).
681
682         * run.1: Removed SH specific comments.
683
684 Sat Oct 21 12:31:01 1995  Jim Wilson  <wilson@chestnut.cygnus.com>
685
686         * run.c (main): Always return sigrc at end.
687
688 Tue Oct 10 12:03:13 1995  J.T. Conklin  <jtc@rtl.cygnus.com>
689
690         * run.c (main): Print error diagnostic and exit if bfd_openr() or
691         bfd_check_format() fails.
692
693 Thu Sep 28 15:40:36 1995  steve chamberlain  <sac@slash.cygnus.com>
694
695         * run.c, run.1: From sh directory.
696
697