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