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