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