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