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