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