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