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