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