]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/common/ChangeLog
sim: cgen: invert sim_state storage for cgen ports
[thirdparty/binutils-gdb.git] / sim / common / ChangeLog
1 2021-05-17 Mike Frysinger <vapier@gentoo.org>
2
3 * cgen-defs.h (STATE_RUN_FAST_P): Call STATE_CGEN_STATE.
4 * sim-base.h [CGEN_ARCH]: Include cgen-sim.h and define
5 SIM_HAVE_COMMON_SIM_STATE.
6 (struct sim_state): Add cgen_state.
7 (STATE_CGEN_STATE): Define.
8
9 2021-05-17 Mike Frysinger <vapier@gentoo.org>
10
11 * sim-base.h (struct sim_state): Update comment.
12 (struct sim_state): Define.
13 (STATE_ARCH_DATA): Likewise.
14 (sim_state_alloc): New define.
15 (sim_state_alloc_extra): Renamed & add 3rd arg.
16 * sim-utils.c (sim_state_alloc): Likewise.
17 (sim_state_alloc_extra): Set arch data.
18
19 2021-05-16 Mike Frysinger <vapier@gentoo.org>
20
21 * callback.c: Replace config.h include with defs.h.
22 * cgen-accfp.c, cgen-fpu.c, cgen-par.c, cgen-run.c, cgen-scache.c,
23 dv-core.c, dv-glue.c, genmloop.sh, hw-alloc.c, hw-base.c, hw-device.c,
24 hw-events.c, hw-handles.c, hw-instances.c, hw-ports.c,
25 hw-properties.c, hw-tree.c, sim-abort.c, sim-arange.c, sim-bits.c,
26 sim-close.c, sim-command.c, sim-config.c, sim-core.c, sim-cpu.c,
27 sim-endian.c, sim-engine.c, sim-events.c, sim-fpu.c, sim-hload.c,
28 sim-hrw.c, sim-hw.c, sim-info.c, sim-inline.c, sim-model.c,
29 sim-profile.c, sim-reason.c, sim-reg.c, sim-resume.c, sim-run.c,
30 sim-signal.c, sim-stop.c, sim-trace.c, sim-utils.c: Include defs.h.
31 * cgen-trace.c, cgen-utils.c, dv-cfi.c, dv-pal.c, dv-sockser.c,
32 nrun.c, sim-basics.h, sim-load.c, sim-memopt.c, sim-module.c,
33 sim-options.c, sim-syscall.c, sim-watch.c, syscall.c: Replace
34 config.h include with defs.h.
35 * gentmap.c (gen_targ_map_c): Replace config.h with defs.h.
36 * sim-io.c: Include defs.h.
37 (open): Undefine.
38 * defs.h: New file.
39
40 2021-05-15 Mike Frysinger <vapier@gentoo.org>
41
42 * nrun.c: Include environ.h.
43 (environ): Delete prototype.
44 (main): Delete HAVE_ENVIRON check.
45
46 2021-05-14 Mike Frysinger <vapier@gentoo.org>
47
48 * callback.c (os_lseek): Change return and 3rd arg to int64_t.
49 (os_ftruncate): Change 3rd arg to int64_t.
50 (os_truncate): Change 3rd arg to int64_t.
51 * sim-io.c (sim_io_lseek): Change return and 3rd arg to int64_t.
52 * sim-io.h (sim_io_lseek): Likewise.
53
54 2021-05-14 Mike Frysinger <vapier@gentoo.org>
55
56 * callback.c (os_time): Change return to int64_t. Delete 2nd arg.
57 (os_fstat): Delete 2nd arg to time callback.
58 * sim-io.c (sim_io_time): Change return to int64_t. Delete 2nd arg
59 to time callback.
60 * sim-io.h (sim_io_time): Change return to int64_t.
61 * syscall.c (cb_syscall): Delete 2nd arg to time callback.
62
63 2021-05-14 Mike Frysinger <vapier@gentoo.org>
64
65 * callback.c (cb_host_to_target_stat): Change PTR to void*.
66 * sim-syscall.c (sim_syscall_multi): Delete (PTR) casts.
67
68 2021-05-14 Mike Frysinger <vapier@gentoo.org>
69
70 * Make-common.in (callback_h, remote_sim_h): Update path.
71 * callback.c: Update include path.
72 * gentmap.c (gen_targ_map_c): Likewise.
73 * sim-basics.h: Likewise.
74 * sim-close.c: Likewise.
75 * sim-core.c: Likewise.
76 * sim-load.c: Likewise.
77 * sim-module.h: Likewise.
78 * syscall.c: Likewise.
79
80 2021-05-08 Mike Frysinger <vapier@gentoo.org>
81
82 * Make-common.in (modules.c): Touch $@ at the end.
83
84 2021-05-08 Mike Frysinger <vapier@gentoo.org>
85
86 * cgen-trace.c (sim_cgen_disassemble_insn): Change %x to PRIxTA.
87
88 2021-05-08 Mike Frysinger <vapier@gentoo.org>
89
90 * cgen-types.h (mode_names): Rename to ...
91 (cgen_mode_names): ... this.
92 (MODE_NAME): Use cgen_mode_names.
93 * cgen-utils.c (mode_names): Rename to ...
94 (cgen_mode_names): ... this.
95
96 2021-05-08 Mike Frysinger <vapier@gentoo.org>
97
98 * cgen-ops.h (cgen_rtx_error): Declare.
99 * cgen-utils.c (cgen_rtx_error): Add %s printf argument.
100
101 2021-05-08 Mike Frysinger <vapier@gentoo.org>
102
103 * cgen-utils.c (virtual_insn_entries): Change {0} to {}.
104
105 2021-05-08 Mike Frysinger <vapier@gentoo.org>
106
107 * Make-common.in (html, clean-html, install-html, pdf, clean-pdf,
108 install-pdf): New rules.
109
110 2021-05-08 Tom Tromey <tom@tromey.com>
111
112 * sim-options.c (compare_strings): Remove.
113 (dup_arg_p): Use htab_eq_string.
114
115 2021-05-04 Mike Frysinger <vapier@gentoo.org>
116
117 * sim-hw.c (sim_hw_install): Rename to ...
118 (sim_install_hw): ... this. New prototype.
119 * sim-hw.h (sim_hw_install): Delete.
120 * sim-module.c: Delete sim-hw.h include.
121 (early_modules): Delete sim_hw_install.
122
123 2021-05-04 Tom Tromey <tromey@adacore.com>
124
125 * Make-common.in (generated_files): Add config.h.
126
127 2021-05-04 Mike Frysinger <vapier@gentoo.org>
128
129 * cgen-trace.c (sim_disasm_perror_memory): Use BFD_VMA_FMT and drop
130 cast.
131 * sim-load.c (xprintf_bfd_vma): Delete.
132 (sim_load_file): Delete xprintf_bfd_vma calls. Use BFD_VMA_FMT.
133
134 2021-05-03 Simon Marchi <simon.marchi@polymtl.ca>
135
136 * hw-events.h (hw_event_queue_schedule_tracef): Use format attribute.
137 (hw_event_queue_schedule_vtracef): Likewise.
138 * hw-tree.h (hw_tree_vparse): Likewise.
139 * sim-profile.c (profile_vprintf): Likewise.
140 * sim-trace.c (dis_printf): Likewise.
141 * sim-trace.h (trace_printf): Likewise.
142 (trace_vprintf): Likewise.
143 * sim-utils.h (sim_do_commandf): Likewise.
144 * hw-events.c (hw_event_queue_schedule): Use
145 hw_event_queue_schedule_tracef.
146
147 2021-05-02 Simon Marchi <simon.marchi@polymtl.ca>
148
149 * sim-options.c (standard_option_handler): Add default cases to
150 switches.
151
152 2021-05-02 Mike Frysinger <vapier@gentoo.org>
153
154 * callback.c (os_error): Change __attribute__((noreturn)) to
155 ATTRIBUTE_NORETURN.
156 * hw-device.h (hw_abort, hw_vabort, hw_halthw_trace): Change
157 attributes to ATTRIBUTE_PRINTF and ATTRIBUTE_NORETURN.
158 * hw-events.h (hw_event_queue_schedule_tracef): Likewise.
159 * hw-tree.h (hw_tree_delete): Likewise.
160 * sim-basics.h (__attribute__): Delete.
161 * sim-engine.h (sim_engine_halt): Change __attribute__((noreturn))
162 to ATTRIBUTE_NORETURN.
163 (sim_engine_abort, sim_engine_vabort): Likewise.
164 * sim-hw.h (sim_hw_install, sim_hw_abort): Change
165 __attribute__((printf)) to ATTRIBUTE_PRINTF.
166 * sim-inline.h (NORETURN): Delete.
167 (UNUSED): Change to ATTRIBUTE_UNUSED.
168 * sim-io.h (sim_io_printf): Change attributes to ATTRIBUTE_PRINTF
169 and ATTRIBUTE_NORETURN.
170 (sim_io_eprintf, sim_io_error): Likewise.
171 * sim-profile.c (profile_printf): Likewise.
172 * sim-trace.h (trace_prefix, trace_generic, trace_printf,
173 sim_debug_printf): Likewise.
174
175 2021-05-01 Mike Frysinger <vapier@gentoo.org>
176
177 * sim-options.c (dup_arg_p): Call htab_empty.
178
179 2021-05-01 Mike Frysinger <vapier@gentoo.org>
180
181 * dv-sockser.c (dv_sockser_install): Rename to ...
182 (sim_install_dv_sockser): ... this.
183 * dv-sockser.h (dv_sockser_install): Delete.
184 * sim-module.c: Delete dv-sockser.h include.
185 (early_modules): Delete dv_sockser_install.
186
187 2021-05-01 Mike Frysinger <vapier@gentoo.org>
188
189 * Make-common.in (LIB_OBJS): Add modules.o.
190 (generated_files): Add modules.c.
191 (modules.c): New target.
192 * sim-module.c (modules): Rename to ...
193 (early_modules): ... this. Delete 0 sentinel.
194 (early_modules_len): Define.
195 (sim_modules_detected, sim_modules_detected_len): Declare.
196 (sim_pre_argv_init): Call sim_module_install_list.
197 (sim_module_install): New function.
198 (sim_module_install_list): New function.
199 * sim-module.h (sim_module_install_list): Declare.
200
201 2021-05-01 Mike Frysinger <vapier@gentoo.org>
202
203 * nrun.c (strsignal): New prototype.
204
205 2021-05-01 Mike Frysinger <vapier@gentoo.org>
206
207 * callback.c (wrap): Delete.
208 (os_close): Replace wrap call with direct call & setting last_errno.
209 (os_isatty, os_lseek, os_read_stdin, os_write, os_rename, os_system,
210 os_time, os_unlink, os_stat, os_fstat, os_lstat): Likewise.
211
212 2021-04-26 Mike Frysinger <vapier@gentoo.org>
213
214 * gennltvals.py (TARGETS): Delete. Update comment.
215 (gentvals): Unify common code paths.
216 (gen_targets): Change TARGETS to TARGETS_DIRS. Call gentvals without
217 target argument.
218 * nltvals.def: Regenerate.
219
220 2021-04-25 Tom Tromey <tom@tromey.com>
221
222 * sim-options.c (compare_strings): New function.
223 (ARG_HASH_SIZE, ARG_HASH): Remove.
224 (dup_arg_p): Use htab_t.
225 (sim_parse_args): Remove assert.
226
227 2021-04-24 Mike Frysinger <vapier@gentoo.org>
228
229 * dv-cfi.c (attach_cfi_regs): Change %u to PRIiTC.
230
231 2021-04-24 Mike Frysinger <vapier@gentoo.org>
232
233 * sim-options.c (ARG_HASH_SIZE): Increase to 256.
234 (sim_parse_args): Call SIM_ASSERT.
235
236 2021-04-22 Tom Tromey <tom@tromey.com>
237
238 * sim-utils.c: Update includes.
239
240 2021-04-22 Tom Tromey <tom@tromey.com>
241
242 * Make-common.in: Require GNU make.
243
244 2021-04-22 Tom Tromey <tom@tromey.com>
245
246 * Make-common.in (stamp-hw): New target.
247 (hw-config.h): Depend on stamp-hw.
248 (mostlyclean): Remove stamp-hw and hw-config.h.
249
250 2021-04-22 Tom Tromey <tom@tromey.com>
251
252 * Make-common.in (mostlyclean): Now an alias for clean, not
253 distclean.
254
255 2021-04-22 Tom Tromey <tom@tromey.com>
256
257 * sim-events.c (sim_events_schedule): Use
258 sim_events_schedule_tracef.
259
260 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
261
262 * callback.c (os_printf_filtered, os_vprintf_filtered,
263 os_evprintf_filtered, os_error): Use ATTRIBUTE_PRINTF.
264 * sim-engine.h (sim_engine_abort, sim_engine_vabort): Likewise.
265 * sim-events.h (sim_events_schedule_tracef,
266 sim_events_schedule_vtracef): Use ATTRIBUTE_NULL_PRINTF.
267
268 2021-04-18 Mike Frysinger <vapier@gentoo.org>
269
270 * gennltvals.py (TARGETS): Add moxie.
271 * nltvals.def: Regenerate.
272
273 2021-04-18 Mike Frysinger <vapier@gentoo.org>
274
275 * gennltvals.py (TARGET_DIRS, TARGETS): Add sh.
276 * nltvals.def: Regenerate.
277
278 2021-04-18 Mike Frysinger <vapier@gentoo.org>
279
280 * gennltvals.py (TARGETS): Add rx.
281 * nltvals.def: Regenerate.
282
283 2021-04-18 Mike Frysinger <vapier@gentoo.org>
284
285 * gennltvals.py (TARGETS): Add m32c.
286 * nltvals.def: Regenerate.
287
288 2021-04-18 Mike Frysinger <vapier@gentoo.org>
289
290 * gennltvals.py (TARGETS): Add iq2000.
291 * nltvals.def: Regenerate.
292
293 2021-04-18 Mike Frysinger <vapier@gentoo.org>
294
295 * syscall.c (cb_syscall): Implement CB_SYS_getpid.
296
297 2021-04-15 John Baldwin <jhb@FreeBSD.org>
298
299 * Make-common.in (CONFIG_CFLAGS): Remove SIM_EXTRA_CFLAGS.
300 (ALL_CLAGS, COMMON_DEP_CFLAGS): Add SIM_EXTRA_CFLAGS after
301 CSEARCH.
302
303 2021-04-12 Mike Frysinger <vapier@gentoo.org>
304
305 * sim-cpu.c (sim_cpu_alloc_all): Delete 3rd arg. Delete 2nd arg to
306 sim_cpu_alloc.
307 (sim_cpu_alloc): Move extra_bytes to local var. Add result of
308 cgen_cpu_max_extra_bytes.
309 * sim-cpu.h (sim_cpu_alloc_all): Delete 3rd arg.
310 (sim_cpu_alloc): Delete 2nd arg.
311
312 2021-04-08 Tom Tromey <tom@tromey.com>
313
314 * cgen-utils.c (RORQI, ROLQI, RORHI, ROLHI, RORSI, ROLSI): Use
315 new-style declaration.
316
317 2021-04-03 Mike Frysinger <vapier@gentoo.org>
318
319 * Make-common.in (install-common): Install as run-$arch and
320 libsim-$arch.a when not the primary arch.
321
322 2021-04-02 Mike Frysinger <vapier@gentoo.org>
323
324 * Make-common.in (CFLAGS_FOR_BUILD): Define.
325 (BUILD_CFLAGS): Replace -g -O with $(CFLAGS_FOR_BUILD).
326
327 2021-03-13 Mike Frysinger <vapier@gentoo.org>
328
329 * Make-common.in (LINK_FOR_BUILD): Change BUILD_LDFLAGS to
330 LDFLAGS_FOR_BUILD.
331
332 2021-03-13 Mike Frysinger <vapier@gentoo.org>
333
334 * Make-common.in (COMPILE_FOR_BUILD, LINK_FOR_BUILD): Define.
335 (gentmap.o): New rule.
336 (gentmap): Call LINK_FOR_BUILD.
337
338 2021-03-07 Mike Frysinger <vapier@gentoo.org>
339
340 * Make-common.in (check): Delete body.
341
342 2021-02-28 Mike Frysinger <vapier@gentoo.org>
343
344 * Make-common.in (SIM_EXTRA_LIBDEPS): Delete.
345 (LIBDEPS): Delete $(SIM_EXTRA_LIBDEPS).
346
347 2021-02-27 Mike Frysinger <vapier@gentoo.org>
348
349 * Make-common.in (SIM_EXTRA_ALL): Delete.
350 (all): Delete $(SIM_EXTRA_ALL).
351
352 2021-02-21 Mike Frysinger <vapier@gentoo.org>
353
354 * acinclude.m4: Removed.
355
356 2021-02-13 Mike Frysinger <vapier@gentoo.org>
357
358 * acinclude.m4: Delete all sinclude & m4_include calls.
359
360 2021-02-13 Mike Frysinger <vapier@gentoo.org>
361
362 * aclocal.m4: Delete.
363
364 2021-02-06 Mike Frysinger <vapier@gentoo.org>
365
366 * sim-events.c: Include sim-cpu.h.
367 (sim_event_watchpoints): Define watch_pc.
368 (sim_events_watch_pc): New function.
369 (WATCH_SIM): Handle watch_pc.
370 * sim-events.h (sim_events_watch_pc): New prototype.
371 * sim-watch.c (schedule_watchpoint): Replace sim_events_watch_sim with
372 sim_events_watch_pc.
373 * sim-watch.h (sim_watchpoints): Delete pc.
374
375 2021-02-06 Mike Frysinger <vapier@gentoo.org>
376
377 * acinclude.m4 (SIM_AC_COMMON): Replace AC_CONFIG_HEADER with
378 AC_CONFIG_HEADERS.
379
380 2021-02-06 Mike Frysinger <vapier@gentoo.org>
381
382 * Make-common.in (HDEFINES, TDEFINES): Delete.
383 (CONFIG_CFLAGS): Delete $(HDEFINES) $(TDEFINES).
384 * acinclude.m4 (SIM_AC_COMMON): Delete AC_SUBST(HDEFINES) and
385 bfd/configure.host sourcing.
386
387 2021-02-04 Mike Frysinger <vapier@gentoo.org>
388
389 * gennltvals.py (TARGETS): Add riscv.
390 (TARGET_DIRS): Likewise.
391 * nltvals.def: Regenerate from the latest libgloss sources.
392
393 2021-01-31 Mike Frysinger <vapier@gentoo.org>
394
395 * cgen-trace.c (cgen_trace_insn): Add "%s" argument.
396
397 2021-01-31 Stafford Horne <shorne@gmail.com>
398
399 * cgen-accfp.c (fixsfsi): Change res from unsigned32 to signed32.
400 (fixdfsi): Change res from unsigned32 to signed32.
401 (fixdfdi): Change res from unsigned64 to signed64.
402
403 2021-01-30 Mike Frysinger <vapier@gentoo.org>
404
405 * gennltvals.sh: Replace shell script with ...
406 * gennltvals.py: ... this Python script.
407 * nltvals.def: Regenerate.
408
409 2021-01-30 Mike Frysinger <vapier@gentoo.org>
410
411 * sim-watch.c (schedule_watchpoint): Change sizeof_pc to sizeof
412 sim_cia.
413 * sim-watch.h (struct _sim_watchpoints): Delete sizeof_pc.
414
415 2021-01-30 Mike Frysinger <vapier@gentoo.org>
416
417 * sim-profile.c (profile_pc_init): Change 1 in shifts to 1ULL.
418
419 2021-01-30 Mike Frysinger <vapier@gentoo.org>
420
421 * sim-hw.c (merge_device_file): Replace fgets with getline.
422
423 2021-01-30 Mike Frysinger <vapier@gentoo.org>
424
425 * gennltvals.sh (gen_arches): Sort calls by first arg.
426 * nltvals.def: Regenerate.
427
428 2021-01-18 Mike Frysinger <vapier@gentoo.org>
429
430 * Make-common.in (version.c): Simplifiy args and call move-if-change.
431 * create-version.sh: Delete host & target alias logic. Write to the
432 output directly.
433
434 2021-01-18 Mike Frysinger <vapier@gentoo.org>
435
436 * configure, configure.ac, Makefile.in: Delete.
437
438 2021-01-13 Mike Frysinger <vapier@gentoo.org>
439
440 * sim-watch.c (default_interrupt_handler): Define.
441 (sim_watchpoint_install): Set default interrupt_handler to new
442 default_interrupt_handler.
443
444 2021-01-13 Mike Frysinger <vapier@gentoo.org>
445
446 * sim-watch.c (do_watchpoint_create): Parse arg+1 and assign to arg1.
447
448 2021-01-13 Mike Frysinger <vapier@gentoo.org>
449
450 * sim-events.c (sim_events_watch_sim): Change byte_order type to
451 enum bfd_endian.
452 (sim_events_watch_core): Likewise.
453 * sim-events.h (sim_events_watch_sim, sim_events_watch_core): Likewise.
454 * sim-watch.c (schedule_watchpoint): Change 0 to HOST_BYTE_ORDER in
455 call to sim_events_watch_sim.
456
457 2021-01-12 Mike Frysinger <vapier@gentoo.org>
458
459 * sim-profile.h [!WITH_PROFILE]: Rewrite to use #error.
460
461 2021-01-11 Mike Frysinger <vapier@gentoo.org>
462
463 * acinclude.m4 (SIM_AC_OUTPUT): Require SIM_AC_OPTION_WARNINGS.
464
465 2021-01-11 Mike Frysinger <vapier@gentoo.org>
466
467 * sim-core.c (sim_memory_map): Change %#x to PRIxTW.
468
469 2021-01-11 Mike Frysinger <vapier@gentoo.org>
470
471 * acinclude.m4 (SIM_AC_COMMON): Delete checks for stdlib.h, string.h,
472 strings.h, time.h, and errno.h.
473 * callback.c, cgen-scache.c, dv-glue.c, dv-pal.c, dv-sockser.c,
474 hw-alloc.c, hw-base.c, hw-device.c, hw-events.c, hw-handles.c,
475 hw-ports.c, hw-properties.c, hw-tree.c, nrun.c, sim-arange.c,
476 sim-events.c, sim-fpu.c, sim-hw.c, sim-load.c, sim-memopt.c,
477 sim-options.c, sim-profile.c, sim-trace.c, sim-utils.c,
478 sim-watch.c, syscall.c: Delete HAVE_ERRNO_H, HAVE_STDLIB_H,
479 HAVE_STRING_H, HAVE_STRINGS_H, HAVE_LIMITS_H, HAVE_TIME_H,
480 and strings.h include.
481
482 2021-01-09 Mike Frysinger <vapier@gentoo.org>
483
484 * sim-basics.h [__CYGWIN32__] (vasprintf, asprintf): Delete.
485 * sim-core.c, sim-watch.c: Include libiberty.h.
486
487 2021-01-09 Mike Frysinger <vapier@gentoo.org>
488
489 * acinclude.m4: Replace duplicate text with pointer to README-HACKING.
490
491 2021-01-09 Mike Frysinger <vapier@gentoo.org>
492
493 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Document 1st argument.
494 Set WERROR_CFLAGS when first arg is not set or is "yes".
495
496 2021-01-09 Mike Frysinger <vapier@gentoo.org>
497
498 * hw-base.c (full_name_of_hw): Delete full_name. Replace
499 hw_strdup call with hw_malloc.
500
501 2021-01-09 Mike Frysinger <vapier@gentoo.org>
502
503 * cgen-par.c: Include stdlib.h.
504 * cgen-trace.c, hw-events.c, sim-abort.c: Likewise.
505
506 2021-01-08 Mike Frysinger <vapier@gentoo.org>
507
508 * Make-common.in (C_DIALECT): Define.
509 (COMPILE.pre): Append $(C_DIALECT).
510 * acinclude.m4 (SIM_AC_COMMON): Probe C11 to define C_DIALECT.
511
512 2021-01-07 Mike Frysinger <vapier@gentoo.org>
513
514 * sim-core.c (sim_memory_map): Define.
515
516 2021-01-04 Mike Frysinger <vapier@gentoo.org>
517
518 * acinclude.m4 (ACX_BUGURL): Change http:// to https://.
519 * configure: Regenerate.
520
521 2021-01-04 Mike Frysinger <vapier@gentoo.org>
522
523 * sim-options.c (sim_print_version): Print out more details when
524 is_command is non-zero.
525
526 2021-01-04 Mike Frysinger <vapier@gentoo.org>
527
528 * sim-options.c (standard_option_handler): Call sim_print_version.
529 (sim_print_version): New function.
530 * sim-options.h (sim_print_version): New prototype.
531
532 2021-01-04 Mike Frysinger <vapier@gentoo.org>
533
534 * sim-config.c (print_sim_config): Rename to ...
535 (sim_config_print): ... this.
536 * sim-config.h: Likewise.
537
538 2021-01-02 Mike Frysinger <vapier@gentoo.org>
539
540 * sim-bits.h (_ALIGNa, _FLOORa, ALIGN_8, ALIGN_16, ALIGN_PAGE,
541 FLOOR_PAGE): Delete unused macros.
542 (align_up, align_down): Define.
543
544 2020-08-10 Tom de Vries <tdevries@suse.de>
545
546 * sim-cpu.c: Include stdlib.h for free.
547
548 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
549
550 * nrun.c: Include stdlib.h.
551 * sim-core.c: Likewise.
552 * sim-engine.c: Likewise.
553 * sim-io.c: Likewise.
554 * sim-module.c: Likewise.
555 * sim-reason.c: Likewise.
556
557 2019-12-19 Tom Tromey <tromey@adacore.com>
558
559 PR build/24572:
560 * Makefile.in (install-strip): New target.
561
562 2019-12-01 Pavel I. Kryukov <kryukov@frtk.ru>
563
564 * sim-utils.c: Prevent buffer overflow.
565
566 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
567
568 * gennltvals.sh: Add PRU libgloss target.
569 * nltvals.def: Regenerate from the latest libgloss sources.
570
571 2019-06-13 Stafford Horne <shorne@gmail.com>
572
573 * cgen-accfp.c (unorderedsf, unordereddf): New functions.
574 (cgen_init_accurate_fpu): Wire up unorderedsf and unordereddf.
575 * cgen-fpu.h (cgen_fp_ops): Define fields unorderedsf and unordereddf.
576
577 2019-06-13 Stafford Horne <shorne@gmail.com>
578
579 * cgen-accfp.c (floatdidf, fixdfdi): New functions.
580 (cgen_init_accurate_fpu): Add floatdidf and fixdfdi.
581
582 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
583
584 * cgen-ops.h (SUBWORDXFSI): Compare HOST_BYTE_ORDER not
585 CURRENT_TARGET_BYTE_ORDER.
586 (SUBWORDTFSI): Likewise.
587 (JOINSIDF): Likewise.
588 (JOINSIXF): Likewise.
589 (JOINSITF): Likewise.
590
591 2019-03-28 Andrew Burgess <andrew.burgess@embecosm.com>
592
593 * sim-base.h: Add 'sim-assert.h' include.
594 * sim-basics.h: Add 'libiberty.h' include.
595
596 2019-03-28 Stafford Horne <shorne@gmail.com>
597
598 * sim-options.c: Include "config.h".
599 Include <stdio.h>.
600 * sim-watch.c: Include "config.h".
601 Include <stdio.h>.
602 * hw-device.c: Include <string.h>.
603 * hw-events.c: Include <string.h>.
604 * hw-handles.c: Include <stdlib.h>.
605 * sim-fpu.c: Include <stdlib.h>.
606
607 2019-03-28 Stafford Horne <shorne@gmail.com>
608
609 * Make-common.in (sim-arange_h): Remove sim-arange.c
610 * sim-arange.c: Remove SIM_ARANGE_C.
611 Add ifdef for _SIM_ARANGE_C_.
612 Include "sim-arange.h".
613 Remove include for unused "sim-assert.h".
614 Remove DEFINE_INLINE_P. Remove DEFINE_NON_INLINE_P.
615 (sim_addr_range_add): Declare as INLINE_SIM_ARANGE.
616 (sim_addr_range_delete): Declare as INLINE_SIM_ARANGE.
617 (sim_addr_range_hit_p): Change from SIM_ARANGE_INLINE to
618 INLINE_SIM_ARANGE.
619 * sim-arange.h (sim_addr_range_add): Declare as
620 INLINE_SIM_ARANGE.
621 (sim_addr_range_delete): Declare as INLINE_SIM_ARANGE.
622 (sim_addr_range_hit_p) Declare as INLINE_SIM_ARANGE.
623 Remove definition of SIM_ARANGE_INLINE.
624 Remove [HAVE_INLINE].
625 Wrap include "sim-arange.c" in H_REVEALS_MODULE_P.
626 * sim-base.h: Include "sim-arange.h"
627 * sim-basics.h: Remove include of "sim-arange.h"
628 * sim-inline.c: Include "sim-arange.c"
629 * sim-inline.h: Define INLINE_SIM_ARANGE.
630 Define SIM_ARANGE_INLINE. Define EXTERN_SIM_ARANGE_P.
631 Define STATIC_INLINE_SIM_ARANGE. Define STATIC_SIM_ARANGE.
632
633 2019-01-26 Tom Tromey <tom@tromey.com>
634
635 * Make-common.in (version.c): Use sim's create-version.sh.
636 * create-version.sh: New file.
637
638 2019-01-16 Pavel I. Kryukov <kryukov@frtk.ru>
639
640 * sim-arange.c (DEFINE_INLINE_P, DEFINE_NON_INLINE_P): Remove.
641
642 2019-01-15 Simon Marchi <simon.marchi@ericsson.com>
643
644 * sim-arange.h (SIM_ARANGE_INLINE): Change EXTERN to extern.
645
646 2018-12-18 Andrew Burgess <andrew.burgess@embecosm.com>
647
648 * sim-syscall.c (sim_syscall_multi): Don't update sc->errcode at
649 this point, it should have already been set in cb_syscall.
650
651 2018-10-05 Stafford Horne <shorne@gmail.com>
652
653 * cgen-ops.h (ADDCFDI): New function, add carry flag DI variant.
654 (ADDOFDI): New function, add overflow flag DI variant.
655 (SUBCFDI): New function, subtract carry flag DI variant.
656 (SUBOFDI): New function, subtract overflow flag DI variant.
657
658 2018-09-28 Компан, Вячеслав Олегович <kompan.vo@phystech.edu>
659
660 * sim-core.h (sim_cpu_core): Rename cpu_core.xor to
661 cpu_core.byte_xor.
662 * sim-core.c (sim_core_set_xor): Likewise.
663 (sim_core_xor_read_buffer): Likewise.
664 (sim_core_xor_write_buffer): Likewise.
665
666 2017-12-12 Peter Gavin <pgavin@gmail.com>
667 Stafford Horne <shorne@gmail.com>
668
669 * cgen-ops.h (MUL2OFSI): New function, 2's complement overflow
670 flag.
671 (MUL1OFSI): New function, 1's complement overflow flag.
672
673 2017-12-12 Peter Gavin <pgavin@gmail.com>
674 Stafford Horne <shorne@gmail.com>
675
676 * cgen-accfp.c (remsf, remdf): New function.
677 (cgen_init_accurate_fpu): Add remsf and remdf.
678 * cgen-fpu.h (cgen_fp_ops): Add remsf, remdf, remxf and remtf.
679 * sim-fpu.c (sim_fpu_rem): New function.
680 * sim-fpu.h (sim_fpu_status_invalid_irx): New enum.
681 (sim_fpu_rem): New function.
682 (sim_fpu_print_status): Add case for sim_fpu_status_invalid_irx.
683
684 2017-09-06 John Baldwin <jhb@FreeBSD.org>
685
686 * acinclude.m4 (SIM_AC_COMMON): Honor existing CC_FOR_BUILD in
687 environment.
688
689 2017-05-24 Yao Qi <yao.qi@linaro.org>
690
691 * sim-trace.c (trace_disasm): Caller update.
692
693 2016-08-15 Mike Frysinger <vapier@gentoo.org>
694
695 * sim-base.h (sim_state_base): Add prog_syms_count.
696 (STATE_PROG_SYMS_COUNT): Define.
697 * sim-trace.c (trace_uninstall): Free STATE_PROG_SYMS memory.
698 (trace_load_symbols): New function.
699 (trace_sym_value): Likewise.
700 (trace_prefix): Change STATE_CPU(cpu) to sd. Replace symbol
701 loading logic with a call to trace_load_symbols.
702 * sim-trace.h (trace_load_symbols, trace_sym_value): New
703 prototypes.
704
705 2016-08-13 Mike Frysinger <vapier@gentoo.org>
706
707 * cgen-types.h (mode_names): Mark const.
708 * cgen-utils.c (mode_names): Likewise.
709
710 2016-08-13 Mike Frysinger <vapier@gentoo.org>
711
712 * cgen-defs.h (struct cgen_state): Delete argv and envp.
713 (STATE_ARGV, STATE_ENVP): Delete.
714
715 2016-02-04 Nick Clifton <nickc@redhat.com>
716
717 * cgen-scache.c (scache_option_handler): Prevent possible
718 undefined behaviour computing the size of the scache by using
719 unsigned integers instead of signed integers.
720
721 2016-01-17 Joel Brobecker <brobecker@adacore.com>
722
723 * sim-fpu.c: Minor comment fixes throughout.
724
725 2016-01-17 Joel Brobecker <brobecker@adacore.com>
726
727 * sim-fpu.c (print_bits): Minor reformatting (no code change).
728 (sim_fpu_map): Likewise.
729
730 2016-01-11 Mike Frysinger <vapier@gentoo.org>
731
732 * sim-config.c (print_sim_config): Drop extra whitespace before =
733 in output for byte order, stdio, and msb settings.
734
735 2016-01-10 Mike Frysinger <vapier@gentoo.org>
736
737 * acinclude.m4 (SIM_AC_COMMON): Call AC_MSG_CHECKING,
738 AC_DEFINE_UNQUOTED, and AC_MSG_RESULT for sim-debug. Likewise for
739 sim-stdio, sim-trace, and sim-profile.
740 (SIM_AC_OPTION_ENVIRONMENT): Likewise.
741 (SIM_AC_OPTION_ASSERT): Likewise.
742 (SIM_AC_OPTION_SMP): Likewise.
743 (SIM_AC_OPTION_XOR_ENDIAN): Likewise.
744 * configure: Regenerate.
745 * Make-common.in (SIM_DEBUG, SIM_TRACE, SIM_PROFILE, SIM_ASSERT,
746 SIM_ENVIRONMENT, SIM_SMP, SIM_XOR_ENDIAN): Delete.
747 (CONFIG_CFLAGS): Delete $(SIM_DEBUG), $(SIM_TRACE), $(SIM_PROFILE),
748 $(SIM_ASSERT), $(SIM_ENVIRONMENT), $(SIM_SMP), and $(SIM_XOR_ENDIAN).
749 * sim-config.c (sim_config): Change DEFAULT_ENVIRONMENT to
750 WITH_ENVIRONMENT & USER_ENVIRONMENT.
751 * sim-config.h (SIM_HAVE_ENVIRONMENT, WITH_ENVIRONMENT,
752 DEFAULT_ENVIRONMENT, WITH_DEBUG, WITH_TRACE, WITH_PROFILE,
753 WITH_ASSERT, WITH_STDIO): Delete.
754 * sim-options.c (standard_options): Delete SIM_HAVE_ENVIRONMENT
755 check.
756
757 2016-01-10 Mike Frysinger <vapier@gentoo.org>
758
759 * acinclude.m4 (SIM_AC_OPTION_PACKAGES): Delete.
760 * configure: Regenerate.
761 * Make-common.in (SIM_PACKAGES): Delete.
762 (CONFIG_CFLAGS): Delete $(SIM_PACKAGES).
763
764 2016-01-10 Mike Frysinger <vapier@gentoo.org>
765
766 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ENVIRONMENT.
767
768 2016-01-10 Mike Frysinger <vapier@gentoo.org>
769
770 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ASSERT.
771
772 2016-01-10 Mike Frysinger <vapier@gentoo.org>
773
774 * acinclude.m4 (SIM_AC_COMMON): Delete sim_link_files and
775 sim_link_links.
776 (SIM_AC_OUTPUT): Delete AC_LINK_FILES call.
777 * gentmap.c: Change targ-vals.def include to nltvals.def.
778 * Make-common.in (gentmap): Change targ-vals.def to
779 $(srccom)/nltvals.def.
780 (distclean): Delete rm -f targ-vals.def.
781 * Makefile.in: Update comment.
782
783 2016-01-10 Mike Frysinger <vapier@gentoo.org>
784
785 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_INLINE.
786 (SIM_AC_OPTION_INLINE): Rename default_sim_inline to sim_inline
787 and always set -DDEFAULT_INLINE. Delete AC_ARG_ENABLE 4th arg.
788
789 2016-01-10 Mike Frysinger <vapier@gentoo.org>
790
791 * acinclude.m4: Delete --enable-sim-regparm and sim_regparm,
792 and --enable-sim-stdcall and sim_stdcall.
793 * configure: Regenerate.
794 * Make-common.in (SIM_REGPARM, SIM_STDCALL): Delete.
795 (CONFIG_CFLAGS): Delete $(SIM_REGPARM) and $(SIM_STDCALL).
796 * sim-config.h (WITH_REGPARM, WITH_STDCALL): Delete.
797 * sim-inline.h (REGPARM_MODULE, REGPARM): Delete.
798 (REGPARM_*): Delete all regparm defines and their use.
799
800 2016-01-10 Mike Frysinger <vapier@gentoo.org>
801
802 * acinclude.m4: Delete --enable-sim-cflags and sim_cflags.
803 * Make-common.in (SIM_CFLAGS): Delete.
804 (CONFIG_CFLAGS): Delete $(SIM_CFLAGS).
805 * Makefile.in: Likewise.
806
807 2016-01-09 Mike Frysinger <vapier@gentoo.org>
808
809 * configure.ac: Change SIM_AC_COMMON to AC_PROG_CC. Drop 2nd arg
810 to AC_OUTPUT. Move AC_CHECK_HEADERS, AC_CHECK_FUNCS,
811 AC_CHECK_MEMBERS, and -AC_CHECK_TYPES ...
812 * acinclude.m4 (SIM_AC_COMMON): ... here.
813 * aclocal.m4, configure: Regenerate.
814 * config.in: Delete file.
815 * callback.c: Change cconfig.h include to config.h.
816 * dv-cfi.c, nrun.c, sim-basics.h, sim-load.c, sim-memopt.c,
817 syscall.c: Likewise.
818 * Make-common.in (sim-basics_h): Delete ../common/cconfig.h.
819 * Makefile.in (distclean): Delete rm -f cconfig.h config.h stamp-h.
820
821 2016-01-06 Mike Frysinger <vapier@gentoo.org>
822
823 * sim-config.c (print_sim_config): Delete sim_io_printf of version,
824 date, and time information.
825
826 2016-01-06 Mike Frysinger <vapier@gentoo.org>
827
828 * sim-options.c (sim_parse_args): Mark argv array const.
829 * sim-options.h (sim_parse_args): Likewise.
830
831 2016-01-05 Mike Frysinger <vapier@gentoo.org>
832
833 * sim-trace.c: Include dis-asm.h.
834 (OPTION_TRACE_DISASM): New enum.
835 (trace_options): Add trace-disasm flag.
836 (trace_option_handler): Handle OPTION_TRACE_DISASM.
837 (trace_idx_to_str): Handle TRACE_DISASM_IDX.
838 (dis_read, dis_printf, trace_disasm): New functions.
839 * sim-trace.h: Include dis-asm.h.
840 (TRACE_INSN_IDX): Clarify comment.
841 (TRACE_DISASM_IDX): New enum.
842 (TRACE_disasm): New define.
843 (WITH_TRACE_DISASM_P): New define.
844 (struct _trace_data): Add dis_bfd, disassembler, and dis_info.
845 (STRACE_DISASM_P): New define.
846 (TRACE_DISASM_P): Likewise.
847 (TRACE_DISASM_P): Likewise.
848 (TRACE_DISASM): Likewise.
849 (trace_disasm): New function.
850
851 2016-01-04 Mike Frysinger <vapier@gentoo.org>
852
853 * sim-utils.c (sim_state_free): Change to STATE_MAGIC.
854
855 2016-01-04 Mike Frysinger <vapier@gentoo.org>
856
857 * cgen-scache.c (MAX): Delete.
858 (scache_init): Change MAX to max.
859 * cgen-trace.c (min): Delete.
860 * cgen-utils.c (min): Delete.
861 * sim-basics.h [!min] (min): Define.
862 [!max] (max): Define.
863
864 2016-01-04 Mike Frysinger <vapier@gentoo.org>
865
866 * sim-options.c (sim_parse_args): Tweak getopt error message.
867
868 2016-01-04 Mike Frysinger <vapier@gentoo.org>
869
870 * acinclude.m4 (sim-bswap): Delete.
871 * configure: Regenerate.
872 * Make-common.in (SIM_BSWAP): Delete.
873 (CONFIG_CFLAGS): Delete $(SIM_BSWAP).
874 * sim-config.h (htonl, ntohl): Delete.
875 (WITH_BSWAP): Delete.
876
877 2016-01-03 Mike Frysinger <vapier@gentoo.org>
878
879 * sim-options.c (sim_parse_args): Declare local save_opterr. Save
880 opterr state to it before calling getopt_long and restore afterwards.
881 Set opterr to 0. When optc is '?', call sim_io_eprintf.
882
883 2016-01-03 Mike Frysinger <vapier@gentoo.org>
884
885 * hw-device.h (device): Delete commented typedef.
886 * sim-basics.h (device): Delete typedef.
887
888 2016-01-03 Mike Frysinger <vapier@gentoo.org>
889
890 * sim-options.c (sim_parse_args): Replace for loop with a call
891 to countargv.
892
893 2016-01-03 Mike Frysinger <vapier@gentoo.org>
894
895 * nrun.c (myname): Mark const.
896 (main): Mark name const. Replace myname parsing loop with a
897 call to lbasename.
898
899 2016-01-03 Mike Frysinger <vapier@gentoo.org>
900
901 (CONFIG_CFLAGS): Delte $(SIM_HOSTENDIAN).
902 * acinclude.m4 (SIM_AC_COMMON): Call AC_C_BIGENDIAN.
903 (SIM_AC_OPTION_HOSTENDIAN): Delete.
904 * config.in, configure: Regenerate.
905 * Make-common.in (SIM_HOSTENDIAN): Delete.
906 * sim-config.c (current_host_byte_order): Delete.
907 (sim_config): Delete current_host_byte_order assignments and
908 CURRENT_HOST_BYTE_ORDER checks.
909 (print_sim_config): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
910 * sim-config.h (WITH_HOST_BYTE_ORDER): Change to ...
911 (HOST_BYTE_ORDER): ... this. Define based on WORDS_BIGENDIAN.
912 (current_host_byte_order): Delete.
913 (CURRENT_HOST_BYTE_ORDER): Likewise.
914 * sim-endian.c (WITH_HOST_BYTE_ORDER): Rename to ...
915 (HOST_BYTE_ORDER): ... this.
916 (sim_endian_split_16): Change WITH_HOST_BYTE_ORDER to
917 HOST_BYTE_ORDER.
918 (sim_endian_join_16): Likewise.
919 * sim-n-core.h (sim_core_read_misaligned_N): Change
920 CURRENT_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
921 (sim_core_write_misaligned_N): Likewise.
922 * sim-n-endian.h (endian_t2h_N): Likewise.
923 (endian_h2t_N, endian_h2be_N, endian_be2h_N, endian_h2le_N,
924 endian_le2h_N): Likewise.
925 (offset_N): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
926
927 2016-01-02 Mike Frysinger <vapier@gentoo.org>
928
929 * acinclude.m4 (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to
930 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
931 BFD_ENDIAN_UNKNOWN.
932 (SIM_AC_OPTION_HOSTENDIAN): Likewise.
933 * cgen-ops.h (SUBWORDXFSI): Change BIG_ENDIAN to BFD_ENDIAN_BIG.
934 (SUBWORDTFSI, JOINSIDF, JOINSIXF, JOINSITF): Likewise.
935 * nrun.c (main): Likewise.
936 * sim-config.c (current_host_byte_order): Change type to enum
937 bfd_endian. Initialize to BFD_ENDIAN_UNKNOWN.
938 (current_target_byte_order): Likewise.
939 (config_byte_order_to_a): Likewise. Change BIG_ENDIAN to
940 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
941 BFD_ENDIAN_UNKNOWN.
942 (sim_config): Change prefered_target_byte_order type to enum
943 bfd_endian. Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
944 to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
945 * sim-config.h: Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
946 to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
947 Delete all the various arch/OS endian includes & defines.
948 (current_host_byte_order): Change type to enum bfd_endian.
949 (current_target_byte_order): Likewise.
950 (CURRENT_HOST_BYTE_ORDER): Compare to BFD_ENDIAN_UNKNOWN, not 0.
951 (CURRENT_TARGET_BYTE_ORDER): Likewise.
952 * sim-endian.c: Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
953 * sim-events.c (sim_events_watch_sim): Change BIG_ENDIAN to
954 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
955 BFD_ENDIAN_UNKNOWN.
956 (sim_events_watch_core): Likewise.
957 * sim-events.h: Likewise.
958 * sim-n-core.h (sim_core_read_misaligned_N): Change BIG_ENDIAN to
959 BFD_ENDIAN_BIG.
960 (sim_core_write_misaligned_N): Likewise.
961 * sim-n-endian.h (endian_h2be_N): Likewise.
962 (endian_be2h_N): Likewise.
963 (endian_h2le_N): Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
964 (offset_N): Likewise.
965 * sim-options.c (standard_option_handler): Change LITTLE_ENDIAN to
966 BFD_ENDIAN_LITTLE and BIG_ENDIAN to BFD_ENDIAN_BIG.
967
968 2016-01-02 Mike Frysinger <vapier@gentoo.org>
969
970 * cgen-defs.h (current_state): Delete.
971 * sim-base.h (CURRENT_STATE_REG, CURRENT_STATE): Delete.
972 * sim-utils.c (current_state): Delete.
973
974 2015-12-30 Mike Frysinger <vapier@gentoo.org>
975
976 * sim-module.c (sim_pre_argv_init): Change STATE_MY_NAME assignment
977 to use lbasename.
978
979 2015-12-27 Mike Frysinger <vapier@gentoo.org>
980
981 * Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-hload.o.
982
983 2015-12-26 Mike Frysinger <vapier@gentoo.org>
984
985 * acinclude.m4 (AH_BOTTOM): Delete tconfig.h appending.
986 * config.in, configure: Regenerate.
987 * Make-common.in (sim-basics_h): Delete tconfig.h.
988 (distclean): Likewise.
989 * sim-core.c (device_io_read_buffer, device_io_write_buffer): Delete.
990 (new_sim_core_mapping): Delete WITH_HW and device *device.
991 (sim_core_map_attach, sim_core_attach): Likewise.
992 (sim_core_read_buffer): Delete WITH_DEVICES logic.
993 (sim_core_write_buffer): Likewise.
994 * sim-core.h (struct _sim_core_mapping): Delete WITH_HW and device
995 *device.
996 (sim_core_attach): Likewise.
997 (device_io_read_buffer, device_io_write_buffer): Delete.
998 * sim-n-core.h (sim_core_read_aligned_N): Delete WITH_DEVICES logic.
999 (sim_core_write_aligned_N): Likewise.
1000 * tconfig.h: Delete file.
1001
1002 2015-12-26 Mike Frysinger <vapier@gentoo.org>
1003
1004 * sim-core.c (sim_core_read_buffer): Move cia decl to top of func.
1005 Call sim_cpu_hw_io_read_buffer if cpu is valid.
1006 (sim_core_write_buffer): Move cia decl to top of func. Call
1007 sim_cpu_hw_io_write_buffer if cpu is valid.
1008
1009 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1010
1011 * hw-properties.c (hw_find_ihandle_runtime_property): Delete
1012 HW_TRACE call.
1013 (hw_find_integer_property): Likewise.
1014 (hw_find_integer_array_property): Likewise.
1015 (hw_add_duplicate_property): Likewise.
1016
1017 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1018
1019 * sim-config.h (WITH_ENGINE): Delete.
1020 * sim-module.c (modules): Always include sim_engine_install.
1021
1022 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1023
1024 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-model.o.
1025 * cgen-types.h (SIM_HAVE_MODEL): Delete.
1026 * sim-base.h: Always include sim-model.h.
1027 * sim-config.h (WITH_DEFAULT_MODEL): Delete.
1028 * sim-cpu.h (sim_cpu_base): Always declare mach/model members.
1029 * sim-model.c (sim_model_init): Return when !WITH_MODEL_P.
1030 [!WITH_MODEL_P] (sim_machs): Define.
1031 * sim-model.h: Add some developer docs.
1032 [!WITH_DEFAULT_MODEL] (mach_attr, WITH_DEFAULT_MODEL): Define.
1033 (WITH_MODEL_P): Define.
1034 * sim-module.c (modules): Always include sim_model_install.
1035 * sim-profile.h (WITH_PROFILE_MODEL_P): Delete.
1036
1037 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1038
1039 * sim-cpu.h: Rename MACH to SIM_MACH and MODEL to SIM_MODEL.
1040 * sim-model.c: Likewise.
1041 * sim-model.h: Likewise. Rename MACH_IMP_PROPERTIES to
1042 SIM_MACH_IMP_PROPERTIES
1043
1044 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1045
1046 * sim-core.c (device_error): Delete.
1047 (sim_core_map_attach): Delete calls to device_error.
1048 (sim_core_attach): Likewise.
1049 * sim-core.h (device_error): Delete.
1050 * sim-n-core.h (sim_core_read_aligned_N): Change device_error call
1051 to sim_engine_abort.
1052 (sim_core_write_aligned_N): Likewise.
1053
1054 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1055
1056 * sim-config.h (WITH_CALLBACK_MEMORY): Delete.
1057 * sim-core.c (sim_core_write_buffer): Likewise.
1058 * sim-n-core.h (sim_core_read_aligned_N): Likewise.
1059 (sim_core_write_aligned_N): Likewise.
1060
1061 2015-12-25 Mike Frysinger <vapier@gentoo.org>
1062
1063 * dv-pal.c: Include config.h and sim-main.h.
1064 (hw_pal_io_read_buffer): Always call CPU_INDEX.
1065
1066 2015-12-24 Mike Frysinger <vapier@gentoo.org>
1067
1068 * sim-options.c (standard_options): Always enable load-lma and
1069 load-vma options.
1070 (standard_install): Always set STATE_LOAD_AT_LMA_P(sd) to 1.
1071
1072 2015-12-24 Mike Frysinger <vapier@gentoo.org>
1073
1074 * sim-module.c (MODULE_LIST): Delete.
1075
1076 2015-12-24 Mike Frysinger <vapier@gentoo.org>
1077
1078 * sim-options.c (OPTION_H8300H, OPTION_H8300S, OPTION_H8300SX):
1079 Move to h8300/compile.c.
1080 [SIM_H8300] (standard_options): Likewise.
1081 (standard_option_handler): Likewise.
1082
1083 2015-12-24 Mike Frysinger <vapier@gentoo.org>
1084
1085 * sim-module.c [WITH_WATCHPOINTS] (modules): Always call
1086 sim_watchpoint_install.
1087
1088 2015-12-24 Mike Frysinger <vapier@gentoo.org>
1089
1090 * sim-base.h [SIM_HAVE_FLATMEM] (sim_state_base): Delete flatmem code.
1091 * sim-module.c [SIM_HAVE_FLATMEM] (modules): Always call
1092 sim_memopt_install.
1093 * sim-options.c (OPTION_MEM_SIZE): Delete.
1094 [SIM_HAVE_FLATMEM] (standard_options): Delete flatmem code.
1095 (standard_option_handler): Likewise.
1096
1097 2015-12-24 Mike Frysinger <vapier@gentoo.org>
1098
1099 * tconfig.h (SIM_HAVE_SIMCACHE): Delete.
1100
1101 2015-11-21 Mike Frysinger <vapier@gentoo.org>
1102
1103 PR sim/18762
1104 * Makefile.in (CPPFLAGS, CXXFLAGS, LDFLAGS): Define.
1105
1106 2015-11-21 Mike Frysinger <vapier@gentoo.org>
1107
1108 PR sim/19273
1109 * sim-utils.c (sim_do_commandf): Declare ret. Call va_start,
1110 vasprintf, and va_end together. Check ret after va_end call.
1111
1112 2015-11-21 Mike Frysinger <vapier@gentoo.org>
1113
1114 * sim-types.h (SIM_PRI_TB): Define.
1115 (PRI_TW, PRIiTW, PRIxTW): New PRI target word defines.
1116 (PRI_TA, PRIiTA, PRIxTA): New PRI target address defines.
1117 (PRI_TC, PRIiTC, PRIxTC): New PRI target cell defines.
1118 (PRI_TF, PRIiTF, PRIxTF): New PRI target floating point defines.
1119
1120 2015-11-17 Mike Frysinger <vapier@gentoo.org>
1121
1122 * sim-main.h (WITH_MODULO_MEMORY): Delete.
1123 * sim-core.c (new_sim_core_mapping): Always assign mask to modulo-1.
1124 (sim_core_attach): Delete WITH_MODULO_MEMORY == 0 logic.
1125 (sim_core_translate): Likewise.
1126 * sim-core.h: Delete mention of WITH_MODULO_MEMORY.
1127
1128 2015-11-16 Mike Frysinger <vapier@gentoo.org>
1129
1130 * sim-close.c (__cgen_cpu_close, _cgen_cpu_close): Delete.
1131 (cgen_cpu_close): Change to XCONCAT2.
1132
1133 2015-11-15 Mike Frysinger <vapier@gentoo.org>
1134
1135 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-reason.o, sim-reg.o,
1136 and sim-stop.o.
1137
1138 2015-11-14 Mike Frysinger <vapier@gentoo.org>
1139
1140 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-close.o
1141 * sim-close.c: New file.
1142
1143 2015-09-25 Andrew Bennett <andrew.bennett@imgtec.com>
1144 Ali Lown <ali.lown@imgtec.com>
1145
1146 * sim-bits.h (EXTEND6): New macro.
1147 (EXTEND12): New macro.
1148 (EXTEND25): New macro.
1149
1150 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1151
1152 * sim-trace.c (trace_one_insn): Delete.
1153 * sim-trace.h (trace_one_insn): Delete.
1154
1155 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1156
1157 * sim-trace.c (debug_printf): Rename to ...
1158 (sim_debug_printf): ... this.
1159 * sim-trace.h (debug_printf): Delete define.
1160 (debug_printf): Rename to ...
1161 (sim_debug_printf): ... this.
1162
1163 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1164
1165 * sim-trace.c (OPTION_TRACE_REGISTER): New enum.
1166 (trace_options): Add trace-register option.
1167 (trace_option_handler): Handle OPTION_TRACE_REGISTER case.
1168 (trace_idx_to_str): Handle TRACE_REGISTER_IDX case and re-indent.
1169 * sim-trace.h (TRACE_REGISTER_IDX): New enum.
1170 (TRACE_register, WITH_TRACE_REGISTER_P, STRACE_REGISTER_P,
1171 TRACE_REGISTER_P, TRACE_REGISTER): Define.
1172
1173 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1174
1175 * sim-trace.h (STRACE, STRACE_INSN, STRACE_DECODE, STRACE_EXTRACT,
1176 STRACE_LINENUM, STRACE_MEMORY, STRACE_MODEL, STRACE_ALU, STRACE_CORE,
1177 STRACE_EVENTS, STRACE_FPU, STRACE_VPU, STRACE_BRANCH, STRACE_SYSCALL,
1178 STRACE_DEBUG): Define.
1179
1180 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1181
1182 * sim-trace.c (trace_options): Update help text for trace-alu,
1183 trace-fpu, trace-vpu, and trace-semantics.
1184 * sim-trace.h (TRACE_ALU_IDX): Update comment text.
1185 (TRACE_FPU_IDX, TRACE_VPU_IDX): Likewise.
1186
1187 2015-06-24 Mike Frysinger <vapier@gentoo.org>
1188
1189 * sim-assert.h (SIM_FILTER_PATH): Delete.
1190 [!SIM_ASSERT, WITH_ASSERT]: Include libiberty.h.
1191 (SIM_ASSERT): Replace SIM_FILTER_PATH with lbasename.
1192 [!ASSERT, WITH_ASSERT]: Include libiberty.h.
1193 (ASSERT): Replace SIM_FILTER_PATH with lbasename.
1194 * sim-events.c: Include libiberty.h.
1195 (ETRACE): Replace SIM_FILTER_PATH with lbasename.
1196
1197 2015-06-23 Mike Frysinger <vapier@gentoo.org>
1198
1199 * acinclude.m4 (AC_ARG_ENABLE(sim-bswap)): Call AS_HELP_STRING.
1200 (AC_ARG_ENABLE(sim-cflags)): Likewise.
1201 (AC_ARG_ENABLE(sim-debug)): Likewise.
1202 (AC_ARG_ENABLE(sim-stdio)): Likewise.
1203 (AC_ARG_ENABLE(sim-trace)): Likewise.
1204 (AC_ARG_ENABLE(sim-profile)): Likewise.
1205 (AC_ARG_ENABLE(sim-environment)): Likewise.
1206 (AC_ARG_ENABLE(sim-alignment)): Likewise.
1207 (AC_ARG_ENABLE(sim-assert)): Likewise.
1208 (AC_ARG_ENABLE(sim-bitsize)): Likewise.
1209 (AC_ARG_ENABLE(sim-endian)): Likewise.
1210 (AC_ARG_ENABLE(sim-hostendian)): Likewise.
1211 (AC_ARG_ENABLE(sim-float)): Likewise.
1212 (AC_ARG_ENABLE(sim-scache)): Likewise.
1213 (AC_ARG_ENABLE(sim-default-model)): Likewise.
1214 (AC_ARG_ENABLE(sim-inline)): Likewise.
1215 (AC_ARG_ENABLE(sim-packages)): Likewise.
1216 (AC_ARG_ENABLE(sim-regparm)): Likewise.
1217 (AC_ARG_ENABLE(sim-reserved-bits)): Likewise.
1218 (AC_ARG_ENABLE(sim-smp)): Likewise.
1219 (AC_ARG_ENABLE(sim-stdcall)): Likewise.
1220 (AC_ARG_ENABLE(sim-xor-endian)): Likewise.
1221 (AC_ARG_ENABLE(cgen-maint)): Likewise.
1222 * configure: Regenerate.
1223
1224 2015-06-23 Mike Frysinger <vapier@gentoo.org>
1225
1226 * sim-config.h (WITH_TRACE): Define to ~TRACE_debug.
1227
1228 2015-06-23 Mike Frysinger <vapier@gentoo.org>
1229
1230 * cgen-trace.c [!__STDC__]: Delete.
1231 * sim-trace.h [!__STDC__]: Likewise.
1232
1233 2015-06-21 Mike Frysinger <vapier@gentoo.org>
1234
1235 * sim-model.c (sim_model_init): Assert model is not NULL.
1236
1237 2015-06-21 Mike Frysinger <vapier@gentoo.org>
1238
1239 * sim-types.h: Move SIM_TYPES_H define to top of file. Include
1240 stdint.h. Replace all signed/unsigned typedefs with int#_t and
1241 uint#_t.
1242
1243 2015-06-21 Mike Frysinger <vapier@gentoo.org>
1244
1245 * sim-alu.h (_SIM_ALU_H_): Rename to ...
1246 (SIM_ALU_H): ... this.
1247 * sim-assert.h (_SIM_ASSERT_H_): Rename to ...
1248 (SIM_ASSERT_H): ... this.
1249 * sim-basics.h (_SIM_BASICS_H_): Rename to ...
1250 (SIM_BASICS_H): ... this.
1251 * sim-bits.h (_SIM_BITS_H_): Rename to ...
1252 (SIM_BITS_H): ... this.
1253 * sim-endian.h (_SIM_ENDIAN_H_): Rename to ...
1254 (SIM_ENDIAN_H): ... this.
1255
1256 2015-06-18 Mike Frysinger <vapier@gentoo.org>
1257
1258 * sim-syscall.c (sim_syscall_multi): Change unknown_syscall to a
1259 constant string.
1260
1261 2015-06-18 Mike Frysinger <vapier@gentoo.org>
1262
1263 * callback.c (cb_target_map_entry, cb_host_map_entry): Change map to
1264 m for sentinel testing.
1265
1266 2015-06-17 Mike Frysinger <vapier@gentoo.org>
1267
1268 * sim-syscall.c: Include errno.h and targ-vals.h.
1269 (sim_syscall_multi, sim_syscall): Define.
1270 * sim-syscall.h (sim_syscall_multi, sim_syscall): Declare.
1271 * syscall.c (cb_syscall): Extend comment.
1272
1273 2015-06-17 Mike Frysinger <vapier@gentoo.org>
1274
1275 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-syscall.o.
1276 * sim-syscall.c: New file.
1277 * sim-syscall.h: New file.
1278
1279 2015-06-17 Mike Frysinger <vapier@gentoo.org>
1280
1281 * callback.c (cb_target_map_entry, cb_host_map_entry): Define.
1282 (cb_target_to_host_syscall): Rewrite to use cb_target_map_entry.
1283 (cb_host_to_target_errno): Rewrite to use cb_host_map_entry.
1284 (cb_host_str_syscall, cb_host_str_errno, cb_host_str_signal,
1285 cb_target_str_syscall, cb_target_str_errno, cb_target_str_signal):
1286 Define.
1287 * gentmap.c (gen_targ_map_c): Output name field.
1288
1289 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1290
1291 * acinclude.m4: Change configure.in to configure.ac.
1292 * sim-config.h: Likewise.
1293
1294 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1295
1296 * acinclude.m4 (sim-trace): Delete -DTRACE flags.
1297 * configure: Regenerate.
1298
1299 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1300
1301 * sim-trace.h (TRACE, TRACE_INSN, TRACE_DECODE, TRACE_EXTRACT,
1302 TRACE_LINENUM, TRACE_MEMORY, TRACE_MODEL, TRACE_ALU, TRACE_CORE,
1303 TRACE_EVENTS, TRACE_FPU, TRACE_VPU, TRACE_BRANCH, TRACE_SYSCALL,
1304 TRACE_DEBUG): Define.
1305
1306 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1307
1308 * sim-module.c (modules): Change WITH_TRACE to WITH_TRACE_ANY_P.
1309 * sim-trace.c (trace_option_handler): Likewise.
1310 * sim-trace.h (WITH_TRACE_ANY_P): Define.
1311 (STRACE_ANY_P): Use WITH_TRACE_ANY_P.
1312 (TRACE_ANY_P): Likewise.
1313
1314 2015-06-12 Mike Frysinger <vapier@gentoo.org>
1315
1316 * cgen-run.c (sim_resume): Rename TRACE_INSN_FINI to
1317 CGEN_TRACE_INSN_FINI.
1318 * cgen-trace.c: Rename trace_insn to cgen_trace_insn,
1319 trace_result to cgen_trace_result, trace_insn_fini to
1320 cgen_trace_insn_fini, trace_insn_init to cgen_trace_insn_init,
1321 and trace_extract to cgen_trace_extract.
1322 * cgen-trace.h (trace_insn_init): Rename to ...
1323 (cgen_trace_insn_init): ... this.
1324 (trace_insn_fini): Rename to ...
1325 (cgen_trace_insn_fini): ... this.
1326 (trace_insn): Rename to ...
1327 (cgen_trace_insn): ... this.
1328 (trace_extract): Rename to ...
1329 (cgen_trace_extract): ... this.
1330 (trace_result): Rename to ...
1331 (cgen_trace_result): ... this.
1332 (TRACE_RESULT_P): Rename to ...
1333 (CGEN_TRACE_RESULT_P): ... this.
1334 (TRACE_INSN_INIT): Rename to ...
1335 (CGEN_TRACE_INSN_INIT): ... this. Change trace_insn_init to
1336 cgen_trace_insn_init.
1337 (TRACE_INSN_FINI): Rename to ...
1338 (CGEN_TRACE_INSN_FINI): ... this. Change trace_insn_fini to
1339 cgen_trace_insn_fini.
1340 (TRACE_PRINTF): Rename to ...
1341 (CGEN_TRACE_PRINTF): ... this.
1342 (TRACE_INSN): Rename to ...
1343 (CGEN_TRACE_INSN): ... this. Change trace_insn to cgen_trace_insn.
1344 (TRACE_EXTRACT): Rename to ...
1345 (CGEN_TRACE_EXTRACT): ... this. Change trace_extract to
1346 cgen_trace_extract.
1347 (TRACE_RESULT): Rename to ...
1348 (CGEN_TRACE_RESULT): ... this. Change TRACE_RESULT_P to
1349 CGEN_TRACE_RESULT_P and trace_result to cgen_trace_result.
1350 * genmloop.sh (@prefix@_pbb_before): Change TRACE_INSN_FINI to
1351 CGEN_TRACE_INSN_FINI, TRACE_INSN_INIT to CGEN_TRACE_INSN_INIT, and
1352 TRACE_INSN to CGEN_TRACE_INSN.
1353 (@prefix@_pbb_after): Change TRACE_INSN_FINI to CGEN_TRACE_INSN_FINI.
1354
1355 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1356
1357 * sim-events.c (ETRACE_P): Delete.
1358 (ETRACE): Change ETRACE_P to STRACE_EVENTS_P(sd).
1359 (update_time_from_event, sim_events_schedule_vtracef): Likewise.
1360 * sim-events.h (struct _sim_events): Delete trace member.
1361 * sim-trace.c (set_trace_option_mask): Delete trace_nr check and
1362 always set STATE_TRACE_FLAGS(sd)[trace_nr] element.
1363
1364 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1365
1366 * sim-trace.h (STRACE_ANY_P, STRACE_INSN_P, STRACE_DECODE_P,
1367 STRACE_EXTRACT_P, STRACE_LINENUM_P, STRACE_MEMORY_P, STRACE_MODEL_P,
1368 STRACE_ALU_P, STRACE_CORE_P, STRACE_EVENTS_P, STRACE_FPU_P,
1369 STRACE_VPU_P, STRACE_BRANCH_P, STRACE_SYSCALL_P): Define.
1370
1371 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1372
1373 * sim-trace.h (TRACE_USEFUL_MASK): Change to TRACE_xxx defines.
1374
1375 2015-06-11 Mike Frysinger <vapier@gentoo.org>
1376
1377 * sim-trace.h (WITH_TRACE_P): New define.
1378 (WITH_TRACE_INSN_P, WITH_TRACE_DECODE_P, WITH_TRACE_EXTRACT_P,
1379 WITH_TRACE_LINENUM_P, WITH_TRACE_MEMORY_P, WITH_TRACE_MODEL_P,
1380 WITH_TRACE_ALU_P, WITH_TRACE_CORE_P, WITH_TRACE_EVENTS_P,
1381 WITH_TRACE_FPU_P, WITH_TRACE_VPU_P, WITH_TRACE_BRANCH_P,
1382 WITH_TRACE_SYSCALL_P, WITH_TRACE_DEBUG_P, STRACE_P, TRACE_P):
1383 Redefine to use WITH_TRACE_P.
1384
1385 2015-06-09 Mike Stump <mrs@mrs.kithrup.com>
1386
1387 * sim-events.c (sim_events_schedule_after_signal): Fix spelling
1388 mistake in call to sim_engine_abort.
1389
1390 2015-04-29 Nick Clifton <nickc@redhat.com>
1391
1392 PR 18273
1393 * sim-fpu.c (INLINE_SIM_FPU): Fix static analysis warning by
1394 increasing parenthesis around casts to signed values.
1395
1396 2015-04-21 Mike Frysinger <vapier@gentoo.org>
1397
1398 * gennltvals.sh: Add mcore support.
1399 * nltvals.def: Regenerate.
1400
1401 2015-04-21 Mike Frysinger <vapier@gentoo.org>
1402
1403 * cgen.sh: Add +x permissions.
1404 * genmloop.sh: Likewise.
1405 * gentvals.sh: Likewise.
1406 * gennltvals.sh (newlibroot): New variable to hold the path to newlib.
1407 Change all uses of srcroot for newlib to newlibroot.
1408
1409 2015-04-18 Mike Frysinger <vapier@gentoo.org>
1410
1411 * sim-base.h (SIM_CPU): New typedef.
1412
1413 2015-04-18 Mike Frysinger <vapier@gentoo.org>
1414
1415 * cgen-engine.h (CIA_ADDR): Delete.
1416 * sim-base.h: Update sim_cia example.
1417 [!CIA_ADDR] (sim_cia): New typedef.
1418
1419 2015-04-17 Mike Frysinger <vapier@gentoo.org>
1420
1421 * cgen-utils.c (cgen_rtx_error): Change CIA_GET to CPU_PC_GET.
1422 * sim-core.c (sim_core_read_buffer, sim_core_write_buffer): Likewise.
1423 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Change CIA_SET to CPU_PC_SET.
1424 * sim-run.c (sim_engine_run): Change CIA_GET to CPU_PC_GET and
1425 CIA_SET to CPU_PC_SET.
1426
1427 2015-04-15 Mike Frysinger <vapier@gentoo.org>
1428
1429 * Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-cpu.o.
1430 * sim-main.h (STATE_CPU): Remove from comment and define.
1431
1432 2015-04-13 Mike Frysinger <vapier@gentoo.org>
1433
1434 * acinclude.m4 (ACX_PKGVERSION): Change GDB to SIM.
1435 * configure: Regenerate.
1436
1437 2015-04-13 Mike Frysinger <vapier@gentoo.org>
1438
1439 * sim-options.c: Include version.h.
1440 (OPTIONS_VERSION): New enum.
1441 (standard_options): Add "version".
1442 (standard_option_handler): Handle OPTIONS_VERSION.
1443
1444 2015-04-13 Mike Frysinger <vapier@gentoo.org>
1445
1446 * Makefile.in (version.o): Change to using create-version.sh from gdb.
1447 (create-version.sh): Delete.
1448
1449 2015-04-06 Mike Frysinger <vapier@gentoo.org>
1450
1451 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-engine.o and sim-hrw.o.
1452
1453 2015-04-01 Mike Frysinger <vapier@gentoo.org>
1454
1455 * run-sim.h, run.c: Delete.
1456 * tconfig.h (SIM_HAVE_PROFILE, SIM_HAVE_BIENDIAN): Delete.
1457
1458 2015-03-31 Mike Frysinger <vapier@gentoo.org>
1459
1460 * config.in, configure: Regenerate.
1461 * Make-common.in (CSEARCH): Add $(ZLIBINC).
1462 (ZLIB, ZLIBINC): Define.
1463 (BFD_LIB): Add $(ZLIB).
1464
1465 2015-03-31 Mike Frysinger <vapier@gentoo.org>
1466
1467 * cgen-mem.h (MEMOPS_INLINE): Change to EXTERN_INLINE.
1468 * cgen-ops.h (SEMOPS_INLINE): Likewise.
1469
1470 2015-03-29 Mike Frysinger <vapier@gentoo.org>
1471
1472 * sim-arange.h (SIM_ARANGE_INLINE): Move above sim_addr_range_hit_p.
1473 (sim_addr_range_hit_p): Change INLINE to SIM_ARANGE_INLINE.
1474 * sim-inline.h (INLINE2): Define to gnu_inline when available.
1475
1476 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1477
1478 * sim-profile.c (profile_pc_event): Get pc via sim_pc_get. Delete
1479 usage of STATE_WATCHPOINTS.
1480 (profile_pc_init): Delete STATE_WATCHPOINTS (sd)->pc check. Change
1481 STATE_WATCHPOINTS (sd)->sizeof_pc to sizeof (sim_cia).
1482
1483 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1484
1485 * tconfig.h: Note SIM_HAVE_PROFILE is deprecated.
1486
1487 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1488
1489 * tconfig.h: Note SIM_HAVE_BIENDIAN is deprecated.
1490
1491 2015-03-24 Mike Frysinger <vapier@gentoo.org>
1492
1493 * acinclude.m4 (SIM_AC_OPTION_HARDWARE): Move default option setting
1494 of enable_sim_hardware to AC_ARG_ENABLE.
1495
1496 2015-03-23 Mike Frysinger <vapier@gentoo.org>
1497
1498 * acinclude.m4 (SIM_AC_OPTION_HARDWARE): Delete SIM_DV_SOCKSER_O.
1499 Add dv-sockser.o to sim_hw_objs.
1500
1501 2015-03-23 Mike Frysinger <vapier@gentoo.org>
1502
1503 * dv-sockser.c: Include config.h.
1504 * dv-sockser.h: Include sim-inline.h.
1505 [HAVE_DV_SOCKSER]: Move all prototypes here.
1506 [!HAVE_DV_SOCKSER] (dv_sockser_status, dv_sockser_write,
1507 dv_sockser_write_buffer, dv_sockser_read): New stub functions.
1508
1509 2015-03-16 Mike Frysinger <vapier@gentoo.org>
1510
1511 * gentmap.c, run.c: Convert old style prototypes.
1512
1513 2015-03-16 Mike Frysinger <vapier@gentoo.org>
1514
1515 * acinclude.m4 (SIM_AC_COMMON): Call AH_BOTTOM. Delete logic for
1516 symlinking tconfig.h to tconfig.in.
1517 * config.in, configure: Regenerate.
1518 * nrun.c, run.c, sim-basics.h: Delete tconfig.h include.
1519 * tconfig.in: Rename file ...
1520 * tconfig.h: ... here.
1521
1522 2015-03-15 Mike Frysinger <vapier@gentoo.org>
1523
1524 * dv-socker.h (dv_sockser_install): Declare.
1525 * sim-module.c: Include config.h.
1526 [HAVE_DV_SOCKSER]: Include dv-sockser.h.
1527 (modules) [HAVE_DV_SOCKSER]: Add dv_sockser_install.
1528 * sim-module.h: Include gdb/remote-sim.h.
1529
1530 2015-03-14 Mike Frysinger <vapier@gentoo.org>
1531
1532 * Make-common.in (BUILT_SRC_FROM_COMMON): Delete.
1533 (sim-inline.c): Delete rule.
1534
1535 2015-03-14 Mike Frysinger <vapier@gentoo.org>
1536
1537 * Make-common.in (SIM_RUN_OBJS): Change to nrun.o.
1538 * run.c [SIM_USE_DEPRECATED_RUN_FRONTEND]: Issue a warning.
1539 [!SIM_USE_DEPRECATED_RUN_FRONTEND]: Throw an error.
1540
1541 2015-03-14 Mike Frysinger <vapier@gentoo.org>
1542
1543 * sim-assert.h [!SIM_ASSERT, WITH_ASSERT]: Include sim-io.h.
1544 [!ASSERT, WITH_ASSERT]: Likewise.
1545 * sim-endian.c: Delete sim-io.h include.
1546
1547 2015-02-19 Mike Frysinger <vapier@gentoo.org>
1548
1549 * run-sim.h (sim_kill): Delete unused prototype.
1550
1551 2015-02-13 Chen Gang <gang.chen.5i5j@gmail.com>
1552
1553 * gentmap.c: Include "string.h".
1554
1555 2015-02-02 Chen Gang <gang.chen.5i5j@gmail.com>
1556
1557 * sim-options.c (sim_args_command): Call freeargv() when failure
1558 occurs.
1559
1560 2015-01-07 Joel Brobecker <brobecker@adacore.com>
1561
1562 * aclocal.m4, configure: Regenerate using automake 1.11.1.
1563
1564 2014-12-03 Joel Brobecker <brobecker@adacore.com>
1565
1566 * sim-io.c (sim_io_stat, sim_io_fstat): Adjust calls to "stat"
1567 and "fstat" callbacks by calls to "to_stat" and "to_fstat" (resp)
1568 callbacks following renaming in callback.h.
1569 * syscall.c (cb_syscall): Likewise. Adjust calls to "lstat"
1570 callback by call to "to_lstat" callback
1571
1572 2014-08-28 Gary Benson <gbenson@redhat.com>
1573
1574 * sim-trace.h (debug_printf): New define.
1575
1576 2014-08-19 Alan Modra <amodra@gmail.com>
1577
1578 * configure: Regenerate.
1579
1580 2014-08-15 Roland McGrath <mcgrathr@google.com>
1581
1582 * configure: Regenerate.
1583 * config.in: Regenerate.
1584
1585 2014-03-10 Mike Frysinger <vapier@gentoo.org>
1586
1587 * sim-command.c (sim_do_command): Add const to cmd.
1588 * sim-options.c (sim_args_command): Add const to cmd.
1589 * sim-options.h (sim_args_command): Add const to cmd.
1590
1591 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1592
1593 * sim-hload.c (sim_load): Add const to prog.
1594 * sim-load.c (sim_load_file): Likewise.
1595 * sim-utils.c (sim_analyze_program): Likewise.
1596 * sim-utils.h (sim_analyze_program): Likewise.
1597 (sim_load_file): Likewise.
1598
1599 2014-03-04 Mike Frysinger <vapier@gentoo.org>
1600
1601 * acinclude.m4 (build_warnings): Copy from gdb/configure.ac.
1602 * callback.c (system): Delete unused prototype.
1603 (os_init): Likewise.
1604 (os_shutdown): Likewise.
1605 (os_unlink): Likewise.
1606 (os_time): Likewise.
1607 (os_system): Likewise.
1608 (os_rename): Likewise.
1609 (os_write_stdout): Likewise.
1610 (os_flush_stdout): Likewise.
1611 (os_write_stderr): Likewise.
1612 (os_flush_stderr): Likewise.
1613 (os_write): Likewise.
1614 (os_read_stdin): Likewise.
1615 (os_read): Likewise.
1616 (os_open): Likewise.
1617 (os_lseek): Likewise.
1618 (os_isatty): Likewise.
1619 (os_get_errno): Likewise.
1620 (os_close): Likewise.
1621 (os_vprintf_filtered): Likewise.
1622 (os_evprintf_filtered): Likewise.
1623 (os_error): Likewise.
1624 (fdmap): Likewise.
1625 (fdbad): Likewise.
1626 (wrap): Likewise.
1627 (wrap): Change to new style prototype.
1628 (fdbad): Likewise.
1629 (fdmap): Likewise.
1630 (os_close): Likewise.
1631 (os_poll_quit): Likewise.
1632 (os_get_errno): Likewise.
1633 (os_isatty): Likewise.
1634 (os_lseek): Likewise.
1635 (os_open): Likewise.
1636 (os_read): Likewise.
1637 (os_read_stdin): Likewise.
1638 (os_write): Likewise.
1639 (os_write_stdout): Likewise.
1640 (os_flush_stdout): Likewise.
1641 (os_write_stderr): Likewise.
1642 (os_flush_stderr): Likewise.
1643 (os_rename): Likewise.
1644 (os_system): Likewise.
1645 (os_time): Likewise.
1646 (os_unlink): Likewise.
1647 (os_stat): Likewise.
1648 (os_fstat): Likewise.
1649 (os_lstat): Likewise.
1650 (os_ftruncate): Likewise.
1651 (os_truncate): Likewise.
1652 (os_pipe): Likewise.
1653 (os_pipe_empty): Likewise.
1654 (os_pipe_nonempty): Likewise.
1655 (os_shutdown): Likewise.
1656 (os_init): Likewise.
1657 (cb_read_target_syscall_maps): Likewise.
1658 (cb_target_to_host_syscall): Likewise.
1659 (cb_host_to_target_errno): Likewise.
1660 (cb_target_to_host_open): Likewise.
1661 (cb_store_target_endian): Likewise.
1662 (cb_host_to_target_stat): Likewise.
1663 * sim-hload.c (sim_load): Change to new style prototype.
1664 * sim-load.c (sim_load_file): Change to new style prototype.
1665 (report_transfer_performance): Likewise.
1666 (xprintf_bfd_vma): Likewise.
1667 * syscall.c (cb_get_string): Change to new style prototype.
1668 (get_path): Likewise.
1669 (cb_syscall): Likewise.
1670
1671 2013-10-15 Hans-Peter Nilsson <hp@axis.com>
1672
1673 * create-version.sh: Align parameters to match those of
1674 ../../gdb/common/create-version.sh.
1675 * Make-common.in (srcsim): New variable.
1676 (version.c): Adjust call to create-version.sh as per above.
1677
1678 2013-09-23 Alan Modra <amodra@gmail.com>
1679
1680 * configure: Regenerate.
1681
1682 2013-09-03 Mike Stump <mikestump@comcast.net>
1683
1684 * sim-options.c (complete_option_list): Mark text and word const.
1685
1686 2013-06-28 Tom Tromey <tromey@redhat.com>
1687
1688 * Make-common.in (version.c): Use version.in, not
1689 common/version.in.
1690 * create-version.sh: Likewise.
1691
1692 2013-06-24 Joel Brobecker <brobecker@adacore.com>
1693
1694 * create-version.sh: New script. Adapted from
1695 gdb/commong/create-version.sh.
1696 * Make-common.in (version.c): Update rule dependencies,
1697 and re-implement using create-version.sh.
1698
1699 2013-06-21 Nick Clifton <nickc@redhat.com>
1700
1701 * gennltvals.sh: Add msp430 support.
1702 * nltvals.def: Regenerate.
1703
1704 2013-06-03 Mike Frysinger <vapier@gentoo.org>
1705
1706 * acinclude.m4: Replace maintainer-mode code with AM_MAINTAINER_MODE.
1707 * aclocal.m4, configure: Regenerate.
1708
1709 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
1710
1711 PR build/15414:
1712 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Do not use
1713 -Wformat-nonliteral with -Wno-format.
1714
1715 2013-03-26 Mike Frysinger <vapier@gentoo.org>
1716
1717 * acinclude.m4: Regenerate.
1718
1719 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
1720
1721 * acinclude.m4: Add SIM_DV_SOCKSER_O which is empty on hosts
1722 which do not support dv-sockser.o. Add always as option to
1723 first argument to SIM_AC_OPTION_HARDWARE. Fail if hardware
1724 is always required to be enabled by simulator.
1725
1726 2012-08-28 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1727
1728 * gennltvals.sh: Use libgloss/syscall.h for cr16.
1729 * nltvals.def: Regenerate.
1730
1731 2012-06-16 Joel Brobecker <brobecker@adacore.com>
1732
1733 * acinclude.m4 (SIM_AC_COMMON): Define PACKAGE.
1734 * config.in, configure: Regenerate.
1735
1736 2012-05-24 Pedro Alves <palves@redhat.com>
1737
1738 * sim-signal.h (sim_signal_to_target): Rename to ...
1739 (sim_signal_to_gdb_signal): ... this.
1740 * sim-signal.c (sim_signal_to_target): Rename to ...
1741 (sim_signal_to_gdb_signal): ... this.
1742 * sim-reason.c (sim_stop_reason): Adjust to rename.
1743
1744 2012-05-24 Pedro Alves <palves@redhat.com>
1745
1746 PR gdb/7205
1747
1748 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
1749
1750 2012-05-24 Pedro Alves <palves@redhat.com>
1751
1752 PR gdb/7205
1753
1754 Replace target_signal with gdb_signal throughout.
1755
1756 2012-05-18 Nick Clifton <nickc@redhat.com>
1757
1758 PR 14072
1759 * callback.c: Include config.h before system header files.
1760 * cgen-trace.c: Likewise.
1761 * cgen-utils.c: Likewise.
1762 * gentmap.c: Likewise.
1763
1764 2012-04-02 Mike Frysinger <vapier@gentoo.org>
1765
1766 * hw-ports.c (hw_port_decode): Change "Unreconized" to "Unrecognized".
1767
1768 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
1769
1770 * sim-trace.c: Update the function prototype of save_data_size.
1771 Move the enum data_fmt from here...
1772 * sim-trace.h: ...to here.
1773 Add function prototype of save_data.
1774
1775 2012-03-25 Mike Frysinger <vapier@gentoo.org>
1776
1777 * sim-core.h (sim_core_trans_addr): Add prototype.
1778
1779 2012-03-24 Hans-Peter Nilsson <hp@axis.com>
1780
1781 * nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza
1782 missing in last change.
1783
1784 2012-03-24 Mike Frysinger <vapier@gentoo.org>
1785
1786 * acinclude.m4 (SIM_AC_COMMON): Call AC_USE_SYSTEM_EXTENSIONS.
1787 * nrun.c: Include string.h/strings.h.
1788 * aclocal.m4, config.in, configure: Regenerate.
1789
1790 2012-03-22 Mike Frysinger <vapier@gentoo.org>
1791
1792 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Copy AC_ARG_ENABLE(werror),
1793 WERROR_CFLAGS, and build_warnings from gdb/configure.ac. Comment
1794 out -Werror initialization.
1795
1796 2012-03-19 Mike Frysinger <vapier@gentoo.org>
1797
1798 * Make-common.in (TAGS): Change a-z to [:lower:].
1799 * acinclude.m4 (sim-trace): Likewise.
1800 * gennltvals.sh: Change A-Z0-9 to [:upper:][:digit:].
1801 Change A-Za-z0-9 to [:alnum:].
1802
1803 2012-03-18 Mike Frysinger <vapier@gentoo.org>
1804
1805 * nrun.c (main): Display strsignal of sigrc.
1806
1807 2012-01-06 Mike Frysinger <vapier@gentoo.org>
1808
1809 * Makefile.in (abs_srcdir): Declare.
1810 (srcroot): Define in terms of abs_srcdir.
1811 (headers): Change srcdir to abs_srcdir.
1812
1813 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1814
1815 * dv-sockser.h, sim-assert.h, sim-fpu.c: Reformat the copyright
1816 header.
1817
1818 2011-12-19 Joel Brobecker <brobecker@adacore.com>
1819
1820 * Make-common.in (hw-config.h): Work around bug in Solaris 2.8
1821 system bourne shell.
1822
1823 2011-12-03 Mike Frysinger <vapier@gentoo.org>
1824
1825 * syscall.c (cb_get_string): Rename from "get_string".
1826 (get_path): Rename get_string call to cb_get_string.
1827
1828 2011-12-03 Mike Frysinger <vapier@gentoo.org>
1829
1830 * Make-common.in (VPATH): Add $(srccom).
1831 (DEP): Delete.
1832 (DEPMODE, DEPDIR, depcomp, COMPILE.pre, COMPILE.post, COMPILE,
1833 POSTCOMPILE): New variables.
1834 (.c.o): Replace recipe with call to $(COMPILE) and $(POSTCOMPILE).
1835 Include dependency files, when using GNU Make. Delete all
1836 dependency-only rules.
1837 * aclocal.m4: Include ../../config/depstand.m4. Call
1838 ZW_CREATE_DEPDIR and ZW_PROG_COMPILER_DEPENDENCIES.
1839 (MAKE, GMAKE): New substs.
1840
1841 2011-11-07 Mike Frysinger <vapier@gentoo.org>
1842
1843 PR sim/13161
1844 * configure.ac (AC_CHECK_FUNCS): Add posix_fallocate.
1845 * configure, config.in: Regenerate.
1846 * dv-cfi.c (attach_cfi_regs): Check for HAVE_POSIX_FALLOCATE.
1847
1848 2011-10-19 Mike Frysinger <vapier@gentoo.org>
1849
1850 * acinclude.m4: Call AC_CHECK_LIB when $hardware contains cfi.
1851
1852 2011-10-18 John Wehle <john@feith.com> (tiny patch)
1853
1854 * sim-profile.c (profile_info): Only print the title once.
1855
1856 2011-10-17 Mike Frysinger <vapier@gentoo.org>
1857
1858 * acinclude.m4: Rename from aclocal.m4.
1859 * aclocal.m4: Regenerate.
1860
1861 2011-10-17 Mike Frysinger <vapier@gentoo.org>
1862
1863 * aclocal.m4: Change AC_PREREQ comment to 2.64.
1864 * common.m4: Delete.
1865 * configure.ac: Change AC_PREREQ to 2.64. Replace AC_CONFIG_HEADER
1866 call and common.m4 include with SIM_AC_COMMON(cconfig.h).
1867 * configure: Regenerate.
1868
1869 2011-10-14 Alexey Makhalov <makhaloff@gmail.com>
1870
1871 * sim-alu.h (ALU32_AND): Clear carry flag.
1872 (ALU32_AND): Clear carry flag.
1873
1874 2011-10-09 Mike Frysinger <vapier@gentoo.org>
1875
1876 * dv-cfi.c: Include stdbool.h.
1877
1878 2011-10-09 Mike Frysinger <vapier@gentoo.org>
1879
1880 * dv-cfi.c: Replace devices.h include with hw-base.h and hw-main.h.
1881
1882 2011-10-04 Mike Frysinger <vapier@gentoo.org>
1883
1884 * aclocal.m4 (SIM_AC_COMMON): Call AM_ZLIB, ACX_PKGVERSION, and
1885 ACX_BUGURL. Define PKGVERSION and REPORT_BUGS_TO.
1886
1887 2011-07-12 Mike Frysinger <vapier@gentoo.org>
1888
1889 * sim-command.c: Include sim-options.h.
1890
1891 2011-07-12 Mike Frysinger <vapier@gentoo.org>
1892
1893 * aclocal.m4: Move sinclude comment after AC_INIT comment.
1894
1895 2011-07-12 Mike Frysinger <vapier@gentoo.org>
1896
1897 * aclocal.m4 (SIM_AC_COMMON): Call AC_REQUIRE on AC_PROG_CC.
1898 Delete direct call to AC_PROG_CC.
1899
1900 2011-07-05 Mike Frysinger <vapier@gentoo.org>
1901
1902 * sim-command.c: New file.
1903 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-command.o.
1904 (sim-command.o): New rule.
1905
1906 2011-05-27 Mike Frysinger <vapier@gentoo.org>
1907
1908 * sim-options.c (standard_option_handler): Remove arg[0] check
1909 when freeing simulator_sysroot. Only strdup arg when arg[0] is
1910 not an empty string, otherwise assign "" back to it.
1911
1912 2011-05-26 Mike Frysinger <vapier@gentoo.org>
1913
1914 * nltvals.def: Regenerate to include Blackfin syscalls again.
1915
1916 2011-05-25 Mike Frysinger <vapier@gentoo.org>
1917
1918 * sim-trace.c (OPTION_TRACE_SYSCALL): New enum.
1919 (trace_options): Handle "trace-syscall" with OPTION_TRACE_SYSCALL.
1920 (trace_option_handler): Handle OPTION_TRACE_SYSCALL.
1921 (trace_idx_to_str): Likewise.
1922 * sim-trace.h (TRACE_SYSCALL_IDX): New enum.
1923 (TRACE_syscall): Define.
1924 (WITH_TRACE_SYSCALL_P): Likewise.
1925 (TRACE_SYSCALL_P): Likewise.
1926
1927 2011-05-23 Mike Frysinger <vapier@gentoo.org>
1928
1929 * dv-glue.c (hw_glue_finish): Move "name" to function scope and
1930 remove now-unnecessary sub-scope for glue->type setting.
1931 Check to see if the "reg" property exists before we use it, and
1932 if it doesn't exist, error out for "glue" devices.
1933
1934 2011-05-23 Mike Frysinger <vapier@gentoo.org>
1935
1936 * dv-glue.c (hw_glue_finish): Set type to glue_or when name is
1937 glue-or, and set type to glue_xor when name is glue-xor.
1938 (hw_glue_port_event): Return immediately when type is glue_io
1939 or unmatched. Handle glue_or and glue_xor types. Move HW_TRACE
1940 and hw_port_event calls from glue_and to end of function.
1941
1942 2011-05-11 Mike Frysinger <vapier@gentoo.org>
1943
1944 * callback.c, dv-pal.c, dv-sockser.c, hw-base.c, hw-device.c,
1945 hw-instances.c, hw-ports.c, hw-properties.c, hw-tree.c, sim-abort.c,
1946 sim-arange.c, sim-config.c, sim-core.c, sim-engine.c, sim-events.c,
1947 sim-hw.c, sim-io.c, sim-memopt.c, sim-options.c, sim-profile.c,
1948 sim-resume.c, sim-stop.c, syscall.c: Add space before parenthesis
1949 around function arguments.
1950
1951 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1952
1953 * sim-options.c (complete_option_list, sim_complete_command):
1954 New functions.
1955
1956 2011-04-02 Mike Frysinger <vapier@gentoo.org>
1957
1958 * dv-glue.c: Fix up style.
1959
1960 2011-04-02 Mike Frysinger <vapier@gentoo.org>
1961
1962 * hw-alloc.c (hw_alloc_data): Adjust brace.
1963 * hw-base.c (hw_base_data): Likewise.
1964 (generic_hw_unit_decode): Fix indentation.
1965 * hw-device.h (_hw_unit, enum, hw): Adjust braces.
1966 * hw-events.c (hw_event, hw_event_data): Likewise.
1967 * hw-handles.c (hw_handle_mapping, hw_handle_data): Likewise.
1968 * hw-instances.c (hw_instance_data): Likewise.
1969 * hw-instances.h (hw_instance): Likewise.
1970 * hw-main.h (hw_descriptor, enum): Likewise.
1971 * hw-ports.c (hw_port_edge, hw_port_data, empty_hw_ports): Likewise.
1972 * hw-ports.h (hw_port_descriptor): Likewise.
1973 * hw-properties.c (hw_property_data): Likewise.
1974 * hw-properties.h (enum, hw_property, _ihandle_runtime_property_spec,
1975 _range_property_spec, _reg_property_spec): Likewise.
1976 * hw-tree.c (_name_specifier, printer): Likewise.
1977 (split_device_specifier, parse_string_property, hw_tree_traverse,
1978 print_size, print_reg_property, print_string, print_properties):
1979 Fix indentation.
1980
1981 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1982
1983 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add cfi to default list.
1984 * Make-common.in (dv-cfi.o): New rule.
1985 * dv-cfi.c, dv-cfi.h: New files.
1986
1987 2011-03-21 Kevin Buettner <kevinb@redhat.com>
1988
1989 * gennltvals.sh: Search sys/_default_fcntl.h, in addition to
1990 fcntl.h and sys/fcntl.h, for constants.
1991 * nltvals.def: Regenerate.
1992 * sim-io.c (sim_io_stat, sim_io_fstat): New functions.
1993 * sim-io.h (sys/types.h, sys/stat.h): Include.
1994 (sim_io_stat, sim_io_fstat): Declare.
1995
1996 2011-03-14 Mike Frysinger <vapier@gentoo.org>
1997
1998 * callback.c, cgen-engine.h, dv-core.c, dv-glue.c, dv-pal.c,
1999 hw-base.c, hw-device.c, hw-device.h, hw-handles.c, hw-instances.c,
2000 hw-ports.c, hw-ports.h, hw-properties.c, hw-tree.c, nrun.c,
2001 run-sim.h, run.c, sim-alu.h, sim-assert.h, sim-base.h, sim-basics.h,
2002 sim-config.c, sim-core.c, sim-core.h, sim-engine.h, sim-events.c,
2003 sim-events.h, sim-fpu.c, sim-hw.c, sim-inline.h, sim-load.c,
2004 sim-memopt.c, sim-n-core.h, sim-options.c, sim-profile.c,
2005 sim-signal.c, sim-trace.c, sim-trace.h, sim-utils.c, sim-watch.c,
2006 syscall.c: Trim trailing whitespace.
2007
2008 2011-03-05 Mike Frysinger <vapier@gentoo.org>
2009
2010 * gennltvals.sh: Handle bfin targets.
2011 * nltvals.def: Regenerate.
2012
2013 2011-02-25 Kevin Buettner <kevinb@redhat.com>
2014
2015 * callback.c (fdbad): Return EBADF rather than EINVAL for bad
2016 file descriptors.
2017
2018 2011-02-14 Mike Frysinger <vapier@gentoo.org>
2019
2020 * hw-alloc.c (hw_alloc_data): Delete zalloc_p.
2021 (hw_zalloc, hw_malloc): Delete zalloc_p reference.
2022 (hw_free): Drop zfree logic and always call free.
2023 * hw-base.c (hw_delete): Change zfree to free.
2024 * hw-handles.c (hw_handle_remove_ihandle): Likewise.
2025 (hw_handle_remove_phandle): Likewise.
2026 * hw-instances.c (hw_instance_delete): Likewise.
2027 * hw-tree.c (parse_reg_property): Likewise.
2028 (parse_ranges_property): Likewise.
2029 (parse_string_property): Likewise.
2030 * sim-core.c (sim_core_uninstall): Likewise.
2031 * sim-cpu.c (sim_cpu_free_all): Likewise.
2032 * sim-hw.c (sim_hw_uninstall): Likewise.
2033 * sim-memopt.c (do_memopt_delete): Likewise.
2034 (sim_memory_uninstall): Likewise.
2035 * sim-module.c (sim_module_uninstall): Likewise.
2036 * sim-options.c (sim_parse_args): Likewise.
2037 * sim-profile.c (profile_pc_cleanup): Likewise.
2038 (profile_uninstall): Likewise.
2039 * sim-watch.c (do_watchpoint_delete): Likewise.
2040 * sim-utils.c (zfree): Delete.
2041 (sim_state_free): Change zfree to free.
2042 * sim-utils.h (zfree): Delete.
2043
2044 2011-02-13 Mike Frysinger <vapier@gentoo.org>
2045
2046 * sim-events.h (_sim_events.time_from_event): Change type to signed64.
2047
2048 2011-01-12 Mike Frysinger <vapier@gentoo.org>
2049
2050 * sim-hw.c (sim_hw_uninstall): Uncomment hw_tree_delete.
2051
2052 2011-01-12 Mike Frysinger <vapier@gentoo.org>
2053
2054 * sim-module.c (sim_pre_argv_init): Return SIM_RC_FAIL when asprintf
2055 fails.
2056 * sim-options.c (sim_parse_args): Issue an error and return SIM_RC_FAIL
2057 when asprintf fails.
2058 * sim-utils.c (sim_do_commandf): Issue an error and return when
2059 asprintf fails.
2060 * sim-watch.c (sim_watchpoint_install): Return SIM_RC_FAIL when
2061 asprintf fails.
2062
2063 2011-01-11 Mike Frysinger <vapier@gentoo.org>
2064
2065 * sim-memopt.c (do_memopt_add): Set nr_bytes to s.st_size before
2066 bytes has been calculated and when mmap_next_fd is valid and
2067 nr_bytes is 0.
2068 (memory_option_handler): Allow missing size when mmap_next_fd is
2069 valid.
2070
2071 2011-01-10 Mike Frysinger <vapier@gentoo.org>
2072
2073 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set $hardware to $2 when $2 is
2074 not empty, and always append $3 to $hardware.
2075
2076 2011-01-10 Mike Frysinger <vapier@gentoo.org>
2077
2078 * hw-device.h (hw_abort, hw_vabort, hw_halt): Add noreturn attribute.
2079 * sim-hw.h (sim_hw_abort): Likewise.
2080
2081 2011-01-05 Mike Frysinger <vapier@gentoo.org>
2082
2083 * sim-load.c (sim_load_file): Change buffer type to unsigned char *.
2084
2085 2011-01-05 Joel Brobecker <brobecker@adacore.com>
2086
2087 * run.1: Copyright year update.
2088
2089 2010-12-28 Mike Frysinger <vapier@gentoo.org>
2090
2091 * hw-alloc.h (HW_NALLOC): Define.
2092
2093 010-12-28 Mike Frysinger <vapier@gentoo.org>
2094
2095 * hw-alloc.h (HW_NZALLOC): Change ME,TYPE,N to me,type,n.
2096
2097 2010-12-15 Mike Frysinger <vapier@gentoo.org>
2098
2099 * sim-memopt.c (OPTION_MAP_INFO): Define.
2100 (memory_options): Handle --map-info.
2101 (memory_option_handler): Handle OPTION_MAP_INFO.
2102
2103 2010-11-22 Mike Frysinger <vapier@gentoo.org>
2104
2105 * sim-profile.c (PROFILE_PC_FREQ, PROFILE_PC_NR_BUCKETS,
2106 PROFILE_PC_SHIFT, PROFILE_PC_START, PROFILE_PC_END,
2107 PROFILE_INSN_COUNT): Add stubs when profile is disabled.
2108
2109 2010-11-22 Mike Frysinger <vapier@gentoo.org>
2110
2111 * sim-core.c (WITH_HW): Add device casts to device_error,
2112 device_io_read_buffer, and device_io_write_buffer.
2113
2114 2010-11-16 Mike Frysinger <vapier@gentoo.org>
2115
2116 * dv-sockser.c (dv_sockser_write_buffer): New function.
2117 (dv_sockser_write): Rewrite to use dv_sockser_write_buffer.
2118 * dv-sockser.h (dv_sockser_write_buffer): New prototype.
2119
2120 2010-10-07 Hans-Peter Nilsson <hp@axis.com>
2121
2122 * callback.c (os_lseek): Call wrap on lseek result.
2123
2124 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
2125
2126 * dv-sockser.c (dv_sockser_init): Check error return from socket()
2127 call by its equality to -1 not by it being negative.
2128 (connected_p): Likewise for accept() call.
2129
2130 2010-04-23 Mike Frysinger <vapier@gentoo.org>
2131
2132 * sim-fpu.c (sim_fpu_zero, sim_fpu_qnan): Add 0 initializers.
2133
2134 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2135
2136 * profile.c (sim_profile_print_bar): Add cpu argument.
2137
2138 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2139
2140 * sim-profile.h (sim_profile_print_bar): Use sim_cpu, not SIM_CPU.
2141
2142 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2143
2144 * sim-profile.c (profile_vprintf, profile_printf): New functions.
2145 (profile_print_pc): Convert sim_io_printf to profile_printf.
2146 (profile_print_insn): Likewise.
2147 (profile_print_memory): Likewise.
2148 (profile_print_core): Likewise.
2149 (profile_print_model): Likewise.
2150 (sim_profile_print_bar): Likewise.
2151 (profile_print_speed): Likewise.
2152 (profile_print_addr_ranges): Likewise.
2153 (profile_info): Likewise.
2154 * sim-profile.h (sim_profile_print_bar): Add cpu argument.
2155
2156 2010-04-19 Mike Frysinger <vapier@gentoo.org>
2157
2158 * sim-model.c (OPTION_MODEL): Convert to enum.
2159 (OPTION_MODEL_INFO): New enum.
2160 (model_options): Add model-info/info-model entries.
2161 (model_option_handler): Handle OPTION_MODEL_INFO.
2162
2163 2010-04-13 Mike Frysinger <vapier@gentoo.org>
2164
2165 * dv-sockser.h (DV_SOCKSER_DISCONNECTED): Define.
2166 * dv-sockser.c (dv_sockser_status): Set DV_SOCKSER_DISCONNECTED
2167 initially.
2168
2169 2010-04-13 Mike Frysinger <vapier@gentoo.org>
2170
2171 * sim-hrw.c (sim_write): Add const to buf arg.
2172 * sim-utils.h (sim_write_fn): Likewise.
2173
2174 2010-04-12 Mike Frysinger <vapier@gentoo.org>
2175
2176 * sim-profile.h (PROFILE_BRANCH_TAKEN, PROFILE_BRANCH_UNTAKEN): New
2177 defines.
2178
2179 2010-04-12 Mike Frysinger <vapier@gentoo.org>
2180
2181 * dv-core.c (dv_core_descriptor): Add NULL initializer.
2182 * dv-glue.c (hw_glue_ports, dv_glue_descriptor): Likewise.
2183 * dv-pal.c (hw_pal_ports, dv_pal_descriptor): Likewise.
2184 * dv-sockser.c (sockser_options): Likewise.
2185 * hw-ports.c (empty_hw_ports): Likewise.
2186 * sim-hw.c (hw_options): Likewise.
2187 * sim-model.c (model_options): Likewise.
2188 * sim-options.c (standard_options): Likewise.
2189 * sim-profile.c (profile_options): Likewise.
2190 * sim-trace.c (trace_options): Likewise.
2191 * sim-watch.c (watchpoint_options): Likewise.
2192
2193 2010-04-12 Mike Frysinger <vapier@gentoo.org>
2194
2195 * sim-options.c (dup_arg_p): Add "const" to the "arg" argument,
2196 the local "arg_table" variable, and the xmalloc cast.
2197
2198 2010-04-10 Mike Frysinger <vapier@gentoo.org>
2199
2200 * sim-fpu.c (sim_fpu_print_status): Add const markings to local
2201 "prefix" var.
2202 (sim_fpu_print_func): Add const markings to format buffer.
2203
2204 2010-04-10 Mike Frysinger <vapier@gentoo.org>
2205
2206 * sim-fpu.c (sim_fpu_print_status): Remove duplicate break statements.
2207
2208 2010-04-10 Mike Frysinger <vapier@gentoo.org>
2209
2210 * sim-trace.c (save_data): Add const markings to "buf" argument.
2211
2212 2010-04-10 Mike Frysinger <vapier@gentoo.org>
2213
2214 * sim-options.c (standard_option_handler): Add const markings to
2215 local "type" var.
2216
2217 2010-04-02 Mike Frysinger <vapier@gentoo.org>
2218
2219 * hw-ports.h: Fix spelling typos.
2220
2221 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2222
2223 * configure.ac: Check for socklen_t.
2224 * configure, config.in: Regenerated.
2225 * dv-sockser.c (connected_p): Change addrlen type to socklen_t.
2226
2227 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2228
2229 * sim-utils.c (sim_io_eprintf_cpu): Use %s with printf string.
2230 * sim-hw.c (hw_option_handler): Likewise.
2231
2232 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2233
2234 * sim-watch.c (watchpoint_type_to_str): Add const to return.
2235 (interrupt_nr_to_str): Likewise.
2236 (default_interrupt_names): Add const to pointer type.
2237 (sim_watchpoint_install): Add const to prefix.
2238 * sim-watch.h (struct _sim_watchpoints): Add const to interrupt_names.
2239
2240 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2241
2242 * sim-core.c (sim_core_read_buffer): Change raddr to address_word.
2243 (sim_core_write_buffer): Likewise.
2244
2245 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2246
2247 * sim-trace.c (trace_option_handler): Move cpu_nr decl behind
2248 the SIM_HAVE_ADDR_RANGE define.
2249
2250 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2251
2252 * sim-core.h (device_error): Add const to message, and add printf
2253 format attribute.
2254
2255 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2256
2257 * sim-profile.c (profile_print_addr_ranges): Wrap with the
2258 SIM_HAVE_ADDR_RANGE define.
2259
2260 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2261
2262 * dv-glue.c (hw_glue_ports): Swap static and const.
2263
2264 2010-03-30 Mike Frysinger <vapier@gentoo.org>
2265
2266 * nrun.c (usage): Use void in definition.
2267 * sim-options.c (dup_arg_p): Convert old-style function definition.
2268 (sim_parse_args): Likewise.
2269 (sim_print_help): Likewise.
2270 * sim-trace.c (set_trace_option_mask): Likewise.
2271 (set_trace_option): Likewise.
2272 * sim-utils.c (sim_analyze_program): Likewise.
2273 (sim_elapsed_time_get): Likewise.
2274 (sim_elapsed_time_since): Likewise.
2275
2276 2010-03-22 Mike Frysinger <vapier@gentoo.org>
2277
2278 * sim/common/sim-options.c (enum): Remove SIM_HAVE_BIENDIAN ifdef.
2279 (standard_options): Likewise.
2280 (standard_option_handler): Likewise.
2281
2282 2010-03-16 Mike Frysinger <vapier@gentoo.org>
2283
2284 * hw-ports.c (TRACE): Delete.
2285 * hw-properties.c (TRACE): Delete.
2286 (hw_find_ihandle_runtime_property): Change TRACE to HW_TRACE.
2287 (hw_find_integer_property): Likewise.
2288 (hw_find_integer_array_property): Likewise.
2289 (hw_add_duplicate_property): Likewise.
2290
2291 2010-03-15 Mike Frysinger <vapier@gentoo.org>
2292
2293 * hw-properties.h (hw_add_boolean_property): Rename "bool" to
2294 "boolean".
2295
2296 2010-02-04 Mike Frysinger <vapier@gentoo.org>
2297
2298 * sim-model.c: Include sim-model.h
2299
2300 2010-02-04 Mike Frysinger <vapier@gentoo.org>
2301
2302 * sim-base.h: Declare sim_state.cpu as a pointer in the comment. Drop
2303 & from the STATE_CPU() examples.
2304
2305 2010-01-24 Doug Evans <dje@sebabeach.org>
2306
2307 * cgen-accfp.c (fextsfdf): New arg how. All callers updated.
2308 (ftruncdfsf, floatsisf, flostsidf, ufloatsisf, fixsfsi, fixdfsi,
2309 ufixsfsi): Ditto.
2310 * cgen-fpu.h (CGEN_FPCONV_KIND): New enum.
2311 (struct cgen_fp_ops): Update signatures of floating point conversion
2312 operations.
2313
2314 * Make-common.in (CGEN_SIM_DEPS): Define.
2315 (CGEN_INCLUDE_DEPS): Use it.
2316 (CGEN_MAIN_CPU_DEPS): Simplify.
2317
2318 2010-01-22 Doug Evans <dje@sebabeach.org>
2319
2320 * cgen-ops.h (SUBWORDXFSI): Fix word ordering.
2321 (SUBWORDTFSI, JOINSIDI): Ditto.
2322
2323 2010-01-05 Doug Evans <dje@sebabeach.org>
2324
2325 * cgen-types.h (SETDI): Delete, unused.
2326
2327 2009-12-02 Doug Evans <dje@sebabeach.org>
2328
2329 * cgen-engine.h: Remove duplicated comment.
2330
2331 2009-11-23 Doug Evans <dje@sebabeach.org>
2332
2333 * cgen-engine.h (EXTRACT_MSB0_SINT): Renamed from EXTRACT_MSB0_INT.
2334 (EXTRACT_LSB0_SINT): Renamed from EXTRACT_LSB0_INT.
2335
2336 2009-11-22 Doug Evans <dje@sebabeach.org>
2337
2338 * cgen-engine.h (EXTRACT_MSB0_LGSINT, EXTRACT_MSB0_LGUINT): Define.
2339 (EXTRACT_LSB0_LGSINT, EXTRACT_LSB0_LGUINT): Define.
2340 (EXTRACT_FN, SEMANTIC_FN): Use CGEN_INSN_WORD in prototype
2341 instead of CGEN_INSN_INT.
2342
2343 * cgen-trace.h (trace_extract): Add cast to fix warning.
2344
2345 2009-11-05 Doug Evans <dje@sebabeach.org>
2346
2347 * cgen-mem.h (DECLARE_GETT): Don't inline.
2348 (DECLARE_SETT): Ditto.
2349
2350 2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
2351
2352 * sim-inline.h: Fix spelling error.
2353
2354 2009-10-02 Ralf Corsepius <ralf.corsepius@rtems.org>
2355
2356 * Make-common.in: Add datarootdir.
2357
2358 2009-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2359
2360 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS)
2361 (SIM_CHECK_MEMBERS_1): Remove.
2362 * configure.ac: Replace SIM_CHECK_MEMBERS call with equivalent
2363 AC_CHECK_MEMBERS one.
2364 * configure: Regenerate.
2365
2366 * aclocal.m4 (SIM_CHECK_MEMBER): Use AU_ALIAS to define, not defn.
2367 * configure: Regenerate.
2368
2369 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2370
2371 * config.in: Regenerate.
2372 * configure: Likewise.
2373
2374 * aclocal.m4 (SIM_CHECK_MEMBER): Replace definition with
2375 definition of AC_CHECK_MEMBER.
2376
2377 * aclocal.m4: m4_include toplevel config/override.m4.
2378 * configure: Regenerate.
2379
2380 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2381
2382 * Makefile.in (datarootdir): New variable.
2383
2384 2009-07-07 Doug Evans <dje@sebabeach.org>
2385
2386 * Make-common.in (CPU_DIR): Define.
2387
2388 2009-07-06 Doug Evans <dje@sebabeach.org>
2389
2390 * Make-common.in (CGEN_CPU_EXTR,CGEN_CPU_READ): Pass canonical
2391 identifiers for file types rather than encoding internal
2392 implementation details of cgen.sh.
2393 (CGEN_CPU_WRITE,CGEN_CPU_SEM,CGEN_CPU_SEMSW): Ditto.
2394 * cgen.sh: Add support for parallel makes.
2395 Rewrite cpu/decode handling to avoid generating "extrafiles" twice.
2396
2397 2009-05-18 Jon Beniston <jon@beniston.com>
2398
2399 * gennltvals.sh: Add lm32 target.
2400 * nltvals.def: Add lm32 syscall definitions.
2401
2402 2009-03-19 J"orn Rennecke <joern.rennecke@arc.com> (tiny change)
2403
2404 Speed up simulator startup:
2405 * sim-utils.c (zalloc): Use xcalloc.
2406
2407 2009-01-07 Hans-Peter Nilsson <hp@axis.com>
2408
2409 * cgen-ops.h (ADDQI, SUBQI, MULQI, NEGQI, ABSQI, ADDHI, SUBHI)
2410 (MULHI, NEGHI, ABSHI, ADDSI, SUBSI, MULSI, NEGSI, ABSSI, ADDDI)
2411 (SUBDI, MULDI, NEGDI, ABSDI): Cast arguments to the unsigned type
2412 variant; UQI, UHI, USI, UDI, and cast the result to the signed
2413 type, QI, HI, SI, DI.
2414
2415 * callback.c (os_error): Mark as being a noreturn function.
2416 * sim-io.h (sim_io_error): Similar for sim_io_error.
2417
2418 2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
2419
2420 * aclocal.m4: Fix underquoting of function names.
2421
2422 2008-10-21 Julian Brown <julian@codesourcery.com>
2423
2424 * Make-common.in (run$(EXEEXT)): Add LDFLAGS.
2425
2426 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
2427
2428 * common.m4: Add test for libz and zlib.h.
2429 * configure: Regenerate to track ../common/common.m4 changes.
2430 * config.in: Ditto.
2431
2432 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
2433 Daniel Jacobowitz <dan@codesourcery.com>
2434 Joseph Myers <joseph@codesourcery.com>
2435
2436 * aclocal.m4: Include ../../config/acx.m4.
2437 * common.m4: Use ACX_PKGVERSION and ACX_BUGURL.
2438 * configure, config.in: Regenerate.
2439 * Make-common.in (LIB_OBJS): Add version.o.
2440 (version.c, version.o): New rules.
2441 * run.c: Include version.h.
2442 (usage): Add help parameter. Print output either to stdout or
2443 stderr depending on that parameter.
2444 (print_version): New.
2445 (main): Check for --help and --version.
2446 * run-sim.h (sim_target_display_usage): Add help parameter.
2447 * version.h: New.
2448
2449 2008-04-14 Hans Kester <kester.hans@gmail.com>
2450
2451 * sim-signal.c: Define missing signals for _WIN32.
2452
2453 2008-02-12 M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
2454
2455 * gennltvals.sh: Add cr16.
2456 * nltvals.def: Rebuild.
2457
2458 2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
2459
2460 * callback.c (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add functions.
2461 * syscall.c (cb_syscall): Test for stdin/out/err, not just fd 0/1/2.
2462
2463 2007-08-10 Nick Clifton <nickc@redhat.com>
2464
2465 * sim-memopt.c (memory_options): Mention that the
2466 --memory-size switch accepts suffixes.
2467 (parse_size): Handle a suffix on the size value.
2468 * sim-options.c (standard_options): Mention that the mem-size
2469 switch accepts suffixes.
2470 (standard_option_handler): Handle a suffix on the size value.
2471
2472 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
2473
2474 * acconfig.h: Remove.
2475 * config.in: Regenerate.
2476
2477 2006-11-07 Thiemo Seufer <ths@mips.com>
2478
2479 * gentmap.c: Fix compile time warning.
2480
2481 2006-11-07 Thiemo Seufer <ths@mips.com>
2482
2483 * sim-base.h (text_start, text_end, start_addr): Use bfd_vma type
2484 for bfd text addresses.
2485
2486 2006-08-29 Thiemo Seufer <ths@mips.com>
2487 Nigel Stephens <nigel@mips.com>
2488
2489 * sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for
2490 SIM_QUIET_NAN_NEGATED.
2491
2492 2006-08-29 Nigel Stephens <nigel@mips.com>
2493
2494 * sim-profile.c (profile_pc_init): Initialise default profiling
2495 frequency to a prime number.
2496 (profile_print_pc): Convert gmon.out sample data into target
2497 byte order.
2498
2499 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
2500
2501 * aclocal.m4: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
2502 * common.m4: Likewise.
2503 * configure: Regenerated.
2504
2505 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
2506
2507 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR.
2508 * configure: Regenerated.
2509
2510 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
2511
2512 * Make-common.in: Replace INTLLIBS and INTLDEPS with LIBINTL
2513 and LIBINTL_DEP everywhere.
2514 (CSEARCH): Use INCINTL.
2515 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR. Include new
2516 gettext macros.
2517 * configure: Regenerated.
2518
2519 2006-03-29 Hans-Peter Nilsson <hp@axis.com>
2520
2521 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
2522 option-contents test.
2523
2524 2005-11-28 Mark Mitchell <mark@codesourcery.com>
2525
2526 * sim-signal.c (sim_signal_to_target): Fix typos.
2527
2528 * sim-reason.c (sim_stop_reason): Use
2529 sim_signal_to_target, not sim_signal_to_host.
2530 * sim-signal.c (sim_signal_to_host): Fix typo.
2531 (sim_signal_to_target): New function.
2532
2533 2005-07-10 Hans-Peter Nilsson <hp@bitrange.com>
2534
2535 * sim-load.c (xprintf, eprintf): Remove fallout from ANSI_PROTOTYPES
2536 change.
2537
2538 2005-07-08 Ian Lance Taylor <ian@airs.com>
2539
2540 * sim-fpu.c (sim_fpu_abs): Always clear the sign bit.
2541
2542 * sim-fpu.c (pack_fpu): If SIM_QUIET_NAN_NEGATED is defined, use a
2543 different fraction for a quiet NaN.
2544 (unpack_fpu): Likewise.
2545
2546 2005-07-08 Ben Elliston <bje@au.ibm.com>
2547
2548 * callback.c: Remove ANSI_PROTOTYPES conditional code.
2549 * sim-load.c: Likewise.
2550 * syscall.c: Likewise.
2551
2552 2005-05-24 Corinna Vinschen <vinschen@redhat.com>
2553
2554 * Make-common.in (LIBDEPS): Correctly use INTLDEPS for dependency
2555 check.
2556
2557 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
2558
2559 * Make-common.in (install-common, installdirs): Honor $DESTDIR.
2560
2561 2005-04-20 Manoj Iyer <manjo@austin.ibm.com>
2562
2563 * sim-types.h: Changed unsigned32 and unsigned64 to signed32
2564 and signed64 for __ALPHA__.
2565
2566 2005-03-23 Mark Kettenis <kettenis@gnu.org>
2567
2568 * aclocal.m4 Include ../../gettext.m4.
2569 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST)
2570 (AM_LC_MESSAGES): Remove.
2571 * configure: Regenerate.
2572
2573 2005-02-28 Jim Blandy <jimb@redhat.com>
2574
2575 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Don't include
2576 -Wuninitialized in the default list of build warnings if CFLAGS is
2577 set, and doesn't include -O. (Using -Wuninitialized without
2578 optimization produces a warning, which interferes with compilation
2579 with -Werror.)
2580
2581 2005-02-21 Jim Blandy <jimb@redhat.com>
2582
2583 * callback.c (os_fstat): Don't declare 't' unless it's used.
2584
2585 2005-02-09 Jim Blandy <jimb@redhat.com>
2586
2587 * Make-common.in (CGEN): Load guile.scm, and include a trailing
2588 '-s' argument.
2589 (CGEN_FLAGS_TO_PASS): Include single quotes around the reference
2590 to $(CGEN), to ensure that the command substitution happens where
2591 the variable is referenced in the submake, not when the submake's
2592 arguments are expanded.
2593 (cgen.sh): Be prepared for the 'cgen' argument to contain spaces.
2594 (arch, cpu, decode, cpu-decode, defs, desc): Place the name of the
2595 application Scheme script directly after ${cgen}; don't precede it
2596 with a -s.
2597
2598 2005-01-28 Hans-Peter Nilsson <hp@axis.com>
2599
2600 * syscall.c (cb_syscall) <case CB_SYS_pipe>: New case.
2601 * callback.c [HAVE_LIMITS_H]: Include limits.h.
2602 Include libiberty.h.
2603 (os_close, os_read, os_write, os_fstat, os_ftruncate): Support fd
2604 being either end of a pipe.
2605 (os_pipe, os_pipe_empty, os_pipe_nonempty): New functions.
2606 (os_shutdown): Clear pipe state.
2607 (default_callback): Initialize new members.
2608
2609 * callback.c (default_callback): Initialize target_endian.
2610 (cb_store_target_endian): Renamed from store, new first parameter
2611 host_callback *cb, drop last parameter big_p. Take endianness
2612 from cb.
2613 (cb_host_to_target_stat): Change to use cb_store_target_endian.
2614 Remove variable big_p.
2615 * nrun.c (main): Initialize default_callback.target_endian.
2616
2617 2005-01-14 Andrew Cagney <cagney@gnu.org>
2618
2619 * configure.ac: Replace SIM_AC_COMMON with sinclude of common.m4.
2620 Add explicit call to AC_CONFIG_HEADER.
2621 * common.m4: Delete call to AC_CONFIG_HEADER, update usage.
2622 * configure: Re-generate.
2623
2624 2005-01-12 Andrew Cagney <cagney@gnu.org>
2625
2626 * common.m4: New file, based on of aclocal.m4.
2627
2628 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
2629
2630 * aclocal.m4 (SIM_AC_OUTPUT): Rewrite to use 2.59 macros.
2631 * configure: Regenerated to track ../common/aclocal.m4 changes.
2632
2633 2005-01-07 Andrew Cagney <cagney@gnu.org>
2634
2635 * configure.ac: Rename configure.in, require autoconf 2.59.
2636 * aclocal.m4 (SIM_AC_COMMON): Delete call to AC_CONFIG_AUX_DIR.
2637 * configure: Re-generate.
2638
2639 2004-12-15 Hans-Peter Nilsson <hp@axis.com>
2640
2641 * syscall.c (cb_syscall) <case CB_SYS_truncate>
2642 <case CB_SYS_ftruncate>: New cases.
2643
2644 2004-12-13 Hans-Peter Nilsson <hp@axis.com>
2645
2646 * syscall.c (cb_syscall) <case CB_SYS_lstat>: New case.
2647 (cb_syscall) <case CB_SYS_rename>: New case.
2648 * callback.c (os_lstat): New function.
2649
2650 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
2651
2652 * run.1: Document --sysroot=filepath.
2653 * sim-options.c (STANDARD_OPTIONS): New member OPTION_SYSROOT.
2654 (standard_options): Support --sysroot=<path>.
2655 (standard_option_handler): Handle OPTION_SYSROOT.
2656 * syscall.c (simulator_sysroot): Define, initialized empty.
2657 (get_path): Prepend simulator_sysroot to absolute file path.
2658 [HAVE_STRING_H]: Include string.h.
2659 [!HAVE_STRING_H && HAVE_STRINGS_H]: Include strings.h.
2660 * nrun.c [HAVE_UNISTD_H]: Include unistd.h.
2661 (main): If simulator_sysroot is not empty, chdir there.
2662 * sim-config.h (simulator_sysroot): Declare.
2663
2664 * aclocal.m4 (SIM_AC_OUTPUT): Substitute @cgen_breaks@ for "break
2665 cgen_rtx_error" in a CGEN-generated simulator.
2666 * gdbinit.in: Break on sim_core_signal too. Have autoconf
2667 replacement for CGEN-related breakpoints.
2668
2669 2004-12-07 Hans-Peter Nilsson <hp@axis.com>
2670
2671 * Make-common.in (sim-basics_h): Add $(callback_h).
2672
2673 2004-12-03 Hans-Peter Nilsson <hp@axis.com>
2674
2675 * configure.in (SIM_CHECK_MEMBERS): Call for struct stat members
2676 st_dev, st_ino, st_mode, st_nlink, st_uid, st_gid, st_rdev,
2677 st_size, st_blksize, st_blocks, st_atime, st_mtime and st_ctime.
2678 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS_1)
2679 (SIM_CHECK_MEMBERS): New macros.
2680 * callback.c (cb_host_to_target_stat): Use temporary macro ST_x
2681 for struct stat member test and write. Add ST_x calls for each
2682 struct stat member tested in configure.in. Wrap each ST_x call in
2683 #ifdef of configure macro for that member.
2684 * configure, config.in: Regenerate.
2685
2686 2004-12-01 Hans-Peter Nilsson <hp@axis.com>
2687
2688 * cgen.sh: New thirteenth parameter opcfile, defaulting to
2689 /dev/null.
2690 <case desc>: Pass -OPC opcfile.
2691 * Make-common.in (cgen-desc): Pass $(opcfile) as thirteenth
2692 parameter to cgen.sh.
2693
2694 2004-11-30 Richard Earnshaw <rearnsha@arm.com>
2695
2696 * Make-common.in (sim-basics_h): Correct dependencies on
2697 cconfig.h and tconfig.h
2698 (sim-load.o): Correct typo in sim-basics_h dependency.
2699
2700 2004-11-18 Richard Earnshaw <rearnsha@arm.com>
2701
2702 * Make-common.in (sim-*_h): Add macros for all sim headers listing
2703 sub-dependencies for other sim files that they include.
2704 (sim_main_headers): Use sim-*_h macros.
2705 (sim-load.o): Depend on sim-basics_h, not sim_main_headers.
2706
2707 2004-11-16 Hans-Peter Nilsson <hp@axis.com>
2708
2709 * sim-config.c (sim_config): Recognize when a bfd has unspecified
2710 endian information.
2711
2712 * Make-common.in (sim-load.o): Depend on $(sim_main_headers) and
2713 $(remote_sim_h) too.
2714 (sim_main_headers): Add sim-utils.h.
2715
2716 2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2717
2718 * cgen-defs.h (ENDSWITCH): Changed to compile with gcc-3.4.2.
2719
2720 2004-07-26 Andrew Cagney <cagney@gnu.org>
2721
2722 Problem from Olaf Hering <olh@suse.de>.
2723 * Makefile.in (install-man, installdirs): Add DESTDIR prefix.
2724
2725 2004-07-10 Ben Elliston <bje@au.ibm.com>
2726
2727 * hw-tree.c (parse_integer_property): Typo fix in comments.
2728 * sim-options.c (sim_args_command): Likewise.
2729
2730 2004-06-28 Andrew Cagney <cagney@gnu.org>
2731
2732 * run.c: Rename ui_loop_hook to deprecated_ui_loop_hook.
2733
2734 2004-06-27 J"orn Rennecke <joern.rennecke@superh.com>
2735
2736 * callback.c (os_shutdown): Fix bug in last change: actually
2737 mark file descriptors as available on startup.
2738
2739 2004-06-25 J"orn Rennecke <joern.rennecke@superh.com>
2740
2741 [ include/gdb: * callback.h (host_callback_struct): Replace
2742 members fdopen and alwaysopen with fd_buddy. ]
2743 * callback.c: Changed all users.
2744
2745 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2746
2747 * sim-load.c (sim_load_file): Use bfd_get_section_size
2748 instead of bfd_get_section_size_before_reloc.
2749
2750 2004-05-18 Daniel Jacobowitz <dan@debian.org>
2751
2752 * dv-glue.c (hw_glue_finish): Cast result of sizeof to long before
2753 passing it to printf.
2754
2755 2004-05-10 Daniel Jacobowitz <dan@debian.org>
2756
2757 * callback.c: Update copyright dates.
2758 * run.c: Likewise.
2759 * sim-basics.h: Likewise.
2760 * sim-load.c: Likewise.
2761 * syscall.c: Likewise.
2762
2763 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2764
2765 * callback.c: Include cconfig.h instead of config.h.
2766 * run.c: Likewise.
2767 * sim-basics.h: Likewise.
2768 * sim-load.c: Likewise.
2769 * syscall.c: Likewise.
2770
2771 2004-01-16 Ben Elliston <bje@wasabisystems.com>
2772
2773 * Makefile.in (clean): Remove rm -f $(ALL), as $(ALL) is empty.
2774
2775 2003-12-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2776
2777 * sim-core.c (sim_core_trans_addr): Added for m32r-linux-run.
2778
2779 2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
2780
2781 * sim-options.c (standard_options): Fix the names of H8
2782 variants.
2783
2784 2003-10-30 Andrew Cagney <cagney@redhat.com>
2785
2786 * sim-trace.c, sim-base.h: Replace "struct symbol_cache_entry"
2787 with "struct bfd_symbol".
2788
2789 2003-10-21 Andrew Cagney <cagney@redhat.com>
2790
2791 * callback.c (os_truncate): Call "truncate", and not "stat".
2792
2793 2003-10-20 Andrew Cagney <cagney@redhat.com>
2794
2795 * sim-base.h: Replace "struct sec" with "struct bfd_section".
2796
2797 2003-10-15 J"orn Rennecke <joern.rennecke@superh.com>
2798
2799 * callback.c (os_ftruncate, os_truncate): New functions.
2800 (default_callback): Initialize ftruncate and truncate members.
2801
2802 2003-09-08 Dave Brolley <brolley@redhat.com>
2803
2804 On behalf of Doug Evans <dje@sebabeach.org>
2805 * cgen.sh: New arg archfile.
2806 * Make-common.in (cgen-arch,cgen-cpu,cgen-defs,cgen-decode,
2807 cgen-cpu-decode,cgen-desc): Update call to cgen.sh.
2808
2809 2003-08-28 Andrew Cagney <cagney@redhat.com>
2810
2811 * dv-glue.c (hw_glue_finish): Change %d to %ld to match sizeof.
2812 * sim-options.c (print_help): Cast the format with specifier to
2813 "int".
2814
2815 2003-08-20 Michael Snyder <msnyder@redhat.com>
2816 Dave Brolley <brolley@redhat.com>
2817
2818 * cgen-par.h (flags, word1): New target-specific
2819 fields of CGEN_WRITE_QUEUE_ELEMENT.
2820 (CGEN_WRITE_QUEUE_ELEMENT_FLAGS): New accessor macro.
2821 (CGEN_WRITE_QUEUE_ELEMENT_WORD1): New accessor macro.
2822 * gennltvals.sh: Add frv target.
2823 * nltvals.def: Add frv target.
2824
2825 2003-06-23 Michael Snyder <msnyder@redhat.com>
2826
2827 * nrun.c (main): Delete h8/300 ifdef (sim now handles signals).
2828 * sim-reg.c: Fix cut-and-paste bug in comment.
2829
2830 2003-06-22 Andrew Cagney <cagney@redhat.com>
2831
2832 From matthew green <mrg@redhat.com>:
2833 * sim-fpu.h: Update copyright.
2834 (sim_fpu_fraction, sim_fpu_guard): New prototypes.
2835 * sim-fpu.c: Update copyright.
2836 (sim_fpu_fraction, sim_fpu_guard): New inline functions.
2837
2838 2003-06-17 Frank Ch. Eigler <fche@redhat.com>
2839
2840 From Doug Evans <dje@sebabeach.org>:
2841 * cgen-trace.h (sim_disasm_read_memory): Update args to be compatible
2842 with disassemble_info:read_memory_func.
2843 * cgen-trace.c (sim_disasm_read_memory): Ditto.
2844
2845 2003-06-04 Michael Snyder <msnyder@redhat.com>
2846
2847 * common/run.c (main): Remove SIM_H8300 ifdef.
2848 (usage): Ditto.
2849 * common/sim-options.c (STANDARD_OPTIONS): Add SIM_H8300SX.
2850 (standard_options): Add '-x' for h8/300sx.
2851 (standard_option_handler): Add case for SIM_H8300SX.
2852
2853 2003-04-13 Michael Snyder <msnyder@redhat.com>
2854
2855 * Make-common.in (sim-events.o, sim-config.o): Depend on sim-main.h.
2856
2857 2003-03-01 Andrew Cagney <cagney@redhat.com>
2858
2859 * sim-engine.c (sim_engine_halt): If jmpbuf is invalid, abort.
2860 (sim_engine_vabort): Ditto.
2861
2862 2003-02-27 Andrew Cagney <cagney@redhat.com>
2863
2864 * sim-utils.h (sim_analyze_program, sim_load_file): Rename _bfd to bfd.
2865 * sim-hload.c (sim_load), sim-base.h (sim_state_base): Ditto.
2866 * nrun.c (main): Ditto.
2867
2868 2003-02-26 Andrew Cagney <cagney@redhat.com>
2869
2870 * sim-engine.h (sim_engine_abort): Add noreturn attribute.
2871 (sim_engine_vabort): Ditto.
2872 (sim_engine_halt, sim_engine_restart): Ditto.
2873
2874 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2875
2876 * Make-common.in (SIM_NEW_COMMON_OBJS): Remove sim-break.o
2877 (sim-break_h): Delete macro.
2878 (sim-break.o): Delete rule.
2879 * sim-break.c: Delete file.
2880 * sim-break.h: Delete file.
2881 * sim-base.h [SIM_HAVE_BREAKPOINTS]: Don't include "sim-break.h".
2882 (STATE_BREAKPOINTS): Delete macro.
2883 (sim_state_base): Delete field breakpoints.
2884 * sim-module.c (modules) [SIM_HAVE_BREAKPOINTS]: Don't add
2885 sim_break_install to array.
2886
2887 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
2888
2889 * run.c (usage): Fix typos.
2890
2891 2002-11-27 Richard Sandiford <rsandifo@redhat.com>
2892
2893 * sim-fpu.c (sim_fpu_inv): Use sim_fpu_div.
2894
2895 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2896
2897 * dv-core.c: Update copyright. sim/common contributed to the FSF.
2898 * dv-glue.c, dv-pal.c, hw-base.c, hw-base.h, hw-device.c: Ditto.
2899 * hw-device.h, hw-handles.c, hw-handles.h: Ditto.
2900 * hw-instances.c, hw-instances.h, hw-properties.c: Ditto.
2901 * hw-properties.h, hw-tree.c, hw-tree.h, sim-alu.h: Ditto.
2902 * sim-basics.h, sim-bits.c, sim-bits.h, sim-config.c: Ditto.
2903 * sim-config.h, sim-core.c, sim-core.h, sim-endian.c: Ditto.
2904 * sim-endian.h, sim-events.c, sim-events.h, sim-inline.c: Ditto.
2905 * sim-inline.h, sim-io.c, sim-io.h, sim-n-bits.h: Ditto.
2906 * sim-n-core.h, sim-n-endian.h, sim-types.h: Ditto.
2907
2908 2002-11-13 Andrew Cagney <cagney@redhat.com>
2909
2910 * run.c (main): Remove SIM_HAVE_ENVIRONMENT from #endif.
2911
2912 2002-11-06 Richard Sandiford <rsandifo@redhat.com>
2913
2914 * Make-common.in (SIM_EXTRA_DISTCLEAN): New macro.
2915 (distclean): Depend on it.
2916
2917 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2918
2919 * cgen-trace.h: Test __BFD_H_SEEN__ rather than BFD_VERSION.
2920
2921 2002-08-29 Dave Brolley <brolley@redhat.com>
2922
2923 * Make-common.in (CGEN_READ_SCM): Remove ../../cgen/stamp-cgen.
2924
2925 2002-07-17 Andrew Cagney <cagney@redhat.com>
2926
2927 * run-sim.h: Add #ifdef RUN_SIM_H wrapper.
2928 (sim_set_callbacks, sim_size, sim_trace)
2929 (sim_set_trace, sim_set_profile_size, sim_kill): Declare. Moved
2930 to here from "gdb/remote-sim.h".
2931
2932 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2933
2934 * sim-resume.c (sim_resume): Add local variable sig_to_deliver to
2935 avoid possible longjmp problems with automatic variable siggnal.
2936
2937 2002-07-14 Andrew Cagney <ac131313@redhat.com>
2938
2939 From 2002-07-11 Momchil Velikov <velco@fadata.bg>:
2940 * Make-common.in (installdirs): Make $(libdir) too, needed when
2941 installing libsim.a.
2942
2943 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2944
2945 * gennltvals.sh (dir): Mark d30v as obsolete.
2946 * nltvals.def: Remove d30v.
2947
2948 2002-06-17 Andrew Cagney <cagney@redhat.com>
2949
2950 * hw-events.c (hw_event_queue_schedule): Initialize `dummy'.
2951
2952 * sim-memopt.c: Include <unistd.h>.
2953 (do_memopt_add): Fix printf format.
2954 * sim-events.c (sim_events_schedule): Initialize ``dummy''.
2955
2956 2002-06-16 Andrew Cagney <ac131313@redhat.com>
2957
2958 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Update to match GDB's
2959 --enable-gdb-build-warnings.
2960 * configure: Regenerated to track ../common/aclocal.m4 changes.
2961
2962 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
2963
2964 * sim-fpu.c (unpack_fpu): Initialize exponent for
2965 sim_fpu_class_zero.
2966 (i2fpu): Same.
2967 (sim_fpu_sqrt): Same.
2968
2969 2002-06-08 Andrew Cagney <cagney@redhat.com>
2970
2971 * gentmap.c (gen_targ_map_c): Generate "gdb/callback.h".
2972 * sim-basics.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
2973 * run.c: Ditto.
2974 * sim-load.c: Ditto.
2975 * callback.c: Ditto.
2976 * syscall.c: Ditto.
2977 * Make-common.in (callback_h): Define.
2978 (remote_sim_h): Define.
2979 (run.o): Update.
2980 (callback.o): Update.
2981 (syscall.o): Update.
2982 (sim-load.o):
2983 (nrun.o): Update.
2984 (sim-hload.o): Update.
2985 (sim-io.o): Update.
2986 (sim-reason.o): Update.
2987 (sim-reg.o): Update.
2988 (sim-resume.o): Update.
2989
2990 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
2991
2992 * run.c: Fix formatting.
2993
2994 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
2995
2996 * run-sim.h: New header. Provide prototypes for functions used
2997 between run() and libsim.a which are not used by GDB.
2998 * run.c: Include run-sim.h.
2999 (main): If SIM_TARGET_SWITCHES is defined call
3000 sim_target_parse_command_line.
3001 (usage): If SIM_TARGET_SWITCHES is defined call
3002 sim_target_display_usage.
3003
3004 2002-05-17 Andrey Volkov <avolkov@transas.com>
3005
3006 * run.c: Made h8300s as new target, not h8300h alias.
3007 Added new option -S (h8300s target)
3008 * sim-options.c: Ditto.
3009
3010 2002-05-01 Chris Demetriou <cgd@broadcom.com>
3011
3012 * callback.c: Use 'deprecated' rather than 'depreciated.'
3013
3014 2002-02-24 Andrew Cagney <ac131313@redhat.com>
3015
3016 From wiz at danbala:
3017 * sim-fpu.h: Fix grammar and typos.
3018 Fix PR gdb/287.
3019
3020 2002-02-10 Chris Demetriou <cgd@broadcom.com>
3021
3022 * callback.c: Fix some spelling errors.
3023 * hw-device.h: Likewise.
3024 * hw-tree.c: Likewise.
3025 * sim-abort.c: Likewise.
3026 * sim-alu.h: Likewise.
3027 * sim-core.h: Likewise.
3028 * sim-events.c: Likewise.
3029 * sim-events.h: Likewise.
3030 * sim-fpu.h: Likewise.
3031 * sim-profile.h: Likewise.
3032 * sim-utils.c: Likewise.
3033
3034 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
3035
3036 * cgen-ops.h (ADDCQI, ADDCFQI, ADDOFQI, SUBCQI, SUBCFQI, SUBOFQI):
3037 New functions.
3038
3039 2002-01-20 Ben Elliston <bje@redhat.com>
3040
3041 * sim-fpu.h (SIM_FPU_IS_QNAN): Replace "Quite" with "Quiet" in
3042 the comment for this enumerator.
3043
3044 2002-01-14 Ben Elliston <bje@redhat.com>
3045
3046 * sim-fpu.h: Fix comment about sim_fpu_* constants.
3047
3048 2001-12-20 Kazu Hirata <kazu@hxi.com>
3049
3050 * run.c (usage): Fix a typo.
3051
3052 2001-07-05 Ben Elliston <bje@redhat.com>
3053
3054 * Make-common.in (srccgen): Remove.
3055 (CGEN_CPU_DIR): Define.
3056 (CGEN_READ_SCM): Redefine without $(srccgen).
3057 (CGEN_ARCH_SCM): Ditto.
3058 (CGEN_CPU_SCM): Ditto.
3059 (CGEN_DECODE_SCM): Ditto.
3060 (CGEN_DESC_SCM): Ditto.
3061
3062 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
3063
3064 * sim-load.c (sim_load_file): Put it back: external now.
3065 * sim-utils.c (sim_analyze_program): Ditto. Nyuk nyuk nyuk.
3066
3067 2001-04-21 Andrew Cagney <ac131313@redhat.com>
3068
3069 * sim-load.c (sim_load_file): Delete call bfd_cache_close. BFD
3070 internal interface.
3071 * sim-utils.c (sim_analyze_program): Ditto.
3072
3073 2001-04-19 Frank Ch. Eigler <fche@redhat.com>
3074
3075 * sim-utils.c (sim_analyze_program): Call bfd_cache_close after
3076 we're finished with its immediate use.
3077 * sim-load.c (sim_load_file): Ditto.
3078
3079 2001-03-16 Frank Ch. Eigler <fche@redhat.com>
3080
3081 Add support for mmap-based memory regions.
3082 * sim-memopt.c (mmap_next_fd): New global.
3083 (sim_memory_init): Reinitialize it.
3084 (OPTION_MEMORY_MAPFILE, memory_option_handler): Support new
3085 "--memory-mapfile FILE" option. Check for some errors.
3086 (do_memopt_add): Conditionally do mmap instead of malloc for
3087 backing store of simulated memory. Check for more errors.
3088 (do_simopt_delete, sim_memory_uninstall): Corresponding cleanup.
3089 * sim-memopt.h (munmap_length): New member of _sim_memopt.
3090 * configure.in: Look for mmap/fstat related functions and headers.
3091 * config.in, configure: Regenerated.
3092
3093 2001-03-15 Frank Ch. Eigler <fche@redhat.com>
3094
3095 * sim-core.c (sim_core_map_attach): Correct overlap-related
3096 error messages.
3097
3098 2001-03-07 Michael Meissner <meissner@redhat.com>
3099
3100 * run.c (alloca-conf.h): Delete, no longer provided.
3101
3102 2001-02-22 Ben Elliston <bje@redhat.com>
3103
3104 * sim-trace.h (TRACE_VPU_IDX): Add.
3105 (TRACE_vpu): Define.
3106 (WITH_TRACE_VPU_P): Likewise.
3107 (TRACE_VPU_P): Likewise.
3108 * sim-trace.c (OPTION_TRACE_VPU): Define.
3109 (trace_options): Add --trace-vpu.
3110 (trace_option_handler): Handle OPTION_TRACE_VPU.
3111 (trace_option_handler): Include VPU tracing in --trace-semantics.
3112 (trace_idx_to_str): Handle TRACE_VPU_IDX.
3113
3114 2001-02-21 Ben Elliston <bje@redhat.com>
3115
3116 * sim-trace.h (TRACE_BRANCH_INPUT1): New macro.
3117 (TRACE_BRANCH_INPUT2): Likewise.
3118
3119 2001-02-09 Ben Elliston <bje@redhat.com>
3120
3121 * (profile_print_pc): Write header out in target byte order.
3122
3123 2001-02-09 Ben Elliston <bje@redhat.com>
3124
3125 * sim-profile.c (profile_pc_init): Correct bug in loop logic when
3126 adjusting the pc shift value.
3127
3128 2001-01-12 Chris Demetriou <cgd@sibyte.com>
3129
3130 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Properly handle the case
3131 where a numeric value is supplied.
3132
3133 2001-01-06 Ben Elliston <bje@redhat.com>
3134
3135 * cgen.sh: Allow extrafiles to include the semantics files when
3136 generating an ISA-specific decoder.
3137
3138 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
3139
3140 * Make-common.in (sim-io.o): Depend on targ-vals.h.
3141
3142 2000-12-23 Ben Elliston <bje@redhat.com>
3143
3144 * cgen-trace.c (trace_result): Handle 'f' type operands; output
3145 them to the trace stream using sim_fpu_printn_fpu. Include
3146 "sim-fpu.h".
3147
3148 2000-12-15 Ben Elliston <bje@redhat.com>
3149
3150 * sim-fpu.h (sim_fpu_printn_fpu): Declare.
3151 * sim-fpu.c (print_bits): Add digits parameter. Print only as many
3152 trailing digits as specified (-1 to print all digits).
3153 (sim_fpu_print_fpu): New wrapper around sim_fpu_printn_fpu.
3154 (sim_fpu_printn_fpu): Rename from sim_fpu_print_fpu; update calls
3155 to print_bits ().
3156
3157 2000-12-13 Ben Elliston <bje@redhat.com>
3158
3159 * cgen.sh: Set prefix/PREFIX (append ISA if applicable). Factor
3160 sed expressions into $sedscript, substituting @prefix@/@PREFIX@.
3161 (defs): New action.
3162
3163 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3164
3165 * sim-endian.h: Don't have parameters on macro definitions which
3166 are simply renaming functions, to permit use of XCONCAT2 in both
3167 the macro name and the arguments in a use of such a definition.
3168
3169 2000-12-11 Ben Elliston <bje@redhat.com>
3170
3171 * cgen-ops.h (SUBWORDDFDI): New function.
3172
3173 2000-12-05 Ben Elliston <bje@redhat.com>
3174
3175 * Make-common.in (cgen-defs): New target.
3176 (cgen-decode): Pass $(EXTRAFILES).
3177
3178 * genmloop.sh: Use @prefix@, not @cpu@ throughout. Add -prefix and
3179 -outfile-suffix options.
3180
3181 2000-12-04 Ben Elliston <bje@redhat.com>
3182
3183 * cgen-ops.h (SUBWORDSIQI): Mask off top bits.
3184 (SUBWORDSIUQI): Likewise.
3185 (SUBWORDDIHI): Likewise.
3186 (SUBWORDDIQI): New function.
3187
3188 * cgen-trace.c (disassemble_insn): Remove unused declaration.
3189 * cgen-scache.c (scache_option_handler): Remove unused local var.
3190
3191 2000-12-03 Ben Elliston <bje@redhat.com>
3192
3193 * sim-profile.c (profile_option_handler): Remove unused prof_nr.
3194
3195 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3196
3197 * hw-events.c (delete_hw_event_data): Remove the scheduled events.
3198
3199 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3200
3201 * dv-core.c (dv_core_attach_address_callback): Don't abort if
3202 space is not zero.
3203
3204 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3205
3206 * hw-base.c (hw_delete): Don't free base_of_hw since it's freed.
3207 (set_hw_delete): Moved the macro as a function.
3208 * hw-base.h (set_hw_delete): Declare as external function.
3209 * hw-alloc.c (delete_hw_alloc_data): Allow to free the memory
3210 allocated using hw_malloc.
3211
3212 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3213
3214 * sim-options.c (sim_parse_args): Free the memory used for
3215 long_options, short_options, handlers, opt_cpu, orig_val.
3216
3217 2000-11-20 Ben Elliston <bje@redhat.com>
3218
3219 * cgen-ops.h (SUBBI): New macro.
3220 (SUBWORDSIQI, SUBWORDSIHI, SUBWORDSIUQI): New functions.
3221 (SUBWORDDIHI, SUBWORDDIUQI, SUBWORDDIDF): Likewise.
3222
3223 2000-11-16 Ben Elliston <bje@redhat.com>
3224
3225 * cgen-types.h (VOID): New type.
3226
3227 2000-11-09 Ben Elliston <bje@redhat.com>
3228
3229 * sim-fpu.c (sim_fpu_one): Set exponent to 0.
3230 (sim_fpu_two): Set exponent to 1.
3231
3232 2000-10-26 Ben Elliston <bje@redhat.com>
3233
3234 * cgen.sh: Handle an isa argument between cpu and mach. Default to
3235 `all'. Pass `-i' options to cgen applications.
3236 * Make-common.in (cgen-arch, cgen-cpu, cgen-decode, cgen-cpu-decode,
3237 cgen-desc): Pass $(isa) to cgen.sh.
3238
3239 2000-10-08 Ben Elliston <bje@redhat.com>
3240
3241 * cgen-utils.c (cgen_rtx_error): New function.
3242
3243 2000-10-07 Ben Elliston <bje@redhat.com>
3244
3245 * cgen-trace.c (sim_cgen_disassemble_insn): Handle failure
3246 conditions for sim_core_read_buffer().
3247
3248 2000-09-26 Dave Brolley <brolley@redhat.com>
3249
3250 * cgen-utils.c (RORQI): New function.
3251 (ROLQI): New function.
3252 (RORHI): New function.
3253 (ROLHI): New function.
3254
3255 2000-08-28 Dave Brolley <brolley@redhat.com>
3256
3257 * cgen-trace.c (sim_cgen_disassemble_insn): Make sure entire insn is
3258 in insn_value if it will fit.
3259
3260 2000-08-21 Frank Ch. Eigler <fche@redhat.com>
3261
3262 * Make-common.in, cgen.sh: Contribute CGEN-related build targets/rules.
3263
3264 2000-08-15 Dave Brolley <brolley@redhat.com>
3265
3266 * sim-profile.c (profile_print_speed): Print cpu frequency if not zero.
3267
3268 2000-08-15 Dave Brolley <brolley@redhat.com>
3269
3270 * sim-profile.h (PROFILE_DATA): Add cpu_freq.
3271 (PROFILE_CPU_FREQ): New macro.
3272 * sim-profile.c (OPTION_PROFILE_CPU_FREQUENCY): New enumerator.
3273 (profile-options): Add profile-cpu-frequency.
3274 (parse_frequency): New function.
3275 (profile_option_handler): Handle OPTION_PROFILE_CPU_FREQUENCY.
3276 (profile_print_speed): Print cpu frequency and simulated execution time.
3277 Re-indent other items to match.
3278
3279 2000-08-09 Andrew Cagney <cagney@lulu.cygnus.com>
3280
3281 * dv-sockser.c (dv_sockser_init): Eliminate MIN macro.
3282
3283 2000-07-27 Frank Ch. Eigler <fche@redhat.com>
3284
3285 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3286 * Makefile.in (install): Install run.1 man page.
3287
3288 Thu Jul 27 21:56:08 2000 Andrew Cagney <cagney@b1.cygnus.com>
3289
3290 From 2000-06-23 Doug Evans <dje@casey.transmeta.com>:
3291 * Makefile.in (headers,nltvals.def): Merge.
3292
3293 Thu Jul 27 20:37:47 2000 Andrew Cagney <cagney@b1.cygnus.com>
3294
3295 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3296 * nrun.c (main): Print the simulator statistics only in
3297 verbose mode.
3298 * hw-properties.h (hw_find_integer_array_property): Fix
3299 prototype (use signed_cell).
3300
3301 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3302 * sim-events.c (sim_events_remain_time): New function returning
3303 the time that remains before the event is raised.
3304 * hw-events.c (hw_event_remain_time): Likewise.
3305 * sim-events.h (sim_events_remain_time): Declare.
3306 * hw-events.h (hw_event_remain_time): Declare.
3307
3308 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3309 * sim-hw.c: Use <errno.h> instead of <sys/errno.h>
3310 (OPTION_HW_LIST): New option --hw-list to list the devices.
3311 (hw_option_handler): List the device tree with 'sim_hw_print'.
3312
3313 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3314 * sim-bits.h (_MSB_16, _LSB_16): Define for 16-bit targets.
3315 (MASK, LSBIT, MSBIT): Likewise and use _MSB_16 and _LSB_16.
3316 (EXTENDED): Define for 16-bit word size.
3317 * sim-bits.c (LSEXTRACTED, MSEXTRACTED, LSINSERTED,
3318 MSINSERTED, LSSEXT, MSSEXT): Implement for 16-bit word size.
3319 * sim-types.h: Added support for 16-bit targets.
3320
3321 2000-06-23 Frank Ch. Eigler <fche@redhat.com>
3322
3323 * cgen-trace.h (TRACE_USEFUL_MASK): Remove TRACE_EVENTS_IDX.
3324
3325 2000-06-24 Frank Ch. Eigler <fche@redhat.com>
3326
3327 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
3328 * Makefile.in (distclean): Clean cconfig.h also.
3329
3330 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
3331
3332 * configure: Regenerated to track ../common/aclocal.m4 changes.
3333
3334 Tue May 23 21:35:53 2000 Andrew Cagney <cagney@b1.cygnus.com>
3335
3336 * aclocal.m4 (sim-profile): Enable the profiler by default.
3337
3338 Tue May 23 20:30:12 2000 Andrew Cagney <cagney@amy.cygnus.com>
3339
3340 * run.c (main): Initialize sigrc.
3341
3342 Wed Apr 26 16:18:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
3343
3344 * sim-events.c (update_time_from_event): Add more detailed event
3345 tracing.
3346
3347 2000-03-30 Dave Brolley <brolley@redhat.com>
3348
3349 * aclocal.m4 (cgen): Use guile to run cgen.
3350
3351 2000-03-23 Dave Brolley <brolley@redhat.com>
3352
3353 * cgen-fpu.h: Rename extsfdf to fextsfdf. Rename truncdfsf to
3354 ftruncdfsf.
3355 * cgen-accfp.c (fextsfdf): New function.
3356 (ftruncdfsf): New function.
3357 (cgen_init_accurate_fpu): Initialize fextsfdf and ftruncdfsf.
3358
3359 2000-03-13 Jeff Johnston <jjohnstn@cygnus.com>
3360
3361 * cgen-ops.h: Added TRUNCSISI.
3362
3363 2000-03-08 Dave Brolley <brolley@redhat.com>
3364
3365 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_SF_WRITE.
3366 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_sf_write.
3367 (sim_queue_fn_si_write): Last argument is has type USI.
3368 (sim_queue_fn_sf_write): New function.
3369 * cgen-par.c (sim_queue_fn_si_write): Declare 'value' as USI.
3370 (sim_queue_fn_sf_write): New function.
3371 (cgen_write_queue_element_execute): Handle CGEN_FN_SF_WRITE.
3372
3373 Tue Feb 22 16:45:09 2000 Andrew Cagney <cagney@b1.cygnus.com>
3374
3375 * run.c (main): When SIM_HAVE_ENVIRONMENT enable tracing with
3376 sim_set_trace and run simulator using sim_resume.
3377 (main): Add option ``-o'' - operating environment. Only continue
3378 after a signal when operating environment.
3379 (main): Always set REASON and SIGRC using sim_stop_reason.
3380 (sim_trace): Delete extern declaration.
3381
3382 2000-02-08 Nick Clifton <nickc@cygnus.com>
3383
3384 * callback.c: Fix compile time warning messages.
3385 * run.c: Fix compile time warning messages.
3386
3387 1999-12-17 Dave Brolley <brolley@cygnus.com>
3388
3389 * sim-profile.h: (set_profile_option_mask): Add prototype.
3390 * sim-profile.c (set_profile_option_mask): No longer static.
3391
3392 Wed Dec 8 21:47:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
3393
3394 * sim-arange.c: Include <string.h>
3395
3396 1999-12-07 Dave Brolley <brolley@cygnus.com>
3397
3398 * sim-options.c (print_help): '=' required before optional argument.
3399 * cgen-par.h (CGEN_FN_MEM_QI_WRITE): New enumerator.
3400 (CGEN_FN_MEM_HI_WRITE): New enumerator.
3401 (CGEN_FN_MEM_SI_WRITE): New enumerator.
3402 (CGEN_FN_MEM_DI_WRITE): New enumerator.
3403 (CGEN_FN_MEM_DF_WRITE): New enumerator.
3404 (CGEN_FN_MEM_XI_WRITE): New enumerator.
3405 (fn_mem_qi_write): New union members.
3406 (fn_mem_hi_write): New union members.
3407 (fn_mem_si_write): New union members.
3408 (fn_mem_di_write): New union members.
3409 (fn_mem_df_write): New union members.
3410 (fn_mem_xi_write): New union members.
3411 (sim_queue_fn_mem_qi_write): New function.
3412 (sim_queue_fn_mem_hi_write): New function.
3413 (sim_queue_fn_mem_si_write): New function.
3414 (sim_queue_fn_mem_di_write): New function.
3415 (sim_queue_fn_mem_df_write): New function.
3416 (sim_queue_fn_mem_xi_write): New function.
3417 * cgen-par.c (sim_queue_fn_mem_qi_write): New function.
3418 (sim_queue_fn_mem_hi_write): New function.
3419 (sim_queue_fn_mem_si_write): New function.
3420 (sim_queue_fn_mem_di_write): New function.
3421 (sim_queue_fn_mem_df_write): New function.
3422 (sim_queue_fn_mem_xi_write): New function.
3423 (cgen_write_queue_element_execute): Handle CGEN_FN_MEM_QI_WRITE,
3424 CGEN_FN_MEM_HI_WRITE, CGEN_FN_MEM_SI_WRITE, CGEN_FN_MEM_DI_WRITE,
3425 CGEN_FN_MEM_DF_WRITE, CGEN_FN_MEM_XI_WRITE.
3426
3427 1999-12-01 Dave Brolley <brolley@cygnus.com>
3428
3429 * cgen-accfp.c (subsf): Check status code.
3430 (mulsf): Ditto.
3431 (negsf): Ditto.
3432 (abssf): Ditto.
3433 (sqrtsf): Ditto.
3434 (invsf): Ditto.
3435 (minsf): Ditto.
3436 (maxsf): Ditto.
3437 (subdf): Ditto.
3438 (muldf): Ditto.
3439 (divdf): Ditto.
3440 (negdf): Ditto.
3441 (absdf): Ditto.
3442 (sqrtdf): Ditto.
3443 (invdf): Ditto.
3444 (mindf): Ditto.
3445 (maxdf): Ditto.
3446
3447 1999-11-26 Dave Brolley <brolley@cygnus.com>
3448
3449 * cgen-par.h (fn_df_write): Mode of data is DF.
3450 (sim_queue_fn_df_write): Mode of data is DF.
3451 * cgen-par.c (sim_queue_fn_df_write): Mode of data is DF.
3452
3453 1999-11-22 Dave Brolley <brolley@cygnus.com>
3454
3455 * cgen-trace.c (SIZE_TRACE_BUF): Inxrease size of trace buffer.
3456 * cgen-par.h (CGEN_WRITE_QUEUE_SIZE): Increase size of queue.
3457
3458 1999-11-04 Dave Brolley <brolley@cygnus.com>
3459
3460 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_XI_WRITE and
3461 CGEN_MEM_XI_WRITE members.
3462 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_xi_write and mem_xi_write members.
3463 (sim_queue_fn_xi_write): New function.
3464 (sim_queue_mem_xi_write): New function.
3465
3466 * cgen-par.c (sim_queue_fn_xi_write): New function.
3467 (sim_queue_mem_xi_write): New function.
3468 (cgen_write_queue_element_execute): Handle CGEN_FN_XI_WRITE and
3469 CGEN_MEM_XI_WRITE.
3470
3471 1999-10-22 Dave Brolley <brolley@cygnus.com>
3472
3473 * cgen-par.h (insn_address): New field in CGEN_WRITE_QUEUE_ELEMENT.
3474 (CGEN_WRITE_QUEUE_ELEMENT_IADDR): New macro.
3475 * cgen-par.c: Set insn_address for each queued write. Get pc from
3476 cpu when executing queued writes.
3477
3478 1999-10-19 Dave Brolley <brolley@cygnus.com>
3479
3480 * cgen-par.h (sim_queue_fn_pc_write): New function.
3481 (CGEN_FN_PC_WRITE): New enumerator.
3482 (fn_pc_write): New union member.
3483 * cgen-par.c (sim_queue_fn_pc_write): New function.
3484 (cgen_write_queue_element_execute): Handle CGEN_FN_PC_WRITE.
3485
3486 1999-10-18 Dave Brolley <brolley@cygnus.com>
3487
3488 * cgen-par.h (CGEN_MEM_DI_WRITE): New enumerator.
3489 (CGEN_MEM_DF_WRITE): New enumerator.
3490 (mem_di_write): New union member.
3491 (mem_df_write): New union member.
3492 * cgen-par.c (sim_queue_mem_di_write): New function.
3493 (sim_queue_mem_df_write): New function.
3494 (cgen_write_queue_element_execute): Handle CGEN_MEM_DI_WRITE and
3495 CGEN_MEM_DF_WRITE.
3496 * cgen-accfp.c (divsf): Check for division errors.
3497
3498 1999-10-14 Doug Evans <devans@casey.cygnus.com>
3499
3500 * cgen-engine.h (EXTRACT_INT,EXTRACT_UINT): Delete.
3501
3502 1999-10-07 Dave Brolley <brolley@cygnus.com>
3503
3504 * cgen-par.h (CGEN_FN_HI_WRITE): New enumerator.
3505 (fn_hi_write): New union member.
3506 (sim_queue_fn_hi_write): New function.
3507 * cgen-par.c (sim_queue_fn_hi_write): New function.
3508 (cgen_write_queue_element_execute): Handle CGEN_FN_HI_WRITE.
3509
3510 1999-09-29 Doug Evans <devans@casey.cygnus.com>
3511
3512 * cgen-defs.h (sim_engine_invalid_insn): New arg `vpc'.
3513 Change type of result to SEM_PC.
3514
3515 Wed Sep 29 14:43:57 1999 Dave Brolley <brolley@cygnus.com>
3516
3517 * cgen-defs.h (sim_engine_invalid_insn): Now returns PC.
3518
3519 1999-09-25 Doug Evans <devans@casey.cygnus.com>
3520
3521 * cgen-ops.h (SUBWORD*): Delete cpu arg.
3522 (JOIN*): Delete cpu arg.
3523
3524 Tue Sep 21 17:14:16 1999 Dave Brolley <brolley@cygnus.com>
3525
3526 * genmloop.sh (@cpu@_scache_lookup): No longer takes last_insn_p
3527 parameter.
3528 (SET_LAST_INSN_P): Set last_insn_p flag in the scache element.
3529
3530 Mon Sep 20 21:44:06 1999 Geoffrey Keating <geoffk@cygnus.com>
3531
3532 * sim-fpu.c (i2fpu): Keep the guard bits sticky when converting
3533 large values.
3534
3535 Tue Feb 8 16:33:48 2000 Andrew Cagney <cagney@b1.cygnus.com>
3536
3537 * run.c (main): Check the sim_stop_reason and only halt simulation
3538 when a valid stop condition is identified.
3539
3540 Wed Sep 15 14:12:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
3541
3542 * hw-tree.c, hw-properties.c, hw-instances.c: Include "sim-io.h".
3543
3544 Tue Sep 14 14:15:47 1999 Dave Brolley <brolley@cygnus.com>
3545
3546 * cgen-par.h (CGEN_BI_WRITE): New enumerator.
3547 (bi_write): New union element.
3548 (sim_queue_bi_write): New function.
3549 * cgen-par.c (sim_queue_bi_write): New function.
3550 (cgen_write_queue_element_execute): Handle CGEN_BI_WRITE.
3551
3552 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
3553
3554 * configure: Regenerated to track ../common/aclocal.m4 changes.
3555
3556 * aclocal.m4 (WERROR_CFLAGS, WARN_CFLAGS): Merge from
3557 ../gdb/configure.in.
3558 * Make-common.in (WERROR_CFLAGS, WARN_CFLAGS): Define.
3559 (SIM_WERROR_CFLAGS, SIM_WARN_CFLAGS): Define.
3560 (SIM_WARNINGS): Delete
3561 (CONFIG_CFLAGS): Update.
3562
3563 Tue Aug 31 16:01:42 1999 Dave Brolley <brolley@cygnus.com>
3564
3565 * cgen-par.c: New file.
3566 * cgen-par.h: New file.
3567 * cgen-sim.h (cgen-par.h): #include it.
3568 * cgen-cpu.h (write_queue): New field.
3569 (CPU_WRITE_QUEUE): New access macro.
3570 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-par.h.
3571 (cgen-par.o): New target.
3572
3573 1999-08-28 Doug Evans <devans@casey.cygnus.com>
3574
3575 * cgen-types.h (mode_type,MODE_VOID): Renamed from MODE_VM.
3576 * cgen-utils.c (mode_names): Update.
3577
3578 1999-08-20 Doug Evans <devans@casey.cygnus.com>
3579
3580 * genmloop.sh: New args -parallel-generic-write, -parallel-only.
3581 * cgen-engine.h (SEMANTIC_FN): Don't use version with PAREXEC
3582 buffer arg if WITH_PARALLEL_GENWRITE.
3583 (struct insn_sem): Handle WITH_PARALLEL_GENWRITE.
3584 (struct idesc): Ditto.
3585
3586 Wed Aug 18 18:17:28 1999 Doug Evans <devans@canuck.cygnus.com>
3587
3588 * sim-model.c (model_option_handler): Add \n to error message.
3589
3590 1999-08-08 Doug Evans <devans@casey.cygnus.com>
3591
3592 * cgen-engine.h (SEM_FN_NAME,SEMF_FN_NAME): Delete.
3593 (insn_sem): Rewrite.
3594 (sem_fn_desc): New struct.
3595 (idesc): Rewrite.
3596 * genmloop.sh (scache case,@cpu@_scache_lookup): Profile scache hit,
3597 misses if ! FAST_P.
3598 (scache case): Split into non-parallel/parallel versions.
3599 (@cpu@_engine_run_{full,fast}): Call @cpu@_{sem,semf}_init_idesc_table
3600 if not use semantic switch version.
3601
3602 1999-08-04 Doug Evans <devans@casey.cygnus.com>
3603
3604 * cgen-defs.h (SEM_BRANCH_TYPE): New enum.
3605 * cgen-engine.h (SEM_BRANCH_UNTAKEN,SEM_BRANCH_UNCACHEABLE): Delete.
3606 (SEM_BRANCH_INIT_EXTRACT): Delete.
3607 (SEM_BRANCH_INIT): Replace npc_ptr with br_type.
3608 (SEM_BRANCH_FINI): Ditto.
3609 (SEM_BRANCH_VIA_ADDR): Ditto.
3610 (SEM_BRANCH_VIA_CACHE): Ditto. Delete cachvarptr arg.
3611 (SEM_BRANCH_ADDR_CACHE): Delete.
3612 (SEM_SKIP_COMPILE,SEM_SKIP_INSN): New macros.
3613 * cgen-scache.h (cpu_scache): Replace member pbb_pr_npc_ptr with
3614 pbb_br_type.
3615 * genmloop.sh (eng.hin): Update prototype of ${cpu}_pbb_cti_chain.
3616 (@cpu@_pbb_begin): Initialize branch_target.
3617 (@cpu@_pbb_cti_chain): Replace arg new_vpc_ptr with br_type.
3618 (@cpu@_engine_run_full): Replace local pbb_br_npc_ptr with
3619 pbb_br_type.
3620 (@cpu@_engine_run_fast): Ditto.
3621
3622 Fri Jul 16 14:47:53 1999 Dave Brolley <brolley@cygnus.com>
3623
3624 * cgen-utils.c (RORSI): New function.
3625 (ROLSI): New function.
3626
3627 1999-07-14 Doug Evans <devans@casey.cygnus.com>
3628
3629 * Makefile.in (TAGS): Tweak TAGS regex.
3630 * cgen-mem.h (*): Add TAGS markers.
3631
3632 Sun Jul 11 23:47:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
3633
3634 * sim-resume.c (sim_resume): Ensure that the siggnal [sic] is only
3635 passed in when sim_resume is first entered - don't re-pass it
3636 after a restart.
3637
3638 Sun Jul 11 23:34:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
3639
3640 * sim-options.c (standard_option_handler): Add OPTION_LOAD_VMA and
3641 OPTION_LOAD_LMA but only when is defined.
3642 (standard_options): When SIM_HANDLES_LMA is defined include
3643 options --load-lma and --load-vma.
3644 (standard_install): Initialize STATE_LOAD_AT_LMA_P.
3645
3646 * sim-base.h (STATE_LOAD_AT_LMA_P): Define.
3647 (struct sim_state_base): Add load_at_lma_p.
3648 * sim-hload.c (sim_load): Replace SIM_HANDLES_LMA with
3649 STATE_LOAD_AT_LMA_P.
3650
3651 Sun Jul 11 12:03:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
3652
3653 * nrun.c (main): Re-format loop gnu style.
3654
3655 Wed Jul 7 19:56:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
3656
3657 * dv-sockser.c (connected_p): Initialize addrlen.
3658
3659 1999-07-06 Dave Brolley <brolley@cygnus.com>
3660
3661 * cgen-accfp.c (floatsidf): New function.
3662 (fixdfsi): New function.
3663
3664 1999-07-06 Doug Evans <devans@casey.cygnus.com>
3665
3666 * sim-model.c (sim_model_init): Issue error if machine is unsupported.
3667
3668 1999-07-05 Doug Evans <devans@casey.cygnus.com>
3669
3670 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-fpu.h.
3671 (cgen-fpu.o,cgen-accfp.o): Add rules for.
3672 * cgen-fpu.c: New file.
3673 * cgen-fpu.h: New file.
3674 * cgen-accfp.c: New file.
3675 * cgen-cpu.h (CGEN_CPU): New member fpu.
3676 * cgen-mem.h: Redo fp support.
3677 * cgen-ops.h: Delete k&r support. Redo fp support.
3678 * cgen-sim.h: Include cgen-fpu.h.
3679 * cgen-types.h (SF,DF,XF,TF): Moved to cgen-fpu.h.
3680
3681 1999-06-23 Doug Evans <devans@casey.cygnus.com>
3682
3683 * cgen-engine.h (TARGET_SEM_BRANCH_FINI): Remove cruft at end of
3684 ifndef.
3685 * genmloop.sh (@cpu@_scache_lookup): Delete unused local var.
3686 (@cpu@_pbb_cti_chain): Minor clean up.
3687
3688 1999-05-08 Felix Lee <flee@cygnus.com>
3689
3690 * aclocal.m4: Use AC_EXEEXT instead of AM_EXEEXT. Delete defn of
3691 AM_CYGWIN32 and AM_EXEEXT.
3692 * configure: Regenerate.
3693
3694 Fri Apr 16 16:43:22 1999 Doug Evans <devans@charmed.cygnus.com>
3695
3696 * sim-core.c (device_error,device_io_read_buffer,
3697 device_io_write_buffer): Delete decls.
3698 * sim-core.h: Put them here.
3699
3700 * sim-core.c (sim_core_read_buffer): Pass sd to device_io_read_buffer.
3701 (sim_core_write_buffer): Pass sd to device_io_write_buffer.
3702 * sim-n-core.h (sim_core_read_aligned_N): Ditto.
3703 (sim_core_write_aligned_N): Ditto.
3704
3705 1999-04-14 Stephane Carrez <stcarrez@worldnet.fr>
3706
3707 * sim-memopt.c (sim_memory_uninstall): Don't look into
3708 free()d memory.
3709
3710 1999-04-14 Doug Evans <devans@casey.cygnus.com>
3711
3712 * cgen-utils.scm (virtual_insn_entries): Update attribute definition.
3713
3714 1999-04-13 Doug Evans <devans@casey.cygnus.com>
3715
3716 * sim-core.c (sim_core_read_buffer): Handle NULL cpu when WITH_DEVICES.
3717 (sim_core_write_buffer): Ditto.
3718
3719 1999-04-02 Keith Seitz <keiths@cygnus.com>
3720
3721 * sim-io.c (sim_io_poll_quit): Only call the poll_quit callback
3722 after the interval counter has expired.
3723 (POLL_QUIT_INTERVAL): Define. Used to tweak the frequency of
3724 poll_quit callbacks. May be overridden by Makefile.
3725 (poll_quit_counter): New global.
3726 * sim-events.c: Remove all mentions of ui_loop_hook. The
3727 host callback "poll_quit" will serve the purpose.
3728 * run.c: Add definition of ui_loop_hook when NEED_UI_LOOP_HOOK
3729 is defined.
3730 * nrun.c: Remove declaration of ui_loop_hook.
3731
3732 Wed Mar 31 18:55:41 1999 Doug Evans <devans@canuck.cygnus.com>
3733
3734 * cgen-run.c (sim_resume): Don't tell main loop to run "forever"
3735 if being used by gdb.
3736
3737 1999-03-22 Doug Evans <devans@casey.cygnus.com>
3738
3739 * cgen-types.h (XF,TF): Tweak.
3740 * cgen-ops.h: Redo inline support. Delete DI_FN_SUPPORT,
3741 in cgen-types.h.
3742 (SUBWORD*,JOIN*): Define.
3743 * cgen-trace.c (sim_cgen_disassemble_insn): Update, base_insn_bitsize
3744 moved into cpu descriptor.
3745 * sim-model.h (MACH): New member `num'.
3746
3747 1999-02-09 Doug Evans <devans@casey.cygnus.com>
3748
3749 * cgen-cpu.h (CGEN_DISASSEMBLER): New type.
3750 (CGEN_CPU): Member opcode renamed to cpu_desc.
3751 New members get_idata,disassembler.
3752 * cgen-defs.h (CGEN_INSN_VIRTUAL_P): CGEN_INSN_ATTR renamed to
3753 CGEN_INSN_ATTR_VALUE.
3754 (CGEN_STATE): Delete member opcode_table.
3755 (sim_disassemble_insn): Delete decl.
3756 * cgen-engine.h (struct insn_sem): Moved to here from <cpu>-decode.c.
3757 (struct idesc): Moved to here from <cpu>-decode.h.
3758 * cgen-run.c (prime_cpu): Call prepare_run callback.
3759 * cgen-trace.h (SFILE): New type.
3760 (sim_disasm_sprintf): Declare.
3761 (sim_disasm_read_memory,sim_disasm_perror_memory): Declare.
3762 (sim_cgen_disassemble_insn): Declare.
3763 * cgen-trace.c: Include errno.h,dis-asm.h. Don't include cpu-opc.h.
3764 (insn_fields): Delete.
3765 (trace_insn_fini): STATE_OPCODE_TABLE (sd) replaced with
3766 CPU_CPU_DESC (cpu).
3767 (trace_insn): Call CPU_DISASSEMBLER hook.
3768 (sim_disasm_sprintf): New function.
3769 (sim_disasm_read_memory): New function.
3770 (sim_disasm_perror_memory): New function.
3771 (sim_cgen_disassemble_insn): New function.
3772 * cgen-utils.c: Don't include cpu-opc.h.
3773 (virtual_insn_entries): New static local.
3774 (cgen_virtual_insn_table): Renamed from cgen_virtual_opcode_table.
3775 (cgen_insn_name): Rewrite.
3776 (disasm_sprintf,sim_disassemble_insn): Moved to cgen-trace.c.
3777 * cgen.sh (desc): New file generator handler.
3778 * genmloop.sh: -parallel changed to -parallel-read/-parallel-write.
3779 Define WITH_PARALLEL_READ/WITH_PARALLEL_WRITE appropriately.
3780 Don't include cpu-opc.h,cpu-sim.h.
3781 * sim-model.c (model_set): Delete SIM_DESC arg.
3782 (sim_model_set): Update.
3783 * sim-model.h (MACH): New member prepare_run.
3784
3785 1999-01-28 Frank Ch. Eigler <fche@cygnus.com>
3786
3787 * sim-memopt.c (memory_option_handler): Avoid memset() calls
3788 if redundant with allocator functions.
3789
3790 Wed Jan 27 17:19:09 1999 Doug Evans <devans@canuck.cygnus.com>
3791
3792 * cgen-engine.h (EXTRACT_LSB0_{INT,UINT}): Fix.
3793
3794 * sim-profile.h: Make like sim-trace.h.
3795 (PROFILE_USEFUL_MASK): New macro.
3796 * sim-profile.c (profile_options): Make like trace_options, allow
3797 optional on|off arg where applicable.
3798 (set_profile_option_mask): New function.
3799 (sim_profile_set_option): New function.
3800 (profile_option_handler): Simplify.
3801 Have -p only enable selected things, not everything.
3802 Add missing break to OPTION_PROFILE_PC_RANGE.
3803 * cgen-scache.c (scache_options): Allow optional on|off arg to
3804 --profile-scache.
3805 (scache_option_handler): Use sim_profile_set_option.
3806
3807 1999-01-26 Frank Ch. Eigler <fche@cygnus.com>
3808
3809 * sim-memopt.c (memory_options): Add MEMORY_FILL option.
3810 (memory_option_handler): Implement MEMORY_FILL option. Make
3811 MEMORY_CLEAR an alias for MEMORY_FILL=0.
3812 (parse_ulong_value): New function.
3813 (do_memopt_add): Allocate all buffers. Optionally fill them.
3814
3815 1999-01-15 Richard Henderson <rth@cygnus.com>
3816
3817 * hw-events.c (hw_event_queue_schedule): _vtracef takes a
3818 va_list, not an integer.
3819 * sim-events.c (sim_events_schedule): Likewise.
3820
3821 * sim-types.h (UNSIGNED32, UNSIGNED64): Properly cast to
3822 the appropriate type.
3823
3824 1999-01-14 Doug Evans <devans@casey.cygnus.com>
3825
3826 * cgen-defs.h (PCADDR,CIA): Define in terms of IADDR.
3827 (sim_disassemble_insn): Update prototype.
3828 (sim_engine_invalid_insn): Ditto.
3829 * cgen-engine.h (SEMANTIC_FN): Add !WITH_SCACHE version.
3830 (SEM_BRANCH_INIT): PCADDR->IADDR.
3831 (SEM_NBRANCH_FINI): New macro for !WITH_SCACHE case.
3832 * cgen-scache.c (scache_lookup,scache_lookup_or_alloc): PCADDR->IADDR.
3833 * cgen-scache.h (*): Ditto.
3834 * cgen-trace.c (*): Ditto.
3835 * cgen-trace.h (*): Ditto.
3836 * cgen-utils.c (*): Ditto.
3837 * cgen-types.h (integer modes): Use signedNN/unsignedNN types.
3838 (insn_t): Delete.
3839 * genmloop.sh (@cpu@_fill_argbuf): Add !WITH_SCACHE support.
3840 (simple engine framework): Rewrite.
3841 * sim-module.c (modules): Install model module sooner (and in
3842 particular before the profile module).
3843
3844 1999-01-12 Doug Evans <devans@casey.cygnus.com>
3845
3846 * sim-model.h (sim_mach_lookup_bfd_name): Add prototype.
3847 * sim-model.c (sim_mach_lookup_bfd_name): New function.
3848 (sim_model_init): Call it.
3849
3850 * cgen-trace.c (trace_insn): Pass pc to trace_prefix for virtual insns.
3851
3852 1999-01-05 Doug Evans <devans@casey.cygnus.com>
3853
3854 * Make-common.in (CGEN_INCLUDE_DEPS): Add cgen-defs.h, cgen-engine.h.
3855 * cgen-engine.h (SEM_BRANCH_FINI): New arg pcvar, all uses updated.
3856 (SEM_BRANCH_INIT_EXTRACT): New macro.
3857 (SEM_BRANCH_INIT): Add taken_p.
3858 (TARGET_SEM_BRANCH_FINI): Provide default definition.
3859 (SEM_BRANCH_FINI): Use it.
3860 (SEM_INSN): Update.
3861 * cgen-run.c (sim_resume): Handle tracing of last insn.
3862 * cgen-scache.h (WITH_SCACHE): Define as 0 if not defined.
3863 * cgen-trace.c (current_abuf): New static global.
3864 (trace_insn_init): Initialize it.
3865 (trace_insn_fini): Use it.
3866 (trace_insn): Set it.
3867 * cgen.sh (arch case): Pass -m ${mach} to cgen.
3868 * genmloop.sh (@cpu@_emit_before): Only define if WITH_SCACHE_PBB.
3869 (@cpu@_emit_after): Ditto.
3870 (simple @cpu@_engine_run_full): New local `pc'. Initialize semantic
3871 labels if WITH_SEM_SWITCH_FULL.
3872 * sim-model.c: Include bfd.h.
3873 (sim_model_init): New function.
3874 (sim_model_install): Record init fn.
3875 * sim-model.h (MACH): New member bfd_name.
3876 * sim-module.c (modules): Initialize model before scache.
3877
3878 1998-12-24 Frank Ch. Eigler <fche@cygnus.com>
3879
3880 * dv-sockser.c (DEFAULT_TIMEOUT): Increase to 1 ms.
3881
3882 * nrun.c (main): Remain in simulation loop for traps and
3883 exceptions when in operating environment mode.
3884 (ui_loop_hook): New stub hook for standalone use.
3885 * sim-events.c (sim_events_process): Call ui_loop_hook
3886 periodically on CYGWIN host.
3887
3888 * sim-reason.c (sim_stop_reason): Return host signal numbers
3889 to gdb on sim_stopped and sim_signalled cases.
3890 * sim-engine.c (sim_engine_halt): Call SIM_CPU_EXCEPTION_SUSPEND
3891 hook just before longjmp.
3892 * sim-resume.c (sim_resume): Call SIM_CPU_EXCEPTION_RESUME
3893 hook just before sim_engine_run.
3894
3895 * sim-n-core.h (sim_core_trace_M): Allay const warning.
3896 * sim-trace.h (trace_generic): Ditto.
3897 * sim-trace.c (trace_generic): Ditto.
3898
3899 1998-12-14 Doug Evans <devans@casey.cygnus.com>
3900
3901 * Make-common.in (SIM_MAIN_DEPS): New var.
3902 (CGEN_MAIN_CPU_DEPS): New var.
3903 * aclocal.m4: Add --enable-cgen-maint option.
3904 * cgen-mem.h (GETMEM*): New arg `pc'. Pass to sim_core routine.
3905 (SETMEM*): Ditto.
3906 (GETIMEM*): Pass pc value to sim_core routine.
3907
3908 Fri Dec 11 16:58:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
3909
3910 * hw-handles.c (hw_handle_add_ihandle, hw_handle_add_phandle):
3911 Compare with ZERO not NULL.
3912
3913 Thu Dec 10 14:14:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
3914
3915 * hw-properties.c, hw-instances.c, hw-tree.c: Include
3916 "sim-assert.h".
3917
3918 1998-12-09 Doug Evans <devans@casey.cygnus.com>
3919
3920 * sim-arange.c: Include libiberty.h, and stdlib.h if present.
3921 * sim-trace.c: Include stdlib.h if present.
3922 * dv-sockser.c: Include unistd.h if present.
3923 (dv_sockser_init): Add missing arg to call to sim_io_eprintf.
3924 * cgen-scache.c (scache_flush): Delete unused locals i,sc.
3925
3926 1998-12-08 James E Wilson <wilson@wilson-pc.cygnus.com>
3927
3928 * gennltvals.sh: Add i960.
3929 * nltvals.def: Rebuild.
3930
3931 1998-12-04 Doug Evans <devans@casey.cygnus.com>
3932
3933 * cgen-defs.h: New file, old cgen-sim.h.
3934 * cgen-sim.h: Simple header that includes others.
3935 * sim-arange.c: New file.
3936 * sim-arange.h: New file.
3937 * sim-basics.h: Include it.
3938 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-arange.o.
3939 (sim-arange.o): Add rule for.
3940 * sim-cpu.h (sim_cpu_msg_prefix): Add prototype.
3941 (sim_io_eprintf_cpu): Add prototype.
3942 * sim-inline.h (HAVE_INLINE): Define if GNUC.
3943 (INLINE2): New macro.
3944 (EXTERN_INLINE): New macro.
3945 * sim-module.c (sim_post_argv_init): Initialize cpu backlink
3946 before calling module init fns.
3947 * sim-profile.c (OPTION_PROFILE_*): Move into enum.
3948 (profile_init): New function.
3949 (profile_options): New option --profile-range.
3950 (profile_option_handler): Handle --profile-range.
3951 (profile_print_insn): Qualify address range specific section titles.
3952 (profile_print_addr_ranges): New function.
3953 (profile_info): Print address ranges if specified.
3954 (profile_install): Set profile_init init fn.
3955 * sim-profile.h (PROFILE_DATA): New member `range'.
3956 * sim-trace.c (trace_init): New function.
3957 (trace_options): New option --trace-range.
3958 (trace_option_handler): Handle --trace-range.
3959 (trace_install): Set trace_init init fn.
3960 * sim-trace.h (TRACE_DATA): New member `range'.
3961 * sim-utils.c (sim_cpu_msg_prefix): New function.
3962 (sim_io_eprintf_cpu): New function.
3963 * cgen-engine.h (PC_IN_TRACE_RANGE_P): New macro.
3964 (PC_IN_PROFILE_RANGE_P): New macro.
3965 * cgen-trace.c (trace_insn_init): Set current_insn to NULL.
3966 (trace_insn_fini): New arg abuf. All callers updated.
3967 Exit early if trace_insn not called. Check ARGBUF_PROFILE_P before
3968 printing cycle counts.
3969 * cgen-trace.h (trace_insn_fini): Update prototype.
3970 (TRACE_RESULT_P): New macro.
3971 (TRACE_INSN_INIT,TRACE_INSN_FINI): New arg abuf. All callers updated.
3972 (TRACE_INSN): Check ARGBUF_TRACE_P.
3973 (TRACE_EXTRACT,TRACE_RESULT): New arg abuf. All callers updated.
3974 * cgen-types.h (SIM_INLINE): Delete.
3975 (SIM_HAVE_MODEL,SIM_HAVE_ADDR_RANGE): Define.
3976 * cgen-utils.c: Don't include cgen-engine.h
3977 * genmloop.sh (@cpu@_fill_argbuf): New function.
3978 (@cpu@_fill_argbuf_tp): New function.
3979 (@cpu@_emit_before,@cpu@_emit_after): New functions.
3980 (@cpu@_pbb_begin): Prefix cti_sc,insn_count with '_'.
3981 (SET_CTI_VPC,SET_INSN_COUNT): Update.
3982 (@cpu@_pbb_before): Check ARGBUF_PROFILE_P before calling
3983 doing profiling. Update call to TRACE_INSN_INIT,TRACE_INSN_FINI.
3984 (@cpu@_pbb_after): Check ARGBUF_PROFILE_P before calling
3985 doing profiling. Update call to TRACE_INSN_FINI.
3986
3987 * sim-memopt.c (sim_memory_uninstall): Result type is `void'.
3988
3989 1998-12-03 Frank Ch. Eigler <fche@cygnus.com>
3990
3991 * sim-memopt.c (sim_memory_uninstall): Deallocate all memory
3992 regions.
3993
3994 1998-12-01 Doug Evans <devans@casey.cygnus.com>
3995
3996 * sim-inline.c (SIM_INLINE_P): Fix typo.
3997
3998 1998-11-30 Doug Evans <devans@casey.cygnus.com>
3999
4000 * cgen-utils.c (cgen_virtual_opcode_table): Update.
4001
4002 Tue Nov 24 18:40:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
4003
4004 * gennltvals.sh: Add v850 and d10v. Sort alphabetically.
4005 * nltvals.def: Re-generate.
4006
4007 Mon Nov 23 13:28:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
4008
4009 * sim-core.c (reverse_n, sim_core_uninstall, sim_core_init,
4010 sim_core_map_attach, sim_core_map_detach, next_event_queue,
4011 new_sim_core_mapping): Only define when EXTERN_SIM_CORE_P, pacify
4012 GCC.
4013 * sim-events.c (sim_events_uninstall, sim_events_suspend,
4014 sim_events_resume, sim_events_zalloc, insert_sim_event): Ditto.
4015
4016 1998-11-22 Doug Evans <devans@tobor.to.cygnus.com>
4017
4018 * genmloop.sh (${cpu}_pbb_chain): Watch for Ctrl-C's.
4019 (${cpu}_pbb_cti_chain): Ditto.
4020
4021 1998-11-18 Doug Evans <devans@casey.cygnus.com>
4022
4023 * Make-common.in (cgen-utils.o): Depend on cgen-engine.h.
4024 * cgen-engine.h (EXTRACT_[ML]SB0_{INT,UINT}): New macros.
4025 (EXTRACT_INT,EXTRACT_UINT): New macros.
4026 (SEM_SEM_ARG): New macro.
4027 (SEM_NEXT_VPC): New arg `pc'.
4028 * cgen-sim.h (EXTRACT_SIGNED,EXTRACT_UNSIGNED): Delete.
4029 (sim_disassemble_insn): Update prototype.
4030 * cgen-trace.c (current_insn,insn_fields): New static locals.
4031 (trace_insn): Set them.
4032 * cgen-utils.c: #include cgen-engine.h.
4033 (sim_disassemble_insn): New arg insn_fields.
4034 Handle variable length insns.
4035 * genmloop.sh: Only emit pbb decls if -pbb.
4036 (${cpu}_scache_lookup): New arg `vpc'.
4037 (scache support): Fetch pc before entering loop.
4038
4039 * gennltvals.sh: Add fr30 support.
4040 * nltvals.def: Rebuild.
4041
4042 Wed Nov 18 10:22:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
4043
4044 * sim-types.h: Re-do type system so that GCC's attribute and mode
4045 are used to specify types. Handle case of ALPHA.
4046
4047 1998-11-13 Frank Ch. Eigler <fche@elastic.org>
4048
4049 * aclocal.m4: Add tests for dlopen family.
4050 * config.in: Regenerated.
4051
4052 Wed Nov 11 14:02:25 1998 Doug Evans <devans@canuck.cygnus.com>
4053
4054 * sim-hload.c (sim_load): Pass `prog_name' to sim_load_file, not NULL.
4055
4056 Wed Nov 4 23:51:19 1998 Doug Evans <devans@seba.cygnus.com>
4057
4058 * genmloop.sh (eng.hin): Rename HAVE_PARALLEL_EXEC to
4059 HAVE_PARALLEL_INSNS, define as 0 or 1. Emit decls of fns in mloop.cin.
4060 * cgen-engine.h: Typedefs of IADDR,CIA,SEM_ARG,SEM_PC moved ...
4061 * cgen-sim.h: ... to here.
4062
4063 Wed Oct 28 12:00:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
4064
4065 * aclocal.m4 (enable-build-warnings): Replace
4066 enable-sim-warnings. Extend =LIST syntax so that prepend and
4067 append of options is possible. Drop -Werror, add
4068 -Wstrict-prototypes for GDB compatibility.
4069 * Make-common.in (SIM_WARNINGS): Update.
4070
4071 Mon Oct 19 13:56:32 1998 Doug Evans <devans@seba.cygnus.com>
4072
4073 * Make-common.in (CGEN_INCLUDE_DEPS): Define.
4074 (sim-core.o): Delete duplicate dependence on $(SIM_EXTRA_DEPS).
4075 (sim-cpu.o,sim-endian.o,sim-hw.o): Ditto.
4076 (cgen-run.o,cgen-scache.o,cgen-trace.o,cgen-utils.o): Delete
4077 explicit cgen header dependencies, require SIM_EXTRA_DEPS to include
4078 CGEN_INCLUDE_DEPS.
4079 * cgen-cpu.h: New file.
4080 * cgen-engine.h: New file.
4081 * cgen-scache.h: New file.
4082 * cgen-sim.h: Delete portions moved to new files.
4083 * genmloop.sh: Generate two files eng.hin,mloop.cin explicitly,
4084 rather than sending result to stdout.
4085
4086 Fri Oct 9 14:20:22 1998 Doug Evans <devans@seba.cygnus.com>
4087
4088 * Make-common.in (sim-reg.o): New rule.
4089 (cgen-run.o): New rule.
4090 * cgen-ops.h: Delete many BI macros. Change all UBI -> BI.
4091 * cgen-run.c (prime_cpu): New function.
4092 * cgen-scache.c: Add pseudo-basic-block (pbb) scaching support.
4093 (scache_option_handler, case OPTION_PROFILE_SCACHE): Handle explicitly
4094 mentioned cpu.
4095 (scache_flush_cpu,scache_lookup,scache_lookup_or_alloc): New fns.
4096 * cgen-sim.h (CGEN_INSN_VIRTUAL_TYPE): New enum.
4097 (CGEN_INSN_VIRTUAL_P): New macro.
4098 (SEM_PC): New typedef.
4099 (SEMANTIC_FN): Change type of result to SEM_PC.
4100 (SEM_SET_FULL_CODE,SEM_SET_FAST_CODE,SEM_SET_CODE): New macros.
4101 (IDESC_CTI_P,IDESC_SKIP_P): New macros.
4102 (SCACHE_MAP): New typedef.
4103 (CPU_SCACHE): Add pbb support.
4104 (scace_lookup,scache_lookup_or_alloc,scache_flush_cpu): Declare.
4105 (SEM_BRANCH_INIT_EXTRACT,SEM_BRANCH_INIT,SEM_BRANCH_FINI): New macros.
4106 (CGEN_CPU): New members running_p,insn_count,{fast,full}_engine_fn,
4107 max_slice_insns.
4108 (INSN_NAME): Delete.
4109 (cgen_insn_name): Declare.
4110 (sim_engine_invalid_insn): Renamed from sim_engine_illegal_insn.
4111 * cgen-trace.c (trace_buf): Shrink from 1024 to 256 bytes.
4112 (first_insn_p): Make static.
4113 (trace_insn): Handle virtual insns specially.
4114 (cgen_trace_printf): Ensure we haven't overflowed the buffer.
4115 * cgen-types.h (UBI): Delete.
4116 (MODE_TYPE): New enum.
4117 (HOSTINT,HOSTUINT,HOSTPTR): Delete.
4118 * cgen-utils.c (mode_names): Delete UBI. Add INT,UINT,PTR.
4119 (cgen_virtual_opcode_table): New global.
4120 (cgen_insn_name): New function.
4121 (sim_disassemble_insn): Ignore virtual insns.
4122 * genmloop.sh: Delete top level loop generation. Add pbb support.
4123 * sim-cpu.h (CPU_INSN_NAME_FN): New typedef.
4124 (sim_cpu_base): New members max_insns,insn_name,model_data.
4125 (CPU_PC_GET,CPU_PC_SET): New macros.
4126 (sim_pc_get,sim_pc_set): Declare.
4127 * sim-model.c (model_set): Call model init fn.
4128 * sim-model.h (MODEL_FN): New typedef.
4129 (INSN_TIMING): New member model_fn.
4130 (MODEL): New members num,init.
4131 * sim-profile.c (sim_profile_print_bar): Renamed from print_bar.
4132 All callers updated.
4133 (profile_insn_init): New fn.
4134 (profile_print_insn): Update, INSN_NAME -> CPU_INSN_NAME.
4135 Exit early if insn profiling not supported.
4136 (profile_print_memory): Update, MAX_MODES -> MODE_TARGET_MAX.
4137 (profile_install): Record profile_insn_init as init fn.
4138 (profile_uninstall): Free PROFILE_INSN_COUNT if non-null.
4139 * sim-profile.h: Update, MAX_MODES -> MODE_TARGET_MAX.
4140 (PROFILE_DATA): Delete member exec_time.
4141 Change insn_count to pointer to array, rather than the array.
4142 (sim_profile_print_bar): Declare.
4143
4144 Wed Oct 7 16:56:42 1998 Doug Evans <devans@seba.cygnus.com>
4145
4146 * cgen-run.c: New file.
4147 * sim-reg.c: New file.
4148
4149 Mon Sep 14 10:58:19 1998 Frank Ch. Eigler <fche@cygnus.com>
4150
4151 * aclocal.m4: Add checks for -lsocket and -lnsl.
4152
4153 * dv-sockser.c (dv_sockser_init): Use SO_REUSEADDR to
4154 allow local port reuse on listening socket.
4155
4156 Tue Sep 1 15:36:52 1998 Frank Ch. Eigler <fche@cygnus.com>
4157
4158 * sim-config.h: Remove reference to linux kernel header.
4159
4160 Tue Aug 25 12:45:27 1998 Frank Ch. Eigler <fche@cygnus.com>
4161
4162 * dv-sockser.c (sockser_addr): Make variable non-static.
4163
4164 Mon Aug 24 11:47:37 1998 Joyce Janczyn <janczyn@cygnus.com>
4165
4166 * sim-hw.{c,h} (sim_hw_parse): Return struct hw pointer.
4167
4168 Tue Aug 11 18:12:19 1998 Doug Evans <devans@canuck.cygnus.com>
4169
4170 * sim-events.c (sim_events_elapsed_time): Fix calculation.
4171
4172 Tue Aug 4 20:36:46 1998 Jeff Holcomb <jeffh@cygnus.com>
4173
4174 * Make-common.in (install-common): Add $(EXEEXT) when installing
4175 run.
4176
4177 Mon Aug 3 11:46:01 1998 Doug Evans <devans@seba.cygnus.com>
4178
4179 * cgen-sim.h (cgen_state): New member opcode_table.
4180 * cgen-utils.c (sim_disassemble_insn): Use it.
4181
4182 Fri Jul 24 10:14:18 1998 Doug Evans <devans@canuck.cygnus.com>
4183
4184 * cgen-mem.h (DECLARE_SETT): Fix return type.
4185 * cgen-sim.h (sim_engine_illegal_insn): Declare.
4186 * cgen-scache.c: Include stdlib.h.
4187 * cgen-trace.c (trace_extract): Use %lx for PCADDR.
4188 * sim-model.c (model_option_handler): Remove unused variable `n'.
4189
4190 Tue Jul 21 16:27:43 1998 Doug Evans <devans@seba.cygnus.com>
4191
4192 * cgen-utils.c: Include bfd.h.
4193 (sim_disassemble_insn): Update call to CGEN_EXTRACT_FN.
4194
4195 Wed Jul 8 18:24:10 1998 Jeffrey A Law (law@cygnus.com)
4196
4197 * sim-bits.h (EXTEND24): Fix typo.
4198
4199 Wed Jul 8 17:41:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
4200
4201 * sim-events.c (ETRACE_P): New macro.
4202 (struct _sim_event): Add member trace.
4203 (sim_events_free): Reclaim trace message.
4204
4205 * sim-events.c, sim-events.h (sim_events_schedule_vtracef,
4206 sim_events_schedule_tracef): New functions, include printf trace
4207 information in argument list. If tracing, store asprintf'd trace
4208 message in sim_event.
4209
4210 * hw-events.c, hw-events.h (hw_event_queue_schedule_tracef,
4211 hw_event_queue_schedule_vtracef): New functions, mimic
4212 sim_event_tracef.
4213
4214 Mon Jul 6 15:51:14 1998 Jeffrey A Law (law@cygnus.com)
4215
4216 * sim-bits.h (EXTEND24): Define.
4217
4218 Thu Jul 2 17:13:25 1998 Doug Evans <devans@seba.cygnus.com>
4219
4220 * cgen-sim.h (CPU_SCACHE): Make size unsigned.
4221 (CPU_SCACHE_HASH_MASK): New macro.
4222 (SCACHE_HASH_PC): Rewrite.
4223 * genmloop.sh (engine_resume_{full,fast}): Move some of hash
4224 computation out of main loop.
4225
4226 Wed Jul 1 16:44:12 1998 Doug Evans <devans@seba.cygnus.com>
4227
4228 * cgen-sim.h (RECORD_IADDR): Delete.
4229 * cgen-types.h (HOSTINT,HOSTUINT,HOSTPTR): New types.
4230 * genmloop.sh (engine_resume_{full,fast}): Delete icount.
4231
4232 Wed Jun 17 12:25:08 1998 Mark Alexander <marka@cygnus.com>
4233
4234 * gennltvals.def (mn10200): Add entry.
4235 * nltvals.def: Regenerate with MN10200 additions.
4236
4237 Wed Jun 17 13:18:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
4238
4239 * sim-inline.h (EXTERN_*): Replace with EXTERN_*_P. Correct
4240 documentation on how it works.
4241
4242 * sim-core.h, sim-core.c (sim_core_install, sim_core_attach,
4243 sim_core_detach, sim_core_read_buffer, sim_core_write_buffer,
4244 sim_core_set_xor, sim_core_xor_read_buffer,
4245 sim_core_xor_write_buffer): Update.
4246
4247 * sim-events.h, sim-events.c (sim_events_install,
4248 sim_events_watch_clock, sim_events_schedule_after_signal,
4249 sim_events_schedule, sim_events_watch_sim, sim_events_watch_core,
4250 sim_events_deschedule): Update.
4251
4252 * sim-fpu.h, sim-fpu.c (sim_fpu_zero, sim_fpu_one, sim_fpu_two,
4253 sim_fpu_max32, sim_fpu_max64): Update.
4254
4255 Sat Jun 13 07:45:38 1998 Doug Evans <devans@fallis.cygnus.com>
4256
4257 * cgen-trace.c (trace_insn_fini): Redo cycle handling.
4258 * sim-profile.h (PROFILE_DATA): Rename cycle handling members.
4259 * sim-profile.c (profile_print_model): Update.
4260
4261 Fri Jun 12 18:35:07 1998 Doug Evans <devans@seba.cygnus.com>
4262
4263 * gennltvals.def (m32r): Use common syscall.h now.
4264 (mn10300): Add entry.
4265 * nltvals.def: Regenerate.
4266
4267 * sim-engine.c (sim_engine_get_run_state): New function.
4268 * sim-engine.h (sim_engine_get_run_state): Declare it.
4269
4270 Thu Jun 11 00:50:03 1998 Doug Evans <devans@seba.cygnus.com>
4271
4272 * sim-core.h (SIM_CORE_SIGNAL_FN): New typedef.
4273 * sim-core.c (sim_core_signal): Make extern, always define.
4274
4275 Wed Jun 10 16:02:29 1998 Doug Evans <devans@seba.cygnus.com>
4276
4277 * Make-common.in (CGEN_FLAGS_TO_PASS): New variable.
4278 * cgen-ops.h (ANDIF): New macro.
4279 (ANDIF[BQHSD]I): Delete.
4280
4281 Thu Jun 4 13:53:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4282
4283 * hw-events.c (create_hw_event, delete_hw_event): Delete.
4284 (hw_event_queue_schedule, hw_event_queue_deschedule,
4285 bounce_hw_event): Fix hw-event memory corruptions found by Joyce
4286 Janczyn.
4287
4288 * hw-alloc.h (HW_NZALLOC): Define.
4289
4290 * Make-common.in (test-hw-events): Add target for testing the
4291 hw-event code.
4292
4293 Mon May 25 21:11:26 1998 Andrew Cagney <cagney@b1.cygnus.com>
4294
4295 * Make-common.in (SIM_COMMON_HW_OBJS): Add hw-handles.o and
4296 hw-instances.o.
4297 hw-handles.c, hw-instances.c, hw-handles.h, hw-instances.h: New
4298 files.
4299 * hw-main.h: Include hw-handles.h, hw-instances.h.
4300 * hw-base.h ({create,delete}_hw_{handles,instances}_data): Declare
4301 * hw-base.c (hw_create, hw_delete): Call same.
4302
4303 Mon May 25 18:55:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
4304
4305 * dv-core.c: Include hw-main.h and sim-main.h.
4306 * dv-pal.c: Include hw-main.h and sim-io.h.
4307 * dv-glue.c: Include hw-main.h.
4308
4309 * hw-main.h: New file. Move list of includes to here.
4310 * hw-base.h: From here.
4311 * Make-common.in (hw_base_headers): Rename to hw_main_headers.
4312 (hw-*.o, dv-*.o): Update.
4313 * hw-tree.c, hw-base.c, hw-properties.c, hw-ports.c, hw-device.c,
4314 hw-events.c, hw-alloc.c, sim-hw.c: Include hw-main.h instead of
4315 sim-main.h.
4316
4317 * hw-base.h (do_hw_attach_regs, do_hw_poll_read_method,
4318 do_hw_poll_read): Move declarations from here.
4319 * hw-main.h: To here.
4320
4321 * hw-base.h (struct hw_device_descriptor, hw_finish_callback):
4322 Move from here.
4323 * hw-main.h (struct hw_descriptor, hw_finish_method): To here,
4324 rename.
4325 * Make-common.in (hw-config.h): Update
4326 * hw-base.c, dv-pal.c, dv-glue.c: Update
4327
4328 * dv-glue.c, hw-device.h, hw-base.h, hw-ports.c: Rename
4329 `*_callback' to `*_method.
4330
4331 Mon May 25 18:41:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
4332
4333 * hw-base.h (set_*): Move set method macros from here.
4334 * hw-device.h: To here.
4335
4336 Mon May 25 18:21:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
4337
4338 * hw-base.h (create_hw_property_data, delete_hw_property_data):
4339 Declare.
4340
4341 * hw-base.c (hw_create, hw_delete): Call
4342 * hw-properties.c (create_hw_property_data,
4343 delete_hw_property_data): Define.
4344
4345 Mon May 25 17:40:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
4346
4347 * hw-device.c, hw-properties.c: Include hw-base.h
4348
4349 * hw-alloc.h, hw-alloc.c: New files. Move alloc code to here.
4350 * hw-device.c: From here.
4351 * hw-base.h: Include "hw-events.h".
4352
4353 * hw-base.h (create_hw_alloc_data, delete_hw_alloc_data): Declare.
4354 * hw-base.c (hw_create, hw_delete): Call.
4355 * hw-alloc.c (create_hw_alloc_data, delete_hw_alloc_data): Define.
4356
4357 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-alloc.o.
4358 (hw-alloc.o): New target.
4359
4360 Mon May 25 17:14:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
4361
4362 * hw-events.h, hw-events.c: New files. Move event code to here.
4363 * sim-hw.c: From here.
4364 * hw-base.h: Include "hw-events.h".
4365 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-events.o.
4366 (hw-events.o): New target.
4367
4368 * hw-device.h (struct hw): Add struct hw_event_data events_of_hw.
4369 * hw-events.h (struct hw_event): Replace typedef hw_event.
4370
4371 * hw-base.h (create_hw_event_data, delete_hw_event_data): Declare.
4372 * hw-base.c (hw_create, hw_delete): Call.
4373 * hw-events.c (create_hw_event_data, delete_hw_event_data): Define.
4374
4375 * dv-pal.c: Update.
4376
4377 Mon May 25 16:55:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
4378
4379 * hw-base.c (panic_hw_port_event, empty_hw_ports): Move from here.
4380 * hw-ports.c: To here.
4381
4382 * hw-base.h, hw-ports.c (create_hw_port_data,
4383 delete_hw_port_data): New functions.
4384 * hw-base.c (hw_delete, hw_create): Call same.
4385
4386 * hw-base.h (set_hw_ports, set_hw_port_event): Move set functions
4387 from here.
4388 * hw-ports.h: To here.
4389
4390 Mon May 25 16:42:48 1998 Andrew Cagney <cagney@b1.cygnus.com>
4391
4392 * hw-device.c (hw_ioctl), hw-device.h (hw_ioctl_callback): Drop
4393 PROCESSOR and CIA arguments.
4394
4395 Fri May 22 12:16:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
4396
4397 * aclocal.m4 (SIM_AC_OPTION_HW): Add enable / disable argument.
4398 Move common object files from here.
4399 * Make-common.in (SIM_COMMON_HW_OBJS): To here.
4400
4401 Thu May 21 17:57:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
4402
4403 * sim-hw.c: Include ctype.h.
4404 (do_hw_poll_read): Do not assume EAGAIN.
4405
4406 Wed May 20 04:37:57 1998 Doug Evans <devans@seba.cygnus.com>
4407
4408 * cgen-trace.c (first_insn_p): New static local.
4409 (trace_insn_init): Set it.
4410 (trace_insn_fini): Use TRACE_PREFIX.
4411 (trace_insn): Rewrite to use trace_prefix.
4412 * sim-trace.c (trace_prefix): Don't print filename arg if NULL.
4413 Adjust width accordingly.
4414
4415 * sim-profile.h (PROFILE_DATA): New member profile_any_p.
4416 (PROFILE_ANY_P,PROFILE_INSN_P,PROFILE_MEMORY): New macros.
4417 (PROFILE_SCACHE_P,PROFILE_PC_P,PROFILE_CORE_P): New macros.
4418 (PROFILE_COUNT_INSN,PROFILE_COUNT_READ,PROFILE_COUNT_WRITE): Simplify.
4419 (PROFILE_COUNT_CORE): Simplify.
4420 * sim-profile.c (profile_option_handler): Compute profile_any_p.
4421
4422 Tue May 19 23:55:30 1998 Doug Evans <devans@seba.cygnus.com>
4423
4424 * cgen-ops.h (ADDCFSI): Fix typo.
4425
4426 Sat May 16 12:44:52 1998 Doug Evans <devans@seba.cygnus.com>
4427
4428 * cgen-sim.h (CGEN_CPU): New members idesc_{read,sem}_init_p.
4429 * genmloop.sh: Use them rather than static locals.
4430
4431 * sim-engine.c (sim_engine_set_run_state): New function.
4432 * sim-engine.h (sim_engine_set_run_state): Declare.
4433 * genmloop.sh (pending_reason,pending_sigrc): New static locals.
4434 (@cpu@_engine_stop): New args reason,sigrc. All callers updated.
4435 (engine_resume): Reorganize. Allow synchronous exit from main loop.
4436
4437 Fri May 15 16:06:05 1998 Doug Evans <devans@seba.cygnus.com>
4438
4439 * cgen-trace.c (trace_insn_init): New arg first_p.
4440 All callers updated.
4441 (trace_insn_fini): New arg last_p. All callers updated.
4442 * cgen-trace.h (trace_insn_init,trace_insn_fini): Update.
4443 (TRACE_INSN_INIT,TRACE_INSN_FINI): Update.
4444 * genmloop.sh (engine_resume): Update.
4445
4446 Fri May 15 15:59:00 1998 Joyce Janczyn <janczyn@cygnus.com>
4447
4448 * Make-common.in (install-common): Run ranlib on installed copy of
4449 libsim.a.
4450
4451 Fri May 15 15:03:00 1998 Joyce Janczyn <janczyn@cygnus.com>
4452
4453 * Make-common.in (install-common): Rename and install libsim.a.
4454
4455 Tue May 12 15:23:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
4456
4457 * sim-io.c (unistd.h): Include.
4458
4459 Wed May 6 16:04:18 1998 Doug Evans <devans@seba.cygnus.com>
4460
4461 * Make-common (sim_main_headers): Sort.
4462 (cgen-*.o): Add cgen-sim.h dependency.
4463
4464 * cgen-scache.c (scache_init): Only allocate space if scache element
4465 size is non-zero.
4466 (scache_flush,scache_print_profile): Check if scache in use first.
4467
4468 * cgen-sim.h (IDESC): Provide forward declaration.
4469 (DECODE): Delete.
4470 (CGEN_CPU): Always define scache member. New members idesc,opcode.
4471 (cgen_cpu_max_extra_bytes): Declare.
4472 * cgen-utils.c (cgen_cpu_max_extra_bytes): New function.
4473
4474 * sim-cpu.h: New file. sim_cpu_base moved here.
4475 Move sim_cpu_lookup decl here.
4476 * sim-base.h: #include "sim-cpu.h".
4477 * sim-cpu.c: New file.
4478 * Make-common (sim_main_headers): Add sim-cpu.h.
4479 (sim-cpu.o): Add rule for.
4480
4481 * sim-model.c (set_model): Delete.
4482 (sim_model_set,model_set): New functions.
4483 (sim_model_install): Renamed from model_install.
4484 Don't set default model here.
4485 (model_option_handler): Rewrite --model processing.
4486 (sim_model_lookup,sim_mach_lookup): New functions.
4487 * sim-model.h (MAX_MODELS,MAX_INSNS): Delete.
4488 (insn_timing): Delete.
4489 (INSN_TIMING): New member `num'.
4490 (IMP_PROPERTIES): Always define scache_elm_size member.
4491 (MACH): New member init_cpu.
4492 (sim_machs): Renamed from machs.
4493 (sim_model_install): Renamed from model_install.
4494 (sim_model_set,sim_model_lookup,sim_mach_lookup): Declare.
4495 * sim-module.c (modules): Update.
4496
4497 * sim-profile.c (profile_print_insn): Add cpu arg to INSN_NAME macro.
4498
4499 * sim-io.c: #include <errno.h>.
4500
4501 Wed May 6 12:39:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
4502
4503 * dv-pal.c (struct hw_pal_device): Add reader.
4504 (hw_pal_finish): Initialize reader.
4505 (scan_hw_pal): Use reader.
4506
4507 * hw-base.h, sim-hw.c (do_hw_poll_read): New function.
4508 (HW_IO_EOF, HW_IO_NOT_READY): Define.
4509 * dv-pal.c: Use.
4510
4511 * sim-io.h, sim-io.c (sim_io_poll_read): New function. Copy from
4512 ../ppc/main.c sim_io_read_stdin.
4513
4514 Fri May 1 12:11:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
4515
4516 * hw-tree.h (hw_tree_print): Paramaterize with print and file
4517 arguments.
4518 * hw-tree.c: Update.
4519
4520 * hw-base.h (hw_port_event_callback): Delete CPU/CIA args.
4521 * hw-device.h (hw_io_read_buffer, hw_io_write_buffer): Delete
4522 CPU/CIA args.
4523 * hw-ports.h (hw_port_event): Ditto.
4524 * hw-ports.c (hw_port_event): Update.
4525 * hw-base.c (panic_hw_io_read_buffer, panic_hw_io_write_buffer):
4526 Update.
4527 * dv-pal.c (hw_pal_io_read_buffer, hw_pal_io_write_buffer):
4528 Update.
4529 (hw_pal_io_write_buffer): Call hw_halt not sim_engine_halt.
4530 (do_counter_event): Update.
4531 * dv-glue.c (hw_glue_io_read_buffer): Update.
4532 (hw_glue_port_event): Update.
4533
4534 * hw-device.h (SIM_DESC): Replace with struct sim_state.
4535 * hw-base.h (hw_create): Ditto.
4536 * hw-base.c (hw_create): Ditto.
4537
4538 * hw-device.c (hw_abort, hw_trace, hw_hw_event_queue_schedule,
4539 hw_event_queue_deschedule, hw_event_queue_time): Delete, moved
4540 from here to.
4541 * sim-hw.c: Here.
4542 * hw-device.h (hw_system_cpu): Declare.
4543 * sim-hw.c (hw_system_cpu): New function.
4544
4545 * sim-core.c (sim_core_map_attach, sim_core_attach): Call
4546 sim_hw_abort not hw_abort.
4547 (sim-hw.h): Include.
4548 (sim_core_read_buffer, sim_core_write_buffer): Call
4549 sim_hw_io_read_buffer and sim_hw_io_write_buffer. Do not pass CPU
4550 argument.
4551 (sim_core_set_xor): Do not pass CPU when aborting.
4552
4553 * sim-n-core.h (sim_core_read_aligned_N,
4554 sim_core_write_aligned_N): Call sim_hw_abort not hw_abort.
4555 (sim_core_read_aligned_N, sim_core_write_aligned_N): Call
4556 sim_cpu_hw_io_read_buffer and sim_cpu_hw_io_write_buffer. Does not
4557 return length.
4558
4559 * sim-hw.h: Declare sim_hw_io_{read,write}_buffer. Declare
4560 sim_hw_print.
4561 * sim-hw.c (sim_hw_io_read_buffer, sim_hw_io_write_buffer,
4562 sim_cpu_hw_io_read_buffer, sim_cpu_hw_io_write_buffer): New
4563 functions.
4564 (sim_hw_print): New function.
4565
4566 * sim-engine.h (sim_engine_vabort): Declare.
4567 * sim-engine.c (sim_engine_vabort): New function.
4568
4569 Wed Apr 29 23:58:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
4570
4571 * sim-trace.c (print_data): For floating-point numbers trace raw
4572 hex value.
4573 (trace_result_fp2): New function.
4574 * sim-trace.h (trace_result_fp2): New declaration.
4575 (TRACE_FP_RESULT2): New macro.
4576
4577 Tue Apr 28 18:28:58 1998 Geoffrey Noer <noer@cygnus.com>
4578
4579 * common/aclocal.m4: call AM_EXEEXT in SIM_AC_COMMON, define
4580 AM_CYGWIN32 and AM_EXEEXT.
4581 * common/Make-common.in: set EXEEXT, add missing EXEEXTs
4582 to run and install-common rules.
4583 * common/configure: regenerate
4584
4585 Sat Apr 25 17:45:01 1998 Andrew Cagney <cagney@b1.cygnus.com>
4586
4587 * sim-types.h (cell_word): New type.
4588 (natural_cell): Delete type.
4589
4590 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
4591
4592 * configure: Regenerated to track ../common/aclocal.m4 changes.
4593 * config.in: Ditto.
4594
4595 Sun Apr 26 15:25:07 1998 Tom Tromey <tromey@cygnus.com>
4596
4597 * acconfig.h (NEED_DECLARATION_PRINTF): Removed.
4598
4599 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
4600
4601 * configure: Regenerated to track ../common/aclocal.m4 changes.
4602 * config.in: Ditto.
4603
4604 Fri Apr 24 11:38:08 1998 Tom Tromey <tromey@cygnus.com>
4605
4606 * acconfig.h: New file.
4607 * Make-common.in (top_builddir): New macro.
4608 (INTL_LIB): Removed.
4609 (INTLLIBS): New macro.
4610 (INTLDEPS): Likewise.
4611 (LIBDEPS): Use INTLDEPS.
4612 (EXTRA_LIBS): Use INTLLIBS.
4613 * aclocal.m4 (SIM_AC_COMMON): Call CY_GNU_GETTEXT.
4614 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST,
4615 AM_LC_MESSAGES): New macros from GNU gettext.
4616
4617 Fri Apr 24 19:57:59 1998 Andrew Cagney <cagney@b1.cygnus.com>
4618
4619 * sim-config.h: Discard leading _ from macros.
4620 * sim-types.h: Ditto.
4621
4622 Wed Apr 22 14:14:19 1998 Michael Meissner <meissner@cygnus.com>
4623
4624 * Make-common.in (CSEARCH): Add -I to intl directories.
4625 (INTL_LIB): Point to libintl.a.
4626 (LIBDEPS): Add $(INTL_LIB).
4627 (EXTRA_LIBS): Ditto.
4628
4629 Tue Apr 21 12:44:27 1998 Doug Evans <devans@canuck.cygnus.com>
4630
4631 * cgen-types.h (GETHIDI,MAKEDI): Tweak.
4632
4633 * cgen-ops.h (ADDCFSI): Fix.
4634 (SUBCFSI): Tweak.
4635
4636 Tue Apr 21 13:18:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
4637
4638 * sim-types.h (signed_address, unsigned_address): Define.
4639
4640 Mon Apr 20 21:47:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4641
4642 * sim-fpu.c (sim_fpu_2d): Don't return an SNaN, convert it into a
4643 QNaN.
4644
4645 Thu Apr 16 10:30:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
4646
4647 * sim-fpu.c, sim-fpu.h (sim_fpu_fractionto, sim_fpu_tofraction):
4648 New functions, pack / unpack sim_fpu struct using raw values.
4649 (sim_fpu_is): Differentiate between negative and positive
4650 infinity.
4651
4652 Tue Apr 14 18:49:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
4653
4654 * sim-bits.h (EXTEND4): Define.
4655 (EXTEND4, EXTEND15, EXTEND11): Ditto.
4656
4657 Tue Apr 14 16:31:35 1998 John Metzler <jmetzler@cygnus.com>
4658
4659 * sim-memopt.c (parse_addr): Sunos 4.5 does not have strtol
4660 declared so we need this cast to prevent long long addresses
4661 from being misconfigures. Results in access to unmapped memory.
4662
4663 Tue Apr 14 13:19:14 1998 Doug Evans <devans@canuck.cygnus.com>
4664
4665 * Make-common.in (RUNTESTFLAGS): Define.
4666 (check): Pass RUNTESTFLAGS to recursive make.
4667
4668 Tue Apr 14 15:09:19 1998 Andrew Cagney <cagney@b1.cygnus.com>
4669
4670 * sim-info.c (sim_info): Be verbose when either VERBOSE or
4671 STATE_VERBOSE_P.
4672
4673 Sat Apr 4 23:24:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
4674
4675 * aclocal.m4 (sim-inline): By default, disable sim-inline when
4676 cross compiling.
4677
4678 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
4679
4680 * aclocal.m4 (sim-cflags): Add -fomit-frame-pointer to defaults.
4681 (sim-inline): Update to match sim-inline.[hc]
4682 * configure: Regenerated to track ../common/aclocal.m4 changes.
4683
4684 * Make-common.in (sim_main_headers): Add sim-inline.h
4685
4686 * sim-bits.h (sim-bits.c): Include when H_REVEALS_MODULE_P.
4687 selected.
4688 * sim-endian.h (sim-endian.c): Ditto.
4689
4690 * sim-events.h (_SIM_EVENTS_H_): Replace with SIM_EVENTS_H.
4691 (sim_events_set_trace): Delete unused prototype.
4692
4693 * sim-core.h (_SIM_CORE_H_): Replace with SIM_CORE_H.
4694 * sim-core.c (_SIM_CORE_C_): Ditto for SIM_CORE_C.
4695
4696 * sim-fpu.h (sim-fpu.c): Include when H_REVEALS_MODULE_P.
4697 (sim_fpu_to232i, sim_fpu_to232u, sim_fpu_i232to, sim_fpu_u232to):
4698 Comment out, not yet implemented in sim-fpu.c.
4699 (sim_fpu_zero, sim_fpu_one, sim_fpu_two, sim_fpu_qnan,
4700 sim_fpu_max32, sim_fpu_max64): Mark as EXTERN_SIM_FPU.
4701
4702 * sim-inline.h: Rewrite description.
4703 (H_REVEALS_MODULE_P, C_REVEALS_MODULE_P): Define.
4704 (SIM_MAIN_INLINE): Add inline option.
4705
4706 * sim-inline.c (semantics.c, idecode.c, engine.c, ...): Do not
4707 include generated files. Handled by generator directly.
4708
4709 Sat Apr 4 01:07:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
4710
4711 * sim-trace.c (set_trace_option_mask): Keep TRACE_ANY_P
4712 up-to-date.
4713
4714 * sim-trace.h (TRACE_ANY_P): Define.
4715 (struct _trace_data): Add trace_any_p.
4716
4717 Mon Mar 30 17:11:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
4718
4719 * run.c (main): Handle all alternatives of enum sim_stop.
4720 (main): Delete unused `asection *s'.
4721
4722 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
4723
4724 * hw-tree.h, hw-tree.c (hw_tree_vparse): New function
4725
4726 * configure: Regenerated to track ../common/aclocal.m4 changes.
4727
4728 * sim-hw.c: New file.
4729 * sim-hw.h (sim_hw_parse): Declare function.
4730 (hw-tree.h): Do not include.
4731
4732 * sim-base.h (STATE_HW): Define.
4733 (struct sim_state_base): Add member struct *hw.
4734
4735 * sim-module.c (sim-hw.h): Include.
4736 (modules): Add sim_hw_install.
4737
4738 * aclocal.m4 (sim_hw_obj): Add sim-hw.o
4739
4740 Fri Mar 27 14:55:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
4741
4742 * sim-base.h (CPU_INDEX): Define.
4743
4744 * sim-utils.c (sim_state_alloc): Initialize.
4745 * sim-module.c (sim_post_argv_init): Ditto.
4746
4747 Thu Mar 26 10:07:57 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
4748
4749 * aclocal.m4 (sim_hw_obj): Fix sed expression to generate
4750 properly formatted lists.
4751
4752 Thu Mar 26 10:37:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
4753
4754 * dv-pal.c (enum hw_pal_address_mask): From Stu Grossman, was
4755 0x2f needs to be 0x3f.
4756
4757 Thu Mar 26 09:10:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
4758
4759 * hw-tree.c (hw_tree_find_property): Return NULL when device is
4760 not found.
4761 (hw_tree_find_*_property): Clean up error message when property is
4762 not found.
4763
4764 * dv-pal.c (hw_pal_io_read_buffer): Check the smp property is
4765 present before looking for it.
4766
4767 Wed Mar 25 16:17:38 1998 Ian Carmichael <iancarm@cygnus.com>
4768
4769 * aclocal.m4 (AC_CHECK_HEADERS): Add check for fpu_control.h.
4770 (AC_CHECK_FUNCS): Add check for __setfpucw.
4771 * configure: Regenerated.
4772
4773 Wed Mar 25 09:18:34 1998 Andrew Cagney <cagney@b1.cygnus.com>
4774
4775 * dv-pal.c (hw_pal_countdown, hw_pal_countdown_value,
4776 hw_pal_timer, hw_pal_timer_value): Define.
4777 (hw_pal_io_read_buffer, hw_pal_io_write_buffer): Add timer support
4778 (do_counter_event, do_counter_read, do_counter_value,
4779 do_counter_write): new functions.
4780
4781 Tue Mar 24 12:24:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
4782
4783 * hw-tree.c (hw_printf): Send tree dump to stderr, same as other
4784 trace output.
4785
4786 * hw-base.c (hw_create): Stop searching for a device when one is
4787 found.
4788
4789 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
4790
4791 * configure: Regenerated to track ../common/aclocal.m4 changes.
4792
4793 Mon Mar 23 10:25:08 1998 Andrew Cagney <cagney@b1.cygnus.com>
4794
4795 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add second argument,
4796 appends extra devices.
4797 (SIM_AC_OPTION_HARDWARE): Substute sim_hw, a non-duplicate list of
4798 the device names.
4799
4800 * Make-common.in (hw-config.h): New target, create hw-config.h
4801 file.
4802 (SIM_HW): Definition from @sim_hw@.
4803 (hw-base.o): Depend on hw-config.h
4804
4805 Tue Mar 24 17:41:35 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
4806
4807 * Make-common.in: Get SHELL from configure.
4808 * (stamp-tvals sim-inline.c): Use $(SHELL) when invoking
4809 move-if-change. Fixes NT native build problem.
4810 * Makefile.in (nltvals.def): Use $(SHELL) when invoking
4811 move-if-change. Fixes NT native build problem.
4812 * configure: Regenerate with autoconf 2.12.1 to fix shell issues for
4813 NT native builds.
4814
4815 Sun Mar 22 16:54:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
4816
4817 * hw-device.h, hw-device.c (hw_strdup): New function.
4818
4819 * hw-base.c (hw_create): Use hw_strdup when saving a copy of the
4820 strings name, family and args.
4821 (full_name_of_hw): Use hw_strdup when returning the full path.
4822
4823 * hw-properties.c: Clean up property not found / wrong type error
4824 messages.
4825
4826 * hw-tree.c (hw_tree_parse): Finish a devices initialization
4827 before attaching any ports.
4828
4829 * hw-base.c (hw-config.): Include. Replace hardwired table.
4830
4831 * dv-glue.c: Copy over ../ppc/hw_glue.c. Update to new framework.
4832
4833 * Make-common.in: Add rule for dv-glue.o.
4834
4835 Sun Mar 22 16:45:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4836
4837 * hw-base.c (hw_finish): Move setting of trace level to here.
4838 (hw_create): From here.
4839
4840 * hw-base.h, hw-base.c (do_hw_attach_regs): Copy function from
4841 ../ppc/device_table.c.
4842
4843 * dv-pal.c (hw_pal_finish): Attach PAL device to parent bus.
4844
4845 * hw-tree.c (print_properties): Supress path when printing
4846 properties of root node.
4847
4848 Sun Mar 22 16:21:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
4849
4850 * hw-device.h (HW_TRACE): Define.
4851 (hw_trace): Declare.
4852 * hw-device.c (hw_trace): Implement function.
4853
4854 * hw-base.c (hw_create): Set hw trace level from "trace?"
4855 property.
4856
4857 * dv-core.c (dv_core_attach_address_callback): Add trace.
4858
4859 * dv-pal.c: Replace DTRACE with HW_TRACE.
4860
4861 Sun Mar 22 15:23:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
4862
4863 * hw-device.h (HW_ZALLOC, HW_MALLOC): New macros.
4864 (hw_alloc_data): Delcare.
4865 (struct hw): Add member alloc_of_hw.
4866
4867 * hw-device.c (hw_zalloc, hw_malloc, hw_free, hw_free_all): New
4868 functions. Assocate memory with a device.
4869 (stdlib.h): Include.
4870
4871 * hw-base.h (set_hw_delete): Define.
4872 (hw_delete_callback): Declare.
4873 (hw_delete): Declare.
4874
4875 * hw-base.c (hw_delete): Implement function.
4876 (struct hw_base_data): Add member to_delete.
4877 (ignore_hw_delete): New function, does nothing.
4878 (hw_create): Set the hw_delete method.
4879 (hw_create): Allocate the base type using HW_ZALLOC before setting
4880 any methods.
4881
4882 * hw-tree.h, hw-tree.c (hw_tree_delete): New function.
4883
4884 * hw-properties.c: Replace zalloc/zfree with hw_zalloc/hw_free.
4885
4886 * hw-ports.c: Replace zalloc/zfree with hw_zalloc/hw_free.
4887 (attach_hw_port_edge): Add struct hw argument
4888
4889 * dv-pal.c (hw_pal_finish): Replace zalloc/zfree with
4890 hw_zalloc/hw_free.
4891
4892 Sun Mar 22 15:09:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
4893
4894 * hw-device.h (hw_attach_address_callback,
4895 hw_detach_address_callback): Attach to a single space not a space
4896 mask. Clarify interpretation of SPACE:ADDR parameters.
4897
4898 * hw-base.c (passthrough_hw_attach_address,
4899 passthrough_hw_detach_address): Update.
4900 * dv-core.c (dv_core_attach_address_callback): Ditto.
4901 * dv-pal.c (hw_pal_attach_address): Ditto.
4902
4903 Thu Mar 19 00:41:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
4904
4905 * sim-options.h: Document additional CPU arg to OPTION_HANDLER.
4906
4907 Wed Mar 18 14:13:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
4908
4909 * Make-common.in (SIM_HW_OBJS, SIM_HW_SRC, SIM_DV_OBJS): Define.
4910 (hw-base_h, hw-device_h, hw-handles_h, hw-instances_h, hw_ports_h,
4911 hw-properties_h, hw-tree_h): Define, point at corresponding
4912 header.
4913 (hw_base_headers): Define list of headers included by hw-base.h
4914 (hw-base.o, hw-device.o, hw-instances.o, hw-handles.o, hw-ports.o,
4915 hw-properties.o, hw-tree.o): Specify dependencies.
4916 (dv-core.o, dv-pal.o): Ditto.
4917
4918 * sim-hw.h: New file.
4919
4920 * hw-device.h, hw-device.c, hw-properties.h, hw-properties.c,
4921 hw-ports.h, hw-ports.c: New files. Copied from ../ppc/device.[ch].
4922
4923 * hw-tree.h, hw-tree.c: New files. Copied from ../ppc/tree.[hc].
4924
4925 * hw-base.h, hw-base.c: new files. Copied from
4926 ../ppc/device_table.[hc].
4927
4928 * dv-core.c, dv-pal.c: New files. Copied from
4929 ../ppc/hw_{core,pal}.c
4930
4931 * sim-basics.h (struct hw): Declare.
4932 (enum port_direction, enum object_disposition): Declare.
4933
4934 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
4935
4936 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set sim_hw_obj, sim_dv_obj,
4937 sim_dv_src in Makefile. Take list of devices as parameter to m4
4938 macro..
4939
4940 * configure: Regenerated to track ../common/aclocal.m4 changes.
4941
4942 Mon Mar 16 12:37:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
4943
4944 * sim-trace.h, sim-trace.c (trace_prefix): Pass in sim_cia so that
4945 trace_prefix can abort cleanly.
4946
4947 Sat Mar 14 18:36:12 1998 Doug Evans <devans@seba.cygnus.com>
4948
4949 * dv-sockser.c, dv-sockser.h: New files.
4950 * Make-common.in (dv-sockser.o): Add rule for.
4951 * aclocal.m4: Check for fcntl.h.
4952 * config.h: Add HAVE_FCNTL_H.
4953
4954 * sim-break.c (remove_breakpoint): Fix thinko.
4955
4956 * sim-hload.c (sim_load): Provide default value of SIM_HANDLES_LMA.
4957 Use SIM_HANDLES_LMA for lma_p arg to sim_load_file.
4958
4959 1998-03-13 Fred Fish <fnf@cygnus.com>
4960
4961 * sim-base.h (struct sim_state_base): Add prog_syms and
4962 define macro STATE_PROG_SYMS.
4963 * sim-trace.c (trace_prefix): Add variables abfd, symsize,
4964 symbol_count, and asymbols. Call bfd_get_symtab_upper_bound
4965 and bfd_canonicalize_symtab, to get symbol table on first use
4966 and preserve it via STATE_PROG_SYMS for future calls to
4967 bfd_find_nearest_line.
4968
4969 Wed Mar 11 14:02:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
4970
4971 * sim-core.h, sim-core.c (sim_core_map_to_str): Delete.
4972
4973 * sim-core.c (sim_core_attach): Handle a generic number of maps -
4974 up to nr_maps, not just access_* maps.
4975
4976 * sim-profile.h (struct PROFILE_DATA): Track nr_maps different
4977 maps.
4978
4979 * sim-profile.c (profile_print_core): Make map unsigned. Iterate
4980 over nr_maps not sim_core_nr_maps.
4981
4982 * sim-events.h, sim-events.c (sim_events_watch_core): Change
4983 core_map argument to unsigned.
4984 (struct _sim_core): Ditto for struct member core_map.
4985
4986 * sim-core.h (nr_sim_core_maps, sim_core_*_map): Delete
4987
4988 * sim-basics.h (access_io, access_*_io): Define.
4989 (map_read, map_write, map_exec, map_io): Define.
4990
4991 * sim-core.c, sim-core.h (sim_core_attach): Replace argument
4992 attach with more generic mapmask.
4993 (sim_core_{read,write}_*): Change map argument to unsigned.
4994
4995 * sim-core.c (sim_core_uninstall, sim_core_attach,
4996 sim_core_detach): Iterate over nr_maps instead of
4997 sim_core_nr_maps.
4998
4999 * sim-break.c (insert_breakpoint): Write breakpoints to exec_map
5000 instead of the write_map.
5001 (remove_breakpoint): Ditto.
5002
5003 * genmloop.sh (engine_resume_full): Replace sim_core_*_map
5004 with read_map, write_map, exec_map resp.
5005
5006 * cgen-mem.h (DECLARE_GETMEM, DECLARE_SETMEM, DECLARE_GETIMEM):
5007 Ditto.
5008
5009 * cgen-utils.c (sim_disassemble_insn): Ditto.
5010
5011 * sim-hrw.c (sim_write, sim_write): Ditto.
5012
5013 * sim-utils.h, sim-utils.c (access_to_str, map_to_str,
5014 transfer_to_str): New functions.
5015
5016 Mon Mar 9 12:50:59 1998 Doug Evans <devans@seba.cygnus.com>
5017
5018 * sim-base.h (sim_state_base): New member environment.
5019 (STATE_ENVIRONMENT): New macro.
5020 * sim-config.c (current_environment): Delete.
5021 (sim_config_default): New function.
5022 (sim_config): Set STATE_ENVIRONMENT, not current_environment.
5023 * sim-config.h (current_environment,CURRENT_ENVIRONMENT): Delete.
5024 (sim_config_default): Add prototype.
5025 * sim-module.c (sim_pre_argv_init): Call sim_config_default.
5026 * sim-options.c (standard_option_handler, case OPTION_ENVIRONMENT):
5027 Set STATE_ENVIRONMENT, not current_environment.
5028
5029 Mon Mar 9 11:59:03 1998 Jim Wilson <wilson@cygnus.com>
5030
5031 * sim-fpu.c (NR_GUARDS64): Change NR_PAD32 to NR_PAD64.
5032
5033 Tue Mar 3 10:53:05 1998 Andrew Cagney <cagney@b1.cygnus.com>
5034
5035 * sim-types.h (SIGNED32, SIGNED64): Pacify GCC.
5036
5037 * sim-alu.h (ALU64_BEGIN): Make alu64_r unsigned.
5038
5039 Mon Mar 2 10:20:06 1998 Doug Evans <devans@seba.cygnus.com>
5040
5041 * Make-common.in (TAGS): Make smarter.
5042 * Makefile.in (TAGS): Ditto.
5043
5044 Fri Feb 27 19:09:57 1998 Doug Evans <devans@canuck.cygnus.com>
5045
5046 * sim-module.c (*): Fix typos in assertion tests.
5047
5048 Sat Feb 28 13:54:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
5049
5050 * sim-module.c (sim_pre_argv_init): String passed to asprintf
5051 can't be constant.
5052
5053 * sim-options.c (sim_parse_args): Ditto.
5054 (sim_args_command): Return OK, instead of nothing, for an empty
5055 command.
5056
5057 Fri Feb 27 13:29:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
5058
5059 * sim-profile.c (profile_info): Rename from profile_print. Drop
5060 misc and misc_cpu callback arguments. Use
5061 PROFILE_INFO_CPU_CALLBACK and STATE_PROFILE_INFO_CALLBACK instead.
5062 (profile_install): Install profile_info function.
5063
5064 * sim-profile.h (PROFILE_INFO_CPU_CALLBACK,
5065 STATE_PROFILE_INFO_CALLBACK): Define.
5066 (struct PROFILE_DATA): Add field info_cpu_callback.
5067 (profile_print): Delete function.
5068
5069 * sim-base.h (STATE_MODULES): Define. Replace individual
5070 STATE_*_LIST with single struct module_list.
5071
5072 * sim-module.h (MODULE_INFO_FN, MODULE_INFO_LIST): Declare.
5073 (struct module_list): Declare.
5074
5075 * sim-module.h, sim-module.c (sim_module_add_info_fn,
5076 sim_module_info): New functions.
5077 (sim_module_install): Clean up module data structures.
5078
5079 * sim-info.c (sim_info): New file. New function. Call
5080 sim_module_info.
5081
5082 * Make-common.in (sim-info.o): Define rule.
5083 (SIM_NEW_COMMON_OBJS): Add sim-info.o.
5084
5085
5086 Fri Feb 27 18:26:16 1998 Doug Evans <devans@canuck.cygnus.com>
5087
5088 * sim-base.h (sim_cpu_base): New members name, options.
5089 (sim_cpu_lookup): Add prototype.
5090 * sim-module.c (sim_pre_argv_init): Provide default names for cpus.
5091 * sim-options.h (DECLARE_OPTION_HANDLER): New argument `cpu'.
5092 (sim_add_option_table): Update prototype.
5093 * sim-options.c (sim_add_option_table): New argument `cpu'.
5094 (standard_option_handler,standard_install): Update.
5095 (sim_parse_args): Handle cpu specific options.
5096 (print_help): New static function.
5097 (sim_print_help): Call it. Print cpu specific options.
5098 (find_match): New static function.
5099 (sim_args_command): Call it. Handle cpu specific options.
5100 * sim-utils.c (sim_cpu_lookup): New function.
5101 * sim-memopt.c (memory_option_handler): Update.
5102 (sim_memopt_install): Update.
5103 * sim-model.c (model_option_handler): Update.
5104 (model_install): Update.
5105 * sim-profile.c (profile_option_handler): Update.
5106 (profile_install): Update.
5107 * sim-trace.c (trace_option_handler): Update.
5108 (trace_install): Update.
5109 * sim-watch.c (watchpoint_option_handler): Update.
5110 (sim_watchpoint_install): Update.
5111 * cgen-scache.c (scache_option_handler): Update.
5112 (scache_install): Update.
5113
5114 Wed Feb 25 11:00:26 1998 Doug Evans <devans@canuck.cygnus.com>
5115
5116 * Make-common.in (check): Run `make check' in testsuite dir.
5117
5118 Wed Feb 25 14:40:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
5119
5120 * sim-trace.c (trace_result0): New function.
5121
5122 * sim-trace.h (TRACE_FP_*, TRACE_FPU_*): Rename TRACE_FPU_*
5123 macro's to TRACE_FP_*. TRACE_FPU_* should be defined and used when
5124 tracing sim_fpu variables.
5125 (TRACE_ALU_RESULT0): Define.
5126 (TRACE_FP_RESULT_WORD): Define.
5127 (TRACE_FP_INPUT_WORD1): Define.
5128
5129 * sim-fpu.c, sim-fpu.h (sim_fpu_max32, sim_fpu_max64, sim_fpu_one,
5130 sim_fpu_two): New constants.
5131 (sim_fpu_op1, sim_fpu_op2): New types.
5132 (struct _sim_fpu): Delete member result. Re-order other members.
5133 (sim_fpu_sign, sim_fpu_exp): New functions.
5134 (sim_fpu_max, sim_fpu_min): new functions.
5135 (EXPMAX32, EXPMAX64, NR_PAD32, NR_PAD64, NR_GUARDS32, NR_GUARDS64,
5136 NORMAL_EXPMAX32, NORMAL_EXPMAX64): Define.
5137
5138 Tue Feb 24 22:45:39 1998 Doug Evans <devans@seba.cygnus.com>
5139
5140 * sim-profile.c (profile_print): Delete duplicate test of
5141 PROFILE_INSN_IDX.
5142 (profile_print_pc): Exit early if data collection not set up.
5143 (profile_print_core): Simplify by calling sim_core_map_to_str.
5144 * sim-core.h (sim_core_map_to_str): Declare.
5145 * sim-core.c (sim_core_map_to_str): Make non-static.
5146
5147 * genmloop.sh (engine_resume): Update insn_count before exiting.
5148 (engine_resume_full): Keep accurate core profile data.
5149
5150 * cgen-utils.c (sim_disassemble_insn): Don't use
5151 sim_core_read_aligned_N, it messes up profiling results.
5152
5153 Mon Feb 23 20:45:57 1998 Mark Alexander <marka@cygnus.com>
5154
5155 * nltvals.def: Regenerate with MN10300 additions.
5156
5157 Tue Feb 24 13:18:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
5158
5159 * sim-trace.h (TRACE_ALU_RESULT2): Define.
5160
5161 * sim-trace.h, sim-trace.c (trace_result_word2,
5162 trace_input_word4, trace_result_word4): New function.
5163
5164 Mon Feb 23 13:08:35 1998 Doug Evans <devans@canuck.cygnus.com>
5165
5166 * cgen-sim.h (SEM_NEXT_PC): New arg `len'.
5167
5168 * sim-xcat.h: Delete.
5169 * cgen-mem.h: Delete inclusion of sim-xcat.h.
5170 * cgen-sim.h: Ditto.
5171 * sim-alu.h: Replace sim-xcat.h with symcat.h.
5172 * sim-n-bits.h: Ditto.
5173 * sim-n-core.h: Ditto.
5174 * sim-n-endian.h: Ditto.
5175
5176 Mon Feb 23 13:19:58 1998 Michael Meissner <meissner@cygnus.com>
5177
5178 * syscall.c (cb_syscall): Handle short reads, and EOF.
5179
5180 Tue Feb 24 00:29:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
5181
5182 * sim-trace.c (print_data): case trace_fmt_fp missing break. Use
5183 sim_fpu to safely print fp_word values.
5184 (print_data): Add trace_fmt_bool and trace_fmt_addr.
5185 (trace_result_bool1, trace_result_addr1): New functions.
5186 (trace_input_bool1, trace_input_addr1): New functions.
5187
5188 * sim-trace.h (TRACE_FPU_*): Define.
5189
5190 Mon Feb 23 13:24:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
5191
5192 * sim-fpu.h (enum sim_fpu_class): Add sim_fpu_class_denorm.
5193 (sim_fpu_fpto, sim_fpu_tofp): Define.
5194
5195 Fri Feb 20 18:08:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
5196
5197 * sim-fpu.c (sim_fpu_cmp): New function.
5198
5199 Wed Feb 18 16:29:21 1998 Doug Evans <devans@canuck.cygnus.com>
5200
5201 * cgen-utils.h (sim_disassemble_insn): Use CGEN_INSN_BITSIZE
5202 instead of abuf->length.
5203 * sim-trace.c (trace_options): Have -t only trace a few useful things.
5204 (set_trace_option_mask): Renamed from set_trace_options.
5205 (set_trace_option): New function.
5206 (trace_option_handler): Update calls to set_trace_option{,_mask}.
5207 * sim-trace.h (TRACE_USEFUL_MASK): New macro.
5208
5209 Wed Feb 18 12:42:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
5210
5211 * sim-basics.h: Declare struct _sim_fpu.
5212
5213 Tue Feb 17 16:27:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
5214
5215 * sim-trace.h (TRACE_ALU_INPUT*, TRACE_ALU_RESULT): Define.
5216 (trace_prefix, trace_input*, trace_result*): Declare.
5217 (trace_one_insn): Change declaration, assume trace_prefix called.
5218 (trace_generic): Like trace_one_insn.
5219 (TRACE_ALU_IDX, TRACE_*_IDX): Change #define's to enum.
5220 (TRACE_alu, TRACE_[a-z]*): Update.
5221
5222 * sim-trace.c (trace_prefix, trace_input*, trace_result*,
5223 trace_insn, save_data, trace_idx_to_str, print_data): New
5224 functions.
5225 (trace_one_insn): Rewrite.
5226 (trace_generic): New function.
5227
5228 Tue Feb 17 17:27:30 1998 Doug Evans <devans@seba.cygnus.com>
5229
5230 * aclocal.m4 (USE_MAINTAINER_MODE): New variable.
5231
5232 * cgen-sim.h (SEMANTIC_CACHE_FN): Delete.
5233 (SEMANTIC_FN): Rewrite declaration.
5234 (DECODE): Update type of semantic_fast member.
5235 ({EX,SEM}_FN_NAME): Have only one version.
5236 * sim-base.h (sim_state_base): Delete conditionals surrounding
5237 member scache_size.
5238
5239 Tue Feb 10 18:31:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
5240
5241 * sim-load.c (sim_load_file): Print LMA/VMA according to value
5242 used.
5243
5244 Tue Feb 10 14:56:23 1998 Ian Carmichael <iancarm@cygnus.com>
5245
5246 * sim-core.c: Add missing prototypes for WITH_DEVICES.
5247 Add missing parameters to device_io calls.
5248 * sim-core.h: Add missing parameters to device_io calls.
5249
5250 Mon Feb 9 14:48:37 1998 Doug Evans <devans@canuck.cygnus.com>
5251
5252 * cgen-sim.h (DECODE): Always use switch for `read' for now.
5253 (PAREXEC): Renamed from PARALLEL_EXEC. All uses updated.
5254 (SEMANTIC{,_CACHE}_FN): Fix return type.
5255 * genmloop.sh (@cpu@_engine_run): Delete `current_state'.
5256 (engine_resume): Likewise. Make `engine' volatile. Save copy
5257 of cpu pointer in volatile object. Initialize read switch if
5258 -parallel.
5259
5260 Thu Feb 5 13:27:04 1998 Doug Evans <devans@seba.cygnus.com>
5261
5262 * cgen-sim.h (EX_FN_NAME): _exc_ -> _ex_.
5263 (SEM_INSN): New macro.
5264
5265 Tue Feb 3 16:31:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
5266
5267 * sim-run.c (sim_engine_run): Assume IMEM is 32 bit.
5268
5269 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
5270
5271 * configure: Regenerated to track ../common/aclocal.m4 changes.
5272
5273 Sun Feb 1 16:16:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
5274
5275 * sim-types.h (fp_word): New type, define according to
5276 WITH_TARGET_FLOATING_POINT_BITSIZE.
5277
5278 * aclocal.m4 (default_sim_floating_point_bitsize): Add
5279 configuration of size of floating point registers.
5280
5281 Sun Feb 1 14:02:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
5282
5283 * sim-profile.c (profile_print): Only print CPU <N> if other
5284 output is going to appear.
5285
5286 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
5287
5288 * configure: Regenerated to track ../common/aclocal.m4 changes.
5289
5290 Sat Jan 31 18:03:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
5291
5292 * sim-types.h (address_word): Typedef according to
5293 WITH_TARGET_ADDRESS_BITSIZE.
5294 (signed_cell, unsigned_cell, natural_cell): Ditto using
5295 WITH_TARGET_CELL_BITSIZE.
5296
5297 * sim-config.h (WITH_TARGET_ADDRESS_BITSIZE): Define.
5298 (WITH_TARGET_CELL_BITSIZE): Define.
5299 (WITH_HOST_WORD_BITSIZE): Delete.
5300
5301 * sim-config.c (print_sim_config): Update.
5302
5303 * aclocal.m4 (SIM_AC_OPTION_BITSIZE): Add support for
5304 configuration of address and OpenFirmware cell sizes.
5305
5306 Fri Jan 30 09:36:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
5307
5308 * sim-engine.h (sim_engine_run): Add argument nr_cpus.
5309 * sim-run.c (sim_engine_run): Update.
5310
5311 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use SET_CPU_CIA instead of
5312 CPU_CIA.
5313 * sim-run.c (sim_engine_run): Ditto.
5314
5315 * sim-resume.c (sim_resume): Obtain nr_cpus from sim_engine.
5316 (sim_resume): Pass nr_cpus to sim_engine_run.
5317
5318 * sim-engine.h (struct _sim_engine): Add member nr_cpus.
5319
5320 * sim-engine.c (sim_engine_init): Hardwire nr_cpus to
5321 MAX_NR_PROCESSORS.
5322 (sim_engine_nr_cpus) sim-engine.c, sim-engine.h: New function
5323
5324 Fri Jan 23 14:20:54 1998 Doug Evans <devans@seba.cygnus.com>
5325
5326 * Make-common.in (stamp-tvals): New rule.
5327 (targ-vals.h,targ-map.c): Depend on it.
5328 (clean): Remove stamp-tvals.
5329
5330 Tue Jan 20 21:35:13 1998 Michael Meissner <meissner@cygnus.com>
5331
5332 * sim-utils.c (sim_state_alloc): #if 0 variable that is only used
5333 in code also #if 0'ed.
5334
5335 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
5336
5337 * configure: Regenerated to track ../common/aclocal.m4 changes.
5338 * aclocal.m4: Recognize --enable-maintainer-mode.
5339
5340 Mon Jan 19 12:45:45 1998 Doug Evans <devans@seba.cygnus.com>
5341
5342 * cgen-scache.h: Deleted.
5343 * Make-common.in (cgen-run.o,cgen-scache.o): Delete cgen-scache.h dep.
5344 * cgen-scache.c: Only compile contents if WITH_SCACHE.
5345 (scache_init): Use runtime computed size of SCACHE.
5346 (scache_flush): Likewise.
5347 * cgen-mem.h (GETIMEMU[QHSD]I): Declare.
5348 ([GS]ETT{QI,UQI,HI,UHI,SI,USI,DI,UDI}): Declare.
5349 * cgen-sim.h: Scache support moved here.
5350 (PC): Redo definition.
5351 (ARGBUF,SCACHE,PARALLEL_EXEC): Provide forward decls.
5352 (DECODE): Add parallel execution support.
5353 Only include semantic label members if using switch.
5354 (SWITCH,CASE,BREAK,DEFAULT,ENDSWITCH): Portable computed goto support.
5355 (CGEN_CPU): Delete members exec_state, halt_sigrc, halt_jmp_buf.
5356 (IADDR,CIA,SEM_ARG,EX_FN_NAME,SEM_FN_NAME,RECORD_IADDR,SEM_ARGBUF,
5357 SEM_NEXT_PC,SEM_BRANCH_VIA_{CACHE,ADDR},SEM_NEW_PC_ADDR): Moved here
5358 from cgen-types.h.
5359 (engine_{stop,run,resume,halt,signal}): Delete decls.
5360 * cgen-types.h (CGEN_{XCAT3,CAT3}): Delete.
5361 (argbuf,scache): Delete forward decls.
5362 (STATE): Delete decl.
5363 * cgen-utils.c: Don't include decode.h, mem-ops.h, sem-ops.h.
5364 Include cgen-mem.h, cgen-ops.h.
5365 (engine_halt,engine_signal): Delete.
5366 ({ex,exc,sem,semc}_illegal): Delete.
5367 (sim_disassemble_insn): Result of extract fn is in bits.
5368 * genmloop.sh: Rewrite.
5369
5370 * cgen-trace.c (trace_insn): Set printed_result_p=0 if not tracing
5371 line numbers.
5372
5373 * sim-base.h (sim_state_base): Delete member `model'.
5374 (sim_cpu_base): Add member `model'.
5375 * sim-model.h (IMP_PROPERTIES): New type.
5376 (MACH): New members imp_props, models.
5377 (models): Delete decl.
5378 * sim-model.c (set_model): Update.
5379 * sim-profile.c (profile_print_model): Update.
5380
5381 * sim-utils.c (sim_state_alloc): Delete setting of cpu backlink here.
5382
5383 Fri Jan 16 12:33:09 1998 Nick Clifton <nickc@cygnus.com>
5384
5385 * cgen-trace.c (trace_insn): Call CGEN_INSN_MNEMONIC() rather than
5386 CGEN_INSN_SYNTAX().
5387
5388 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
5389
5390 * configure: Regenerated to track ../common/aclocal.m4 changes.
5391 * config.in: Ditto.
5392
5393 Mon Dec 15 23:16:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
5394
5395 * aclocal.m4 (AR): Check for sigaction.
5396
5397 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
5398
5399 * Make-common.in (sim-core.o): Depend on $(sim_main_headers).
5400
5401 * sim-config.h (WITH_TREE_PROPERTIES): Define as 0.
5402 * sim-config.c (sim_config): Replace WITH_DEVICES with
5403 WITH_TREE_PROPERTIES.
5404
5405 * configure: Regenerated to track ../common/aclocal.m4 changes.
5406
5407 Wed Dec 3 17:56:02 1997 Doug Evans <devans@canuck.cygnus.com>
5408
5409 * Make-common.in (SIM_ENVIRONMENT): New variable.
5410 (CONFIG_CFLAGS): Add it.
5411 * aclocal.m4 (SIM_AC_OPTION_ENVIRONMENT): Handle
5412 --enable-sim-environment option.
5413 * configure: Regenerated.
5414 * sim-config.h (environment support): Rewrite.
5415 * sim-config.c (current_environment): Define as enum, unconditionally.
5416 (current_alignment): Define unconditionally.
5417 (config_environment_to_a): Update.
5418 (config_alignment_to_a): Fix type of argument. Define unconditionally.
5419 (sim_config): Handle environment and alignment determination
5420 unconditionally. Delete sanity checks of current_environment,
5421 unnecessary.
5422 (print_sim_config): Update.
5423 * sim-options.c (STANDARD_OPTIONS enum): Add OPTION_ENVIRONMENT.
5424 (standard_options): Add --environment.
5425 (standard_option_handler): Likewise.
5426
5427 Fri Nov 28 12:21:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
5428
5429 * sim-alu.h: Add notes on carry vs borrow for subtraction.
5430 (ALU{,8,16,32,64}ADD): Redefine ADD macro as add overflowing.
5431 (ALU{,8,16,32,64}ADDC): Define - add carrying.
5432 (ALU{,8,16,32,64}SUB): Redefine SUB macro as subtract overflowing.
5433 (ALU{,8,16,32,64}SUBB): Define - subtract borrowing.
5434 (ALU{,8,16,32,64}SUBC): Define - tract carrying.
5435 (ALU{,8,16,32,64}ADD_CA, ALU{,8,16,32,64}ADDC_C): Replace single
5436 argument ADD_CA macro with two argument ADDC_C - add carrying with
5437 carry in.
5438 (ALU{,8,16,32,64}SUB_CA, ALU{,8,16,32,64}SUBC_X): Replace single
5439 argument SUB_CA macro with two argument SUBC_X - subtract
5440 carrying, extended.
5441 (ALU{,8,16,32,64}SUBB_B): Define - subtract borrowing with
5442 borrow-in.
5443 (ALU{,8,16,32,64}NEGC, ALU{,8,16,32,64}NEGB): Define.
5444
5445 Sun Nov 30 17:40:57 1997 Michael Meissner <meissner@cygnus.com>
5446
5447 * sim-io.c (sim_io_{syscalls,getstring}): Delete. No longer used.
5448 * sim-io.h (sim_io_syscalls): Delete.
5449
5450 Fri Nov 28 20:10:09 1997 Michael Meissner <meissner@cygnus.com>
5451
5452 * syscall.c (cb_syscall): Add missing else, so write to stdout
5453 isn't doubled.
5454
5455 * sim-alu.h (ALU{,8,16,32,64}_SET_CARRY): Provide macros to import
5456 the carry bit from the CPU's psw.
5457
5458 Fri Nov 28 11:15:05 1997 Doug Evans <devans@canuck.cygnus.com>
5459
5460 * gennltvals.sh: Redo syscall support.
5461 * nltvals.def: Regenerated.
5462
5463 Wed Nov 26 16:49:38 1997 Michael Meissner <meissner@cygnus.com>
5464
5465 * syscall.c (cb_syscall): If writing to stdout or stderr, flush
5466 the stream immediately.
5467
5468 Wed Nov 26 12:32:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
5469
5470 * sim-io.c (sim_io_getstring): Delete unused len2.
5471 (sim_io_syscalls): Ditto for sys_errno.
5472
5473 Wed Nov 26 11:18:40 1997 Doug Evans <devans@canuck.cygnus.com>
5474
5475 * syscall.c (cb_syscall): Test CB_SYSCALL struct magic number.
5476
5477 * Make-common.in (run.o): Depend on remote-sim.h.
5478 (nrun.o,sim-hload.o,sim-hrw.o): Likewise.
5479 (sim-io.o,sim-reason.o,sim-resume.o): Likewise.
5480
5481 Tue Nov 25 20:12:46 1997 Michael Meissner <meissner@cygnus.com>
5482
5483 * sim-io.c (sim_io_syscalls): Disable lseek.
5484
5485 Tue Nov 25 00:12:38 1997 Doug Evans <devans@seba.cygnus.com>
5486
5487 * gennltvals.sh: Generate syscall values for d30v.
5488
5489 * gennltvals.sh: Use libgloss/syscall.h for sparc.
5490 * nltvals.def: Regenerate.
5491
5492 * callback.c (os_stat): Make 3rd arg a host struct stat ptr.
5493 (os_fstat): Likewise. Validate fd argument.
5494 (cb_host_to_target_stat): Delete big_p arg. If HS arg is NULL,
5495 just compute target stat struct length.
5496 * syscall.c: #include "libiberty.h", <sys/types.h>, <sys/stat.h>.
5497 (ENOSYS,ENAMETOOLONG): Provide definitions if missing.
5498 (get_string): Return host errno values so they can be properly
5499 translated later.
5500 (cb_syscall): Likewise.
5501 (cb_syscall, cases open,unlink): Use get_path instead of get_string.
5502 (cb_syscall, case read): Use read_stdin for file descriptor 0.
5503 (cb_syscall, case write): Use write_stderr for file descriptor 2.
5504 (cb_syscall): Add cases for lseek, unlink, stat, fstat, time.
5505 (get_path): New function.
5506
5507 Mon Nov 24 18:56:07 1997 Michael Meissner <meissner@cygnus.com>
5508
5509 * sim-io.c (sim_io_syscalls): New function to provide system call
5510 emulation. Provide exit, open, close, read, write, lseek, and
5511 unlink.
5512 (sim_io_getstring): New function to return a string from a
5513 simulated memory location.
5514
5515 * sim-io.h (sim_io_syscalls): Add declaration.
5516
5517 Mon Nov 24 12:09:59 1997 Doug Evans <devans@seba.cygnus.com>
5518
5519 * sim-core.c (sim_core_signal): Fix spelling error in message.
5520
5521 * sim-hrw.c (sim_read): Use read map, not write map.
5522
5523 * Make-common.in (all): Add .gdbinit.
5524 * gdbinit.in: Add dump command.
5525
5526 * sim-model.c (model_options): Use '\0' for `shortopt'.
5527
5528 * sim-trace.c (trace_option_handler): Set state trace file
5529 for --trace-file in addition to cpu's values.
5530 (trace_vprintf): If cpu == NULL, try state's trace file.
5531 (trace_options): Reorganize table, reword some descriptions.
5532
5533 Sun Nov 23 10:57:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5534
5535 * sim-fpu.c (sim_fpu_abs, sim_fpu_neg, sim_fpu_inv), sim-fpu.h:
5536 New functions.
5537
5538 Sat Nov 22 19:16:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
5539
5540 * sim-reason.c (sim_stop_reason): For sim_signalled, return the
5541 signal untranslated, document problem with this.
5542
5543 * nrun.c (main): Check for a prog name of `*step'. If present,
5544 step the simulator instead of allowing it to run free.
5545
5546 * sim-signal.c (SIGQUIT): Define on _MSC_VER hosts.
5547
5548 * Make-common.in (sim_main_headers): Add sim-signal.h.
5549
5550 Fri Nov 21 09:32:32 1997 Andrew Cagney <cagney@b1.cygnus.com>
5551
5552 * sim-signal.c (sim_signal_to_host): Return 0 for SIM_SIGNONE.
5553
5554 Thu Nov 20 20:35:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5555
5556 * sim-signal.h: Start simulator signals at 64 so that host signal
5557 numbers can be detected and reported.
5558
5559 * sim-signal.h (SIM_SIGFPE), sim-signal.h: Add signal.
5560
5561 Wed Nov 19 12:02:41 1997 Doug Evans <devans@seba.cygnus.com>
5562
5563 * callback.c (cb_host_to_target_stat): Fix return values.
5564
5565 * cgen-sim.h (enum_signal_type): Delete.
5566 (engine_signal): Update prototype.
5567 * cgen-utils.c: Don't include <signal.h>.
5568 (sim_signal_to_host): Delete, lives in sim-signal.c now.
5569 (engine_signal): Update.
5570
5571 * sim-utils.c (sim_state_alloc): Call SIM_STATE_ALLOC if defined.
5572 (sim_state_free): Call SIM_STATE_FREE if defined.
5573
5574 * sim-module.c (sim_module_install): Don't leave any modules
5575 installed if one fails to install.
5576
5577 Wed Nov 19 13:25:48 1997 Michael Meissner <meissner@cygnus.com>
5578
5579 * sim-options.c: Don't include ../libiberty/alloca-conf.h any
5580 more, since alloca is not used in this file.
5581
5582 * sim-alu.h (ALU{32,64}_*): Rewrite 32 and 64 bit ALU support to
5583 correctly set the carry and overflow bits for those types.
5584 (ALU{8,16,32,64}_{ADD,SUB}_CA): Take VAL argument to add along
5585 with carry, so carry is correct after doing both adds.
5586 (ALU*): Space out '\' to make it easier to read.
5587
5588 Tue Nov 18 15:53:45 1997 Doug Evans <devans@canuck.cygnus.com>
5589
5590 * sim-core.c (sim_core_signal): Use sim_stopped instead of
5591 sim_signalled.
5592
5593 * sim-signal.c, sim-signal.h: New files.
5594 * Make-common.in (sim-signal.o): Add rule for.
5595 (SIM_NEW_COMMON_OBJS): Add sim-signal.o.
5596 * sim-abort.c: Don't include <signal.h>.
5597 * sim-basics.h: #include "sim-signal.h".
5598 * sim-break.c: Don't include <signal.h>.
5599 (sim_handle_breakpoint): Replace SIGTRAP with SIM_SIGTRAP.
5600 * sim-core.c: Don't include <signal.h>.
5601 (SIGBUS): Delete definition.
5602 (sim_core_signal): Replace SIGSEGV,SIGBUS with SIM_SIGSEGV,SIM_SIGBUS.
5603 * sim-engine.c: Don't include <signal.h>.
5604 (sim_engine_abort): Replace SIGABRT with SIM_SIGABRT.
5605 * sim-reason.c (sim_stop_reason): Call sim_signal_to_host.
5606 * sim-resume.c: Don't include <signal.h>.
5607 (SIGTRAP): Delete definition.
5608 (has_stepped): Replace SIGTRAP with SIM_SIGTRAP.
5609 * sim-stop.c: Don't include <signal.h>.
5610 (control_c_simulation): Replace SIGINT with SIM_SIGINT.
5611 * sim-watch.c: Don't include <signal.h>.
5612 (handle_watchpoint): Replace SIGINT with SIM_SIGINT.
5613
5614 * Make-common.in (SIM_NEW_COMMON_OBJS): New variable.
5615
5616 * sim-base.h (CIA_ADDR): Provide default definition.
5617 * sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
5618 * sim-break.c (sim_handle_breakpoint): Likewise.
5619
5620 Mon Nov 17 14:15:31 1997 Doug Evans <devans@seba.cygnus.com>
5621
5622 * Make-common.in (srccom): New variable.
5623
5624 * Make-common.in (DEP, COMMON_DEP_CFLAGS): Define.
5625 (LIB_OBJS): Add syscall.o.
5626 (gentmap): Pass $(NL_TARGET) to $(CC).
5627 (syscall.o): Add rule for.
5628 (sim_main_headers): Add $(SIM_EXTRA_DEPS).
5629 (sim-bits.o): Depend on $(sim-n-bits_h).
5630 (sim-load.o): Depend on callback.h.
5631
5632 * Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to
5633 cgen-mem.h, sem-ops.h renamed to cgen-ops.h.
5634 * cgen-mem.h, cgen-ops.h: New files.
5635
5636 * aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no".
5637
5638 * Makefile.in (nltvals.def): Depend on gennltvals.sh.
5639 Rewrite build rule.
5640 * callback.c: #include string.h or strings.h.
5641 #include sys/types.h and sys/stat.h.
5642 (cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare.
5643 (os_get_errno,os_open): Update.
5644 (os_stat,os_fstat): New functions.
5645 (os_init): Initialize syscall_map, errno_map, open_map.
5646 (default_callback): Add entries for os_stat, os_fstat, syscall_map,
5647 errno_map, open_map, signal_map, stat_map.
5648 (cb_read_target_syscall_maps): New function.
5649 (cb_target_to_host_syscall): New function.
5650 (cb_host_to_target_errno): Renamed from host_to_target_errno.
5651 (cb_target_to_host_open): Renamed from target_to_host_open.
5652 (store): New function.
5653 (cb_host_to_target_stat): New function.
5654 * syscall.c: New file.
5655 * gentmap.c (sys_tdefs): New global.
5656 (gen_targ_vals_h): Output target syscall numbers.
5657 (gen_targ_map_c): Update. Output target syscall translation map.
5658 * gentvals.sh: New first argument `target'. Preface table with
5659 #ifdef NL_TARGET_$target if non-null target passed.
5660 * gennltvals.sh: New file.
5661 * nltvals.def: Regenerated.
5662
5663 Fri Nov 14 11:33:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
5664
5665 * sim-n-core.h (sim_core_read_unaligned_N): Return static
5666 sim_core_dummy_M.
5667 (sim_core_dummy_M): Declare.
5668
5669 Wed Nov 12 18:16:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
5670
5671 * sim-core.c (sim_core_signal): Print the address of the
5672 instruction.
5673
5674 Thu Nov 13 11:49:41 1997 Doug Evans <devans@seba.cygnus.com>
5675
5676 * sim-base.h (sim_state_base): Move `magic' to end of struct.
5677
5678 * sim-base.h (sim_state_base): Add member trace_data.
5679 (STATE_TRACE_DATA): New macro.
5680 * sim-trace.h (TRACE_DEBUG_IDX,TRACE_debug): New macros.
5681 ({WITH_,}TRACE_DEBUG_P): New macros.
5682 (STATE_TRACE_FLAGS,STRACE_P,STRACE_DEBUG_P): New macros.
5683 (_sim_cpu): Delete forward reference.
5684 (debug_printf): Update.
5685 * sim-trace.c (OPTION_TRACE_DEBUG): Define.
5686 (trace_options): Add --trace-debug.
5687 (set_trace_options): Handle it.
5688 (trace_option_handler): Likewise.
5689 (trace_install): Init state trace_data struct.
5690 (trace_uninstall): Close state trace file.
5691 * sim-events.c (ETRACE): Only print source file and line number if
5692 --trace-debug.
5693 * sim-n-core.h (sim_core_trace_M): Likewise.
5694
5695 * sim-core.c (sim_core_signal): Add missing "\n" in message.
5696
5697 1997-11-13 Felix Lee <flee@cygnus.com>
5698
5699 * sim-n-core.h (sim_core_read_unaligned_N): illegal empty
5700 initializer.
5701 * sim-types.h (unsigned128,signed128): fix typo for MSVC.
5702
5703 Wed Nov 12 12:18:08 1997 Doug Evans <devans@canuck.cygnus.com>
5704
5705 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Fix typo.
5706
5707 * Make-common.in (BUILT_SRC_FROM_COMMON): Remove files no longer
5708 built this way.
5709 (sim-config.o): Remove non-existent $(sim-nconfig_h) dependency.
5710 (clean): Don't delete $(BUILT_SRC_FROM_COMMON) if building in
5711 source tree.
5712
5713 Tue Nov 11 13:28:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
5714
5715 * sim-events.c (sim_events_process): Re-compute the time -
5716 update_time_from_event - as each event is processed. Reverses
5717 previous change.
5718
5719 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
5720
5721 * callback.c (os_poll_quit): Replace _WIN32 with _MSC_VER.
5722
5723 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
5724
5725 * sim-events.c (sim_events_process): Delete redundant call to
5726 update_time_from_event.
5727 (sim_events_slip): Always decrement time_from_event.
5728 (sim_events_tick, sim_events_deschedule, update_time_from_event):
5729 Delete assertion that time_from_event >=0 when work in queue, no
5730 longer applicable.
5731
5732 Thu Nov 6 12:06:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
5733
5734 * sim-options.c (STANDARD_OPTIONS): Change OPTION_* to an enum.
5735 (standard_option_handler): Update.
5736
5737 * sim-options.h: Clarify documentation.
5738 (OPTION_LONG_ONLY_P): Delete definition.
5739 (OPTION_VALID_P): Define.
5740
5741 * sim-options.c (sim_print_help): Allow short only options.
5742 (sim_parse_args): Ditto.
5743 (sim_args_command): Skip short only options.
5744 (sim_parse_args): Allocate space for NUM_OPTS not just 256. Make
5745 separate entries for short and long options in the HANDLERS and
5746 ORIG_VAL tables.
5747 (sim_parse_args): Disable argument permutation.
5748
5749 Wed Nov 5 13:40:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
5750
5751 * sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N):
5752 Add argument M, size of data type.
5753 (sim_core_read_misaligned_3, sim_core_write_misaligned_3):
5754 Declare, ditto for 5, 6 & 7 byte transfers.
5755 (sim_core_write_unaligned_1, sim_core_write_unaligned_1): Define
5756 as aligned variant.
5757
5758 * sim-n-core.h (sim_core_trace_M): Rename from
5759 sim_core_trace_N. Add nr_bytes argument. Replace transfer argument
5760 with transfer type. Print transfer direction. Handle 1 and 2 byte
5761 transfers.
5762 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Trace
5763 unaligned accesses.
5764 (unsigned_M, T2H_M, H2T_M): Rename from unsigned_N, T2H_N, H2T_N.
5765 Update all functions.
5766
5767 * sim-core.c: Generate functions starting with 16 not 1.
5768 (sim_core_read_unaligned_3): Generate. Ditto for 3 byte write and
5769 all 5, 6 & 7 byte transfers.
5770
5771 * sim-n-core.h (sim_core_read_misaligned_N,
5772 sim_core_write_misaligned_N): Implement.
5773
5774 Mon Nov 3 15:03:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
5775
5776 * sim-endian.h (U16_8): Implement
5777
5778 * sim-endian.c (sim_endian_split_16, sim_endian_join_16): New functions
5779
5780 * sim-endian.h (VL8_16, VH8_16): Implement.
5781
5782 * sim-memopt.c (memory_option_handler): Typecast 64bit value to
5783 long in printf.
5784 (memory_option_handler): Only zalloc modulo bytes when non-zero.
5785 (memory_option_handler): Skip comma in alias address list
5786
5787 Fri Oct 31 13:03:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
5788
5789 * sim-memopt.c (do_memopt_add, do_memopt_delete): Add level and
5790 space params.
5791 (parse_size, parse_addr): New functions
5792 (memory_option_handler, memory_options): Parse address & size
5793 using new functions. Pass level, space, modulo to do_memopt_add &
5794 do_memopt_del.
5795
5796 * sim-memopt.h (struct _sim_memopt): Add level & space fields.
5797
5798 * sim-core.h (sim_core_arrach, sim_core_detach): Replace
5799 `attach_type attach' argument with `unsigned level' argument.
5800 Document.
5801
5802 * sim-core.c (new_sim_core_mapping, sim_core_map_attach,
5803 sim_core_attach): Replace argument attach with level. Update
5804 verification of arguments.
5805 (sim_core_map_detach, sim_core_detach): Replace argument attach
5806 with level.
5807
5808 * sim-basics.h (enum _attach_type): Delete.
5809
5810 Thu Oct 30 13:45:00 1997 Doug Evans <devans@seba.cygnus.com>
5811
5812 * sim-core.h (sim_core_write_8): Define.
5813
5814 Tue Oct 28 12:29:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5815
5816 * sim-bits.h: Document ROTn macro.
5817
5818 * sim-endian.h (H2T): Handle 16 byte variables.
5819
5820 * sim-n-core.h (sim_core_read_unaligned_N): Return a dummy when an
5821 error.
5822
5823 * sim-core.c: Do not generate sim_core_*_word.
5824
5825 * sim-n-core.h (sim_core_trace_N): Add line_nr argument.
5826 (sim_core_write_aligned_N, sim_core_read_aligned_N): Update.
5827
5828 * sim-core.h (sim_core_read_unaligned_word,
5829 sim_core_read_aligned_word, sim_core_read_word,
5830 sim_core_write_unaligned_word, sim_core_write_aligned_word,
5831 sim_core_write_word): Change to macros that map onto sim_core_*_N.
5832
5833 Mon Oct 27 11:25:10 1997 Doug Evans <devans@canuck.cygnus.com>
5834
5835 * sim-n-endian.h: Add TAGS entrys for 16 byte versions.
5836
5837 * sim-endian.h: Disable 16 byte support.
5838
5839 Mon Oct 27 12:00:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
5840
5841 * sim-endian.c (_SWAP_16): Define. Generate 126 bit swap code.
5842
5843 * sim-n-core.h (sim_core_trace_N): New function.
5844 (sim_core_read_aligned_N, sim_core_write_aligned_N): Use,
5845 (sim_core_read_unaligned_N): Do not retyrn bogus value wden error.
5846
5847 * sim-endian.h: Add 128 bit variant.
5848
5849 * sim-core.h, sim-core.c: Add 128 bit variant.
5850
5851 * sim-types.h: Add signed128 and unsigned128 types using a struct.
5852
5853 Fri Oct 24 11:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
5854
5855 * sim-events.c (sim_events_process): Clear events->work_pending.
5856 (sim_events_tickn, sim_events_tick): Accumulate, instead of
5857 setting, nr_ticks_to_process.
5858 (sim_events_preprocess): Allow nr_ticks_to_process to be non-zero
5859 when the event queue isn't next.
5860
5861 * sim-events.h, sim-events.c (sim_events_slip): New function.
5862
5863 Wed Oct 22 14:18:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5864
5865 * sim-hload.c (sim_load): Pass lma_p==0 and do_load=sim_load.
5866
5867 * sim-utils.h, sim-load.c (sim_load_file): Add lma_p and do_load
5868 arguments.
5869
5870 Tue Oct 21 18:37:57 1997 Doug Evans <devans@canuck.cygnus.com>
5871
5872 * nrun.c (main): Remove useless test of name != NULL.
5873 Exit if bfd_openr fails. Call bfd_check_format after bfd_openr.
5874
5875 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5876
5877 * sim-fpu.c (EXPMAX): Type is unsigned.
5878 (MIN_INT, MAX_INT): Type is signed64.
5879 (i2fpu): Type of val is signed64.
5880
5881 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5882
5883 * sim-profile.h (PROFILE_PC_BUCKET_SIZE): Treat a shift of zero as
5884 a bucket size of zero.
5885
5886 * sim-profile.c (OPTION_PROFILE_PC_GRANULARITY,
5887 OPTION_PROFILE_PC): Define.
5888 (profile_option_handler): Add support for --profile-pc and
5889 --profile-pc-granularity options.
5890 (profile_pc_init): When possible, compute nr buckets from bucket
5891 size.
5892
5893 * sim-profile.c (profile_pc_init): Align the profile-pc end
5894 address with the profile-pc bucket size.
5895
5896 * sim-profile.h (PROFILE_PC_NR_BUCKETS): Rename PROFILE_PC_SIZE to
5897 something less ambiguous.
5898 (PROFILE_PC_BUCKET_SIZE): Ditto for PROFILE_PC_SAMPLE_SIZE.
5899
5900 * sim-profile.c (profile_pc_cleanup): New function. Move
5901 profile_pc_uninstall code to here.
5902 (profile_pc_uninstall): Call.
5903 (profile_pc_init): Call.
5904
5905 Mon Oct 20 17:23:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
5906
5907 * sim-profile.c (profile_print_pc): Dump pc profile to dmon.out
5908 file using BSD gprof format.
5909
5910 * sim-bits.h (LSBIT, MSBIT, BIT): Force result to type
5911 unsigned_word.
5912 (LSBIT8, LSBIT16, LSBIT32, LSBIT64, MSBIT8, MSBIT16, MSBIT32,
5913 MSBIT64): Force result to unsignedN.
5914
5915 Thu Oct 16 11:38:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
5916
5917 * sim-alu.h (ALU16_BEGIN, ALU32_BEGIN, ALU64_BEGIN): Drop opening
5918 brace from macro.
5919 (ALU8_BEGIN, ALU8_SET, ALU8_ADD, ALU8_SUB, ALU8_NEGATE): Define.
5920 (ALU16_ADD, ALU16_SUB, ALU16_NEGATE): Simplify arrithmetic.
5921 (ALU32_ADD, ALU32_SUB, ALU32_NEGATE): Simplify arrithmetic.
5922 (ALU64_ADD, ALU64_SUB, ALU64_NEGATE): Simplify arrithmetic.
5923
5924 Wed Oct 15 09:24:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
5925
5926 * sim-core.h (struct _sim_core_mapping): Change free_buffer to
5927 type void*.
5928
5929 * sim-core.c (sim_core_uninstall, new_sim_core_mapping,
5930 sim_core_map_attach, sim_core_map_detach): Change free_buffer to
5931 type void*.
5932 (sim_core_attach): Rename buffer_freed to free_buffer, type
5933 void*. Ensure that allocated buffer is alligned according to
5934 region's address.
5935
5936 Mon Oct 13 11:34:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
5937
5938 * sim-alu.h (ALU64_HAD_OVERFLOW): Define.
5939 (ALU64_SUB): Define.
5940
5941 * Make-common.in (all): Build SIM_EXTRA_ALL first.
5942 (.gdbinit): Remove dependencies, generate once per build.
5943
5944 Tue Oct 14 19:20:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
5945
5946 * sim-n-core.h (sim_core_read_aligned_N,
5947 sim_core_write_aligned_N): Make xaddr param type address_word not
5948 unsigned_word.
5949
5950 Fri Oct 3 09:49:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
5951
5952 * sim-fpu.h, sim-fpu.c: Rewrite. Change sim_fpu object to an
5953 unpacked floating point struct. Pass sim_fpu object by reference.
5954 Add preliminary support for rounding modes.
5955
5956 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5957
5958 * configure: Regenerated to track ../common/aclocal.m4 changes.
5959
5960 Thu Oct 2 19:43:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
5961
5962 * aclocal.m4 (sim-bitsize): Fix typo, WITH_TARGET_WORD_BITSIZE not
5963 WITH_TARGET_BITSIZE.
5964
5965 Thu Sep 25 23:20:20 1997 Felix Lee <flee@yin.cygnus.com>
5966
5967 * sim-profile.c (profile_print_core): label needs empty statement.
5968
5969 Thu Sep 25 11:20:47 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
5970
5971 * sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC
5972 and zfree instead of xmalloc and free. Prevents warnings.
5973
5974 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
5975
5976 * configure: Regenerated to track ../common/aclocal.m4 changes.
5977
5978 Wed Sep 24 17:23:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
5979
5980 * Make-common.in (SIM_BITSIZE): Assign from configured value.
5981 (CONFIG_CFLAGS): Add SIM_BITSIZE.
5982
5983 * aclocal.m4 (--enable-sim-bitsize): Developer option for
5984 controling the bitsize/msb of the target.
5985
5986 Wed Sep 24 17:41:40 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
5987
5988 * Make-common.in: New files sim-break.c, sim-break.h.
5989 * sim-base.h: Add point to breakpoint list to sim_state_base.
5990 * sim-break.c sim-break.h: New modules that implement intrinsic
5991 breakpoint support.
5992 * sim-module.c: Add breakpoint module.
5993
5994 Tue Sep 23 00:26:39 1997 Felix Lee <flee@yin.cygnus.com>
5995
5996 * sim-events.c (SIM_EVENTS_POLL_RATE): poll more often than once
5997 an hour.
5998 * sim-n-core.h (WITH_XOR_ENDIAN): MSVC barfs on
5999 if (0) { 1 % 0; }
6000 * sim-core.c (sim_core_xor_write_buffer): WITH_XOR_ENDIAN + 1.
6001 (SIGBUS) define for Windows.
6002 * sim-trace.c (trace_printf,debug_printf): added ALMOST_STDC.
6003 * sim-resume.c: define SIGTRAP for windows.
6004 * sim-xcat.h: use token pasting if ALMOST_STDC.
6005
6006 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
6007
6008 * Make-common.in (SIM_SCACHE, SIM_DEFAULT_MODEL): Assign
6009 configured values.
6010 (CONFIG_CFLAGS): Add same.
6011
6012 Mon Sep 22 17:20:27 1997 Felix Lee <flee@cygnus.com>
6013
6014 * sim-types.h (SIGNED64): ##i64 when _MSC_VER, not _WIN32.
6015 (SIGNED32): use ##i32.
6016
6017 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
6018
6019 * configure: Regenerated to track ../common/aclocal.m4 changes.
6020
6021 Tue Sep 23 10:07:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
6022
6023 * aclocal.m4 (sim-endian): Simplify logic determining [default]
6024 endian of target.
6025
6026 * Make-common.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
6027 SIM_HOSTENDIAN, SIM_RESERVED_BITS, SIM_ASSERT, SIM_FLOAT,
6028 SIM_HARDWARE, SIM_INLINE, SIM_PACKAGES, SIM_REGPARM, SIM_SMP,
6029 SIM_STDCALL, SIM_XOR_ENDIAN): Assign configured values.
6030 (CONFIG_CFLAGS): Add same.
6031
6032 * aclocal.m4: Perform AC_SUBST on optional options.
6033
6034 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
6035
6036 * sim-config.h (WITH_DEFAULT_ALIGNMENT): Don't hardwire any alignment.
6037
6038 * sim-options.c (standard_option_handler): Typo in warning message.
6039
6040 * sim-base.h (STATE_MODEL): Make conditional on SIM_HAVE_MODEL.
6041
6042 * sim-profile.c (profile_print_insn): Check 0 .. MAX_INSN for any
6043 insn count. Make count conditional on there being a valid
6044 INSN_NAME.
6045 (profile_pc_init): Make default PC profile frequency an arbitrary
6046 256.
6047
6048 * sim-base.h: Ditto.
6049
6050 * sim-profile.h (WITH_PROFILE_MODEL_P): Only enable modeling when
6051 SIM_HAVE_MODEL.
6052
6053 * sim-model.h (struct MACH): Depreciate, to be replaced by bfd
6054 archure struct.
6055
6056 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
6057
6058 * configure: Regenerated to track ../common/aclocal.m4 changes.
6059
6060 Mon Sep 22 11:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
6061
6062 * aclocal.m4 (sim_alignment): Simplify logic for selecting the
6063 configured alignment.
6064
6065 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
6066
6067 * configure: Regenerated to track ../common/aclocal.m4 changes.
6068
6069 Fri Sep 19 17:26:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
6070
6071 * sim-config.c (sim_config): Check for default alignment.
6072
6073 * sim-options.c (standard_option_handler): Add alignment option.
6074
6075 * aclocal.m4 (sim_alignment): Allow configuration of hardwired and
6076 default alignment requirements on memory accesses.
6077
6078 Fri Sep 19 11:51:35 1997 Jeffrey A Law (law@cygnus.com)
6079
6080 * sim-load.c (sim_load_file): Return failure if the executable
6081 had no loadable sections.
6082
6083 Wed Sep 17 13:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
6084
6085 * sim-events.c (ETRACE): Use trace_printf not sim_io_printf for
6086 trace output.
6087
6088 * sim-core.c (sim_core_signal): When bad access halt simulator
6089 SIGSEGV / SIGBUS instead of aborting.
6090 (signal.h): Include.
6091
6092 * sim-watch.c (sim_watchpoint_install): Handler for watchpoint
6093 options was missing.
6094
6095 * sim-bits.h (MOVED): Define
6096
6097 Wed Sep 17 10:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
6098
6099 * sim-alu.h (ALU32_HAD_OVERFLOW): Pacify GCC, Use MSBIT instead of
6100 BIT.
6101
6102 * sim-bits.h (LSBIT, MSBIT): Check for overflow of shift value.
6103
6104 * sim-bits.c: Add 8 bit versions of bit macros.
6105
6106 * sim-bits.h: Ditto.
6107
6108 Tue Sep 16 16:15:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
6109
6110 * sim-bits.c (LSSEXT, MSSEXT): Replace SEXT.
6111 (LSINSERTED, MSINSERTED): Ditto for INSERTED.
6112
6113 * sim-n-bits.h (MSSEXTn, LSSEXTn): Replace SEXTn.
6114 (LSINSERTDn, MSINSERTEDN): Ditto for INSERTEDn.
6115
6116 * sim-bits.h (SEXT*): Define as MSEXT/LSEXT.
6117 (INSERTED*): Ditto for LSINSERTED/MSINSERTED.
6118
6119 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
6120
6121 * aclocal.m4 (SIM_AC_COMMON): Add optional config.h file argument.
6122 configure.in: Output to cconfig.h instead of config.h.
6123
6124 * configure: Regenerated to track ../common/aclocal.m4 changes.
6125
6126 Mon Sep 15 15:39:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
6127
6128 * sim-utils.c (sim_analyze_program): Set STATE_ARCHITECTURE from
6129 BFD if known.
6130
6131 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
6132
6133 * callback.c (os_write): divert stdout and stderr to their
6134 respective hooks.
6135
6136 Thu Sep 11 10:08:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
6137
6138 * sim-profile.c (profile_print_speed): Call
6139 sim_events_elapsed_time instead of PROFILE_EXEC_TIME for moment.
6140
6141 * sim-events.c (sim_events_elapsed_time): New function return nr
6142 host MS consumed by the simulator.
6143 (sim_watch_valid): Use.
6144
6145 * sim-module.c (modules): Install sim_events very very early.
6146
6147 * sim-profile.c (profile_print): Call profile_print_pc.
6148 (print_bar):
6149 (profile_pc_init): New function, set up processor for PC
6150 profiling.
6151 (profile_print_pc): New function, print a PC profile.
6152 (profile_pc_event): New function, sample PC.
6153
6154 * sim-profile.h (PROFILE_PC_COUNT, PROFILE_PC_START,
6155 PROFILE_PC_END, PROFILE_PC_SHIFT, PROFILE_PC_SAMPLE_SIZE): Add to
6156 profile struct.
6157
6158 * sim-options.c (sim_print_help): Pacify GCC.
6159
6160 * sim-n-core.h (sim_core_read_aligned_N,
6161 sim_core_write_aligned_N): Add un-conditional profile call.
6162 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Add
6163 profile call when aligned read/write isn't used.
6164
6165 * sim-base.h: Include sim-profile, sim-model after sim-core &
6166 sim-events allow sim-core to define useful values.
6167
6168 * sim-profile.c (OPTION_PROFILE_CORE): Define.
6169 (profile_option_handler, profile_options): Add support for
6170 --profile-core option.
6171 (print_bar): Include when core profiling.
6172 (profile_print_core): New function, print core profile.
6173
6174 * sim-config.c (print_sim_config): Print profile status.
6175
6176 * sim-profile.h (PROFILE_NEXT_IDX, PROFILE_core,
6177 WITH_PROFILE_PC_P): Define.
6178 (PROFILE_CORE_COUNT): Count each core-map/size separatly.
6179 (PROFILE_COUNT_CORE): Define.
6180
6181 Thu Sep 11 08:44:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
6182
6183 * sim-watch.c (handle_watchpoint): Pass a char** index into the
6184 interrupt_names array as the data.
6185 (sim-watch.h): Document.
6186
6187 Wed Sep 10 16:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6188
6189 * sim-options.c (sim_print_help): When the doc string is to long
6190 word wrap it.
6191
6192 * sim-watch.c (sim_watchpoint_install): Use option.doc_name so
6193 that only the first few the watch options are listed. Generate
6194 meanginful usage messages.
6195
6196 * sim-options.h (struct OPTION): Clarify use of doc_name field
6197
6198 Wed Sep 10 13:23:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
6199
6200 * sim-options.c (OPTION_ARCHITECTURE_INFO): New option.
6201 (standard_option_handler): Handle --architecture-info.
6202
6203 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
6204
6205 * sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid
6206 illegal zero-sized array.
6207 * sim-core.c (sim_core_xor_read_buffer): same.
6208
6209 Tue Sep 9 11:20:35 1997 Doug Evans <dje@canuck.cygnus.com>
6210
6211 * nltvals.def: Regenerate.
6212
6213 Tue Sep 9 02:10:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
6214
6215 * sim-fpu.c (DP_FRACHIGH2): Define LL using SIGNED64.
6216
6217 Mon Sep 8 12:22:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
6218
6219 * sim-bits.c (MASKED): Delete.
6220 (EXTRACTED): Delete.
6221 (LSEXTRACTED, MSEXTRACTED): New functions.
6222
6223 * sim-n-bits.h (MASKEDn): Delete, define as MSMASKED or LSMASKED.
6224 (MSMASKEDn, LSMASKEDn): Add last argument.
6225 (MSMASK*): Ditto.
6226
6227 * sim-bits.h (EXTEND8, EXTEND16): Define.
6228 (EXTRACTED64): Define as 64 bit extract, not 32 bit.
6229
6230 * sim-run.c (sim_engine_run): Use CPU_CIA macro.
6231
6232 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use CPU_CIA to get at
6233 current instruction address.
6234
6235 * sim-inline.h (*_ENGINE): Define.
6236
6237 Fri Sep 5 08:39:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
6238
6239 * sim-core.c (sim_core_attach): Fix checks of modulo/mask.
6240
6241 * sim-watch.c (delete_watchpoint): Delete by ident and type.
6242 (watch_option_handler): Call delete_watchpoint with ident or type.
6243 (sim_watchpoint_install): Create interrupt specific watchpoint
6244 commands on the fly.
6245 (do_watchpoint_create): New function, create a watch point using
6246 type/int-nr info encoded in the option nr.
6247 (do_watchpoint_info): New function. List active watchpoints.
6248
6249 * sim-watch.h: Change data structure to a list.
6250
6251 * sim-memopt.c (memory_option_handler): Require explicit "all"
6252 before deleting all memory regions.
6253
6254 * sim-utils.c (sim_do_commandf): New function, printf version of
6255 sim_do_command.
6256
6257 * sim-basics.h (asprintf, vasprintf): Hack, define for CYGWIN32.
6258
6259 * sim-alu.h (ALU64_ADD): Use explicit MSEXTRACTED64, do not assume
6260 bit endianness.
6261 (SIGNED64, UNSIGNED64): Delete.
6262 (ALU64_ADD): Don't rely on bit endianness.
6263 (ALU64_BEGIN): Define.
6264
6265 * sim-n-bits.h (MSEXTRACTEDn, LSEXTRACTED): New functions.
6266 (EXTRACTEDn): Delete, define as either LSEXTRACTED or MSEXTRACTED.
6267
6268 * sim-types.h (SIGNED64, UNSIGNED64): New macros, attach relevant
6269 suffix - u64, LL - to 64 bit constants.
6270
6271 Thu Sep 4 09:27:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
6272
6273 * sim-config.c (sim_config): Add assert for SIM_MAGIC_NUMBER.
6274
6275 * sim-utils.h (NZALLOC): Define - zalloc * N.
6276
6277 * sim-hrw.c (sim_read, sim_write): New file. Provide generic
6278 implementation of read/write functions.
6279
6280 * Make-common.in (sim-hrw.o): New target.
6281
6282 * sim-base.h (STATE_MEMOPT_P): Delete, simulators _always_ add
6283 memory.
6284
6285 * sim-memopt.c (memory_option_handler): Implement memory-size
6286 command. Implement memory-alias command. Let memory-delete delete
6287 all memory regions.
6288 (add_memopt): New function. Add a memory region.
6289 (do_memopt_delete): New function. Delete a memory region.
6290
6291 * sim-utils.c (sim_elapsed_time_get): Never return zero.
6292
6293 * sim-core.c (sim_core_detach): New function.
6294 (sim_core_map_detach): New function. Perform the actual detach.
6295 (sim_core_init): Move initialization code from here.
6296 (sim_core_install): To here.
6297 (sim_core_uninstall): And here.
6298
6299 * sim-module.c: Add memopt module.
6300
6301 * sim-base.h (STATE_MEMOPT, STATE_MEMOPT_P): Add memopt to
6302 simulator base type.
6303
6304 * Make-common.in (sim_main_headers): Add sim-memopt.h
6305 (sim-memopt.o): New target.
6306
6307 * sim-core.c (sim_core_install): Add core_options to the option
6308 table.
6309
6310 * sim-watch.c (watch_options): Make --delete-watch a synonym for
6311 --watch-delete.
6312
6313 * sim-config.h (WITH_MODULO_MEMORY): Define as 0. Update
6314 comments.
6315
6316 * sim-core.h (struct _sim_core_mapping): Change nr_bytes to type
6317 address_word, add mask member.
6318
6319 * sim-core.h, sim-core.c (sim_core_attach): Make nr_bytes of type
6320 address_word, allow for 64bit targets in 32bit host. Add modulo
6321 argument.
6322 (sim_core_map_attach): Ditto.
6323 (new_sim_core_mapping): Ditto.
6324 (sim_core_translate): Mask address when modulo memory.
6325
6326 Wed Sep 3 17:32:54 1997 Doug Evans <dje@seba.cygnus.com>
6327
6328 * sim-hload.c (sim_load): Add assert for SIM_MAGIC_NUMBER.
6329
6330 * gdbinit.in: New file.
6331 * aclocal.m4 (SIM_AC_OUTPUT): Build .gdbinit.
6332 * Make-common.in (distclean): Delete .gdbinit.
6333 (.gdbinit): Add rule for.
6334 * configure: Regenerated to track ../common/aclocal.m4 changes.
6335
6336 * Make-common.in (cgen-run.o): Add rule for.
6337
6338 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6339
6340 * sim-resume.c (sim_resume): Suspend/resume the simulator.
6341
6342 * sim-events.c (sim_watch_valid): Compute total elapsed time from
6343 both resumed and previous elapsed time.
6344 (sim_events_init): Set initial_wallclock and current_wallclock to
6345 zero.
6346 (sim_events_install): Install sim_events_suspend and
6347 sim_events_resume.
6348 (sim_events_watch_clock): Allow for suspended simulator when
6349 computing the time of the clock event.
6350
6351 * sim-events.h (struct _sim_event): Add resume_wallclock, rename
6352 initial_wallclock to elapsed_wallclock, set both to zero.
6353 (sim_events_init, sim_events_uninstall): Delete prototypes.
6354
6355 * sim-module.h (MODULE_SUSPEND_FN, MODULE_RESUME_FN): Define types.
6356
6357 * sim-module.c(sim_module_resume, sim_module_suspend): New
6358 functions.
6359
6360 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6361
6362 * sim-core.c (sim_core_map_attach): Clarify memory overlap error
6363 message.
6364
6365 Tue Sep 2 14:57:06 1997 Doug Evans <dje@canuck.cygnus.com>
6366
6367 * Makefile.in (TAGS): Add support for "/* TAGS: foo */" marker.
6368 * Make-common.in (TAGS): Likewise.
6369 * sim-n-bits.h: Add TAGS comments for all functions.
6370 * sim-n-core.h: Likewise.
6371 * sim-n-endian.h: Likewise.
6372
6373 Mon Sep 1 10:50:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
6374
6375 * sim-utils.c (sim_state_alloc): Set CPU backlinks, callback and
6376 kind.
6377
6378 * sim-base.h (sim_state_alloc): Add callback and kind arguments.
6379
6380 * sim-base.h (INVALID_INSTRUCTION_ADDRESS): Add default
6381 definition.
6382
6383 Sat Aug 30 09:47:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6384
6385 * sim-fpu.c (DP_GARDMSB, ...): Make unsigned.
6386 (DP_FRACHIGH, DP_FRACHIGH2, ..): Use MSMASK to avoid LL.
6387
6388 Fri Aug 29 13:37:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
6389
6390 * sim-core.c (sim_core_map_attach): Cast attach enum to int.
6391 (sim_core_xor_read_buffer, sim_core_xor_write_buffer): Make
6392 nr_transfered and nr_this_transfer unsigned.
6393
6394 * sim-events.c (sim_events_tickn): N is signed, as limited to
6395 MAXINT.
6396
6397 * sim-n-endian.h (offset_N): Change size to unsigned.
6398
6399 * callback.c (os_poll_quit): Add prototypes for kbhit and getkey.
6400
6401 Fri Aug 29 10:10:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
6402
6403 * sim-utils.c (sim_copy_argv): Delete, replaced by dupargv.
6404
6405 * sim-options.c (sim_parse_args): Use dupargv.
6406
6407 Thu Aug 28 10:36:34 1997 Doug Evans <dje@canuck.cygnus.com>
6408
6409 * sim-options.c (standard_option_handler): Use xstrdup, not strdup.
6410
6411 Thu Aug 28 12:09:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
6412
6413 * sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator
6414 base type.
6415
6416 * sim-options.c (standard_options): Add --architecture=MACHINE and
6417 --target=TARGET options.
6418 (OPTION_ARCHITECTURE, OPTION_TARGET): Define.
6419 (standard_option_handler): Handle architecture and target options.
6420 (bfd.h): Include.
6421
6422 * sim-utils.c (sim_analyze_program): Pass STATE_TARGET to
6423 bfd_openr.
6424 (sim_analyze_program): Set prog_bfd architecture from
6425 STATE_ARCHITECTURE if known.
6426
6427 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6428
6429 * configure: Regenerated to track ../common/aclocal.m4 changes.
6430 * config.in: Ditto.
6431
6432 Wed Aug 27 18:11:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
6433
6434 * aclocal.m4 (enable-sim-warnings): Remove comment stating
6435 that option does not apply to certain files.
6436
6437 Wed Aug 27 15:13:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
6438
6439 * sim-bits.h (LSBIT8, LSBIT16, LSBIT32, LSBIT64, LSBIT, MSBIT8,
6440 MSBIT16, MSBIT32, MSBIT64, MSBIT): New macros - single bit as
6441 offset from MSB/LSB.
6442
6443 * sim-endian.h (A1_8, A2_8, A4_8, A1_4, A2_4, A1_2): New macro,
6444 access address of sub word quantity of a hosts 16, 32, 64 bit word
6445 type.
6446 (V1_2, V1_4, V2_4, V1_8, V2_8, V4_8): Ditto for values.
6447 (U8_1, U8_2, U8_4, U4_1, U4_2, U2_1): Ditto for set of values.
6448 (V2_H1, V2_L1, V4_H2, V4_L2, V8_L4, V8_H4): Given N byte argument,
6449 return N*2 byte value with argument in Hi/Lo word. Renamed from
6450 V1_H2, V1_L2, V2_H4, V2_L4, V4_H8, V4_L8.
6451
6452 * sim-alu.h (ALU32_HAD_OVERFLOW): Use 64 bit mask not 32bit.
6453 (ALU16_HAD_CARRY, ALU32_HAD_CARRY, ALU16_HAD_OVERFLOW): Use MSBIT
6454 so that bit offset is explicit.
6455
6456 Wed Aug 27 11:55:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
6457
6458 * sim-utils.c (sim_analyze_program): Add prog_name argument.
6459 Update STATE_PROG_BFD when needed with a dup'd copy of the
6460 program.
6461
6462 * sim-config.c (sim_config): Delete ABFD argument, use
6463 STATE_PROG_BFD directly.
6464
6465 Tue Aug 26 12:55:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
6466
6467 * run.c (main): Pass the open ABFD to sim_create_inferior.
6468
6469 * nrun.c (main): Determine prog_bfd. Pass to sim_create_inferior
6470 and sim_load.
6471 (bfd.h): Include.
6472
6473 * sim-hload.c (sim_load): New file. Implement generic sim_load for
6474 hardware only simulator targets.
6475
6476 * Make-common.in (sim-hload.o): Add rule.
6477
6478 Wed Aug 27 09:51:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
6479
6480 * sim-utils.c (sim_copy_argv): Rewrite to match malloc strategy
6481 used by copyargv and freeargv.
6482
6483 * sim-options.c (sim_parse_args): Save a copy of PROG-ARGS in
6484 STATE_PROG_ARGV, not just a pointer.
6485
6486 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6487
6488 * configure: Regenerated to track ../common/aclocal.m4 changes.
6489 * config.in: Ditto.
6490
6491 Mon Aug 25 12:11:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
6492
6493 * aclocal.m4 (sim-endian): Add second argument to
6494 SIM_AC_OPTION_ENDIAN. First is hardwired endian, second is
6495 default endian when not hardwired.
6496
6497 * sim-config.h (WITH_DEFAULT_TARGET_BYTE_ORDER): New macro, if all
6498 else failes value for target byte order.
6499
6500 * sim-config.c (sim_config): Add abfd arguments. Set
6501 STATE_PROG_BFD accordingly. Determine prefered_target_byte_order
6502 from same.
6503 (sim_config): Return SIM_RC, don't abort.
6504 (bfd.h): Include.
6505
6506 * run.c (main): Update call to sim_open - add ABFD argument.
6507 * nrun.c (main): Add NULL ABFD argument.
6508
6509 Thu Aug 14 12:48:57 1997 Doug Evans <dje@canuck.cygnus.com>
6510
6511 * callback.c (os_poll_quit): Make static.
6512 Call sim_cb_eprintf, not p->eprintf.
6513 (sim_cb_printf, sim_cb_eprintf): New functions.
6514 * sim-utils.h (sim_cb_printf, sim_cb_eprintf): Declare.
6515
6516 * sim-basics.h (zalloc,zfree,sim_add_commas,SIM_ELAPSED_TIME,
6517 sim_elapsed_time_get,sim_elapsed_time_since): Move decls to
6518 sim-utils.h. #include sim-utils.h.
6519 * sim-utils.h: Above decls moved here.
6520 (sim_analyze_program,sim_load_file): Use `struct _bfd', not `bfd'.
6521
6522 * sim-watch.c (action_watchpoint): Fix thinkos.
6523
6524 Thu Jul 24 08:48:05 1997 Stu Grossman (grossman@critters.cygnus.com)
6525
6526 * sim-types.h: Fix defs of 64 bit data types for MSVC.
6527
6528 Tue Jul 22 10:35:37 1997 Doug Evans <dje@canuck.cygnus.com>
6529
6530 * sim-n-core.h (sim_core_write_unaligned_N): Add missing break
6531 to FORCED_ALIGNMENT case.
6532
6533 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
6534
6535 * callback.c (target_to_host_open): Handle hosts with O_BINARY.
6536
6537 Thu Jun 5 08:47:10 1997 Jeffrey A Law (law@cygnus.com)
6538
6539 * Make-common.in (libsim.a): Fix typo.
6540
6541 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
6542
6543 * nrun.c (main): Verify the structure returned before using it.
6544
6545 Wed Jun 4 11:44:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
6546
6547 * sim-config.h (WITH_ENGINE): Enable the sim-engine module by
6548 default.
6549
6550 * sim-engine.c (sim_engine_install): New function. Install the
6551 engine init functions.
6552 (sim_engine_init): [Re]initialize the simulator engine.
6553
6554 * sim-module.c: Add sim_engine to list of modules that always
6555 install.
6556
6557 Tue Jun 3 04:52:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
6558
6559 * sim-watch.c (schedule_watchpoint): Use sim_unschedule_watchpoint
6560 to remove the old watchpoint, not delete_watchpoint.
6561 (watch_option_handler): Action the correct watchpoint, not just
6562 cycles.
6563
6564 Wed May 28 14:47:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
6565
6566 * sim-n-core.h (sim_core_write_aligned_N): For 8byte reads, output
6567 both low and high word.
6568 (sim_core_write_aligned_N): Ditto.
6569
6570 * sim-trace.c (set_trace_options): Delete code explicitly setting
6571 core->trace.
6572
6573 * sim-options.c (sim_print_help): Call the list commands if not a
6574 standalone simulator.
6575 (sim_print_help): Advise that some options may not be applicable.
6576
6577 * sim-trace.c (set_trace_options): Assume core present.
6578
6579 * sim-events.c (sim_events_schedule_after_signal): Overflow signal
6580 buffer when full not almost full.
6581
6582 Tue May 27 14:32:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
6583
6584 * sim-events.c (sim_events_process): Don't blat the event queue
6585 when processing watchpoints.
6586
6587 * sim-watch.h: Make arg unsigned long - stop sign extension.
6588
6589 * sim-events.c (sim_watch_valid): rewrite so debugable.
6590
6591 * sim-config.h (WITH_XOR_ENDIAN): Default to zero.
6592
6593 * sim-watch.c (schedule_watchpoint): Add is_within option so that
6594 inequality test is possible.
6595 (handle_watchpoint): Re-pass is_within arg.
6596 (watch_option_handler): When `!' prefix to pc-watchpoint arg pass
6597 0 to schedule_watchpoint's is_within arg.
6598 (sim_watchpoint_init): Re-pass is_within arg.
6599
6600 * sim-options.c (sim_print_help): Add is_command argument. Don't
6601 include -- prefix when called from the command line interpreter.
6602
6603 * sim-watch.c (schedule_watchpoint): Pass true is_within argument.
6604
6605 * sim-events.c (sim_events_watch_sim): Add is_within argument,
6606 zero indicates that the test should be reversed.
6607 (sim_events_watch_core): Ditto.
6608 (WATCH_CORE): Compare range against is_within.
6609 (WATCH_SIM): Ditto.
6610
6611 Tue May 27 12:48:03 1997 Andrew Cagney <cagney@b2.cygnus.com>
6612
6613 * sim-events.c (WATCH_CORE): Pass NULL cpu argument to
6614 sim_core_read_buffer. Check nr-bytes transfered.
6615
6616 * sim-core.h (sim_core_common): Define a new struct that contains
6617 the common data. to sd and cpu structures.
6618 * sim-core.c (sim_core_attach): Update.
6619 (sim_core_init): Update. Remember to copy initialized data to each
6620 cpu.
6621 (sim_core_find_mapping): Ditto.
6622
6623 * sim-core.c (sim_core_read_buffer): Add cpu argument.
6624 (sim_core_write_buffer): Ditto.
6625
6626 * sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned
6627 transfer use xor version of read buffer.
6628 (sim_core_write_unaligned_N): Ditto for write.
6629
6630 * sim-core.c (sim_core_xor_read_buffer): New function implement
6631 xor-endian data read breaking transfer up into xor-endian sized
6632 blocks.
6633 (sim_core_xor_write_buffer): Ditto for write.
6634 (reverse_n): Reverse order of arbitrary number of bytes in buffer
6635 - needed for xor-endian transfers.
6636
6637 Fri May 23 14:24:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
6638
6639 * sim-inline.h: Review description.
6640
6641 * sim-core.h, sim-core.c: Reduce number of functions being inlined
6642 to just those involved in data transfers and configuration.
6643
6644 * sim-xcat.h (XSTRING): New macro, map macro definition onto
6645 string.
6646 * sim-n-core.h (sim_core_read_aligned_N): Use.
6647 (sim_core_read_unaligned_N): Ditto.
6648 (sim_core_read_unaligned_N): Ditto..
6649 (sim_core_write_unaligned_N): Ditto.
6650
6651 * sim-core.h: Add xor endian bitmap to main structure. *
6652
6653 sim-n-core.h (sim_core_write_aligned_N): Add suport for xor
6654 endian.
6655 (sim_core_read_aligned_N): Ditto.
6656
6657 * sim-core.c (sim_core_set_xor_endian): New function.
6658 (sim_core_attach): Don't overwrite the per-cpu xor map when
6659 cloning the global core.
6660
6661 Fri May 23 10:53:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
6662
6663 * sim-engine.h: Update below so that it is using an enumerated
6664 type.
6665
6666 Thu May 22 09:12:16 1997 Gavin Koch <gavin@cygnus.com>
6667
6668 * sim-engine.c (sim_engine_restart):
6669 * sim-resume.c (sim_resume): Change longjmp param/setjmp
6670 return value used for simulator restart from 0 to 2.
6671
6672 Wed May 21 08:47:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
6673
6674 * cgen-scache.c (scache_option_handler): Add is_command arg.
6675
6676 * sim-model.c (model_option_handler): Add is_command argument.
6677
6678 * sim-profile.c (profile_option_handler): Add is_command arg.
6679
6680 * sim-events.c (sim_watch_valid): Use ub64, lb64 when 64bit value
6681 involved.
6682
6683 * sim-module.c (sim_module_add_init_fn): Call init fn in the same
6684 order that they are registered.
6685
6686 * sim-options.h (OPTION_HANDLER): Add argument to differentiate
6687 between option and command line processing.
6688
6689 * sim-options.c: Include stdlib.h, ctype.h.
6690
6691 * Make-common.in (sim-watch.o): Add rule.
6692 (sim_main_headers): Assume sim-assert.h included.
6693 (sim-*.o): Simplify make rule.
6694
6695 * sim-module.c: Add sim_watch_install to module list.
6696
6697 Tue May 20 14:15:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
6698
6699 * sim-base.h (STATE_LOADED_P): New predicate. Set once everything
6700 has been loaded.
6701
6702 * sim-trace.c (trace_install): Check magic. Include sim-assert.h.
6703 * sim-events.c (sim_events_install): Ditto.
6704 * sim-core.c (sim_core_install): Ditto.
6705 * sim-model.c (model_install): Ditto.
6706 * sim-options.c (standard_install): Ditto.
6707 * sim-profile.c (profile_install): Ditto.
6708 * sim-reason.c (sim_stop_reason): Ditto.
6709 * sim-run.c (sim_engine_run): Ditto.
6710 * sim-utils.c (sim_analyze_program): Ditto.
6711
6712 * sim-module.c (modules): Make profile_install and trace_install
6713 optional.
6714
6715 * sim-base.h (STATE_MEM_BASE): Define for flat memory systems.
6716
6717 * sim-options.c (standard_option_handler): Set the byte order.
6718
6719 * sim-events.c (sim_events_process): Allow multi tick processing.
6720 (sim_events_tickn): New function - multi cycle tick.
6721
6722 * sim-events.h (sim_events_tickn, sim_events_timewarp): Add
6723 prototypes. Under development.
6724 (sim_events): Replace processing with nr_ticks_to_process.
6725
6726 Tue May 20 09:39:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6727
6728 * nrun.c (main): Pass callbacks to sim_open instead of using
6729 sim_set_callbacks.
6730
6731 * run.c (main): Ditto.
6732
6733 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6734
6735 * sim-events.c (sim_events_zalloc): Signal save memory allocator -
6736 stop tk interrupting malloc calls.
6737 (sim_events_zalloc): Converse.
6738
6739 * Make-common.in (sim_main_headers): Add sim-events.h.
6740
6741 * sim-events.c (sim_events_schedule_after_signal): Change return
6742 type to void - signal events are strictly internal.
6743 (sim_events_init): Allocate a finite buffer for signal events.
6744 (sim_events_schedule_after_signal): Enter signal events into the
6745 signal buffer.
6746
6747 * sim-engine.c (sim_engine_halt): Check SIM_DESC magic.
6748 (sim_engine_restart): Ditto.
6749 (sim_engine_abort): Ditto.
6750 * sim-stop.c (sim_stop): Ditto.
6751 (control_c_simulation): Ditto.
6752 * sim-resume.c (sim_resume): Ditto.
6753 (has_stepped): Ditto.
6754 * sim-abort.c (sim_engine_abort): Ditto.
6755
6756 * sim-basics.h (transfer_type): New type.
6757
6758 * sim-core.c (sim_core_signal): New function. Print core signal
6759 information.
6760 (sim_core_find_mapping): Add transfer argument.
6761
6762 * sim-n-core.h (sim_core_{write,write}_unaligned_N): Call
6763 SIM_CORE_SIGNAL if a recoverable abort.
6764 * sim-core.c (sim_core_find_mapping): Ditto.
6765
6766 Fri May 16 15:13:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6767
6768 * sim-core.c (sim_core_find_mapping): Replace calls to
6769 sim_io_error to more resiliant sim_engine_abort.
6770
6771 * sim-n-core.h (sim_core_read_unaligned_N): Ditto.
6772 (sim_core_write_unaligned_N): Ditto.
6773
6774 Tue May 13 13:50:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
6775
6776 * sim-module.c: Add sim_events_install to list.
6777
6778 * sim-events.c (sim_events_install, sim_events_uninstall): Clonse
6779 from sim_core_*.
6780 (sim_events_init): Now returns SIG_RC.
6781
6782 * sim-run.c: New file. Generic sim_engine_run.
6783 * sim-reason.c: New file. Generic sim_stop_reason.
6784 * sim-stop.c: New file. Generic sim_stop.
6785 * sim-resume.c: New file. Generic sim_resume.
6786
6787 * Make-common.in (sim-engine.o): Add rule.
6788 (sim-run.o, sim-reason.o, sim-stop.o, sim-resume.o): Ditto.
6789
6790 * sim-engine.h, sim-engine.c: New file. Provide generic
6791 implementation of sim_engine_halt, sim_engine_error. et.al.
6792
6793 * sim-base.h (sim_state_base): Add member halt.
6794 (sim-engine.h): Include.
6795
6796 * sim-events.h (sim_event_handler): Always pass SIM_DESC to event
6797 handlers.
6798 * sim-events.c (sim_events_poll): Update event handler.
6799
6800 Tue May 13 09:57:49 1997 Andrew Cagney <cagney@b2.cygnus.com>
6801
6802 * sim-events.h, sim-events.c (sim_events_watch_clock): New
6803 function.
6804 (sim_events_watch_sim): New function.
6805 (sim_events_watch_core): New function.
6806 (sim_watch_valid): New function.
6807 (sim_events_preprocess): New function.
6808 (sim_events_process): Process the watchpoints as well as the timer
6809 queue.
6810 (sim_events_tick): Check WORK_PENDING instead of the hold queue.
6811 (sim_events_deschedule): Check all the queues when removing an
6812 event.
6813 (sim_events_init): Ditto for cleaning.
6814
6815 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6816
6817 * sim-fpu.c (is_ufpu_number): Comment out - currently unused.
6818
6819 Mon May 19 11:23:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
6820
6821 * callback.c (os_open): Type of arg flags is int.
6822
6823 Fri May 16 22:26:43 1997 Michael Meissner <meissner@cygnus.com>
6824
6825 * sim-fpu.c (sim_fpu_is_{eq,ne,lt,le,gt,ge}): Compare Infinities
6826 just like normal numbers as per IEEE rules.
6827
6828 Wed May 14 21:20:38 1997 Bob Manson <manson@charmed.cygnus.com>
6829
6830 * callback.c (os_close): Mark the descriptor as being
6831 available if the close succeeded.
6832 (os_open): Pass 0644 as the mode of the file being created.
6833
6834 Thu May 15 10:58:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
6835
6836 * sim-fpu.c (pack_fpu, unpack_fpu): New functions - decode a
6837 float.
6838
6839 * sim-inline.c (SIM_INLINE_C): Rename from _SIM_INLINE_C_.
6840 * sim-lnline.h: Update.
6841
6842 * sim-fpu.h, sim-fpu.c (sim_fpu_[iu]{32,64}to): New int2fp
6843 conversion functions.
6844 (sim_fpu_to{32,64}[iu]): New fp2int functions.
6845
6846 * sim-fpu.h, sim-fpu.c (sim_fpu_is_{lt,le,eq,ne,ge,gt}): New fp
6847 compare functions. Replacing.
6848 (sim_fpu_cmp): This. Delete.
6849
6850 Mon May 12 14:49:05 1997 Andrew Cagney <cagney@b1.cygnus.com>
6851
6852 * sim-core.c (sim_core_find_mapping): Call engine_error not
6853 sim_io_error when possible.
6854
6855 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b2.cygnus.com>
6856
6857 * sim-endian.h (V1_H2): Add macro's to insert a word into a
6858 high/low double word.
6859
6860 * sim-trace.h: Remove definition of attribute - defined in
6861 sim_basics.h.
6862
6863 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
6864
6865 * sim-options.h (struct OPTION): Add doc_opt as the documenting
6866 name of the option - or family of options.
6867
6868 * sim-options.c (sim_args_command): Match command `a-b c' with
6869 option `--a-b-c' from option table.
6870
6871 Thu May 8 12:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
6872
6873 * sim-options.c (sim_print_help): For optional arguments, wrap
6874 them in [].
6875
6876 * sim-trace.c (set_trace_options): New function, handle optional
6877 argument and multiple assignment.
6878 (trace_option_handler): Update.
6879
6880 * sim-trace.c (trace_option_handler): Trace branch and not fpu
6881 when branch tracing selected.
6882
6883 Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
6884
6885 * sim-trace.c (trace_one_insn): Make a va-args function.
6886
6887 * sim-trace.c (trace_vprintf): New function, va-arg version of
6888 trace_printf.
6889
6890 Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com>
6891
6892 * sim-trace.c (trace_uninstall): Don't close a file twice.
6893 * sim-profile.c (profile_uninstall): Likewise.
6894
6895 Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com>
6896
6897 * sim-trace.c (toplevel): Include bfd.h.
6898 (trace_options): Note that --trace-linenum also turns on
6899 --trace-insn. Add --trace-{branch,semantics}.
6900 (trace_option_handler): If --trace-linenum, also turn on
6901 --trace-insn. Add --trace-branch support. If --trace-semantics,
6902 turn on ALU, FPU, branch, and memory tracing.
6903 (trace_one_insn): New function to trace an instruction. Support
6904 --trace-linenum.
6905 (OPTION_TRACE_*): Use an enum, rather than lots of defines.
6906
6907 * sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros.
6908 (MAX_TRACE_VALUES): Use 32, not 12 by default.
6909 (TRACE_branch): Add new mask.
6910 (TRACE_*_P): Define all possible trace_p macros.
6911 (trace_one_insn): Declare function.
6912
6913 Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com>
6914
6915 * sim-trace.h (__attribute__): Define as nothing if not GNU C or
6916 GNU C doesn't support __attributes__.
6917 ({trace,debug}_printf): Add attribute's so -Wformat can check the
6918 format strings.
6919
6920 Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
6921
6922 * sim-config.h (FORCED_ALIGNMENT): New alignment option -
6923 addresses are masked forcing them to be correctly aligned.
6924 (WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default.
6925 * sim-config.c (config_alignment_to_a): Update.
6926
6927 * sim-core.h (sim_cpu_core): New data type contains cpu specific
6928 core data.
6929 * sim-base.h (CPU_CORE): Add cpu specific core data to cpu base
6930 type.
6931 * sim-core.c (sim_core_attach): Add CPU argument. Ready for
6932 processor specific core maps.
6933 (sim_core_map_attach): Copy the core map data to each of the
6934 processor specific core data structures.
6935 * sim-core.c (sim_core_find_mapping): Update.
6936
6937 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename.
6938 (sim_core_write_aligned_N, sim_core_write_aligned_N): New names.
6939 (sim_core_write_unaligned_N, sim_core_write_unaligned_N): New
6940 alternatives that handle unaligned addresses.
6941 (sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace
6942 with just CPU arg.
6943 * cgen-utils.c (sim_disassemble_insn): Update.
6944
6945 Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
6946
6947 * sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific
6948 tracing.
6949
6950 * sim-fpu.h, sim-fpu.c: New files - prototype for generic target
6951 fpu support.
6952
6953 * sim-inline.h, sim-inline.c: Add support for SIM_FPU.
6954
6955 Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
6956
6957 * sim-core.c (sim_core_map_to_str): New function ascii equivalent
6958 to map type.
6959
6960 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace
6961 statement.
6962
6963 Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com>
6964
6965 * cgen-trace.c: Prepend additional trace_printf argument.
6966
6967 * cgen-utils.c (sim_disassemble_insn): Add additional core
6968 arguments.
6969
6970 Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
6971
6972 * nrun.c (main): Catch/report errorenous simulator states.
6973
6974 * sim-module.c: #include "libiberty.h" so that xmalloc is defined.
6975 * sim-trace.c: #include string.h/strings.h so that memset is
6976 defined.
6977 * sim-utils.c: Ditto.
6978 * sim-profile.c: Ditto. And stdlib.h.
6979 (print_bar): Only define when used by instruction or memory profiler.
6980
6981 * sim-options.c (standard_option_handler): Make ul more local.
6982
6983 * sim-load.c (sim_load_file): Make the name constant.
6984 (sim_load_file): Passify gcc.
6985
6986 * sim-utils.h: New file, pre-declare utilites in corresponding .c
6987 file.
6988 * sim-utils.c, sim-load.c: Include sim-utils.h.
6989
6990 * sim-base.h (sim_cpu): Pre define here so available to all.
6991
6992 * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N):
6993 Restore the sim_cpu and instruction_address arguments so that full
6994 information is available to the abort function.
6995 * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto.
6996 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
6997
6998 * sim-trace.h, sim-trace.c (trace_option_handler): Add interim
6999 tracing support for sim-events and sim-core.
7000 (trace_option_handler): Convert #if to if where possible so always
7001 compiled/checked by C compiler.
7002 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
7003
7004 * sim-base.h: Adjust comment documenting how to define the cpu
7005 structure.
7006 (sim_state_base): Add sim_core and sim_events to simulator base
7007 object.
7008
7009 * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument.
7010 * sim-core.c (sim_core_init, sim_core_attach,
7011 sim_core_find_mapping): Update.
7012 * sim-events.c (ETRACE, sim_events_init, sim_events_time,
7013 update_time_from_event, insert_sim_event,
7014 sim_events_schedule_after_signal, sim_events_deschedule,
7015 sim_events_tick): Ditto.
7016
7017 * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h,
7018 sim-model.h): Move #includes from here.
7019 * sim-base.h: To here.
7020 (sim-core.h, sim-events.h, sim-io.h): Include also
7021
7022 Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
7023
7024 * callback.c (default_callback): Missing initialisers.
7025
7026 Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com>
7027
7028 * sim-utils.c (sim_add_commas): New function.
7029 * sim-basics.h (sim_add_commas): Add prototype.
7030 * cgen-scache.c (scache_print_profile): Print commas in numbers.
7031 * sim-profile.c (COMMAS): New macro.
7032 (print_*): Use it to print commas in numbers.
7033
7034 * configure: Regenerated.
7035
7036 * cgen-sim.h (sim_signal_type): Add SIM_SIGINT.
7037 (cgen_state): New member run_fast_p.
7038 (cgen_init): Add prototype.
7039 (sim_disassemble_insn): New arg `cpu'.
7040 * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn.
7041 * cgen-utils.c (cgen_init): New function.
7042 (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn.
7043 * genmloop.sh: Call engine_halt if loop exits.
7044
7045 * Makefile.in (sim-options_h): Define.
7046 (sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
7047 (sim-model.o): Add new rule.
7048 (cgen-{scache,trace,utils}.o): Add new rules.
7049 * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
7050 * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
7051 Indent output by 2 spaces.
7052 * cgen-scache.h (scache_print_profile): Update.
7053 * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
7054 Use trace_printf, not fprintf.
7055 (trace_extract): Use trace_printf, not cgen_trace_printf.
7056 * genmloop.sh (!FAST case): Increment `insn_count'.
7057 * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
7058 (sim_cpu_base): Rename member `sd' to `state' to be consistent with
7059 access macro's name.
7060 * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
7061 Change return type to SIM_RC.
7062 (sim_core_{install,uninstall}): New functions.
7063 * sim-core.h (sim_core_{install,uninstall}): Declare.
7064 (sim_core_init): Use EXTERN_SIM_CORE to define it.
7065 Change return type to SIM_RC.
7066 * sim-model.h (models,machs,model_install): Declare.
7067 * sim-module.c (modules): Add scache_install, model_install.
7068 (sim_post_argv_init): Set cpu->state backlinks.
7069 * sim-options.c (standard_options): Delete --simcache-size,--max-insns.
7070 (standard_option_handler): Likewise.
7071 * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
7072 sim-profile.h.
7073 (*): Assume ANSI C.
7074 (profile_options): Delete --profile-simcache.
7075 (profile_option_handler): Likewise.
7076 (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
7077 spaces.
7078 (profile_print_{memory,model}): Likewise.
7079 (profile_print_simcache): Delete.
7080 (profile_print_speed): New function.
7081 (profile_print): Rewrite.
7082 * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
7083 (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
7084 (PROFILE_DATA): Delete members simcache_{hits,misses}.
7085 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
7086 (PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
7087 (profile_print): Update prototype.
7088
7089 Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com>
7090
7091 * cgen-scache.[ch], cgen-sim.h: New files.
7092 * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files.
7093 * sim-model.c: New file.
7094
7095 * Make-common.in (clean targets): Undo patch of Apr. 22.
7096
7097 Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com>
7098
7099 * sim-n-bits.h (signed): If we have a standard compiler, undef
7100 signed, so that signedN is defined correctly.
7101
7102 Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com>
7103
7104 * sim-module.h, sim-model.h, sim-profile.h: New files.
7105 * sim-module.c, sim-profile.c: New files.
7106 * Make-common.in (SIM_PROFILE): Define
7107 (CONFIG_CFLAGS): Add $(SIM_PROFILE).
7108 (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
7109 (sim_module.o,sim-profile.o): Add rules for.
7110 * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
7111 (--enable-sim-profile): Add.
7112 * configure: Regenerated.
7113 * sim-base.h (sim_state_base): New members init_list, uninstall_list,
7114 model. Move trace and profile support to sim-{trace,profile}.h.
7115 New members trace_data, profile_data.
7116 * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
7117 * sim-config.h: Provide default definition of WITH_PROFILE.
7118 (WITH_TRACE): Change default to -1.
7119 (MAX_NR_PROCESSORS): Always define.
7120 * sim-options.c: Move trace and profile support to
7121 sim-{trace,profile}.h.
7122 (sim_pre_argv_init): Moved to sim-model.c.
7123 (standard_install): New function.
7124 * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
7125 (standard_install): Declare.
7126 * sim-trace.c: Tracing option handling moved here from sim-options.c.
7127 (trace_install, trace_uninstall): New functions.
7128 (trace_printf): Update reference to TRACE_FILE.
7129 * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
7130 (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
7131 (WITH_TRACE_FOO_P): Define.
7132 (trace_install): Declare.
7133 (TRACE_DATA): New struct.
7134
7135 Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com>
7136
7137 * run.c: Undo last exec_bfd patch.
7138 (main): Only pass -E ifdef SIM_HAVE_BIENDIAN.
7139
7140 Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com>
7141
7142 * run.c (exec_bfd): Add back in.
7143 (main): Set exec_bfd.
7144
7145 Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com>
7146
7147 * sim-load.c (sim_load_file): #include <stdio.h> for NULL.
7148
7149 Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
7150
7151 * sim-events.c (insert_sim_event): Call sim_io_error instead of
7152 less well defined engine_error.
7153 * sim-core.c: Ditto.
7154
7155 Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com)
7156
7157 * Make-common.in: Change clean targets to use :: so that other
7158 Makefiles can have their own clean targets.
7159 * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of
7160 __STDC__ to control use of stdarg vs. varargs syntax. Some
7161 systems can't use __STDC__, but require stdarg.
7162
7163 Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com>
7164
7165 * sim-options.c (standard_options): Add --endian.
7166 (standard_option_handler): Likewise.
7167
7168 * nrun.c: #include <signal.h>.
7169 (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
7170 handler that calls sim_stop ().
7171
7172 Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
7173
7174 * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
7175 handler that calls sim_stop (). Simulators may still be
7176 establishing their own handler.
7177
7178 * sim-events.c (sim_events_poll): Rename from
7179 sim_events_at_large_int. Poll IO.
7180
7181 * sim-io.c (sim_io_poll_quit): New function - pass on a polling
7182 request.
7183
7184 * callback.c (os_poll_quit): New function poll for quit signal
7185 where needed.
7186 (default_callback): Include magic number.
7187
7188 Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
7189
7190 * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
7191 Check for functions getrusage, time.
7192 * sim-basics.h (SIM_ELAPSED_TIME): New typedef.
7193 (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes.
7194 * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able.
7195 (sim_elapsed_time_get, sim_elapsed_time_since): New functions.
7196
7197 * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.
7198
7199 * sim-options.c, sim-options.h: New files.
7200 * sim-config.h (WITH_DEBUG): Provide default value of zero.
7201 * Make-common.in (nrun.o): Add rules for.
7202 * nrun.c: New file.
7203
7204 * run.c (main): Check return value of sim_open.
7205
7206 * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules.
7207 (sim_main_headers): Add sim-trace.h.
7208 * run.c (exec_bfd, target_byte_order): Delete.
7209 (main): Pass -E <endian> to sim_open. Delete code to load sections,
7210 call sim_load instead. Check return code of sim_create_inferior.
7211 * sim-base.h (CURRENT_STATE): Define.
7212 (sim_state_base): Make typedef. New members options, prog_argv,
7213 prog_bfd, text_{section,start,end}, start_addr, simcache_size,
7214 mem_size, memory [+ corresponding access macros].
7215 (sim_cpu_base): New typedef.
7216 * sim-trace.h: New file.
7217 * sim-trace.c: New file.
7218 * sim-basics.h: #include it.
7219 * sim-load.c: New file.
7220
7221 Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com>
7222
7223 * Make-common.in (INSTALL): Set to @INSTALL@.
7224 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
7225 (install-common): Depend upon installdirs. Use
7226 $(program_transform_name) directly, rather than using
7227 $(INSTALL_XFORM).
7228 (installdirs): New target.
7229 * Makefile.in (INSTALL): Set to @INSTALL@.
7230 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
7231 (install-man): Depend upon installdirs. Use
7232 $(program_transform_name) directly, rather than using
7233 $(INSTALL_XFORM).
7234 (installdirs): New target.
7235
7236 Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
7237
7238 * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
7239 be overriden.
7240
7241 Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7242
7243 * sim-basics.h: Only bring in config.h and tconfig.h if
7244 HAVE_CONFIG_H.
7245
7246 Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7247
7248 * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
7249 numbering convention of the target.
7250 * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
7251 and WITH_TARGET_WORD_MSB.
7252 (sim_config): When possible, check for consistency with bitsize
7253 and msb.
7254
7255 * sim-bits.h: Allow MSB to be other than zero.
7256 * sim-bits.c: Ditto.
7257 * sim-n-bits.h: Ditto.
7258
7259 * sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
7260 * sim-n-bits.h (MSMASKEDn): Ditto.
7261
7262 Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com>
7263
7264 * Makefile.in (INSTALL): Change install.sh to install-sh.
7265
7266 Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com>
7267
7268 * sim-base.h (sim_state_base): Move `magic' to end of struct.
7269
7270 Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7271
7272 * run.c (main): Check that a program to run was specified.
7273
7274 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7275
7276 * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
7277
7278 * configure: Regenerated to track ../common/aclocal.m4 changes.
7279 * config.in: Ditto.
7280
7281 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
7282
7283 * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
7284 * sim-config.h: To here.
7285
7286 * Make-common.in (SIM_EXTRA_DEPS): New config var.
7287 (sim_main_headers): Define.
7288 (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
7289 (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
7290 (clean): Use it.
7291 (sim-utils.o): Add rule for.
7292 * sim-utils.o: New file.
7293 * sim-basics.h: #include sim-base.h.
7294 (zalloc): Make argument unsigned long.
7295 * sim-base.h: New file.
7296 * sim-inline.h (SIM_IO support): Delete.
7297 * sim-io.h: Delete inline support.
7298 * sim-io.c: Likewise. sim-state.h renamed to sim-main.h.
7299 * sim-config.c: sim-state.h renamed to sim-main.h.
7300 * sim-core.c: Likewise.
7301 * sim-events.c: Likewise.
7302
7303 * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
7304
7305 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
7306 (sim-debug): Allow arguments. Define WITH_DEBUG in addition to
7307 -DDEBUG.
7308 * configure: Regenerated to track ../common/aclocal.m4 changes.
7309
7310 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7311
7312 * configure: Regenerated to track ../common/aclocal.m4 changes.
7313
7314 Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7315
7316 * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
7317 WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
7318 are defined by the configure.
7319
7320 * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
7321
7322 * aclocal.m4 (floating-point, xor-endian, alignment, smp,
7323 reserved-bits): Always define.
7324
7325 * sim-config.h, sim-config.c (sim_config): New function - and new
7326 file - co-ordinate the setting/checking of the common simulator
7327 configuration options.
7328
7329 * Make-common.in (sim-config.o): Add rule.
7330
7331 Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com>
7332
7333 * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
7334 va_list from void *, since va_list might not be a pointer type.
7335
7336 Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7337
7338 * sim-n-endian.h (offset_N): Correct assertion - word and sub word
7339 in wrong order.
7340 (offset_N): Correct computation of LE offset.
7341
7342 * sim-io.c (sim_io_error): Include a new line when reporting
7343 errors.
7344
7345 * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
7346 `/'.
7347
7348 Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com)
7349
7350 * run.c: Include alloca-conf.h.
7351
7352 * callback.c (os_evprintf_filtered): Fix typo.
7353
7354 Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7355
7356 * run.c (string.h, strings.h, stdlib.h): Include.
7357
7358 * sim-events.c (sim_events_tick): Recent cleanup failed to return
7359 0 when nothing pending.
7360
7361 * run.c (sim_size, sim_trace): Plicate GCC - these two functions
7362 will soon be going away.
7363 (getopt): Plicate GCC.
7364
7365 * sim-endian.c (sim-io.h): Plicate GCC.
7366 * sim-bits.c (sim-io.h): Ditto.
7367 * sim-n-bits.h (ROTn): Ditto.
7368
7369 * sim-io.c (sim_io_error): Correct check for NULL.
7370
7371 * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
7372 the __FILE__.
7373 * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
7374 path.
7375
7376 Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7377
7378 * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
7379 SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
7380
7381 Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7382
7383 * sim-alu.h: Include sim-xcat.h.
7384
7385 Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7386
7387 * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
7388 sim-events.c, sim-inline.c, sim-io.c): Define rules for building
7389 these.
7390
7391 * sim-events.c (sim_events_at_large_int): New function. Just
7392 schedules an event every large-int ticks.
7393 (sim_events_init): Call.
7394 (sim_events_tick, sim_events_process): Move async handing to
7395 sim_events_process. Move timer decrement so that it occures after
7396 events have been processed.
7397
7398 * sim-basics.h (struct _engine): Remove declaration.
7399
7400 * sim-events.h, sim-events.c: Rename type to sim_events. Prefix
7401 everything with same. Rename global struct to SIM_DESC.
7402 * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
7403 * sim-io.h, sim-io.c: Ditto.
7404
7405 * sim-assert.h: New file. Optional assertion checking macros.
7406 * sim-io.c (sim_io_error): Make just this function tolerant to
7407 null pointers.
7408
7409 * sim-xcat.h: New file. Define concatenate macros.
7410 * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
7411 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
7412 concat macros.
7413
7414
7415 Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7416
7417 * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
7418
7419 Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7420
7421 * sim-inline.h: Add definitions for sim-types.
7422 (ALL_BY_MODULE): New macro, encapsulate full inlining by the
7423 module.
7424
7425 Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7426
7427 * sim-events.h: Remove defunct reference to callback struct.
7428
7429 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7430
7431 * configure: Re-generate.
7432
7433 Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7434
7435 * Make-common.in (CSEARCH): Do not include the gdb directory in
7436 the search path.
7437
7438 Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7439
7440 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
7441 SIM_WARNING): Drop, requiring the simulator specific Makefile.in
7442 to explicitly incorporate these.
7443
7444 * aclocal.m4 (--enable-sim-alignment); New option. Strongly
7445 specify the alignment restrictions of the target architecture -
7446 without this option all alignment restrictions are accomodated.
7447 (--enable-sim-assert): New option. Conditionally compile in
7448 assertion statements.
7449 (--enable-sim-float): New option. Strongly specify the target's
7450 floating point support.
7451 (--enable-sim-hardware): New option. Specify the hardware devices
7452 included in the simulation.
7453 (--enable-sim-packages): New option. Specify the hardware
7454 packages included in the simulation.
7455 (--enable-sim-regparm): New option. Specify that parameters be
7456 passed in registers instead of on the stack.
7457 (--enable-sim-reserved-bits): New option. Specify that reserved
7458 bits within an instruction are are correctly set.
7459 (--enable-sim-smp): New option. Specify the level of SMP support
7460 to be included in the simulator.
7461 (--enable-sim-stdcall): New option. Specify an alternative
7462 function call convention.
7463 (--enable-sim-xor-endian): New option. Configure xor-endian
7464 support used by some targets to implement bi-endian support.
7465
7466 Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7467
7468 * aclocal.m4 (--enable-sim-hostendian): New option. Allow the
7469 host endianness to be overridden.
7470 (--enable-sim-endian): Allow the target platform's byte order
7471 to be overridden.
7472 (--enable-sim-inline): Control the inlining of common components.
7473 (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
7474 (--enable-sim-warnings): Enable additional GCC compiler checks.
7475 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
7476 SIM_WARNINGS): Add.
7477
7478 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
7479 sim-*-n.h so that the names are uniq on dos machines
7480 * sim-core.c, sim-bits.c, sim-endian.c: Update.
7481
7482 Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
7483
7484 * run.c: #include "libiberty.h".
7485 (main): New locals sd,no_args,sim_argv.
7486 Run buildargv on -a option. Pass argv to sim_open, argv[0]
7487 is program name. Update call to sim_set_callbacks.
7488 Record result of sim_open, pass to other sim_foo routines.
7489
7490 Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
7491
7492 * callback.c (os_printf_filtered): Do not call exit(1) or print a
7493 final newline.
7494
7495 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7496
7497 * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
7498 Route stdout through buffered IO.
7499
7500 * callback.c: Add os_flush_stderr, os_write_stderr,
7501 os_evprintf_filtered functions to route error output through
7502 stderr.
7503
7504 * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
7505 Correct return type - should be void.
7506
7507 Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7508
7509 * sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
7510
7511 * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
7512 not provide a default value as undefined indicates disable code.
7513
7514 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7515
7516 * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
7517 directory.
7518 * sim-events.h, sim-events.c: Ditto.
7519 * sim-io.h, sim-io.c: Ditto.
7520
7521 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7522
7523 * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
7524
7525 * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
7526 extract the tail or least signifiant bits from an integer of the
7527 specified size.
7528
7529 * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
7530 WITH_TARGET_BITSIZE so that the compilation will fail when an
7531 unsupported bitsize value is defined.
7532
7533 (INSERTED*): Convert to functions.
7534 (EXTRACTED*): Ditto.
7535
7536 (SIGN_EXTEND, SEXT): Change to more terse name.
7537
7538 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7539
7540 * sim-inline.h: Allow explicit control over which .c files will be
7541 included by their header.
7542
7543 * sim-inline.h: Allow explicit control over which .c files use the
7544 alternative - REGPARM - parameter passing mechanism.
7545
7546 * sim-inline.h, sim-inline.c: Don't attempt to include any of
7547 icache.c, idecode.c, semantics.c or support.c. Those names are
7548 not generally applicable.
7549
7550 Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7551
7552 * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
7553 in a fashion similar to sim-endian-n.
7554
7555 * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
7556 both value and address macro's.
7557
7558 Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7559
7560 * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
7561
7562 * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
7563 generic L_word, H_word macro's.
7564
7565 Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
7566
7567 * sim-basics.h: Borrow code from ppc directory.
7568 * sim-bits.c: Ditto.
7569 * sim-bits.h: Ditto.
7570 * sim-config.h: Ditto.
7571 * sim-endian-n.h: Ditto.
7572 * sim-endian.c: Ditto.
7573 * sim-endian.h: Ditto.
7574 * sim-inline.c: Ditto.
7575 * sim-inline.h: Ditto.
7576 * sim-types.h: Ditto.
7577
7578 Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
7579
7580 * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
7581 all the ALU size alternatives and then auto-configure a default.
7582
7583 * sim-alu.h: Copy ppc/idecode_expression.h.
7584
7585 Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
7586
7587 * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
7588 sign extend a bit within a value.
7589
7590 * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
7591 a pointer into the middle of a host word.
7592 * sim-endian.h (MS2W_4, LS2W_4): Use this function.
7593
7594 Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
7595
7596 * callback.c: If HAVE_CONFIG_H is defined, include config.h from
7597 autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
7598 appropriate definitions of read, write, etc. Add prototype for
7599 system.
7600
7601 Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
7602
7603 * Makefile.in (libcommon.a): Delete.
7604 (callback.o,targ-map.o): Delete, moved to Make-common.in.
7605 (gentmap,targ-vals.h,targ-map.c): Likewise.
7606 (run-autoconf): Delete.
7607 * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
7608 (common makefile fragment): Moved back into ...
7609 * Make-common.in: Resurrect.
7610 * configure.in (AC_LINK_FILES): Delete, unnecessary now.
7611 * configure: Regenerated.
7612
7613 Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
7614
7615 * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
7616 (SIM_AC_OUTPUT): To here.
7617
7618 Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
7619
7620 * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
7621 comments and single quotes. Fixes a problem found on hpux.
7622
7623 Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
7624
7625 * aclocal.m4: Remove Make-common.in from dependencies.
7626 * (distclean): Remove targ-vals.def.
7627
7628 * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
7629 into here. Makes insertion into makefiles easier. Also, change
7630 the way that callback.o, gentmap, targ-vals.h, targ-map.c,
7631 targ-map.o, and run are built. They are now built in the
7632 individual simulator directories, taking sources from ../common as
7633 necessary. This replaces the merging of libcommon.a into
7634 linsim.a, which was problematic for the WinGDB build process.
7635 * run.c: Include config.h from . instead of ../common.
7636 * Make-common.in: Remove. It's no longer necessary.
7637
7638 Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
7639
7640 * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
7641 (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
7642
7643 Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
7644
7645 * run.c (main): Set target_byte_order before call to sim_open.
7646
7647 Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
7648
7649 * callback.c: #include <stdlib.h>
7650 (os_error): New function.
7651 (default_callback): Add os_error.
7652
7653 Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
7654
7655 * Make-common.in (Makefile): Set CONFIG_HEADERS="".
7656 * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
7657 specific.
7658 (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
7659
7660 Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
7661
7662 * run.c: #include ../common/config.h, tconfig.h.
7663 (myname): New static global.
7664 (main): Recognize new options -a, -c. Also recognize -h if h8/300.
7665 Only process -c ifdef SIM_HAVE_SIMCACHE.
7666 Only process -p/-s ifdef SIM_HAVE_PROFILE.
7667 Parse program name from argv[0] and use in error messages.
7668 Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
7669 Add support for incomplete h8/300 termination indicators.
7670 (usage): Make more verbose.
7671 * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
7672 * Makefile.in,Make-common.in,callback.c: New files.
7673 * nltvals.def,gentmap.c,gentvals.sh: New files.
7674
7675 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
7676
7677 * run.c: Include stdarg.h if __STDC__.
7678
7679 Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
7680
7681 * run.c (main): Don't print out anything if the signal
7682 number is zero (ie no signal).
7683
7684 Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7685
7686 * run.c (main): Print out if the program raised a signal.
7687
7688 Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7689
7690 * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
7691 (main): Ditto.
7692
7693 Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
7694
7695 * run.c (main): Explicitly cast malloc() parameter.
7696
7697 Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7698
7699 * run.c (sim_bfd): New global to hold the bfd pointer for the
7700 executable.
7701 (main): Initialize sim_bfd.
7702
7703 Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
7704
7705 * run.c (main): Use new bfd_big_endian macro.
7706
7707 Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
7708
7709 * run.c (main): Removed SH specific comments, so source is
7710 generic. Also updated to only load relevant sections. Moved
7711 sim_open() to after callback attach (to match GDB).
7712
7713 * run.1: Removed SH specific comments.
7714
7715 Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
7716
7717 * run.c (main): Always return sigrc at end.
7718
7719 Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7720
7721 * run.c (main): Print error diagnostic and exit if bfd_openr() or
7722 bfd_check_format() fails.
7723
7724 Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
7725
7726 * run.c, run.1: From sh directory.