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