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