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