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