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