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