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