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