Initialize the sim-engine module.
[binutils-gdb.git] / sim / common / ChangeLog
1 Wed Jun 4 11:44:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
2
3 * sim-config.h (WITH_ENGINE): Enable the sim-engine module by
4 default.
5
6 * sim-engine.c (sim_engine_install): New function. Install the
7 engine init functions.
8 (sim_engine_init): [Re]initialize the simulator engine.
9
10 * sim-module.c: Add sim_engine to list of modules that always
11 install.
12
13 Tue Jun 3 04:52:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
14
15 * sim-watch.c (schedule_watchpoint): Use sim_unschedule_watchpoint
16 to remove the old watchpoint, not delete_watchpoint.
17 (watch_option_handler): Action the correct watchpoint, not just
18 cycles.
19
20 Wed May 28 14:47:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
21
22 * sim-n-core.h (sim_core_write_aligned_N): For 8byte reads, output
23 both low and high word.
24 (sim_core_write_aligned_N): Ditto.
25
26 * sim-trace.c (set_trace_options): Delete code explicitly setting
27 core->trace.
28
29 * sim-options.c (sim_print_help): Call the list commands if not a
30 standalone simulator.
31 (sim_print_help): Advise that some options may not be applicable.
32
33 * sim-trace.c (set_trace_options): Assume core present.
34
35 * sim-events.c (sim_events_schedule_after_signal): Overflow signal
36 buffer when full not almost full.
37
38 Tue May 27 14:32:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
39
40 * sim-events.c (sim_events_process): Don't blat the event queue
41 when processing watchpoints.
42
43 * sim-watch.h: Make arg unsigned long - stop sign extension.
44
45 * sim-events.c (sim_watch_valid): rewrite so debugable.
46
47 * sim-config.h (WITH_XOR_ENDIAN): Default to zero.
48
49 * sim-watch.c (schedule_watchpoint): Add is_within option so that
50 inequality test is possible.
51 (handle_watchpoint): Re-pass is_within arg.
52 (watch_option_handler): When `!' prefix to pc-watchpoint arg pass
53 0 to schedule_watchpoint's is_within arg.
54 (sim_watchpoint_init): Re-pass is_within arg.
55
56 * sim-options.c (sim_print_help): Add is_command argument. Don't
57 include -- prefix when called from the command line interpreter.
58
59 * sim-watch.c (schedule_watchpoint): Pass true is_within argument.
60
61 * sim-events.c (sim_events_watch_sim): Add is_within argument,
62 zero indicates that the test should be reversed.
63 (sim_events_watch_core): Ditto.
64 (WATCH_CORE): Compare range against is_within.
65 (WATCH_SIM): Ditto.
66
67 Tue May 27 12:48:03 1997 Andrew Cagney <cagney@b2.cygnus.com>
68
69 * sim-events.c (WATCH_CORE): Pass NULL cpu argument to
70 sim_core_read_buffer. Check nr-bytes transfered.
71
72 * sim-core.h (sim_core_common): Define a new struct that contains
73 the common data. to sd and cpu structures.
74 * sim-core.c (sim_core_attach): Update.
75 (sim_core_init): Update. Remember to copy initialized data to each
76 cpu.
77 (sim_core_find_mapping): Ditto.
78
79 * sim-core.c (sim_core_read_buffer): Add cpu argument.
80 (sim_core_write_buffer): Ditto.
81
82 * sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned
83 transfer use xor version of read buffer.
84 (sim_core_write_unaligned_N): Ditto for write.
85
86 * sim-core.c (sim_core_xor_read_buffer): New function implement
87 xor-endian data read breaking transfer up into xor-endian sized
88 blocks.
89 (sim_core_xor_write_buffer): Ditto for write.
90 (reverse_n): Reverse order of arbitrary number of bytes in buffer
91 - needed for xor-endian transfers.
92
93 Fri May 23 14:24:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
94
95 * sim-inline.h: Review description.
96
97 * sim-core.h, sim-core.c: Reduce number of functions being inlined
98 to just those involved in data transfers and configuration.
99
100 * sim-xcat.h (XSTRING): New macro, map macro definition onto
101 string.
102 * sim-n-core.h (sim_core_read_aligned_N): Use.
103 (sim_core_read_unaligned_N): Ditto.
104 (sim_core_read_unaligned_N): Ditto..
105 (sim_core_write_unaligned_N): Ditto.
106
107 * sim-core.h: Add xor endian bitmap to main structure. *
108
109 sim-n-core.h (sim_core_write_aligned_N): Add suport for xor
110 endian.
111 (sim_core_read_aligned_N): Ditto.
112
113 * sim-core.c (sim_core_set_xor_endian): New function.
114 (sim_core_attach): Don't overwrite the per-cpu xor map when
115 cloning the global core.
116
117 Fri May 23 10:53:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
118
119 * sim-engine.h: Update below so that it is using an enumerated
120 type.
121
122 Thu May 22 09:12:16 1997 Gavin Koch <gavin@cygnus.com>
123
124 * sim-engine.c (sim_engine_restart):
125 * sim-resume.c (sim_resume): Change longjmp param/setjmp
126 return value used for simulator restart from 0 to 2.
127
128 Wed May 21 08:47:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
129
130 * cgen-scache.c (scache_option_handler): Add is_command arg.
131
132 * sim-model.c (model_option_handler): Add is_command argument.
133
134 * sim-profile.c (profile_option_handler): Add is_command arg.
135
136 * sim-events.c (sim_watch_valid): Use ub64, lb64 when 64bit value
137 involved.
138
139 * sim-module.c (sim_module_add_init_fn): Call init fn in the same
140 order that they are registered.
141
142 * sim-options.h (OPTION_HANDLER): Add argument to differentiate
143 between option and command line processing.
144
145 * sim-options.c: Include stdlib.h, ctype.h.
146
147 * Make-common.in (sim-watch.o): Add rule.
148 (sim_main_headers): Assume sim-assert.h included.
149 (sim-*.o): Simplify make rule.
150
151 * sim-module.c: Add sim_watch_install to module list.
152
153 Tue May 20 14:15:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
154
155 * sim-base.h (STATE_LOADED_P): New predicate. Set once everything
156 has been loaded.
157
158 * sim-trace.c (trace_install): Check magic. Include sim-assert.h.
159 * sim-events.c (sim_events_install): Ditto.
160 * sim-core.c (sim_core_install): Ditto.
161 * sim-model.c (model_install): Ditto.
162 * sim-options.c (standard_install): Ditto.
163 * sim-profile.c (profile_install): Ditto.
164 * sim-reason.c (sim_stop_reason): Ditto.
165 * sim-run.c (sim_engine_run): Ditto.
166 * sim-utils.c (sim_analyze_program): Ditto.
167
168 * sim-module.c (modules): Make profile_install and trace_install
169 optional.
170
171 * sim-base.h (STATE_MEM_BASE): Define for flat memory systems.
172
173 * sim-options.c (standard_option_handler): Set the byte order.
174
175 * sim-events.c (sim_events_process): Allow multi tick processing.
176 (sim_events_tickn): New function - multi cycle tick.
177
178 * sim-events.h (sim_events_tickn, sim_events_timewarp): Add
179 prototypes. Under development.
180 (sim_events): Replace processing with nr_ticks_to_process.
181
182 Tue May 20 09:39:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
183
184 * nrun.c (main): Pass callbacks to sim_open instead of using
185 sim_set_callbacks.
186
187 * run.c (main): Ditto.
188
189 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
190
191 * sim-events.c (sim_events_zalloc): Signal save memory allocator -
192 stop tk interrupting malloc calls.
193 (sim_events_zalloc): Converse.
194
195 * Make-common.in (sim_main_headers): Add sim-events.h.
196
197 * sim-events.c (sim_events_schedule_after_signal): Change return
198 type to void - signal events are strictly internal.
199 (sim_events_init): Allocate a finite buffer for signal events.
200 (sim_events_schedule_after_signal): Enter signal events into the
201 signal buffer.
202
203 * sim-engine.c (sim_engine_halt): Check SIM_DESC magic.
204 (sim_engine_restart): Ditto.
205 (sim_engine_abort): Ditto.
206 * sim-stop.c (sim_stop): Ditto.
207 (control_c_simulation): Ditto.
208 * sim-resume.c (sim_resume): Ditto.
209 (has_stepped): Ditto.
210 * sim-abort.c (sim_engine_abort): Ditto.
211
212 * sim-basics.h (transfer_type): New type.
213
214 * sim-core.c (sim_core_signal): New function. Print core signal
215 information.
216 (sim_core_find_mapping): Add transfer argument.
217
218 * sim-n-core.h (sim_core_{write,write}_unaligned_N): Call
219 SIM_CORE_SIGNAL if a recoverable abort.
220 * sim-core.c (sim_core_find_mapping): Ditto.
221
222 Fri May 16 15:13:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
223
224 * sim-core.c (sim_core_find_mapping): Replace calls to
225 sim_io_error to more resiliant sim_engine_abort.
226
227 * sim-n-core.h (sim_core_read_unaligned_N): Ditto.
228 (sim_core_write_unaligned_N): Ditto.
229
230 Tue May 13 13:50:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
231
232 * sim-module.c: Add sim_events_install to list.
233
234 * sim-events.c (sim_events_install, sim_events_uninstall): Clonse
235 from sim_core_*.
236 (sim_events_init): Now returns SIG_RC.
237
238 * sim-run.c: New file. Generic sim_engine_run.
239 * sim-reason.c: New file. Generic sim_stop_reason.
240 * sim-stop.c: New file. Generic sim_stop.
241 * sim-resume.c: New file. Generic sim_resume.
242
243 * Make-common.in (sim-engine.o): Add rule.
244 (sim-run.o, sim-reason.o, sim-stop.o, sim-resume.o): Ditto.
245
246 * sim-engine.h, sim-engine.c: New file. Provide generic
247 implementation of sim_engine_halt, sim_engine_error. et.al.
248
249 * sim-base.h (sim_state_base): Add member halt.
250 (sim-engine.h): Include.
251
252 * sim-events.h (sim_event_handler): Always pass SIM_DESC to event
253 handlers.
254 * sim-events.c (sim_events_poll): Update event handler.
255
256 Tue May 13 09:57:49 1997 Andrew Cagney <cagney@b2.cygnus.com>
257
258 * sim-events.h, sim-events.c (sim_events_watch_clock): New
259 function.
260 (sim_events_watch_sim): New function.
261 (sim_events_watch_core): New function.
262 (sim_watch_valid): New function.
263 (sim_events_preprocess): New function.
264 (sim_events_process): Process the watchpoints as well as the timer
265 queue.
266 (sim_events_tick): Check WORK_PENDING instead of the hold queue.
267 (sim_events_deschedule): Check all the queues when removing an
268 event.
269 (sim_events_init): Ditto for cleaning.
270
271 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
272
273 * sim-fpu.c (is_ufpu_number): Comment out - currently unused.
274
275 Mon May 19 11:23:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
276
277 * callback.c (os_open): Type of arg flags is int.
278
279 Fri May 16 22:26:43 1997 Michael Meissner <meissner@cygnus.com>
280
281 * sim-fpu.c (sim_fpu_is_{eq,ne,lt,le,gt,ge}): Compare Infinities
282 just like normal numbers as per IEEE rules.
283
284 Wed May 14 21:20:38 1997 Bob Manson <manson@charmed.cygnus.com>
285
286 * callback.c (os_close): Mark the descriptor as being
287 available if the close succeeded.
288 (os_open): Pass 0644 as the mode of the file being created.
289
290 Thu May 15 10:58:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
291
292 * sim-fpu.c (pack_fpu, unpack_fpu): New functions - decode a
293 float.
294
295 * sim-inline.c (SIM_INLINE_C): Rename from _SIM_INLINE_C_.
296 * sim-lnline.h: Update.
297
298 * sim-fpu.h, sim-fpu.c (sim_fpu_[iu]{32,64}to): New int2fp
299 conversion functions.
300 (sim_fpu_to{32,64}[iu]): New fp2int functions.
301
302 * sim-fpu.h, sim-fpu.c (sim_fpu_is_{lt,le,eq,ne,ge,gt}): New fp
303 compare functions. Replacing.
304 (sim_fpu_cmp): This. Delete.
305
306 Mon May 12 14:49:05 1997 Andrew Cagney <cagney@b1.cygnus.com>
307
308 * sim-core.c (sim_core_find_mapping): Call engine_error not
309 sim_io_error when possible.
310
311 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b2.cygnus.com>
312
313 * sim-endian.h (V1_H2): Add macro's to insert a word into a
314 high/low double word.
315
316 * sim-trace.h: Remove definition of attribute - defined in
317 sim_basics.h.
318
319 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
320
321 * sim-options.h (struct OPTION): Add doc_opt as the documenting
322 name of the option - or family of options.
323
324 * sim-options.c (sim_args_command): Match command `a-b c' with
325 option `--a-b-c' from option table.
326
327 Thu May 8 12:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
328
329 * sim-options.c (sim_print_help): For optional arguments, wrap
330 them in [].
331
332 * sim-trace.c (set_trace_options): New function, handle optional
333 argument and multiple assignment.
334 (trace_option_handler): Update.
335
336 * sim-trace.c (trace_option_handler): Trace branch and not fpu
337 when branch tracing selected.
338
339 Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
340
341 * sim-trace.c (trace_one_insn): Make a va-args function.
342
343 * sim-trace.c (trace_vprintf): New function, va-arg version of
344 trace_printf.
345
346 Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com>
347
348 * sim-trace.c (trace_uninstall): Don't close a file twice.
349 * sim-profile.c (profile_uninstall): Likewise.
350
351 Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com>
352
353 * sim-trace.c (toplevel): Include bfd.h.
354 (trace_options): Note that --trace-linenum also turns on
355 --trace-insn. Add --trace-{branch,semantics}.
356 (trace_option_handler): If --trace-linenum, also turn on
357 --trace-insn. Add --trace-branch support. If --trace-semantics,
358 turn on ALU, FPU, branch, and memory tracing.
359 (trace_one_insn): New function to trace an instruction. Support
360 --trace-linenum.
361 (OPTION_TRACE_*): Use an enum, rather than lots of defines.
362
363 * sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros.
364 (MAX_TRACE_VALUES): Use 32, not 12 by default.
365 (TRACE_branch): Add new mask.
366 (TRACE_*_P): Define all possible trace_p macros.
367 (trace_one_insn): Declare function.
368
369 Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com>
370
371 * sim-trace.h (__attribute__): Define as nothing if not GNU C or
372 GNU C doesn't support __attributes__.
373 ({trace,debug}_printf): Add attribute's so -Wformat can check the
374 format strings.
375
376 Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
377
378 * sim-config.h (FORCED_ALIGNMENT): New alignment option -
379 addresses are masked forcing them to be correctly aligned.
380 (WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default.
381 * sim-config.c (config_alignment_to_a): Update.
382
383 * sim-core.h (sim_cpu_core): New data type contains cpu specific
384 core data.
385 * sim-base.h (CPU_CORE): Add cpu specific core data to cpu base
386 type.
387 * sim-core.c (sim_core_attach): Add CPU argument. Ready for
388 processor specific core maps.
389 (sim_core_map_attach): Copy the core map data to each of the
390 processor specific core data structures.
391 * sim-core.c (sim_core_find_mapping): Update.
392
393 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename.
394 (sim_core_write_aligned_N, sim_core_write_aligned_N): New names.
395 (sim_core_write_unaligned_N, sim_core_write_unaligned_N): New
396 alternatives that handle unaligned addresses.
397 (sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace
398 with just CPU arg.
399 * cgen-utils.c (sim_disassemble_insn): Update.
400
401 Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
402
403 * sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific
404 tracing.
405
406 * sim-fpu.h, sim-fpu.c: New files - prototype for generic target
407 fpu support.
408
409 * sim-inline.h, sim-inline.c: Add support for SIM_FPU.
410
411 Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
412
413 * sim-core.c (sim_core_map_to_str): New function ascii equivalent
414 to map type.
415
416 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace
417 statement.
418
419 Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com>
420
421 * cgen-trace.c: Prepend additional trace_printf argument.
422
423 * cgen-utils.c (sim_disassemble_insn): Add additional core
424 arguments.
425
426 Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
427
428 * nrun.c (main): Catch/report errorenous simulator states.
429
430 * sim-module.c: #include "libiberty.h" so that xmalloc is defined.
431 * sim-trace.c: #include string.h/strings.h so that memset is
432 defined.
433 * sim-utils.c: Ditto.
434 * sim-profile.c: Ditto. And stdlib.h.
435 (print_bar): Only define when used by instruction or memory profiler.
436
437 * sim-options.c (standard_option_handler): Make ul more local.
438
439 * sim-load.c (sim_load_file): Make the name constant.
440 (sim_load_file): Passify gcc.
441
442 * sim-utils.h: New file, pre-declare utilites in corresponding .c
443 file.
444 * sim-utils.c, sim-load.c: Include sim-utils.h.
445
446 * sim-base.h (sim_cpu): Pre define here so available to all.
447
448 * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N):
449 Restore the sim_cpu and instruction_address arguments so that full
450 information is available to the abort function.
451 * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto.
452 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
453
454 * sim-trace.h, sim-trace.c (trace_option_handler): Add interim
455 tracing support for sim-events and sim-core.
456 (trace_option_handler): Convert #if to if where possible so always
457 compiled/checked by C compiler.
458 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
459
460 * sim-base.h: Adjust comment documenting how to define the cpu
461 structure.
462 (sim_state_base): Add sim_core and sim_events to simulator base
463 object.
464
465 * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument.
466 * sim-core.c (sim_core_init, sim_core_attach,
467 sim_core_find_mapping): Update.
468 * sim-events.c (ETRACE, sim_events_init, sim_events_time,
469 update_time_from_event, insert_sim_event,
470 sim_events_schedule_after_signal, sim_events_deschedule,
471 sim_events_tick): Ditto.
472
473 * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h,
474 sim-model.h): Move #includes from here.
475 * sim-base.h: To here.
476 (sim-core.h, sim-events.h, sim-io.h): Include also
477
478 Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
479
480 * callback.c (default_callback): Missing initialisers.
481
482 Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com>
483
484 * sim-utils.c (sim_add_commas): New function.
485 * sim-basics.h (sim_add_commas): Add prototype.
486 * cgen-scache.c (scache_print_profile): Print commas in numbers.
487 * sim-profile.c (COMMAS): New macro.
488 (print_*): Use it to print commas in numbers.
489
490 * configure: Regenerated.
491
492 * cgen-sim.h (sim_signal_type): Add SIM_SIGINT.
493 (cgen_state): New member run_fast_p.
494 (cgen_init): Add prototype.
495 (sim_disassemble_insn): New arg `cpu'.
496 * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn.
497 * cgen-utils.c (cgen_init): New function.
498 (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn.
499 * genmloop.sh: Call engine_halt if loop exits.
500
501 * Makefile.in (sim-options_h): Define.
502 (sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
503 (sim-model.o): Add new rule.
504 (cgen-{scache,trace,utils}.o): Add new rules.
505 * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
506 * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
507 Indent output by 2 spaces.
508 * cgen-scache.h (scache_print_profile): Update.
509 * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
510 Use trace_printf, not fprintf.
511 (trace_extract): Use trace_printf, not cgen_trace_printf.
512 * genmloop.sh (!FAST case): Increment `insn_count'.
513 * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
514 (sim_cpu_base): Rename member `sd' to `state' to be consistent with
515 access macro's name.
516 * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
517 Change return type to SIM_RC.
518 (sim_core_{install,uninstall}): New functions.
519 * sim-core.h (sim_core_{install,uninstall}): Declare.
520 (sim_core_init): Use EXTERN_SIM_CORE to define it.
521 Change return type to SIM_RC.
522 * sim-model.h (models,machs,model_install): Declare.
523 * sim-module.c (modules): Add scache_install, model_install.
524 (sim_post_argv_init): Set cpu->state backlinks.
525 * sim-options.c (standard_options): Delete --simcache-size,--max-insns.
526 (standard_option_handler): Likewise.
527 * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
528 sim-profile.h.
529 (*): Assume ANSI C.
530 (profile_options): Delete --profile-simcache.
531 (profile_option_handler): Likewise.
532 (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
533 spaces.
534 (profile_print_{memory,model}): Likewise.
535 (profile_print_simcache): Delete.
536 (profile_print_speed): New function.
537 (profile_print): Rewrite.
538 * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
539 (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
540 (PROFILE_DATA): Delete members simcache_{hits,misses}.
541 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
542 (PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
543 (profile_print): Update prototype.
544
545 Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com>
546
547 * cgen-scache.[ch], cgen-sim.h: New files.
548 * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files.
549 * sim-model.c: New file.
550
551 * Make-common.in (clean targets): Undo patch of Apr. 22.
552
553 Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com>
554
555 * sim-n-bits.h (signed): If we have a standard compiler, undef
556 signed, so that signedN is defined correctly.
557
558 Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com>
559
560 * sim-module.h, sim-model.h, sim-profile.h: New files.
561 * sim-module.c, sim-profile.c: New files.
562 * Make-common.in (SIM_PROFILE): Define
563 (CONFIG_CFLAGS): Add $(SIM_PROFILE).
564 (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
565 (sim_module.o,sim-profile.o): Add rules for.
566 * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
567 (--enable-sim-profile): Add.
568 * configure: Regenerated.
569 * sim-base.h (sim_state_base): New members init_list, uninstall_list,
570 model. Move trace and profile support to sim-{trace,profile}.h.
571 New members trace_data, profile_data.
572 * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
573 * sim-config.h: Provide default definition of WITH_PROFILE.
574 (WITH_TRACE): Change default to -1.
575 (MAX_NR_PROCESSORS): Always define.
576 * sim-options.c: Move trace and profile support to
577 sim-{trace,profile}.h.
578 (sim_pre_argv_init): Moved to sim-model.c.
579 (standard_install): New function.
580 * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
581 (standard_install): Declare.
582 * sim-trace.c: Tracing option handling moved here from sim-options.c.
583 (trace_install, trace_uninstall): New functions.
584 (trace_printf): Update reference to TRACE_FILE.
585 * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
586 (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
587 (WITH_TRACE_FOO_P): Define.
588 (trace_install): Declare.
589 (TRACE_DATA): New struct.
590
591 Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com>
592
593 * run.c: Undo last exec_bfd patch.
594 (main): Only pass -E ifdef SIM_HAVE_BIENDIAN.
595
596 Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com>
597
598 * run.c (exec_bfd): Add back in.
599 (main): Set exec_bfd.
600
601 Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com>
602
603 * sim-load.c (sim_load_file): #include <stdio.h> for NULL.
604
605 Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
606
607 * sim-events.c (insert_sim_event): Call sim_io_error instead of
608 less well defined engine_error.
609 * sim-core.c: Ditto.
610
611 Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com)
612
613 * Make-common.in: Change clean targets to use :: so that other
614 Makefiles can have their own clean targets.
615 * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of
616 __STDC__ to control use of stdarg vs. varargs syntax. Some
617 systems can't use __STDC__, but require stdarg.
618
619 Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com>
620
621 * sim-options.c (standard_options): Add --endian.
622 (standard_option_handler): Likewise.
623
624 * nrun.c: #include <signal.h>.
625 (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
626 handler that calls sim_stop ().
627
628 Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
629
630 * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
631 handler that calls sim_stop (). Simulators may still be
632 establishing their own handler.
633
634 * sim-events.c (sim_events_poll): Rename from
635 sim_events_at_large_int. Poll IO.
636
637 * sim-io.c (sim_io_poll_quit): New function - pass on a polling
638 request.
639
640 * callback.c (os_poll_quit): New function poll for quit signal
641 where needed.
642 (default_callback): Include magic number.
643
644 Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
645
646 * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
647 Check for functions getrusage, time.
648 * sim-basics.h (SIM_ELAPSED_TIME): New typedef.
649 (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes.
650 * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able.
651 (sim_elapsed_time_get, sim_elapsed_time_since): New functions.
652
653 * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.
654
655 * sim-options.c, sim-options.h: New files.
656 * sim-config.h (WITH_DEBUG): Provide default value of zero.
657 * Make-common.in (nrun.o): Add rules for.
658 * nrun.c: New file.
659
660 * run.c (main): Check return value of sim_open.
661
662 * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules.
663 (sim_main_headers): Add sim-trace.h.
664 * run.c (exec_bfd, target_byte_order): Delete.
665 (main): Pass -E <endian> to sim_open. Delete code to load sections,
666 call sim_load instead. Check return code of sim_create_inferior.
667 * sim-base.h (CURRENT_STATE): Define.
668 (sim_state_base): Make typedef. New members options, prog_argv,
669 prog_bfd, text_{section,start,end}, start_addr, simcache_size,
670 mem_size, memory [+ corresponding access macros].
671 (sim_cpu_base): New typedef.
672 * sim-trace.h: New file.
673 * sim-trace.c: New file.
674 * sim-basics.h: #include it.
675 * sim-load.c: New file.
676
677 Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com>
678
679 * Make-common.in (INSTALL): Set to @INSTALL@.
680 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
681 (install-common): Depend upon installdirs. Use
682 $(program_transform_name) directly, rather than using
683 $(INSTALL_XFORM).
684 (installdirs): New target.
685 * Makefile.in (INSTALL): Set to @INSTALL@.
686 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
687 (install-man): Depend upon installdirs. Use
688 $(program_transform_name) directly, rather than using
689 $(INSTALL_XFORM).
690 (installdirs): New target.
691
692 Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
693
694 * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
695 be overriden.
696
697 Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
698
699 * sim-basics.h: Only bring in config.h and tconfig.h if
700 HAVE_CONFIG_H.
701
702 Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
703
704 * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
705 numbering convention of the target.
706 * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
707 and WITH_TARGET_WORD_MSB.
708 (sim_config): When possible, check for consistency with bitsize
709 and msb.
710
711 * sim-bits.h: Allow MSB to be other than zero.
712 * sim-bits.c: Ditto.
713 * sim-n-bits.h: Ditto.
714
715 * sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
716 * sim-n-bits.h (MSMASKEDn): Ditto.
717
718 Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com>
719
720 * Makefile.in (INSTALL): Change install.sh to install-sh.
721
722 Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com>
723
724 * sim-base.h (sim_state_base): Move `magic' to end of struct.
725
726 Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
727
728 * run.c (main): Check that a program to run was specified.
729
730 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
731
732 * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
733
734 * configure: Regenerated to track ../common/aclocal.m4 changes.
735 * config.in: Ditto.
736
737 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
738
739 * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
740 * sim-config.h: To here.
741
742 * Make-common.in (SIM_EXTRA_DEPS): New config var.
743 (sim_main_headers): Define.
744 (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
745 (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
746 (clean): Use it.
747 (sim-utils.o): Add rule for.
748 * sim-utils.o: New file.
749 * sim-basics.h: #include sim-base.h.
750 (zalloc): Make argument unsigned long.
751 * sim-base.h: New file.
752 * sim-inline.h (SIM_IO support): Delete.
753 * sim-io.h: Delete inline support.
754 * sim-io.c: Likewise. sim-state.h renamed to sim-main.h.
755 * sim-config.c: sim-state.h renamed to sim-main.h.
756 * sim-core.c: Likewise.
757 * sim-events.c: Likewise.
758
759 * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
760
761 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
762 (sim-debug): Allow arguments. Define WITH_DEBUG in addition to
763 -DDEBUG.
764 * configure: Regenerated to track ../common/aclocal.m4 changes.
765
766 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
767
768 * configure: Regenerated to track ../common/aclocal.m4 changes.
769
770 Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
771
772 * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
773 WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
774 are defined by the configure.
775
776 * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
777
778 * aclocal.m4 (floating-point, xor-endian, alignment, smp,
779 reserved-bits): Always define.
780
781 * sim-config.h, sim-config.c (sim_config): New function - and new
782 file - co-ordinate the setting/checking of the common simulator
783 configuration options.
784
785 * Make-common.in (sim-config.o): Add rule.
786
787 Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com>
788
789 * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
790 va_list from void *, since va_list might not be a pointer type.
791
792 Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
793
794 * sim-n-endian.h (offset_N): Correct assertion - word and sub word
795 in wrong order.
796 (offset_N): Correct computation of LE offset.
797
798 * sim-io.c (sim_io_error): Include a new line when reporting
799 errors.
800
801 * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
802 `/'.
803
804 Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com)
805
806 * run.c: Include alloca-conf.h.
807
808 * callback.c (os_evprintf_filtered): Fix typo.
809
810 Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
811
812 * run.c (string.h, strings.h, stdlib.h): Include.
813
814 * sim-events.c (sim_events_tick): Recent cleanup failed to return
815 0 when nothing pending.
816
817 * run.c (sim_size, sim_trace): Plicate GCC - these two functions
818 will soon be going away.
819 (getopt): Plicate GCC.
820
821 * sim-endian.c (sim-io.h): Plicate GCC.
822 * sim-bits.c (sim-io.h): Ditto.
823 * sim-n-bits.h (ROTn): Ditto.
824
825 * sim-io.c (sim_io_error): Correct check for NULL.
826
827 * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
828 the __FILE__.
829 * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
830 path.
831
832 Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
833
834 * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
835 SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
836
837 Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
838
839 * sim-alu.h: Include sim-xcat.h.
840
841 Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
842
843 * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
844 sim-events.c, sim-inline.c, sim-io.c): Define rules for building
845 these.
846
847 * sim-events.c (sim_events_at_large_int): New function. Just
848 schedules an event every large-int ticks.
849 (sim_events_init): Call.
850 (sim_events_tick, sim_events_process): Move async handing to
851 sim_events_process. Move timer decrement so that it occures after
852 events have been processed.
853
854 * sim-basics.h (struct _engine): Remove declaration.
855
856 * sim-events.h, sim-events.c: Rename type to sim_events. Prefix
857 everything with same. Rename global struct to SIM_DESC.
858 * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
859 * sim-io.h, sim-io.c: Ditto.
860
861 * sim-assert.h: New file. Optional assertion checking macros.
862 * sim-io.c (sim_io_error): Make just this function tolerant to
863 null pointers.
864
865 * sim-xcat.h: New file. Define concatenate macros.
866 * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
867 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
868 concat macros.
869
870
871 Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
872
873 * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
874
875 Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
876
877 * sim-inline.h: Add definitions for sim-types.
878 (ALL_BY_MODULE): New macro, encapsulate full inlining by the
879 module.
880
881 Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
882
883 * sim-events.h: Remove defunct reference to callback struct.
884
885 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
886
887 * configure: Re-generate.
888
889 Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
890
891 * Make-common.in (CSEARCH): Do not include the gdb directory in
892 the search path.
893
894 Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
895
896 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
897 SIM_WARNING): Drop, requiring the simulator specific Makefile.in
898 to explicitly incorporate these.
899
900 * aclocal.m4 (--enable-sim-alignment); New option. Strongly
901 specify the alignment restrictions of the target architecture -
902 without this option all alignment restrictions are accomodated.
903 (--enable-sim-assert): New option. Conditionally compile in
904 assertion statements.
905 (--enable-sim-float): New option. Strongly specify the target's
906 floating point support.
907 (--enable-sim-hardware): New option. Specify the hardware devices
908 included in the simulation.
909 (--enable-sim-packages): New option. Specify the hardware
910 packages included in the simulation.
911 (--enable-sim-regparm): New option. Specify that parameters be
912 passed in registers instead of on the stack.
913 (--enable-sim-reserved-bits): New option. Specify that reserved
914 bits within an instruction are are correctly set.
915 (--enable-sim-smp): New option. Specify the level of SMP support
916 to be included in the simulator.
917 (--enable-sim-stdcall): New option. Specify an alternative
918 function call convention.
919 (--enable-sim-xor-endian): New option. Configure xor-endian
920 support used by some targets to implement bi-endian support.
921
922 Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
923
924 * aclocal.m4 (--enable-sim-hostendian): New option. Allow the
925 host endianness to be overridden.
926 (--enable-sim-endian): Allow the target platform's byte order
927 to be overridden.
928 (--enable-sim-inline): Control the inlining of common components.
929 (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
930 (--enable-sim-warnings): Enable additional GCC compiler checks.
931 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
932 SIM_WARNINGS): Add.
933
934 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
935 sim-*-n.h so that the names are uniq on dos machines
936 * sim-core.c, sim-bits.c, sim-endian.c: Update.
937
938 Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
939
940 * run.c: #include "libiberty.h".
941 (main): New locals sd,no_args,sim_argv.
942 Run buildargv on -a option. Pass argv to sim_open, argv[0]
943 is program name. Update call to sim_set_callbacks.
944 Record result of sim_open, pass to other sim_foo routines.
945
946 Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
947
948 * callback.c (os_printf_filtered): Do not call exit(1) or print a
949 final newline.
950
951 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
952
953 * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
954 Route stdout through buffered IO.
955
956 * callback.c: Add os_flush_stderr, os_write_stderr,
957 os_evprintf_filtered functions to route error output through
958 stderr.
959
960 * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
961 Correct return type - should be void.
962
963 Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
964
965 * sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
966
967 * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
968 not provide a default value as undefined indicates disable code.
969
970 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
971
972 * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
973 directory.
974 * sim-events.h, sim-events.c: Ditto.
975 * sim-io.h, sim-io.c: Ditto.
976
977 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
978
979 * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
980
981 * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
982 extract the tail or least signifiant bits from an integer of the
983 specified size.
984
985 * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
986 WITH_TARGET_BITSIZE so that the compilation will fail when an
987 unsupported bitsize value is defined.
988
989 (INSERTED*): Convert to functions.
990 (EXTRACTED*): Ditto.
991
992 (SIGN_EXTEND, SEXT): Change to more terse name.
993
994 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
995
996 * sim-inline.h: Allow explicit control over which .c files will be
997 included by their header.
998
999 * sim-inline.h: Allow explicit control over which .c files use the
1000 alternative - REGPARM - parameter passing mechanism.
1001
1002 * sim-inline.h, sim-inline.c: Don't attempt to include any of
1003 icache.c, idecode.c, semantics.c or support.c. Those names are
1004 not generally applicable.
1005
1006 Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1007
1008 * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
1009 in a fashion similar to sim-endian-n.
1010
1011 * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
1012 both value and address macro's.
1013
1014 Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1015
1016 * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
1017
1018 * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
1019 generic L_word, H_word macro's.
1020
1021 Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
1022
1023 * sim-basics.h: Borrow code from ppc directory.
1024 * sim-bits.c: Ditto.
1025 * sim-bits.h: Ditto.
1026 * sim-config.h: Ditto.
1027 * sim-endian-n.h: Ditto.
1028 * sim-endian.c: Ditto.
1029 * sim-endian.h: Ditto.
1030 * sim-inline.c: Ditto.
1031 * sim-inline.h: Ditto.
1032 * sim-types.h: Ditto.
1033
1034 Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
1035
1036 * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
1037 all the ALU size alternatives and then auto-configure a default.
1038
1039 * sim-alu.h: Copy ppc/idecode_expression.h.
1040
1041 Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
1042
1043 * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
1044 sign extend a bit within a value.
1045
1046 * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
1047 a pointer into the middle of a host word.
1048 * sim-endian.h (MS2W_4, LS2W_4): Use this function.
1049
1050 Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
1051
1052 * callback.c: If HAVE_CONFIG_H is defined, include config.h from
1053 autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
1054 appropriate definitions of read, write, etc. Add prototype for
1055 system.
1056
1057 Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
1058
1059 * Makefile.in (libcommon.a): Delete.
1060 (callback.o,targ-map.o): Delete, moved to Make-common.in.
1061 (gentmap,targ-vals.h,targ-map.c): Likewise.
1062 (run-autoconf): Delete.
1063 * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
1064 (common makefile fragment): Moved back into ...
1065 * Make-common.in: Resurrect.
1066 * configure.in (AC_LINK_FILES): Delete, unnecessary now.
1067 * configure: Regenerated.
1068
1069 Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
1070
1071 * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
1072 (SIM_AC_OUTPUT): To here.
1073
1074 Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
1075
1076 * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
1077 comments and single quotes. Fixes a problem found on hpux.
1078
1079 Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
1080
1081 * aclocal.m4: Remove Make-common.in from dependencies.
1082 * (distclean): Remove targ-vals.def.
1083
1084 * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
1085 into here. Makes insertion into makefiles easier. Also, change
1086 the way that callback.o, gentmap, targ-vals.h, targ-map.c,
1087 targ-map.o, and run are built. They are now built in the
1088 individual simulator directories, taking sources from ../common as
1089 necessary. This replaces the merging of libcommon.a into
1090 linsim.a, which was problematic for the WinGDB build process.
1091 * run.c: Include config.h from . instead of ../common.
1092 * Make-common.in: Remove. It's no longer necessary.
1093
1094 Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
1095
1096 * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
1097 (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
1098
1099 Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
1100
1101 * run.c (main): Set target_byte_order before call to sim_open.
1102
1103 Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
1104
1105 * callback.c: #include <stdlib.h>
1106 (os_error): New function.
1107 (default_callback): Add os_error.
1108
1109 Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
1110
1111 * Make-common.in (Makefile): Set CONFIG_HEADERS="".
1112 * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
1113 specific.
1114 (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
1115
1116 Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
1117
1118 * run.c: #include ../common/config.h, tconfig.h.
1119 (myname): New static global.
1120 (main): Recognize new options -a, -c. Also recognize -h if h8/300.
1121 Only process -c ifdef SIM_HAVE_SIMCACHE.
1122 Only process -p/-s ifdef SIM_HAVE_PROFILE.
1123 Parse program name from argv[0] and use in error messages.
1124 Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
1125 Add support for incomplete h8/300 termination indicators.
1126 (usage): Make more verbose.
1127 * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
1128 * Makefile.in,Make-common.in,callback.c: New files.
1129 * nltvals.def,gentmap.c,gentvals.sh: New files.
1130
1131 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
1132
1133 * run.c: Include stdarg.h if __STDC__.
1134
1135 Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
1136
1137 * run.c (main): Don't print out anything if the signal
1138 number is zero (ie no signal).
1139
1140 Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1141
1142 * run.c (main): Print out if the program raised a signal.
1143
1144 Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1145
1146 * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
1147 (main): Ditto.
1148
1149 Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
1150
1151 * run.c (main): Explicitly cast malloc() parameter.
1152
1153 Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1154
1155 * run.c (sim_bfd): New global to hold the bfd pointer for the
1156 executable.
1157 (main): Initialize sim_bfd.
1158
1159 Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
1160
1161 * run.c (main): Use new bfd_big_endian macro.
1162
1163 Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
1164
1165 * run.c (main): Removed SH specific comments, so source is
1166 generic. Also updated to only load relevant sections. Moved
1167 sim_open() to after callback attach (to match GDB).
1168
1169 * run.1: Removed SH specific comments.
1170
1171 Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
1172
1173 * run.c (main): Always return sigrc at end.
1174
1175 Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1176
1177 * run.c (main): Print error diagnostic and exit if bfd_openr() or
1178 bfd_check_format() fails.
1179
1180 Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
1181
1182 * run.c, run.1: From sh directory.
1183
1184