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