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