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