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