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