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