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