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