1 2019-03-28 Andrew Burgess <andrew.burgess@embecosm.com>
3 * sim-base.h: Add 'sim-assert.h' include.
4 * sim-basics.h: Add 'libiberty.h' include.
6 2019-03-28 Stafford Horne <shorne@gmail.com>
8 * sim-options.c: Include "config.h".
10 * sim-watch.c: Include "config.h".
12 * hw-device.c: Include <string.h>.
13 * hw-events.c: Include <string.h>.
14 * hw-handles.c: Include <stdlib.h>.
15 * sim-fpu.c: Include <stdlib.h>.
17 2019-03-28 Stafford Horne <shorne@gmail.com>
19 * Make-common.in (sim-arange_h): Remove sim-arange.c
20 * sim-arange.c: Remove SIM_ARANGE_C.
21 Add ifdef for _SIM_ARANGE_C_.
22 Include "sim-arange.h".
23 Remove include for unused "sim-assert.h".
24 Remove DEFINE_INLINE_P. Remove DEFINE_NON_INLINE_P.
25 (sim_addr_range_add): Declare as INLINE_SIM_ARANGE.
26 (sim_addr_range_delete): Declare as INLINE_SIM_ARANGE.
27 (sim_addr_range_hit_p): Change from SIM_ARANGE_INLINE to
29 * sim-arange.h (sim_addr_range_add): Declare as
31 (sim_addr_range_delete): Declare as INLINE_SIM_ARANGE.
32 (sim_addr_range_hit_p) Declare as INLINE_SIM_ARANGE.
33 Remove definition of SIM_ARANGE_INLINE.
35 Wrap include "sim-arange.c" in H_REVEALS_MODULE_P.
36 * sim-base.h: Include "sim-arange.h"
37 * sim-basics.h: Remove include of "sim-arange.h"
38 * sim-inline.c: Include "sim-arange.c"
39 * sim-inline.h: Define INLINE_SIM_ARANGE.
40 Define SIM_ARANGE_INLINE. Define EXTERN_SIM_ARANGE_P.
41 Define STATIC_INLINE_SIM_ARANGE. Define STATIC_SIM_ARANGE.
43 2019-01-26 Tom Tromey <tom@tromey.com>
45 * Make-common.in (version.c): Use sim's create-version.sh.
46 * create-version.sh: New file.
48 2019-01-16 Pavel I. Kryukov <kryukov@frtk.ru>
50 * sim-arange.c (DEFINE_INLINE_P, DEFINE_NON_INLINE_P): Remove.
52 2019-01-15 Simon Marchi <simon.marchi@ericsson.com>
54 * sim-arange.h (SIM_ARANGE_INLINE): Change EXTERN to extern.
56 2018-12-18 Andrew Burgess <andrew.burgess@embecosm.com>
58 * sim-syscall.c (sim_syscall_multi): Don't update sc->errcode at
59 this point, it should have already been set in cb_syscall.
61 2018-10-05 Stafford Horne <shorne@gmail.com>
63 * cgen-ops.h (ADDCFDI): New function, add carry flag DI variant.
64 (ADDOFDI): New function, add overflow flag DI variant.
65 (SUBCFDI): New function, subtract carry flag DI variant.
66 (SUBOFDI): New function, subtract overflow flag DI variant.
68 2018-09-28 Компан, Вячеслав Олегович <kompan.vo@phystech.edu>
70 * sim-core.h (sim_cpu_core): Rename cpu_core.xor to
72 * sim-core.c (sim_core_set_xor): Likewise.
73 (sim_core_xor_read_buffer): Likewise.
74 (sim_core_xor_write_buffer): Likewise.
76 2017-12-12 Peter Gavin <pgavin@gmail.com>
77 Stafford Horne <shorne@gmail.com>
79 * cgen-ops.h (MUL2OFSI): New function, 2's complement overflow
81 (MUL1OFSI): New function, 1's complement overflow flag.
83 2017-12-12 Peter Gavin <pgavin@gmail.com>
84 Stafford Horne <shorne@gmail.com>
86 * cgen-accfp.c (remsf, remdf): New function.
87 (cgen_init_accurate_fpu): Add remsf and remdf.
88 * cgen-fpu.h (cgen_fp_ops): Add remsf, remdf, remxf and remtf.
89 * sim-fpu.c (sim_fpu_rem): New function.
90 * sim-fpu.h (sim_fpu_status_invalid_irx): New enum.
91 (sim_fpu_rem): New function.
92 (sim_fpu_print_status): Add case for sim_fpu_status_invalid_irx.
94 2017-09-06 John Baldwin <jhb@FreeBSD.org>
96 * acinclude.m4 (SIM_AC_COMMON): Honor existing CC_FOR_BUILD in
99 2017-05-24 Yao Qi <yao.qi@linaro.org>
101 * sim-trace.c (trace_disasm): Caller update.
103 2016-08-15 Mike Frysinger <vapier@gentoo.org>
105 * sim-base.h (sim_state_base): Add prog_syms_count.
106 (STATE_PROG_SYMS_COUNT): Define.
107 * sim-trace.c (trace_uninstall): Free STATE_PROG_SYMS memory.
108 (trace_load_symbols): New function.
109 (trace_sym_value): Likewise.
110 (trace_prefix): Change STATE_CPU(cpu) to sd. Replace symbol
111 loading logic with a call to trace_load_symbols.
112 * sim-trace.h (trace_load_symbols, trace_sym_value): New
115 2016-08-13 Mike Frysinger <vapier@gentoo.org>
117 * cgen-types.h (mode_names): Mark const.
118 * cgen-utils.c (mode_names): Likewise.
120 2016-08-13 Mike Frysinger <vapier@gentoo.org>
122 * cgen-defs.h (struct cgen_state): Delete argv and envp.
123 (STATE_ARGV, STATE_ENVP): Delete.
125 2016-02-04 Nick Clifton <nickc@redhat.com>
127 * cgen-scache.c (scache_option_handler): Prevent possible
128 undefined behaviour computing the size of the scache by using
129 unsigned integers instead of signed integers.
131 2016-01-17 Joel Brobecker <brobecker@adacore.com>
133 * sim-fpu.c: Minor comment fixes throughout.
135 2016-01-17 Joel Brobecker <brobecker@adacore.com>
137 * sim-fpu.c (print_bits): Minor reformatting (no code change).
138 (sim_fpu_map): Likewise.
140 2016-01-11 Mike Frysinger <vapier@gentoo.org>
142 * sim-config.c (print_sim_config): Drop extra whitespace before =
143 in output for byte order, stdio, and msb settings.
145 2016-01-10 Mike Frysinger <vapier@gentoo.org>
147 * acinclude.m4 (SIM_AC_COMMON): Call AC_MSG_CHECKING,
148 AC_DEFINE_UNQUOTED, and AC_MSG_RESULT for sim-debug. Likewise for
149 sim-stdio, sim-trace, and sim-profile.
150 (SIM_AC_OPTION_ENVIRONMENT): Likewise.
151 (SIM_AC_OPTION_ASSERT): Likewise.
152 (SIM_AC_OPTION_SMP): Likewise.
153 (SIM_AC_OPTION_XOR_ENDIAN): Likewise.
154 * configure: Regenerate.
155 * Make-common.in (SIM_DEBUG, SIM_TRACE, SIM_PROFILE, SIM_ASSERT,
156 SIM_ENVIRONMENT, SIM_SMP, SIM_XOR_ENDIAN): Delete.
157 (CONFIG_CFLAGS): Delete $(SIM_DEBUG), $(SIM_TRACE), $(SIM_PROFILE),
158 $(SIM_ASSERT), $(SIM_ENVIRONMENT), $(SIM_SMP), and $(SIM_XOR_ENDIAN).
159 * sim-config.c (sim_config): Change DEFAULT_ENVIRONMENT to
160 WITH_ENVIRONMENT & USER_ENVIRONMENT.
161 * sim-config.h (SIM_HAVE_ENVIRONMENT, WITH_ENVIRONMENT,
162 DEFAULT_ENVIRONMENT, WITH_DEBUG, WITH_TRACE, WITH_PROFILE,
163 WITH_ASSERT, WITH_STDIO): Delete.
164 * sim-options.c (standard_options): Delete SIM_HAVE_ENVIRONMENT
167 2016-01-10 Mike Frysinger <vapier@gentoo.org>
169 * acinclude.m4 (SIM_AC_OPTION_PACKAGES): Delete.
170 * configure: Regenerate.
171 * Make-common.in (SIM_PACKAGES): Delete.
172 (CONFIG_CFLAGS): Delete $(SIM_PACKAGES).
174 2016-01-10 Mike Frysinger <vapier@gentoo.org>
176 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ENVIRONMENT.
178 2016-01-10 Mike Frysinger <vapier@gentoo.org>
180 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ASSERT.
182 2016-01-10 Mike Frysinger <vapier@gentoo.org>
184 * acinclude.m4 (SIM_AC_COMMON): Delete sim_link_files and
186 (SIM_AC_OUTPUT): Delete AC_LINK_FILES call.
187 * gentmap.c: Change targ-vals.def include to nltvals.def.
188 * Make-common.in (gentmap): Change targ-vals.def to
189 $(srccom)/nltvals.def.
190 (distclean): Delete rm -f targ-vals.def.
191 * Makefile.in: Update comment.
193 2016-01-10 Mike Frysinger <vapier@gentoo.org>
195 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_INLINE.
196 (SIM_AC_OPTION_INLINE): Rename default_sim_inline to sim_inline
197 and always set -DDEFAULT_INLINE. Delete AC_ARG_ENABLE 4th arg.
199 2016-01-10 Mike Frysinger <vapier@gentoo.org>
201 * acinclude.m4: Delete --enable-sim-regparm and sim_regparm,
202 and --enable-sim-stdcall and sim_stdcall.
203 * configure: Regenerate.
204 * Make-common.in (SIM_REGPARM, SIM_STDCALL): Delete.
205 (CONFIG_CFLAGS): Delete $(SIM_REGPARM) and $(SIM_STDCALL).
206 * sim-config.h (WITH_REGPARM, WITH_STDCALL): Delete.
207 * sim-inline.h (REGPARM_MODULE, REGPARM): Delete.
208 (REGPARM_*): Delete all regparm defines and their use.
210 2016-01-10 Mike Frysinger <vapier@gentoo.org>
212 * acinclude.m4: Delete --enable-sim-cflags and sim_cflags.
213 * Make-common.in (SIM_CFLAGS): Delete.
214 (CONFIG_CFLAGS): Delete $(SIM_CFLAGS).
215 * Makefile.in: Likewise.
217 2016-01-09 Mike Frysinger <vapier@gentoo.org>
219 * configure.ac: Change SIM_AC_COMMON to AC_PROG_CC. Drop 2nd arg
220 to AC_OUTPUT. Move AC_CHECK_HEADERS, AC_CHECK_FUNCS,
221 AC_CHECK_MEMBERS, and -AC_CHECK_TYPES ...
222 * acinclude.m4 (SIM_AC_COMMON): ... here.
223 * aclocal.m4, configure: Regenerate.
224 * config.in: Delete file.
225 * callback.c: Change cconfig.h include to config.h.
226 * dv-cfi.c, nrun.c, sim-basics.h, sim-load.c, sim-memopt.c,
228 * Make-common.in (sim-basics_h): Delete ../common/cconfig.h.
229 * Makefile.in (distclean): Delete rm -f cconfig.h config.h stamp-h.
231 2016-01-06 Mike Frysinger <vapier@gentoo.org>
233 * sim-config.c (print_sim_config): Delete sim_io_printf of version,
234 date, and time information.
236 2016-01-06 Mike Frysinger <vapier@gentoo.org>
238 * sim-options.c (sim_parse_args): Mark argv array const.
239 * sim-options.h (sim_parse_args): Likewise.
241 2016-01-05 Mike Frysinger <vapier@gentoo.org>
243 * sim-trace.c: Include dis-asm.h.
244 (OPTION_TRACE_DISASM): New enum.
245 (trace_options): Add trace-disasm flag.
246 (trace_option_handler): Handle OPTION_TRACE_DISASM.
247 (trace_idx_to_str): Handle TRACE_DISASM_IDX.
248 (dis_read, dis_printf, trace_disasm): New functions.
249 * sim-trace.h: Include dis-asm.h.
250 (TRACE_INSN_IDX): Clarify comment.
251 (TRACE_DISASM_IDX): New enum.
252 (TRACE_disasm): New define.
253 (WITH_TRACE_DISASM_P): New define.
254 (struct _trace_data): Add dis_bfd, disassembler, and dis_info.
255 (STRACE_DISASM_P): New define.
256 (TRACE_DISASM_P): Likewise.
257 (TRACE_DISASM_P): Likewise.
258 (TRACE_DISASM): Likewise.
259 (trace_disasm): New function.
261 2016-01-04 Mike Frysinger <vapier@gentoo.org>
263 * sim-utils.c (sim_state_free): Change to STATE_MAGIC.
265 2016-01-04 Mike Frysinger <vapier@gentoo.org>
267 * cgen-scache.c (MAX): Delete.
268 (scache_init): Change MAX to max.
269 * cgen-trace.c (min): Delete.
270 * cgen-utils.c (min): Delete.
271 * sim-basics.h [!min] (min): Define.
272 [!max] (max): Define.
274 2016-01-04 Mike Frysinger <vapier@gentoo.org>
276 * sim-options.c (sim_parse_args): Tweak getopt error message.
278 2016-01-04 Mike Frysinger <vapier@gentoo.org>
280 * acinclude.m4 (sim-bswap): Delete.
281 * configure: Regenerate.
282 * Make-common.in (SIM_BSWAP): Delete.
283 (CONFIG_CFLAGS): Delete $(SIM_BSWAP).
284 * sim-config.h (htonl, ntohl): Delete.
285 (WITH_BSWAP): Delete.
287 2016-01-03 Mike Frysinger <vapier@gentoo.org>
289 * sim-options.c (sim_parse_args): Declare local save_opterr. Save
290 opterr state to it before calling getopt_long and restore afterwards.
291 Set opterr to 0. When optc is '?', call sim_io_eprintf.
293 2016-01-03 Mike Frysinger <vapier@gentoo.org>
295 * hw-device.h (device): Delete commented typedef.
296 * sim-basics.h (device): Delete typedef.
298 2016-01-03 Mike Frysinger <vapier@gentoo.org>
300 * sim-options.c (sim_parse_args): Replace for loop with a call
303 2016-01-03 Mike Frysinger <vapier@gentoo.org>
305 * nrun.c (myname): Mark const.
306 (main): Mark name const. Replace myname parsing loop with a
309 2016-01-03 Mike Frysinger <vapier@gentoo.org>
311 (CONFIG_CFLAGS): Delte $(SIM_HOSTENDIAN).
312 * acinclude.m4 (SIM_AC_COMMON): Call AC_C_BIGENDIAN.
313 (SIM_AC_OPTION_HOSTENDIAN): Delete.
314 * config.in, configure: Regenerate.
315 * Make-common.in (SIM_HOSTENDIAN): Delete.
316 * sim-config.c (current_host_byte_order): Delete.
317 (sim_config): Delete current_host_byte_order assignments and
318 CURRENT_HOST_BYTE_ORDER checks.
319 (print_sim_config): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
320 * sim-config.h (WITH_HOST_BYTE_ORDER): Change to ...
321 (HOST_BYTE_ORDER): ... this. Define based on WORDS_BIGENDIAN.
322 (current_host_byte_order): Delete.
323 (CURRENT_HOST_BYTE_ORDER): Likewise.
324 * sim-endian.c (WITH_HOST_BYTE_ORDER): Rename to ...
325 (HOST_BYTE_ORDER): ... this.
326 (sim_endian_split_16): Change WITH_HOST_BYTE_ORDER to
328 (sim_endian_join_16): Likewise.
329 * sim-n-core.h (sim_core_read_misaligned_N): Change
330 CURRENT_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
331 (sim_core_write_misaligned_N): Likewise.
332 * sim-n-endian.h (endian_t2h_N): Likewise.
333 (endian_h2t_N, endian_h2be_N, endian_be2h_N, endian_h2le_N,
334 endian_le2h_N): Likewise.
335 (offset_N): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
337 2016-01-02 Mike Frysinger <vapier@gentoo.org>
339 * acinclude.m4 (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to
340 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
342 (SIM_AC_OPTION_HOSTENDIAN): Likewise.
343 * cgen-ops.h (SUBWORDXFSI): Change BIG_ENDIAN to BFD_ENDIAN_BIG.
344 (SUBWORDTFSI, JOINSIDF, JOINSIXF, JOINSITF): Likewise.
345 * nrun.c (main): Likewise.
346 * sim-config.c (current_host_byte_order): Change type to enum
347 bfd_endian. Initialize to BFD_ENDIAN_UNKNOWN.
348 (current_target_byte_order): Likewise.
349 (config_byte_order_to_a): Likewise. Change BIG_ENDIAN to
350 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
352 (sim_config): Change prefered_target_byte_order type to enum
353 bfd_endian. Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
354 to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
355 * sim-config.h: Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
356 to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
357 Delete all the various arch/OS endian includes & defines.
358 (current_host_byte_order): Change type to enum bfd_endian.
359 (current_target_byte_order): Likewise.
360 (CURRENT_HOST_BYTE_ORDER): Compare to BFD_ENDIAN_UNKNOWN, not 0.
361 (CURRENT_TARGET_BYTE_ORDER): Likewise.
362 * sim-endian.c: Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
363 * sim-events.c (sim_events_watch_sim): Change BIG_ENDIAN to
364 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
366 (sim_events_watch_core): Likewise.
367 * sim-events.h: Likewise.
368 * sim-n-core.h (sim_core_read_misaligned_N): Change BIG_ENDIAN to
370 (sim_core_write_misaligned_N): Likewise.
371 * sim-n-endian.h (endian_h2be_N): Likewise.
372 (endian_be2h_N): Likewise.
373 (endian_h2le_N): Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
374 (offset_N): Likewise.
375 * sim-options.c (standard_option_handler): Change LITTLE_ENDIAN to
376 BFD_ENDIAN_LITTLE and BIG_ENDIAN to BFD_ENDIAN_BIG.
378 2016-01-02 Mike Frysinger <vapier@gentoo.org>
380 * cgen-defs.h (current_state): Delete.
381 * sim-base.h (CURRENT_STATE_REG, CURRENT_STATE): Delete.
382 * sim-utils.c (current_state): Delete.
384 2015-12-30 Mike Frysinger <vapier@gentoo.org>
386 * sim-module.c (sim_pre_argv_init): Change STATE_MY_NAME assignment
389 2015-12-27 Mike Frysinger <vapier@gentoo.org>
391 * Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-hload.o.
393 2015-12-26 Mike Frysinger <vapier@gentoo.org>
395 * acinclude.m4 (AH_BOTTOM): Delete tconfig.h appending.
396 * config.in, configure: Regenerate.
397 * Make-common.in (sim-basics_h): Delete tconfig.h.
398 (distclean): Likewise.
399 * sim-core.c (device_io_read_buffer, device_io_write_buffer): Delete.
400 (new_sim_core_mapping): Delete WITH_HW and device *device.
401 (sim_core_map_attach, sim_core_attach): Likewise.
402 (sim_core_read_buffer): Delete WITH_DEVICES logic.
403 (sim_core_write_buffer): Likewise.
404 * sim-core.h (struct _sim_core_mapping): Delete WITH_HW and device
406 (sim_core_attach): Likewise.
407 (device_io_read_buffer, device_io_write_buffer): Delete.
408 * sim-n-core.h (sim_core_read_aligned_N): Delete WITH_DEVICES logic.
409 (sim_core_write_aligned_N): Likewise.
410 * tconfig.h: Delete file.
412 2015-12-26 Mike Frysinger <vapier@gentoo.org>
414 * sim-core.c (sim_core_read_buffer): Move cia decl to top of func.
415 Call sim_cpu_hw_io_read_buffer if cpu is valid.
416 (sim_core_write_buffer): Move cia decl to top of func. Call
417 sim_cpu_hw_io_write_buffer if cpu is valid.
419 2015-12-25 Mike Frysinger <vapier@gentoo.org>
421 * hw-properties.c (hw_find_ihandle_runtime_property): Delete
423 (hw_find_integer_property): Likewise.
424 (hw_find_integer_array_property): Likewise.
425 (hw_add_duplicate_property): Likewise.
427 2015-12-25 Mike Frysinger <vapier@gentoo.org>
429 * sim-config.h (WITH_ENGINE): Delete.
430 * sim-module.c (modules): Always include sim_engine_install.
432 2015-12-25 Mike Frysinger <vapier@gentoo.org>
434 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-model.o.
435 * cgen-types.h (SIM_HAVE_MODEL): Delete.
436 * sim-base.h: Always include sim-model.h.
437 * sim-config.h (WITH_DEFAULT_MODEL): Delete.
438 * sim-cpu.h (sim_cpu_base): Always declare mach/model members.
439 * sim-model.c (sim_model_init): Return when !WITH_MODEL_P.
440 [!WITH_MODEL_P] (sim_machs): Define.
441 * sim-model.h: Add some developer docs.
442 [!WITH_DEFAULT_MODEL] (mach_attr, WITH_DEFAULT_MODEL): Define.
443 (WITH_MODEL_P): Define.
444 * sim-module.c (modules): Always include sim_model_install.
445 * sim-profile.h (WITH_PROFILE_MODEL_P): Delete.
447 2015-12-25 Mike Frysinger <vapier@gentoo.org>
449 * sim-cpu.h: Rename MACH to SIM_MACH and MODEL to SIM_MODEL.
450 * sim-model.c: Likewise.
451 * sim-model.h: Likewise. Rename MACH_IMP_PROPERTIES to
452 SIM_MACH_IMP_PROPERTIES
454 2015-12-25 Mike Frysinger <vapier@gentoo.org>
456 * sim-core.c (device_error): Delete.
457 (sim_core_map_attach): Delete calls to device_error.
458 (sim_core_attach): Likewise.
459 * sim-core.h (device_error): Delete.
460 * sim-n-core.h (sim_core_read_aligned_N): Change device_error call
462 (sim_core_write_aligned_N): Likewise.
464 2015-12-25 Mike Frysinger <vapier@gentoo.org>
466 * sim-config.h (WITH_CALLBACK_MEMORY): Delete.
467 * sim-core.c (sim_core_write_buffer): Likewise.
468 * sim-n-core.h (sim_core_read_aligned_N): Likewise.
469 (sim_core_write_aligned_N): Likewise.
471 2015-12-25 Mike Frysinger <vapier@gentoo.org>
473 * dv-pal.c: Include config.h and sim-main.h.
474 (hw_pal_io_read_buffer): Always call CPU_INDEX.
476 2015-12-24 Mike Frysinger <vapier@gentoo.org>
478 * sim-options.c (standard_options): Always enable load-lma and
480 (standard_install): Always set STATE_LOAD_AT_LMA_P(sd) to 1.
482 2015-12-24 Mike Frysinger <vapier@gentoo.org>
484 * sim-module.c (MODULE_LIST): Delete.
486 2015-12-24 Mike Frysinger <vapier@gentoo.org>
488 * sim-options.c (OPTION_H8300H, OPTION_H8300S, OPTION_H8300SX):
489 Move to h8300/compile.c.
490 [SIM_H8300] (standard_options): Likewise.
491 (standard_option_handler): Likewise.
493 2015-12-24 Mike Frysinger <vapier@gentoo.org>
495 * sim-module.c [WITH_WATCHPOINTS] (modules): Always call
496 sim_watchpoint_install.
498 2015-12-24 Mike Frysinger <vapier@gentoo.org>
500 * sim-base.h [SIM_HAVE_FLATMEM] (sim_state_base): Delete flatmem code.
501 * sim-module.c [SIM_HAVE_FLATMEM] (modules): Always call
503 * sim-options.c (OPTION_MEM_SIZE): Delete.
504 [SIM_HAVE_FLATMEM] (standard_options): Delete flatmem code.
505 (standard_option_handler): Likewise.
507 2015-12-24 Mike Frysinger <vapier@gentoo.org>
509 * tconfig.h (SIM_HAVE_SIMCACHE): Delete.
511 2015-11-21 Mike Frysinger <vapier@gentoo.org>
514 * Makefile.in (CPPFLAGS, CXXFLAGS, LDFLAGS): Define.
516 2015-11-21 Mike Frysinger <vapier@gentoo.org>
519 * sim-utils.c (sim_do_commandf): Declare ret. Call va_start,
520 vasprintf, and va_end together. Check ret after va_end call.
522 2015-11-21 Mike Frysinger <vapier@gentoo.org>
524 * sim-types.h (SIM_PRI_TB): Define.
525 (PRI_TW, PRIiTW, PRIxTW): New PRI target word defines.
526 (PRI_TA, PRIiTA, PRIxTA): New PRI target address defines.
527 (PRI_TC, PRIiTC, PRIxTC): New PRI target cell defines.
528 (PRI_TF, PRIiTF, PRIxTF): New PRI target floating point defines.
530 2015-11-17 Mike Frysinger <vapier@gentoo.org>
532 * sim-main.h (WITH_MODULO_MEMORY): Delete.
533 * sim-core.c (new_sim_core_mapping): Always assign mask to modulo-1.
534 (sim_core_attach): Delete WITH_MODULO_MEMORY == 0 logic.
535 (sim_core_translate): Likewise.
536 * sim-core.h: Delete mention of WITH_MODULO_MEMORY.
538 2015-11-16 Mike Frysinger <vapier@gentoo.org>
540 * sim-close.c (__cgen_cpu_close, _cgen_cpu_close): Delete.
541 (cgen_cpu_close): Change to XCONCAT2.
543 2015-11-15 Mike Frysinger <vapier@gentoo.org>
545 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-reason.o, sim-reg.o,
548 2015-11-14 Mike Frysinger <vapier@gentoo.org>
550 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-close.o
551 * sim-close.c: New file.
553 2015-09-25 Andrew Bennett <andrew.bennett@imgtec.com>
554 Ali Lown <ali.lown@imgtec.com>
556 * sim-bits.h (EXTEND6): New macro.
557 (EXTEND12): New macro.
558 (EXTEND25): New macro.
560 2015-06-24 Mike Frysinger <vapier@gentoo.org>
562 * sim-trace.c (trace_one_insn): Delete.
563 * sim-trace.h (trace_one_insn): Delete.
565 2015-06-24 Mike Frysinger <vapier@gentoo.org>
567 * sim-trace.c (debug_printf): Rename to ...
568 (sim_debug_printf): ... this.
569 * sim-trace.h (debug_printf): Delete define.
570 (debug_printf): Rename to ...
571 (sim_debug_printf): ... this.
573 2015-06-24 Mike Frysinger <vapier@gentoo.org>
575 * sim-trace.c (OPTION_TRACE_REGISTER): New enum.
576 (trace_options): Add trace-register option.
577 (trace_option_handler): Handle OPTION_TRACE_REGISTER case.
578 (trace_idx_to_str): Handle TRACE_REGISTER_IDX case and re-indent.
579 * sim-trace.h (TRACE_REGISTER_IDX): New enum.
580 (TRACE_register, WITH_TRACE_REGISTER_P, STRACE_REGISTER_P,
581 TRACE_REGISTER_P, TRACE_REGISTER): Define.
583 2015-06-24 Mike Frysinger <vapier@gentoo.org>
585 * sim-trace.h (STRACE, STRACE_INSN, STRACE_DECODE, STRACE_EXTRACT,
586 STRACE_LINENUM, STRACE_MEMORY, STRACE_MODEL, STRACE_ALU, STRACE_CORE,
587 STRACE_EVENTS, STRACE_FPU, STRACE_VPU, STRACE_BRANCH, STRACE_SYSCALL,
588 STRACE_DEBUG): Define.
590 2015-06-24 Mike Frysinger <vapier@gentoo.org>
592 * sim-trace.c (trace_options): Update help text for trace-alu,
593 trace-fpu, trace-vpu, and trace-semantics.
594 * sim-trace.h (TRACE_ALU_IDX): Update comment text.
595 (TRACE_FPU_IDX, TRACE_VPU_IDX): Likewise.
597 2015-06-24 Mike Frysinger <vapier@gentoo.org>
599 * sim-assert.h (SIM_FILTER_PATH): Delete.
600 [!SIM_ASSERT, WITH_ASSERT]: Include libiberty.h.
601 (SIM_ASSERT): Replace SIM_FILTER_PATH with lbasename.
602 [!ASSERT, WITH_ASSERT]: Include libiberty.h.
603 (ASSERT): Replace SIM_FILTER_PATH with lbasename.
604 * sim-events.c: Include libiberty.h.
605 (ETRACE): Replace SIM_FILTER_PATH with lbasename.
607 2015-06-23 Mike Frysinger <vapier@gentoo.org>
609 * acinclude.m4 (AC_ARG_ENABLE(sim-bswap)): Call AS_HELP_STRING.
610 (AC_ARG_ENABLE(sim-cflags)): Likewise.
611 (AC_ARG_ENABLE(sim-debug)): Likewise.
612 (AC_ARG_ENABLE(sim-stdio)): Likewise.
613 (AC_ARG_ENABLE(sim-trace)): Likewise.
614 (AC_ARG_ENABLE(sim-profile)): Likewise.
615 (AC_ARG_ENABLE(sim-environment)): Likewise.
616 (AC_ARG_ENABLE(sim-alignment)): Likewise.
617 (AC_ARG_ENABLE(sim-assert)): Likewise.
618 (AC_ARG_ENABLE(sim-bitsize)): Likewise.
619 (AC_ARG_ENABLE(sim-endian)): Likewise.
620 (AC_ARG_ENABLE(sim-hostendian)): Likewise.
621 (AC_ARG_ENABLE(sim-float)): Likewise.
622 (AC_ARG_ENABLE(sim-scache)): Likewise.
623 (AC_ARG_ENABLE(sim-default-model)): Likewise.
624 (AC_ARG_ENABLE(sim-inline)): Likewise.
625 (AC_ARG_ENABLE(sim-packages)): Likewise.
626 (AC_ARG_ENABLE(sim-regparm)): Likewise.
627 (AC_ARG_ENABLE(sim-reserved-bits)): Likewise.
628 (AC_ARG_ENABLE(sim-smp)): Likewise.
629 (AC_ARG_ENABLE(sim-stdcall)): Likewise.
630 (AC_ARG_ENABLE(sim-xor-endian)): Likewise.
631 (AC_ARG_ENABLE(cgen-maint)): Likewise.
632 * configure: Regenerate.
634 2015-06-23 Mike Frysinger <vapier@gentoo.org>
636 * sim-config.h (WITH_TRACE): Define to ~TRACE_debug.
638 2015-06-23 Mike Frysinger <vapier@gentoo.org>
640 * cgen-trace.c [!__STDC__]: Delete.
641 * sim-trace.h [!__STDC__]: Likewise.
643 2015-06-21 Mike Frysinger <vapier@gentoo.org>
645 * sim-model.c (sim_model_init): Assert model is not NULL.
647 2015-06-21 Mike Frysinger <vapier@gentoo.org>
649 * sim-types.h: Move SIM_TYPES_H define to top of file. Include
650 stdint.h. Replace all signed/unsigned typedefs with int#_t and
653 2015-06-21 Mike Frysinger <vapier@gentoo.org>
655 * sim-alu.h (_SIM_ALU_H_): Rename to ...
656 (SIM_ALU_H): ... this.
657 * sim-assert.h (_SIM_ASSERT_H_): Rename to ...
658 (SIM_ASSERT_H): ... this.
659 * sim-basics.h (_SIM_BASICS_H_): Rename to ...
660 (SIM_BASICS_H): ... this.
661 * sim-bits.h (_SIM_BITS_H_): Rename to ...
662 (SIM_BITS_H): ... this.
663 * sim-endian.h (_SIM_ENDIAN_H_): Rename to ...
664 (SIM_ENDIAN_H): ... this.
666 2015-06-18 Mike Frysinger <vapier@gentoo.org>
668 * sim-syscall.c (sim_syscall_multi): Change unknown_syscall to a
671 2015-06-18 Mike Frysinger <vapier@gentoo.org>
673 * callback.c (cb_target_map_entry, cb_host_map_entry): Change map to
674 m for sentinel testing.
676 2015-06-17 Mike Frysinger <vapier@gentoo.org>
678 * sim-syscall.c: Include errno.h and targ-vals.h.
679 (sim_syscall_multi, sim_syscall): Define.
680 * sim-syscall.h (sim_syscall_multi, sim_syscall): Declare.
681 * syscall.c (cb_syscall): Extend comment.
683 2015-06-17 Mike Frysinger <vapier@gentoo.org>
685 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-syscall.o.
686 * sim-syscall.c: New file.
687 * sim-syscall.h: New file.
689 2015-06-17 Mike Frysinger <vapier@gentoo.org>
691 * callback.c (cb_target_map_entry, cb_host_map_entry): Define.
692 (cb_target_to_host_syscall): Rewrite to use cb_target_map_entry.
693 (cb_host_to_target_errno): Rewrite to use cb_host_map_entry.
694 (cb_host_str_syscall, cb_host_str_errno, cb_host_str_signal,
695 cb_target_str_syscall, cb_target_str_errno, cb_target_str_signal):
697 * gentmap.c (gen_targ_map_c): Output name field.
699 2015-06-12 Mike Frysinger <vapier@gentoo.org>
701 * acinclude.m4: Change configure.in to configure.ac.
702 * sim-config.h: Likewise.
704 2015-06-12 Mike Frysinger <vapier@gentoo.org>
706 * acinclude.m4 (sim-trace): Delete -DTRACE flags.
707 * configure: Regenerate.
709 2015-06-12 Mike Frysinger <vapier@gentoo.org>
711 * sim-trace.h (TRACE, TRACE_INSN, TRACE_DECODE, TRACE_EXTRACT,
712 TRACE_LINENUM, TRACE_MEMORY, TRACE_MODEL, TRACE_ALU, TRACE_CORE,
713 TRACE_EVENTS, TRACE_FPU, TRACE_VPU, TRACE_BRANCH, TRACE_SYSCALL,
714 TRACE_DEBUG): Define.
716 2015-06-12 Mike Frysinger <vapier@gentoo.org>
718 * sim-module.c (modules): Change WITH_TRACE to WITH_TRACE_ANY_P.
719 * sim-trace.c (trace_option_handler): Likewise.
720 * sim-trace.h (WITH_TRACE_ANY_P): Define.
721 (STRACE_ANY_P): Use WITH_TRACE_ANY_P.
722 (TRACE_ANY_P): Likewise.
724 2015-06-12 Mike Frysinger <vapier@gentoo.org>
726 * cgen-run.c (sim_resume): Rename TRACE_INSN_FINI to
727 CGEN_TRACE_INSN_FINI.
728 * cgen-trace.c: Rename trace_insn to cgen_trace_insn,
729 trace_result to cgen_trace_result, trace_insn_fini to
730 cgen_trace_insn_fini, trace_insn_init to cgen_trace_insn_init,
731 and trace_extract to cgen_trace_extract.
732 * cgen-trace.h (trace_insn_init): Rename to ...
733 (cgen_trace_insn_init): ... this.
734 (trace_insn_fini): Rename to ...
735 (cgen_trace_insn_fini): ... this.
736 (trace_insn): Rename to ...
737 (cgen_trace_insn): ... this.
738 (trace_extract): Rename to ...
739 (cgen_trace_extract): ... this.
740 (trace_result): Rename to ...
741 (cgen_trace_result): ... this.
742 (TRACE_RESULT_P): Rename to ...
743 (CGEN_TRACE_RESULT_P): ... this.
744 (TRACE_INSN_INIT): Rename to ...
745 (CGEN_TRACE_INSN_INIT): ... this. Change trace_insn_init to
746 cgen_trace_insn_init.
747 (TRACE_INSN_FINI): Rename to ...
748 (CGEN_TRACE_INSN_FINI): ... this. Change trace_insn_fini to
749 cgen_trace_insn_fini.
750 (TRACE_PRINTF): Rename to ...
751 (CGEN_TRACE_PRINTF): ... this.
752 (TRACE_INSN): Rename to ...
753 (CGEN_TRACE_INSN): ... this. Change trace_insn to cgen_trace_insn.
754 (TRACE_EXTRACT): Rename to ...
755 (CGEN_TRACE_EXTRACT): ... this. Change trace_extract to
757 (TRACE_RESULT): Rename to ...
758 (CGEN_TRACE_RESULT): ... this. Change TRACE_RESULT_P to
759 CGEN_TRACE_RESULT_P and trace_result to cgen_trace_result.
760 * genmloop.sh (@prefix@_pbb_before): Change TRACE_INSN_FINI to
761 CGEN_TRACE_INSN_FINI, TRACE_INSN_INIT to CGEN_TRACE_INSN_INIT, and
762 TRACE_INSN to CGEN_TRACE_INSN.
763 (@prefix@_pbb_after): Change TRACE_INSN_FINI to CGEN_TRACE_INSN_FINI.
765 2015-06-11 Mike Frysinger <vapier@gentoo.org>
767 * sim-events.c (ETRACE_P): Delete.
768 (ETRACE): Change ETRACE_P to STRACE_EVENTS_P(sd).
769 (update_time_from_event, sim_events_schedule_vtracef): Likewise.
770 * sim-events.h (struct _sim_events): Delete trace member.
771 * sim-trace.c (set_trace_option_mask): Delete trace_nr check and
772 always set STATE_TRACE_FLAGS(sd)[trace_nr] element.
774 2015-06-11 Mike Frysinger <vapier@gentoo.org>
776 * sim-trace.h (STRACE_ANY_P, STRACE_INSN_P, STRACE_DECODE_P,
777 STRACE_EXTRACT_P, STRACE_LINENUM_P, STRACE_MEMORY_P, STRACE_MODEL_P,
778 STRACE_ALU_P, STRACE_CORE_P, STRACE_EVENTS_P, STRACE_FPU_P,
779 STRACE_VPU_P, STRACE_BRANCH_P, STRACE_SYSCALL_P): Define.
781 2015-06-11 Mike Frysinger <vapier@gentoo.org>
783 * sim-trace.h (TRACE_USEFUL_MASK): Change to TRACE_xxx defines.
785 2015-06-11 Mike Frysinger <vapier@gentoo.org>
787 * sim-trace.h (WITH_TRACE_P): New define.
788 (WITH_TRACE_INSN_P, WITH_TRACE_DECODE_P, WITH_TRACE_EXTRACT_P,
789 WITH_TRACE_LINENUM_P, WITH_TRACE_MEMORY_P, WITH_TRACE_MODEL_P,
790 WITH_TRACE_ALU_P, WITH_TRACE_CORE_P, WITH_TRACE_EVENTS_P,
791 WITH_TRACE_FPU_P, WITH_TRACE_VPU_P, WITH_TRACE_BRANCH_P,
792 WITH_TRACE_SYSCALL_P, WITH_TRACE_DEBUG_P, STRACE_P, TRACE_P):
793 Redefine to use WITH_TRACE_P.
795 2015-06-09 Mike Stump <mrs@mrs.kithrup.com>
797 * sim-events.c (sim_events_schedule_after_signal): Fix spelling
798 mistake in call to sim_engine_abort.
800 2015-04-29 Nick Clifton <nickc@redhat.com>
803 * sim-fpu.c (INLINE_SIM_FPU): Fix static analysis warning by
804 increasing parenthesis around casts to signed values.
806 2015-04-21 Mike Frysinger <vapier@gentoo.org>
808 * gennltvals.sh: Add mcore support.
809 * nltvals.def: Regenerate.
811 2015-04-21 Mike Frysinger <vapier@gentoo.org>
813 * cgen.sh: Add +x permissions.
814 * genmloop.sh: Likewise.
815 * gentvals.sh: Likewise.
816 * gennltvals.sh (newlibroot): New variable to hold the path to newlib.
817 Change all uses of srcroot for newlib to newlibroot.
819 2015-04-18 Mike Frysinger <vapier@gentoo.org>
821 * sim-base.h (SIM_CPU): New typedef.
823 2015-04-18 Mike Frysinger <vapier@gentoo.org>
825 * cgen-engine.h (CIA_ADDR): Delete.
826 * sim-base.h: Update sim_cia example.
827 [!CIA_ADDR] (sim_cia): New typedef.
829 2015-04-17 Mike Frysinger <vapier@gentoo.org>
831 * cgen-utils.c (cgen_rtx_error): Change CIA_GET to CPU_PC_GET.
832 * sim-core.c (sim_core_read_buffer, sim_core_write_buffer): Likewise.
833 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Change CIA_SET to CPU_PC_SET.
834 * sim-run.c (sim_engine_run): Change CIA_GET to CPU_PC_GET and
835 CIA_SET to CPU_PC_SET.
837 2015-04-15 Mike Frysinger <vapier@gentoo.org>
839 * Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-cpu.o.
840 * sim-main.h (STATE_CPU): Remove from comment and define.
842 2015-04-13 Mike Frysinger <vapier@gentoo.org>
844 * acinclude.m4 (ACX_PKGVERSION): Change GDB to SIM.
845 * configure: Regenerate.
847 2015-04-13 Mike Frysinger <vapier@gentoo.org>
849 * sim-options.c: Include version.h.
850 (OPTIONS_VERSION): New enum.
851 (standard_options): Add "version".
852 (standard_option_handler): Handle OPTIONS_VERSION.
854 2015-04-13 Mike Frysinger <vapier@gentoo.org>
856 * Makefile.in (version.o): Change to using create-version.sh from gdb.
857 (create-version.sh): Delete.
859 2015-04-06 Mike Frysinger <vapier@gentoo.org>
861 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-engine.o and sim-hrw.o.
863 2015-04-01 Mike Frysinger <vapier@gentoo.org>
865 * run-sim.h, run.c: Delete.
866 * tconfig.h (SIM_HAVE_PROFILE, SIM_HAVE_BIENDIAN): Delete.
868 2015-03-31 Mike Frysinger <vapier@gentoo.org>
870 * config.in, configure: Regenerate.
871 * Make-common.in (CSEARCH): Add $(ZLIBINC).
872 (ZLIB, ZLIBINC): Define.
873 (BFD_LIB): Add $(ZLIB).
875 2015-03-31 Mike Frysinger <vapier@gentoo.org>
877 * cgen-mem.h (MEMOPS_INLINE): Change to EXTERN_INLINE.
878 * cgen-ops.h (SEMOPS_INLINE): Likewise.
880 2015-03-29 Mike Frysinger <vapier@gentoo.org>
882 * sim-arange.h (SIM_ARANGE_INLINE): Move above sim_addr_range_hit_p.
883 (sim_addr_range_hit_p): Change INLINE to SIM_ARANGE_INLINE.
884 * sim-inline.h (INLINE2): Define to gnu_inline when available.
886 2015-03-24 Mike Frysinger <vapier@gentoo.org>
888 * sim-profile.c (profile_pc_event): Get pc via sim_pc_get. Delete
889 usage of STATE_WATCHPOINTS.
890 (profile_pc_init): Delete STATE_WATCHPOINTS (sd)->pc check. Change
891 STATE_WATCHPOINTS (sd)->sizeof_pc to sizeof (sim_cia).
893 2015-03-24 Mike Frysinger <vapier@gentoo.org>
895 * tconfig.h: Note SIM_HAVE_PROFILE is deprecated.
897 2015-03-24 Mike Frysinger <vapier@gentoo.org>
899 * tconfig.h: Note SIM_HAVE_BIENDIAN is deprecated.
901 2015-03-24 Mike Frysinger <vapier@gentoo.org>
903 * acinclude.m4 (SIM_AC_OPTION_HARDWARE): Move default option setting
904 of enable_sim_hardware to AC_ARG_ENABLE.
906 2015-03-23 Mike Frysinger <vapier@gentoo.org>
908 * acinclude.m4 (SIM_AC_OPTION_HARDWARE): Delete SIM_DV_SOCKSER_O.
909 Add dv-sockser.o to sim_hw_objs.
911 2015-03-23 Mike Frysinger <vapier@gentoo.org>
913 * dv-sockser.c: Include config.h.
914 * dv-sockser.h: Include sim-inline.h.
915 [HAVE_DV_SOCKSER]: Move all prototypes here.
916 [!HAVE_DV_SOCKSER] (dv_sockser_status, dv_sockser_write,
917 dv_sockser_write_buffer, dv_sockser_read): New stub functions.
919 2015-03-16 Mike Frysinger <vapier@gentoo.org>
921 * gentmap.c, run.c: Convert old style prototypes.
923 2015-03-16 Mike Frysinger <vapier@gentoo.org>
925 * acinclude.m4 (SIM_AC_COMMON): Call AH_BOTTOM. Delete logic for
926 symlinking tconfig.h to tconfig.in.
927 * config.in, configure: Regenerate.
928 * nrun.c, run.c, sim-basics.h: Delete tconfig.h include.
929 * tconfig.in: Rename file ...
930 * tconfig.h: ... here.
932 2015-03-15 Mike Frysinger <vapier@gentoo.org>
934 * dv-socker.h (dv_sockser_install): Declare.
935 * sim-module.c: Include config.h.
936 [HAVE_DV_SOCKSER]: Include dv-sockser.h.
937 (modules) [HAVE_DV_SOCKSER]: Add dv_sockser_install.
938 * sim-module.h: Include gdb/remote-sim.h.
940 2015-03-14 Mike Frysinger <vapier@gentoo.org>
942 * Make-common.in (BUILT_SRC_FROM_COMMON): Delete.
943 (sim-inline.c): Delete rule.
945 2015-03-14 Mike Frysinger <vapier@gentoo.org>
947 * Make-common.in (SIM_RUN_OBJS): Change to nrun.o.
948 * run.c [SIM_USE_DEPRECATED_RUN_FRONTEND]: Issue a warning.
949 [!SIM_USE_DEPRECATED_RUN_FRONTEND]: Throw an error.
951 2015-03-14 Mike Frysinger <vapier@gentoo.org>
953 * sim-assert.h [!SIM_ASSERT, WITH_ASSERT]: Include sim-io.h.
954 [!ASSERT, WITH_ASSERT]: Likewise.
955 * sim-endian.c: Delete sim-io.h include.
957 2015-02-19 Mike Frysinger <vapier@gentoo.org>
959 * run-sim.h (sim_kill): Delete unused prototype.
961 2015-02-13 Chen Gang <gang.chen.5i5j@gmail.com>
963 * gentmap.c: Include "string.h".
965 2015-02-02 Chen Gang <gang.chen.5i5j@gmail.com>
967 * sim-options.c (sim_args_command): Call freeargv() when failure
970 2015-01-07 Joel Brobecker <brobecker@adacore.com>
972 * aclocal.m4, configure: Regenerate using automake 1.11.1.
974 2014-12-03 Joel Brobecker <brobecker@adacore.com>
976 * sim-io.c (sim_io_stat, sim_io_fstat): Adjust calls to "stat"
977 and "fstat" callbacks by calls to "to_stat" and "to_fstat" (resp)
978 callbacks following renaming in callback.h.
979 * syscall.c (cb_syscall): Likewise. Adjust calls to "lstat"
980 callback by call to "to_lstat" callback
982 2014-08-28 Gary Benson <gbenson@redhat.com>
984 * sim-trace.h (debug_printf): New define.
986 2014-08-19 Alan Modra <amodra@gmail.com>
988 * configure: Regenerate.
990 2014-08-15 Roland McGrath <mcgrathr@google.com>
992 * configure: Regenerate.
993 * config.in: Regenerate.
995 2014-03-10 Mike Frysinger <vapier@gentoo.org>
997 * sim-command.c (sim_do_command): Add const to cmd.
998 * sim-options.c (sim_args_command): Add const to cmd.
999 * sim-options.h (sim_args_command): Add const to cmd.
1001 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1003 * sim-hload.c (sim_load): Add const to prog.
1004 * sim-load.c (sim_load_file): Likewise.
1005 * sim-utils.c (sim_analyze_program): Likewise.
1006 * sim-utils.h (sim_analyze_program): Likewise.
1007 (sim_load_file): Likewise.
1009 2014-03-04 Mike Frysinger <vapier@gentoo.org>
1011 * acinclude.m4 (build_warnings): Copy from gdb/configure.ac.
1012 * callback.c (system): Delete unused prototype.
1013 (os_init): Likewise.
1014 (os_shutdown): Likewise.
1015 (os_unlink): Likewise.
1016 (os_time): Likewise.
1017 (os_system): Likewise.
1018 (os_rename): Likewise.
1019 (os_write_stdout): Likewise.
1020 (os_flush_stdout): Likewise.
1021 (os_write_stderr): Likewise.
1022 (os_flush_stderr): Likewise.
1023 (os_write): Likewise.
1024 (os_read_stdin): Likewise.
1025 (os_read): Likewise.
1026 (os_open): Likewise.
1027 (os_lseek): Likewise.
1028 (os_isatty): Likewise.
1029 (os_get_errno): Likewise.
1030 (os_close): Likewise.
1031 (os_vprintf_filtered): Likewise.
1032 (os_evprintf_filtered): Likewise.
1033 (os_error): Likewise.
1037 (wrap): Change to new style prototype.
1040 (os_close): Likewise.
1041 (os_poll_quit): Likewise.
1042 (os_get_errno): Likewise.
1043 (os_isatty): Likewise.
1044 (os_lseek): Likewise.
1045 (os_open): Likewise.
1046 (os_read): Likewise.
1047 (os_read_stdin): Likewise.
1048 (os_write): Likewise.
1049 (os_write_stdout): Likewise.
1050 (os_flush_stdout): Likewise.
1051 (os_write_stderr): Likewise.
1052 (os_flush_stderr): Likewise.
1053 (os_rename): Likewise.
1054 (os_system): Likewise.
1055 (os_time): Likewise.
1056 (os_unlink): Likewise.
1057 (os_stat): Likewise.
1058 (os_fstat): Likewise.
1059 (os_lstat): Likewise.
1060 (os_ftruncate): Likewise.
1061 (os_truncate): Likewise.
1062 (os_pipe): Likewise.
1063 (os_pipe_empty): Likewise.
1064 (os_pipe_nonempty): Likewise.
1065 (os_shutdown): Likewise.
1066 (os_init): Likewise.
1067 (cb_read_target_syscall_maps): Likewise.
1068 (cb_target_to_host_syscall): Likewise.
1069 (cb_host_to_target_errno): Likewise.
1070 (cb_target_to_host_open): Likewise.
1071 (cb_store_target_endian): Likewise.
1072 (cb_host_to_target_stat): Likewise.
1073 * sim-hload.c (sim_load): Change to new style prototype.
1074 * sim-load.c (sim_load_file): Change to new style prototype.
1075 (report_transfer_performance): Likewise.
1076 (xprintf_bfd_vma): Likewise.
1077 * syscall.c (cb_get_string): Change to new style prototype.
1078 (get_path): Likewise.
1079 (cb_syscall): Likewise.
1081 2013-10-15 Hans-Peter Nilsson <hp@axis.com>
1083 * create-version.sh: Align parameters to match those of
1084 ../../gdb/common/create-version.sh.
1085 * Make-common.in (srcsim): New variable.
1086 (version.c): Adjust call to create-version.sh as per above.
1088 2013-09-23 Alan Modra <amodra@gmail.com>
1090 * configure: Regenerate.
1092 2013-09-03 Mike Stump <mikestump@comcast.net>
1094 * sim-options.c (complete_option_list): Mark text and word const.
1096 2013-06-28 Tom Tromey <tromey@redhat.com>
1098 * Make-common.in (version.c): Use version.in, not
1100 * create-version.sh: Likewise.
1102 2013-06-24 Joel Brobecker <brobecker@adacore.com>
1104 * create-version.sh: New script. Adapted from
1105 gdb/commong/create-version.sh.
1106 * Make-common.in (version.c): Update rule dependencies,
1107 and re-implement using create-version.sh.
1109 2013-06-21 Nick Clifton <nickc@redhat.com>
1111 * gennltvals.sh: Add msp430 support.
1112 * nltvals.def: Regenerate.
1114 2013-06-03 Mike Frysinger <vapier@gentoo.org>
1116 * acinclude.m4: Replace maintainer-mode code with AM_MAINTAINER_MODE.
1117 * aclocal.m4, configure: Regenerate.
1119 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
1122 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Do not use
1123 -Wformat-nonliteral with -Wno-format.
1125 2013-03-26 Mike Frysinger <vapier@gentoo.org>
1127 * acinclude.m4: Regenerate.
1129 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
1131 * acinclude.m4: Add SIM_DV_SOCKSER_O which is empty on hosts
1132 which do not support dv-sockser.o. Add always as option to
1133 first argument to SIM_AC_OPTION_HARDWARE. Fail if hardware
1134 is always required to be enabled by simulator.
1136 2012-08-28 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1138 * gennltvals.sh: Use libgloss/syscall.h for cr16.
1139 * nltvals.def: Regenerate.
1141 2012-06-16 Joel Brobecker <brobecker@adacore.com>
1143 * acinclude.m4 (SIM_AC_COMMON): Define PACKAGE.
1144 * config.in, configure: Regenerate.
1146 2012-05-24 Pedro Alves <palves@redhat.com>
1148 * sim-signal.h (sim_signal_to_target): Rename to ...
1149 (sim_signal_to_gdb_signal): ... this.
1150 * sim-signal.c (sim_signal_to_target): Rename to ...
1151 (sim_signal_to_gdb_signal): ... this.
1152 * sim-reason.c (sim_stop_reason): Adjust to rename.
1154 2012-05-24 Pedro Alves <palves@redhat.com>
1158 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
1160 2012-05-24 Pedro Alves <palves@redhat.com>
1164 Replace target_signal with gdb_signal throughout.
1166 2012-05-18 Nick Clifton <nickc@redhat.com>
1169 * callback.c: Include config.h before system header files.
1170 * cgen-trace.c: Likewise.
1171 * cgen-utils.c: Likewise.
1172 * gentmap.c: Likewise.
1174 2012-04-02 Mike Frysinger <vapier@gentoo.org>
1176 * hw-ports.c (hw_port_decode): Change "Unreconized" to "Unrecognized".
1178 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
1180 * sim-trace.c: Update the function prototype of save_data_size.
1181 Move the enum data_fmt from here...
1182 * sim-trace.h: ...to here.
1183 Add function prototype of save_data.
1185 2012-03-25 Mike Frysinger <vapier@gentoo.org>
1187 * sim-core.h (sim_core_trans_addr): Add prototype.
1189 2012-03-24 Hans-Peter Nilsson <hp@axis.com>
1191 * nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza
1192 missing in last change.
1194 2012-03-24 Mike Frysinger <vapier@gentoo.org>
1196 * acinclude.m4 (SIM_AC_COMMON): Call AC_USE_SYSTEM_EXTENSIONS.
1197 * nrun.c: Include string.h/strings.h.
1198 * aclocal.m4, config.in, configure: Regenerate.
1200 2012-03-22 Mike Frysinger <vapier@gentoo.org>
1202 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Copy AC_ARG_ENABLE(werror),
1203 WERROR_CFLAGS, and build_warnings from gdb/configure.ac. Comment
1204 out -Werror initialization.
1206 2012-03-19 Mike Frysinger <vapier@gentoo.org>
1208 * Make-common.in (TAGS): Change a-z to [:lower:].
1209 * acinclude.m4 (sim-trace): Likewise.
1210 * gennltvals.sh: Change A-Z0-9 to [:upper:][:digit:].
1211 Change A-Za-z0-9 to [:alnum:].
1213 2012-03-18 Mike Frysinger <vapier@gentoo.org>
1215 * nrun.c (main): Display strsignal of sigrc.
1217 2012-01-06 Mike Frysinger <vapier@gentoo.org>
1219 * Makefile.in (abs_srcdir): Declare.
1220 (srcroot): Define in terms of abs_srcdir.
1221 (headers): Change srcdir to abs_srcdir.
1223 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1225 * dv-sockser.h, sim-assert.h, sim-fpu.c: Reformat the copyright
1228 2011-12-19 Joel Brobecker <brobecker@adacore.com>
1230 * Make-common.in (hw-config.h): Work around bug in Solaris 2.8
1231 system bourne shell.
1233 2011-12-03 Mike Frysinger <vapier@gentoo.org>
1235 * syscall.c (cb_get_string): Rename from "get_string".
1236 (get_path): Rename get_string call to cb_get_string.
1238 2011-12-03 Mike Frysinger <vapier@gentoo.org>
1240 * Make-common.in (VPATH): Add $(srccom).
1242 (DEPMODE, DEPDIR, depcomp, COMPILE.pre, COMPILE.post, COMPILE,
1243 POSTCOMPILE): New variables.
1244 (.c.o): Replace recipe with call to $(COMPILE) and $(POSTCOMPILE).
1245 Include dependency files, when using GNU Make. Delete all
1246 dependency-only rules.
1247 * aclocal.m4: Include ../../config/depstand.m4. Call
1248 ZW_CREATE_DEPDIR and ZW_PROG_COMPILER_DEPENDENCIES.
1249 (MAKE, GMAKE): New substs.
1251 2011-11-07 Mike Frysinger <vapier@gentoo.org>
1254 * configure.ac (AC_CHECK_FUNCS): Add posix_fallocate.
1255 * configure, config.in: Regenerate.
1256 * dv-cfi.c (attach_cfi_regs): Check for HAVE_POSIX_FALLOCATE.
1258 2011-10-19 Mike Frysinger <vapier@gentoo.org>
1260 * acinclude.m4: Call AC_CHECK_LIB when $hardware contains cfi.
1262 2011-10-18 John Wehle <john@feith.com> (tiny patch)
1264 * sim-profile.c (profile_info): Only print the title once.
1266 2011-10-17 Mike Frysinger <vapier@gentoo.org>
1268 * acinclude.m4: Rename from aclocal.m4.
1269 * aclocal.m4: Regenerate.
1271 2011-10-17 Mike Frysinger <vapier@gentoo.org>
1273 * aclocal.m4: Change AC_PREREQ comment to 2.64.
1274 * common.m4: Delete.
1275 * configure.ac: Change AC_PREREQ to 2.64. Replace AC_CONFIG_HEADER
1276 call and common.m4 include with SIM_AC_COMMON(cconfig.h).
1277 * configure: Regenerate.
1279 2011-10-14 Alexey Makhalov <makhaloff@gmail.com>
1281 * sim-alu.h (ALU32_AND): Clear carry flag.
1282 (ALU32_AND): Clear carry flag.
1284 2011-10-09 Mike Frysinger <vapier@gentoo.org>
1286 * dv-cfi.c: Include stdbool.h.
1288 2011-10-09 Mike Frysinger <vapier@gentoo.org>
1290 * dv-cfi.c: Replace devices.h include with hw-base.h and hw-main.h.
1292 2011-10-04 Mike Frysinger <vapier@gentoo.org>
1294 * aclocal.m4 (SIM_AC_COMMON): Call AM_ZLIB, ACX_PKGVERSION, and
1295 ACX_BUGURL. Define PKGVERSION and REPORT_BUGS_TO.
1297 2011-07-12 Mike Frysinger <vapier@gentoo.org>
1299 * sim-command.c: Include sim-options.h.
1301 2011-07-12 Mike Frysinger <vapier@gentoo.org>
1303 * aclocal.m4: Move sinclude comment after AC_INIT comment.
1305 2011-07-12 Mike Frysinger <vapier@gentoo.org>
1307 * aclocal.m4 (SIM_AC_COMMON): Call AC_REQUIRE on AC_PROG_CC.
1308 Delete direct call to AC_PROG_CC.
1310 2011-07-05 Mike Frysinger <vapier@gentoo.org>
1312 * sim-command.c: New file.
1313 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-command.o.
1314 (sim-command.o): New rule.
1316 2011-05-27 Mike Frysinger <vapier@gentoo.org>
1318 * sim-options.c (standard_option_handler): Remove arg[0] check
1319 when freeing simulator_sysroot. Only strdup arg when arg[0] is
1320 not an empty string, otherwise assign "" back to it.
1322 2011-05-26 Mike Frysinger <vapier@gentoo.org>
1324 * nltvals.def: Regenerate to include Blackfin syscalls again.
1326 2011-05-25 Mike Frysinger <vapier@gentoo.org>
1328 * sim-trace.c (OPTION_TRACE_SYSCALL): New enum.
1329 (trace_options): Handle "trace-syscall" with OPTION_TRACE_SYSCALL.
1330 (trace_option_handler): Handle OPTION_TRACE_SYSCALL.
1331 (trace_idx_to_str): Likewise.
1332 * sim-trace.h (TRACE_SYSCALL_IDX): New enum.
1333 (TRACE_syscall): Define.
1334 (WITH_TRACE_SYSCALL_P): Likewise.
1335 (TRACE_SYSCALL_P): Likewise.
1337 2011-05-23 Mike Frysinger <vapier@gentoo.org>
1339 * dv-glue.c (hw_glue_finish): Move "name" to function scope and
1340 remove now-unnecessary sub-scope for glue->type setting.
1341 Check to see if the "reg" property exists before we use it, and
1342 if it doesn't exist, error out for "glue" devices.
1344 2011-05-23 Mike Frysinger <vapier@gentoo.org>
1346 * dv-glue.c (hw_glue_finish): Set type to glue_or when name is
1347 glue-or, and set type to glue_xor when name is glue-xor.
1348 (hw_glue_port_event): Return immediately when type is glue_io
1349 or unmatched. Handle glue_or and glue_xor types. Move HW_TRACE
1350 and hw_port_event calls from glue_and to end of function.
1352 2011-05-11 Mike Frysinger <vapier@gentoo.org>
1354 * callback.c, dv-pal.c, dv-sockser.c, hw-base.c, hw-device.c,
1355 hw-instances.c, hw-ports.c, hw-properties.c, hw-tree.c, sim-abort.c,
1356 sim-arange.c, sim-config.c, sim-core.c, sim-engine.c, sim-events.c,
1357 sim-hw.c, sim-io.c, sim-memopt.c, sim-options.c, sim-profile.c,
1358 sim-resume.c, sim-stop.c, syscall.c: Add space before parenthesis
1359 around function arguments.
1361 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1363 * sim-options.c (complete_option_list, sim_complete_command):
1366 2011-04-02 Mike Frysinger <vapier@gentoo.org>
1368 * dv-glue.c: Fix up style.
1370 2011-04-02 Mike Frysinger <vapier@gentoo.org>
1372 * hw-alloc.c (hw_alloc_data): Adjust brace.
1373 * hw-base.c (hw_base_data): Likewise.
1374 (generic_hw_unit_decode): Fix indentation.
1375 * hw-device.h (_hw_unit, enum, hw): Adjust braces.
1376 * hw-events.c (hw_event, hw_event_data): Likewise.
1377 * hw-handles.c (hw_handle_mapping, hw_handle_data): Likewise.
1378 * hw-instances.c (hw_instance_data): Likewise.
1379 * hw-instances.h (hw_instance): Likewise.
1380 * hw-main.h (hw_descriptor, enum): Likewise.
1381 * hw-ports.c (hw_port_edge, hw_port_data, empty_hw_ports): Likewise.
1382 * hw-ports.h (hw_port_descriptor): Likewise.
1383 * hw-properties.c (hw_property_data): Likewise.
1384 * hw-properties.h (enum, hw_property, _ihandle_runtime_property_spec,
1385 _range_property_spec, _reg_property_spec): Likewise.
1386 * hw-tree.c (_name_specifier, printer): Likewise.
1387 (split_device_specifier, parse_string_property, hw_tree_traverse,
1388 print_size, print_reg_property, print_string, print_properties):
1391 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1393 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add cfi to default list.
1394 * Make-common.in (dv-cfi.o): New rule.
1395 * dv-cfi.c, dv-cfi.h: New files.
1397 2011-03-21 Kevin Buettner <kevinb@redhat.com>
1399 * gennltvals.sh: Search sys/_default_fcntl.h, in addition to
1400 fcntl.h and sys/fcntl.h, for constants.
1401 * nltvals.def: Regenerate.
1402 * sim-io.c (sim_io_stat, sim_io_fstat): New functions.
1403 * sim-io.h (sys/types.h, sys/stat.h): Include.
1404 (sim_io_stat, sim_io_fstat): Declare.
1406 2011-03-14 Mike Frysinger <vapier@gentoo.org>
1408 * callback.c, cgen-engine.h, dv-core.c, dv-glue.c, dv-pal.c,
1409 hw-base.c, hw-device.c, hw-device.h, hw-handles.c, hw-instances.c,
1410 hw-ports.c, hw-ports.h, hw-properties.c, hw-tree.c, nrun.c,
1411 run-sim.h, run.c, sim-alu.h, sim-assert.h, sim-base.h, sim-basics.h,
1412 sim-config.c, sim-core.c, sim-core.h, sim-engine.h, sim-events.c,
1413 sim-events.h, sim-fpu.c, sim-hw.c, sim-inline.h, sim-load.c,
1414 sim-memopt.c, sim-n-core.h, sim-options.c, sim-profile.c,
1415 sim-signal.c, sim-trace.c, sim-trace.h, sim-utils.c, sim-watch.c,
1416 syscall.c: Trim trailing whitespace.
1418 2011-03-05 Mike Frysinger <vapier@gentoo.org>
1420 * gennltvals.sh: Handle bfin targets.
1421 * nltvals.def: Regenerate.
1423 2011-02-25 Kevin Buettner <kevinb@redhat.com>
1425 * callback.c (fdbad): Return EBADF rather than EINVAL for bad
1428 2011-02-14 Mike Frysinger <vapier@gentoo.org>
1430 * hw-alloc.c (hw_alloc_data): Delete zalloc_p.
1431 (hw_zalloc, hw_malloc): Delete zalloc_p reference.
1432 (hw_free): Drop zfree logic and always call free.
1433 * hw-base.c (hw_delete): Change zfree to free.
1434 * hw-handles.c (hw_handle_remove_ihandle): Likewise.
1435 (hw_handle_remove_phandle): Likewise.
1436 * hw-instances.c (hw_instance_delete): Likewise.
1437 * hw-tree.c (parse_reg_property): Likewise.
1438 (parse_ranges_property): Likewise.
1439 (parse_string_property): Likewise.
1440 * sim-core.c (sim_core_uninstall): Likewise.
1441 * sim-cpu.c (sim_cpu_free_all): Likewise.
1442 * sim-hw.c (sim_hw_uninstall): Likewise.
1443 * sim-memopt.c (do_memopt_delete): Likewise.
1444 (sim_memory_uninstall): Likewise.
1445 * sim-module.c (sim_module_uninstall): Likewise.
1446 * sim-options.c (sim_parse_args): Likewise.
1447 * sim-profile.c (profile_pc_cleanup): Likewise.
1448 (profile_uninstall): Likewise.
1449 * sim-watch.c (do_watchpoint_delete): Likewise.
1450 * sim-utils.c (zfree): Delete.
1451 (sim_state_free): Change zfree to free.
1452 * sim-utils.h (zfree): Delete.
1454 2011-02-13 Mike Frysinger <vapier@gentoo.org>
1456 * sim-events.h (_sim_events.time_from_event): Change type to signed64.
1458 2011-01-12 Mike Frysinger <vapier@gentoo.org>
1460 * sim-hw.c (sim_hw_uninstall): Uncomment hw_tree_delete.
1462 2011-01-12 Mike Frysinger <vapier@gentoo.org>
1464 * sim-module.c (sim_pre_argv_init): Return SIM_RC_FAIL when asprintf
1466 * sim-options.c (sim_parse_args): Issue an error and return SIM_RC_FAIL
1467 when asprintf fails.
1468 * sim-utils.c (sim_do_commandf): Issue an error and return when
1470 * sim-watch.c (sim_watchpoint_install): Return SIM_RC_FAIL when
1473 2011-01-11 Mike Frysinger <vapier@gentoo.org>
1475 * sim-memopt.c (do_memopt_add): Set nr_bytes to s.st_size before
1476 bytes has been calculated and when mmap_next_fd is valid and
1478 (memory_option_handler): Allow missing size when mmap_next_fd is
1481 2011-01-10 Mike Frysinger <vapier@gentoo.org>
1483 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set $hardware to $2 when $2 is
1484 not empty, and always append $3 to $hardware.
1486 2011-01-10 Mike Frysinger <vapier@gentoo.org>
1488 * hw-device.h (hw_abort, hw_vabort, hw_halt): Add noreturn attribute.
1489 * sim-hw.h (sim_hw_abort): Likewise.
1491 2011-01-05 Mike Frysinger <vapier@gentoo.org>
1493 * sim-load.c (sim_load_file): Change buffer type to unsigned char *.
1495 2011-01-05 Joel Brobecker <brobecker@adacore.com>
1497 * run.1: Copyright year update.
1499 2010-12-28 Mike Frysinger <vapier@gentoo.org>
1501 * hw-alloc.h (HW_NALLOC): Define.
1503 010-12-28 Mike Frysinger <vapier@gentoo.org>
1505 * hw-alloc.h (HW_NZALLOC): Change ME,TYPE,N to me,type,n.
1507 2010-12-15 Mike Frysinger <vapier@gentoo.org>
1509 * sim-memopt.c (OPTION_MAP_INFO): Define.
1510 (memory_options): Handle --map-info.
1511 (memory_option_handler): Handle OPTION_MAP_INFO.
1513 2010-11-22 Mike Frysinger <vapier@gentoo.org>
1515 * sim-profile.c (PROFILE_PC_FREQ, PROFILE_PC_NR_BUCKETS,
1516 PROFILE_PC_SHIFT, PROFILE_PC_START, PROFILE_PC_END,
1517 PROFILE_INSN_COUNT): Add stubs when profile is disabled.
1519 2010-11-22 Mike Frysinger <vapier@gentoo.org>
1521 * sim-core.c (WITH_HW): Add device casts to device_error,
1522 device_io_read_buffer, and device_io_write_buffer.
1524 2010-11-16 Mike Frysinger <vapier@gentoo.org>
1526 * dv-sockser.c (dv_sockser_write_buffer): New function.
1527 (dv_sockser_write): Rewrite to use dv_sockser_write_buffer.
1528 * dv-sockser.h (dv_sockser_write_buffer): New prototype.
1530 2010-10-07 Hans-Peter Nilsson <hp@axis.com>
1532 * callback.c (os_lseek): Call wrap on lseek result.
1534 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
1536 * dv-sockser.c (dv_sockser_init): Check error return from socket()
1537 call by its equality to -1 not by it being negative.
1538 (connected_p): Likewise for accept() call.
1540 2010-04-23 Mike Frysinger <vapier@gentoo.org>
1542 * sim-fpu.c (sim_fpu_zero, sim_fpu_qnan): Add 0 initializers.
1544 2010-04-21 Mike Frysinger <vapier@gentoo.org>
1546 * profile.c (sim_profile_print_bar): Add cpu argument.
1548 2010-04-21 Mike Frysinger <vapier@gentoo.org>
1550 * sim-profile.h (sim_profile_print_bar): Use sim_cpu, not SIM_CPU.
1552 2010-04-21 Mike Frysinger <vapier@gentoo.org>
1554 * sim-profile.c (profile_vprintf, profile_printf): New functions.
1555 (profile_print_pc): Convert sim_io_printf to profile_printf.
1556 (profile_print_insn): Likewise.
1557 (profile_print_memory): Likewise.
1558 (profile_print_core): Likewise.
1559 (profile_print_model): Likewise.
1560 (sim_profile_print_bar): Likewise.
1561 (profile_print_speed): Likewise.
1562 (profile_print_addr_ranges): Likewise.
1563 (profile_info): Likewise.
1564 * sim-profile.h (sim_profile_print_bar): Add cpu argument.
1566 2010-04-19 Mike Frysinger <vapier@gentoo.org>
1568 * sim-model.c (OPTION_MODEL): Convert to enum.
1569 (OPTION_MODEL_INFO): New enum.
1570 (model_options): Add model-info/info-model entries.
1571 (model_option_handler): Handle OPTION_MODEL_INFO.
1573 2010-04-13 Mike Frysinger <vapier@gentoo.org>
1575 * dv-sockser.h (DV_SOCKSER_DISCONNECTED): Define.
1576 * dv-sockser.c (dv_sockser_status): Set DV_SOCKSER_DISCONNECTED
1579 2010-04-13 Mike Frysinger <vapier@gentoo.org>
1581 * sim-hrw.c (sim_write): Add const to buf arg.
1582 * sim-utils.h (sim_write_fn): Likewise.
1584 2010-04-12 Mike Frysinger <vapier@gentoo.org>
1586 * sim-profile.h (PROFILE_BRANCH_TAKEN, PROFILE_BRANCH_UNTAKEN): New
1589 2010-04-12 Mike Frysinger <vapier@gentoo.org>
1591 * dv-core.c (dv_core_descriptor): Add NULL initializer.
1592 * dv-glue.c (hw_glue_ports, dv_glue_descriptor): Likewise.
1593 * dv-pal.c (hw_pal_ports, dv_pal_descriptor): Likewise.
1594 * dv-sockser.c (sockser_options): Likewise.
1595 * hw-ports.c (empty_hw_ports): Likewise.
1596 * sim-hw.c (hw_options): Likewise.
1597 * sim-model.c (model_options): Likewise.
1598 * sim-options.c (standard_options): Likewise.
1599 * sim-profile.c (profile_options): Likewise.
1600 * sim-trace.c (trace_options): Likewise.
1601 * sim-watch.c (watchpoint_options): Likewise.
1603 2010-04-12 Mike Frysinger <vapier@gentoo.org>
1605 * sim-options.c (dup_arg_p): Add "const" to the "arg" argument,
1606 the local "arg_table" variable, and the xmalloc cast.
1608 2010-04-10 Mike Frysinger <vapier@gentoo.org>
1610 * sim-fpu.c (sim_fpu_print_status): Add const markings to local
1612 (sim_fpu_print_func): Add const markings to format buffer.
1614 2010-04-10 Mike Frysinger <vapier@gentoo.org>
1616 * sim-fpu.c (sim_fpu_print_status): Remove duplicate break statements.
1618 2010-04-10 Mike Frysinger <vapier@gentoo.org>
1620 * sim-trace.c (save_data): Add const markings to "buf" argument.
1622 2010-04-10 Mike Frysinger <vapier@gentoo.org>
1624 * sim-options.c (standard_option_handler): Add const markings to
1627 2010-04-02 Mike Frysinger <vapier@gentoo.org>
1629 * hw-ports.h: Fix spelling typos.
1631 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1633 * configure.ac: Check for socklen_t.
1634 * configure, config.in: Regenerated.
1635 * dv-sockser.c (connected_p): Change addrlen type to socklen_t.
1637 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1639 * sim-utils.c (sim_io_eprintf_cpu): Use %s with printf string.
1640 * sim-hw.c (hw_option_handler): Likewise.
1642 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1644 * sim-watch.c (watchpoint_type_to_str): Add const to return.
1645 (interrupt_nr_to_str): Likewise.
1646 (default_interrupt_names): Add const to pointer type.
1647 (sim_watchpoint_install): Add const to prefix.
1648 * sim-watch.h (struct _sim_watchpoints): Add const to interrupt_names.
1650 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1652 * sim-core.c (sim_core_read_buffer): Change raddr to address_word.
1653 (sim_core_write_buffer): Likewise.
1655 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1657 * sim-trace.c (trace_option_handler): Move cpu_nr decl behind
1658 the SIM_HAVE_ADDR_RANGE define.
1660 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1662 * sim-core.h (device_error): Add const to message, and add printf
1665 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1667 * sim-profile.c (profile_print_addr_ranges): Wrap with the
1668 SIM_HAVE_ADDR_RANGE define.
1670 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1672 * dv-glue.c (hw_glue_ports): Swap static and const.
1674 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1676 * nrun.c (usage): Use void in definition.
1677 * sim-options.c (dup_arg_p): Convert old-style function definition.
1678 (sim_parse_args): Likewise.
1679 (sim_print_help): Likewise.
1680 * sim-trace.c (set_trace_option_mask): Likewise.
1681 (set_trace_option): Likewise.
1682 * sim-utils.c (sim_analyze_program): Likewise.
1683 (sim_elapsed_time_get): Likewise.
1684 (sim_elapsed_time_since): Likewise.
1686 2010-03-22 Mike Frysinger <vapier@gentoo.org>
1688 * sim/common/sim-options.c (enum): Remove SIM_HAVE_BIENDIAN ifdef.
1689 (standard_options): Likewise.
1690 (standard_option_handler): Likewise.
1692 2010-03-16 Mike Frysinger <vapier@gentoo.org>
1694 * hw-ports.c (TRACE): Delete.
1695 * hw-properties.c (TRACE): Delete.
1696 (hw_find_ihandle_runtime_property): Change TRACE to HW_TRACE.
1697 (hw_find_integer_property): Likewise.
1698 (hw_find_integer_array_property): Likewise.
1699 (hw_add_duplicate_property): Likewise.
1701 2010-03-15 Mike Frysinger <vapier@gentoo.org>
1703 * hw-properties.h (hw_add_boolean_property): Rename "bool" to
1706 2010-02-04 Mike Frysinger <vapier@gentoo.org>
1708 * sim-model.c: Include sim-model.h
1710 2010-02-04 Mike Frysinger <vapier@gentoo.org>
1712 * sim-base.h: Declare sim_state.cpu as a pointer in the comment. Drop
1713 & from the STATE_CPU() examples.
1715 2010-01-24 Doug Evans <dje@sebabeach.org>
1717 * cgen-accfp.c (fextsfdf): New arg how. All callers updated.
1718 (ftruncdfsf, floatsisf, flostsidf, ufloatsisf, fixsfsi, fixdfsi,
1720 * cgen-fpu.h (CGEN_FPCONV_KIND): New enum.
1721 (struct cgen_fp_ops): Update signatures of floating point conversion
1724 * Make-common.in (CGEN_SIM_DEPS): Define.
1725 (CGEN_INCLUDE_DEPS): Use it.
1726 (CGEN_MAIN_CPU_DEPS): Simplify.
1728 2010-01-22 Doug Evans <dje@sebabeach.org>
1730 * cgen-ops.h (SUBWORDXFSI): Fix word ordering.
1731 (SUBWORDTFSI, JOINSIDI): Ditto.
1733 2010-01-05 Doug Evans <dje@sebabeach.org>
1735 * cgen-types.h (SETDI): Delete, unused.
1737 2009-12-02 Doug Evans <dje@sebabeach.org>
1739 * cgen-engine.h: Remove duplicated comment.
1741 2009-11-23 Doug Evans <dje@sebabeach.org>
1743 * cgen-engine.h (EXTRACT_MSB0_SINT): Renamed from EXTRACT_MSB0_INT.
1744 (EXTRACT_LSB0_SINT): Renamed from EXTRACT_LSB0_INT.
1746 2009-11-22 Doug Evans <dje@sebabeach.org>
1748 * cgen-engine.h (EXTRACT_MSB0_LGSINT, EXTRACT_MSB0_LGUINT): Define.
1749 (EXTRACT_LSB0_LGSINT, EXTRACT_LSB0_LGUINT): Define.
1750 (EXTRACT_FN, SEMANTIC_FN): Use CGEN_INSN_WORD in prototype
1751 instead of CGEN_INSN_INT.
1753 * cgen-trace.h (trace_extract): Add cast to fix warning.
1755 2009-11-05 Doug Evans <dje@sebabeach.org>
1757 * cgen-mem.h (DECLARE_GETT): Don't inline.
1758 (DECLARE_SETT): Ditto.
1760 2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
1762 * sim-inline.h: Fix spelling error.
1764 2009-10-02 Ralf Corsepius <ralf.corsepius@rtems.org>
1766 * Make-common.in: Add datarootdir.
1768 2009-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1770 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS)
1771 (SIM_CHECK_MEMBERS_1): Remove.
1772 * configure.ac: Replace SIM_CHECK_MEMBERS call with equivalent
1773 AC_CHECK_MEMBERS one.
1774 * configure: Regenerate.
1776 * aclocal.m4 (SIM_CHECK_MEMBER): Use AU_ALIAS to define, not defn.
1777 * configure: Regenerate.
1779 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1781 * config.in: Regenerate.
1782 * configure: Likewise.
1784 * aclocal.m4 (SIM_CHECK_MEMBER): Replace definition with
1785 definition of AC_CHECK_MEMBER.
1787 * aclocal.m4: m4_include toplevel config/override.m4.
1788 * configure: Regenerate.
1790 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1792 * Makefile.in (datarootdir): New variable.
1794 2009-07-07 Doug Evans <dje@sebabeach.org>
1796 * Make-common.in (CPU_DIR): Define.
1798 2009-07-06 Doug Evans <dje@sebabeach.org>
1800 * Make-common.in (CGEN_CPU_EXTR,CGEN_CPU_READ): Pass canonical
1801 identifiers for file types rather than encoding internal
1802 implementation details of cgen.sh.
1803 (CGEN_CPU_WRITE,CGEN_CPU_SEM,CGEN_CPU_SEMSW): Ditto.
1804 * cgen.sh: Add support for parallel makes.
1805 Rewrite cpu/decode handling to avoid generating "extrafiles" twice.
1807 2009-05-18 Jon Beniston <jon@beniston.com>
1809 * gennltvals.sh: Add lm32 target.
1810 * nltvals.def: Add lm32 syscall definitions.
1812 2009-03-19 J"orn Rennecke <joern.rennecke@arc.com> (tiny change)
1814 Speed up simulator startup:
1815 * sim-utils.c (zalloc): Use xcalloc.
1817 2009-01-07 Hans-Peter Nilsson <hp@axis.com>
1819 * cgen-ops.h (ADDQI, SUBQI, MULQI, NEGQI, ABSQI, ADDHI, SUBHI)
1820 (MULHI, NEGHI, ABSHI, ADDSI, SUBSI, MULSI, NEGSI, ABSSI, ADDDI)
1821 (SUBDI, MULDI, NEGDI, ABSDI): Cast arguments to the unsigned type
1822 variant; UQI, UHI, USI, UDI, and cast the result to the signed
1823 type, QI, HI, SI, DI.
1825 * callback.c (os_error): Mark as being a noreturn function.
1826 * sim-io.h (sim_io_error): Similar for sim_io_error.
1828 2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
1830 * aclocal.m4: Fix underquoting of function names.
1832 2008-10-21 Julian Brown <julian@codesourcery.com>
1834 * Make-common.in (run$(EXEEXT)): Add LDFLAGS.
1836 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
1838 * common.m4: Add test for libz and zlib.h.
1839 * configure: Regenerate to track ../common/common.m4 changes.
1842 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
1843 Daniel Jacobowitz <dan@codesourcery.com>
1844 Joseph Myers <joseph@codesourcery.com>
1846 * aclocal.m4: Include ../../config/acx.m4.
1847 * common.m4: Use ACX_PKGVERSION and ACX_BUGURL.
1848 * configure, config.in: Regenerate.
1849 * Make-common.in (LIB_OBJS): Add version.o.
1850 (version.c, version.o): New rules.
1851 * run.c: Include version.h.
1852 (usage): Add help parameter. Print output either to stdout or
1853 stderr depending on that parameter.
1854 (print_version): New.
1855 (main): Check for --help and --version.
1856 * run-sim.h (sim_target_display_usage): Add help parameter.
1859 2008-04-14 Hans Kester <kester.hans@gmail.com>
1861 * sim-signal.c: Define missing signals for _WIN32.
1863 2008-02-12 M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
1865 * gennltvals.sh: Add cr16.
1866 * nltvals.def: Rebuild.
1868 2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
1870 * callback.c (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add functions.
1871 * syscall.c (cb_syscall): Test for stdin/out/err, not just fd 0/1/2.
1873 2007-08-10 Nick Clifton <nickc@redhat.com>
1875 * sim-memopt.c (memory_options): Mention that the
1876 --memory-size switch accepts suffixes.
1877 (parse_size): Handle a suffix on the size value.
1878 * sim-options.c (standard_options): Mention that the mem-size
1879 switch accepts suffixes.
1880 (standard_option_handler): Handle a suffix on the size value.
1882 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
1884 * acconfig.h: Remove.
1885 * config.in: Regenerate.
1887 2006-11-07 Thiemo Seufer <ths@mips.com>
1889 * gentmap.c: Fix compile time warning.
1891 2006-11-07 Thiemo Seufer <ths@mips.com>
1893 * sim-base.h (text_start, text_end, start_addr): Use bfd_vma type
1894 for bfd text addresses.
1896 2006-08-29 Thiemo Seufer <ths@mips.com>
1897 Nigel Stephens <nigel@mips.com>
1899 * sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for
1900 SIM_QUIET_NAN_NEGATED.
1902 2006-08-29 Nigel Stephens <nigel@mips.com>
1904 * sim-profile.c (profile_pc_init): Initialise default profiling
1905 frequency to a prime number.
1906 (profile_print_pc): Convert gmon.out sample data into target
1909 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
1911 * aclocal.m4: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
1912 * common.m4: Likewise.
1913 * configure: Regenerated.
1915 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
1917 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR.
1918 * configure: Regenerated.
1920 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
1922 * Make-common.in: Replace INTLLIBS and INTLDEPS with LIBINTL
1923 and LIBINTL_DEP everywhere.
1924 (CSEARCH): Use INCINTL.
1925 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR. Include new
1927 * configure: Regenerated.
1929 2006-03-29 Hans-Peter Nilsson <hp@axis.com>
1931 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
1932 option-contents test.
1934 2005-11-28 Mark Mitchell <mark@codesourcery.com>
1936 * sim-signal.c (sim_signal_to_target): Fix typos.
1938 * sim-reason.c (sim_stop_reason): Use
1939 sim_signal_to_target, not sim_signal_to_host.
1940 * sim-signal.c (sim_signal_to_host): Fix typo.
1941 (sim_signal_to_target): New function.
1943 2005-07-10 Hans-Peter Nilsson <hp@bitrange.com>
1945 * sim-load.c (xprintf, eprintf): Remove fallout from ANSI_PROTOTYPES
1948 2005-07-08 Ian Lance Taylor <ian@airs.com>
1950 * sim-fpu.c (sim_fpu_abs): Always clear the sign bit.
1952 * sim-fpu.c (pack_fpu): If SIM_QUIET_NAN_NEGATED is defined, use a
1953 different fraction for a quiet NaN.
1954 (unpack_fpu): Likewise.
1956 2005-07-08 Ben Elliston <bje@au.ibm.com>
1958 * callback.c: Remove ANSI_PROTOTYPES conditional code.
1959 * sim-load.c: Likewise.
1960 * syscall.c: Likewise.
1962 2005-05-24 Corinna Vinschen <vinschen@redhat.com>
1964 * Make-common.in (LIBDEPS): Correctly use INTLDEPS for dependency
1967 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1969 * Make-common.in (install-common, installdirs): Honor $DESTDIR.
1971 2005-04-20 Manoj Iyer <manjo@austin.ibm.com>
1973 * sim-types.h: Changed unsigned32 and unsigned64 to signed32
1974 and signed64 for __ALPHA__.
1976 2005-03-23 Mark Kettenis <kettenis@gnu.org>
1978 * aclocal.m4 Include ../../gettext.m4.
1979 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST)
1980 (AM_LC_MESSAGES): Remove.
1981 * configure: Regenerate.
1983 2005-02-28 Jim Blandy <jimb@redhat.com>
1985 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Don't include
1986 -Wuninitialized in the default list of build warnings if CFLAGS is
1987 set, and doesn't include -O. (Using -Wuninitialized without
1988 optimization produces a warning, which interferes with compilation
1991 2005-02-21 Jim Blandy <jimb@redhat.com>
1993 * callback.c (os_fstat): Don't declare 't' unless it's used.
1995 2005-02-09 Jim Blandy <jimb@redhat.com>
1997 * Make-common.in (CGEN): Load guile.scm, and include a trailing
1999 (CGEN_FLAGS_TO_PASS): Include single quotes around the reference
2000 to $(CGEN), to ensure that the command substitution happens where
2001 the variable is referenced in the submake, not when the submake's
2002 arguments are expanded.
2003 (cgen.sh): Be prepared for the 'cgen' argument to contain spaces.
2004 (arch, cpu, decode, cpu-decode, defs, desc): Place the name of the
2005 application Scheme script directly after ${cgen}; don't precede it
2008 2005-01-28 Hans-Peter Nilsson <hp@axis.com>
2010 * syscall.c (cb_syscall) <case CB_SYS_pipe>: New case.
2011 * callback.c [HAVE_LIMITS_H]: Include limits.h.
2012 Include libiberty.h.
2013 (os_close, os_read, os_write, os_fstat, os_ftruncate): Support fd
2014 being either end of a pipe.
2015 (os_pipe, os_pipe_empty, os_pipe_nonempty): New functions.
2016 (os_shutdown): Clear pipe state.
2017 (default_callback): Initialize new members.
2019 * callback.c (default_callback): Initialize target_endian.
2020 (cb_store_target_endian): Renamed from store, new first parameter
2021 host_callback *cb, drop last parameter big_p. Take endianness
2023 (cb_host_to_target_stat): Change to use cb_store_target_endian.
2024 Remove variable big_p.
2025 * nrun.c (main): Initialize default_callback.target_endian.
2027 2005-01-14 Andrew Cagney <cagney@gnu.org>
2029 * configure.ac: Replace SIM_AC_COMMON with sinclude of common.m4.
2030 Add explicit call to AC_CONFIG_HEADER.
2031 * common.m4: Delete call to AC_CONFIG_HEADER, update usage.
2032 * configure: Re-generate.
2034 2005-01-12 Andrew Cagney <cagney@gnu.org>
2036 * common.m4: New file, based on of aclocal.m4.
2038 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
2040 * aclocal.m4 (SIM_AC_OUTPUT): Rewrite to use 2.59 macros.
2041 * configure: Regenerated to track ../common/aclocal.m4 changes.
2043 2005-01-07 Andrew Cagney <cagney@gnu.org>
2045 * configure.ac: Rename configure.in, require autoconf 2.59.
2046 * aclocal.m4 (SIM_AC_COMMON): Delete call to AC_CONFIG_AUX_DIR.
2047 * configure: Re-generate.
2049 2004-12-15 Hans-Peter Nilsson <hp@axis.com>
2051 * syscall.c (cb_syscall) <case CB_SYS_truncate>
2052 <case CB_SYS_ftruncate>: New cases.
2054 2004-12-13 Hans-Peter Nilsson <hp@axis.com>
2056 * syscall.c (cb_syscall) <case CB_SYS_lstat>: New case.
2057 (cb_syscall) <case CB_SYS_rename>: New case.
2058 * callback.c (os_lstat): New function.
2060 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
2062 * run.1: Document --sysroot=filepath.
2063 * sim-options.c (STANDARD_OPTIONS): New member OPTION_SYSROOT.
2064 (standard_options): Support --sysroot=<path>.
2065 (standard_option_handler): Handle OPTION_SYSROOT.
2066 * syscall.c (simulator_sysroot): Define, initialized empty.
2067 (get_path): Prepend simulator_sysroot to absolute file path.
2068 [HAVE_STRING_H]: Include string.h.
2069 [!HAVE_STRING_H && HAVE_STRINGS_H]: Include strings.h.
2070 * nrun.c [HAVE_UNISTD_H]: Include unistd.h.
2071 (main): If simulator_sysroot is not empty, chdir there.
2072 * sim-config.h (simulator_sysroot): Declare.
2074 * aclocal.m4 (SIM_AC_OUTPUT): Substitute @cgen_breaks@ for "break
2075 cgen_rtx_error" in a CGEN-generated simulator.
2076 * gdbinit.in: Break on sim_core_signal too. Have autoconf
2077 replacement for CGEN-related breakpoints.
2079 2004-12-07 Hans-Peter Nilsson <hp@axis.com>
2081 * Make-common.in (sim-basics_h): Add $(callback_h).
2083 2004-12-03 Hans-Peter Nilsson <hp@axis.com>
2085 * configure.in (SIM_CHECK_MEMBERS): Call for struct stat members
2086 st_dev, st_ino, st_mode, st_nlink, st_uid, st_gid, st_rdev,
2087 st_size, st_blksize, st_blocks, st_atime, st_mtime and st_ctime.
2088 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS_1)
2089 (SIM_CHECK_MEMBERS): New macros.
2090 * callback.c (cb_host_to_target_stat): Use temporary macro ST_x
2091 for struct stat member test and write. Add ST_x calls for each
2092 struct stat member tested in configure.in. Wrap each ST_x call in
2093 #ifdef of configure macro for that member.
2094 * configure, config.in: Regenerate.
2096 2004-12-01 Hans-Peter Nilsson <hp@axis.com>
2098 * cgen.sh: New thirteenth parameter opcfile, defaulting to
2100 <case desc>: Pass -OPC opcfile.
2101 * Make-common.in (cgen-desc): Pass $(opcfile) as thirteenth
2102 parameter to cgen.sh.
2104 2004-11-30 Richard Earnshaw <rearnsha@arm.com>
2106 * Make-common.in (sim-basics_h): Correct dependencies on
2107 cconfig.h and tconfig.h
2108 (sim-load.o): Correct typo in sim-basics_h dependency.
2110 2004-11-18 Richard Earnshaw <rearnsha@arm.com>
2112 * Make-common.in (sim-*_h): Add macros for all sim headers listing
2113 sub-dependencies for other sim files that they include.
2114 (sim_main_headers): Use sim-*_h macros.
2115 (sim-load.o): Depend on sim-basics_h, not sim_main_headers.
2117 2004-11-16 Hans-Peter Nilsson <hp@axis.com>
2119 * sim-config.c (sim_config): Recognize when a bfd has unspecified
2122 * Make-common.in (sim-load.o): Depend on $(sim_main_headers) and
2123 $(remote_sim_h) too.
2124 (sim_main_headers): Add sim-utils.h.
2126 2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2128 * cgen-defs.h (ENDSWITCH): Changed to compile with gcc-3.4.2.
2130 2004-07-26 Andrew Cagney <cagney@gnu.org>
2132 Problem from Olaf Hering <olh@suse.de>.
2133 * Makefile.in (install-man, installdirs): Add DESTDIR prefix.
2135 2004-07-10 Ben Elliston <bje@au.ibm.com>
2137 * hw-tree.c (parse_integer_property): Typo fix in comments.
2138 * sim-options.c (sim_args_command): Likewise.
2140 2004-06-28 Andrew Cagney <cagney@gnu.org>
2142 * run.c: Rename ui_loop_hook to deprecated_ui_loop_hook.
2144 2004-06-27 J"orn Rennecke <joern.rennecke@superh.com>
2146 * callback.c (os_shutdown): Fix bug in last change: actually
2147 mark file descriptors as available on startup.
2149 2004-06-25 J"orn Rennecke <joern.rennecke@superh.com>
2151 [ include/gdb: * callback.h (host_callback_struct): Replace
2152 members fdopen and alwaysopen with fd_buddy. ]
2153 * callback.c: Changed all users.
2155 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2157 * sim-load.c (sim_load_file): Use bfd_get_section_size
2158 instead of bfd_get_section_size_before_reloc.
2160 2004-05-18 Daniel Jacobowitz <dan@debian.org>
2162 * dv-glue.c (hw_glue_finish): Cast result of sizeof to long before
2163 passing it to printf.
2165 2004-05-10 Daniel Jacobowitz <dan@debian.org>
2167 * callback.c: Update copyright dates.
2169 * sim-basics.h: Likewise.
2170 * sim-load.c: Likewise.
2171 * syscall.c: Likewise.
2173 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2175 * callback.c: Include cconfig.h instead of config.h.
2177 * sim-basics.h: Likewise.
2178 * sim-load.c: Likewise.
2179 * syscall.c: Likewise.
2181 2004-01-16 Ben Elliston <bje@wasabisystems.com>
2183 * Makefile.in (clean): Remove rm -f $(ALL), as $(ALL) is empty.
2185 2003-12-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2187 * sim-core.c (sim_core_trans_addr): Added for m32r-linux-run.
2189 2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
2191 * sim-options.c (standard_options): Fix the names of H8
2194 2003-10-30 Andrew Cagney <cagney@redhat.com>
2196 * sim-trace.c, sim-base.h: Replace "struct symbol_cache_entry"
2197 with "struct bfd_symbol".
2199 2003-10-21 Andrew Cagney <cagney@redhat.com>
2201 * callback.c (os_truncate): Call "truncate", and not "stat".
2203 2003-10-20 Andrew Cagney <cagney@redhat.com>
2205 * sim-base.h: Replace "struct sec" with "struct bfd_section".
2207 2003-10-15 J"orn Rennecke <joern.rennecke@superh.com>
2209 * callback.c (os_ftruncate, os_truncate): New functions.
2210 (default_callback): Initialize ftruncate and truncate members.
2212 2003-09-08 Dave Brolley <brolley@redhat.com>
2214 On behalf of Doug Evans <dje@sebabeach.org>
2215 * cgen.sh: New arg archfile.
2216 * Make-common.in (cgen-arch,cgen-cpu,cgen-defs,cgen-decode,
2217 cgen-cpu-decode,cgen-desc): Update call to cgen.sh.
2219 2003-08-28 Andrew Cagney <cagney@redhat.com>
2221 * dv-glue.c (hw_glue_finish): Change %d to %ld to match sizeof.
2222 * sim-options.c (print_help): Cast the format with specifier to
2225 2003-08-20 Michael Snyder <msnyder@redhat.com>
2226 Dave Brolley <brolley@redhat.com>
2228 * cgen-par.h (flags, word1): New target-specific
2229 fields of CGEN_WRITE_QUEUE_ELEMENT.
2230 (CGEN_WRITE_QUEUE_ELEMENT_FLAGS): New accessor macro.
2231 (CGEN_WRITE_QUEUE_ELEMENT_WORD1): New accessor macro.
2232 * gennltvals.sh: Add frv target.
2233 * nltvals.def: Add frv target.
2235 2003-06-23 Michael Snyder <msnyder@redhat.com>
2237 * nrun.c (main): Delete h8/300 ifdef (sim now handles signals).
2238 * sim-reg.c: Fix cut-and-paste bug in comment.
2240 2003-06-22 Andrew Cagney <cagney@redhat.com>
2242 From matthew green <mrg@redhat.com>:
2243 * sim-fpu.h: Update copyright.
2244 (sim_fpu_fraction, sim_fpu_guard): New prototypes.
2245 * sim-fpu.c: Update copyright.
2246 (sim_fpu_fraction, sim_fpu_guard): New inline functions.
2248 2003-06-17 Frank Ch. Eigler <fche@redhat.com>
2250 From Doug Evans <dje@sebabeach.org>:
2251 * cgen-trace.h (sim_disasm_read_memory): Update args to be compatible
2252 with disassemble_info:read_memory_func.
2253 * cgen-trace.c (sim_disasm_read_memory): Ditto.
2255 2003-06-04 Michael Snyder <msnyder@redhat.com>
2257 * common/run.c (main): Remove SIM_H8300 ifdef.
2259 * common/sim-options.c (STANDARD_OPTIONS): Add SIM_H8300SX.
2260 (standard_options): Add '-x' for h8/300sx.
2261 (standard_option_handler): Add case for SIM_H8300SX.
2263 2003-04-13 Michael Snyder <msnyder@redhat.com>
2265 * Make-common.in (sim-events.o, sim-config.o): Depend on sim-main.h.
2267 2003-03-01 Andrew Cagney <cagney@redhat.com>
2269 * sim-engine.c (sim_engine_halt): If jmpbuf is invalid, abort.
2270 (sim_engine_vabort): Ditto.
2272 2003-02-27 Andrew Cagney <cagney@redhat.com>
2274 * sim-utils.h (sim_analyze_program, sim_load_file): Rename _bfd to bfd.
2275 * sim-hload.c (sim_load), sim-base.h (sim_state_base): Ditto.
2276 * nrun.c (main): Ditto.
2278 2003-02-26 Andrew Cagney <cagney@redhat.com>
2280 * sim-engine.h (sim_engine_abort): Add noreturn attribute.
2281 (sim_engine_vabort): Ditto.
2282 (sim_engine_halt, sim_engine_restart): Ditto.
2284 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2286 * Make-common.in (SIM_NEW_COMMON_OBJS): Remove sim-break.o
2287 (sim-break_h): Delete macro.
2288 (sim-break.o): Delete rule.
2289 * sim-break.c: Delete file.
2290 * sim-break.h: Delete file.
2291 * sim-base.h [SIM_HAVE_BREAKPOINTS]: Don't include "sim-break.h".
2292 (STATE_BREAKPOINTS): Delete macro.
2293 (sim_state_base): Delete field breakpoints.
2294 * sim-module.c (modules) [SIM_HAVE_BREAKPOINTS]: Don't add
2295 sim_break_install to array.
2297 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
2299 * run.c (usage): Fix typos.
2301 2002-11-27 Richard Sandiford <rsandifo@redhat.com>
2303 * sim-fpu.c (sim_fpu_inv): Use sim_fpu_div.
2305 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2307 * dv-core.c: Update copyright. sim/common contributed to the FSF.
2308 * dv-glue.c, dv-pal.c, hw-base.c, hw-base.h, hw-device.c: Ditto.
2309 * hw-device.h, hw-handles.c, hw-handles.h: Ditto.
2310 * hw-instances.c, hw-instances.h, hw-properties.c: Ditto.
2311 * hw-properties.h, hw-tree.c, hw-tree.h, sim-alu.h: Ditto.
2312 * sim-basics.h, sim-bits.c, sim-bits.h, sim-config.c: Ditto.
2313 * sim-config.h, sim-core.c, sim-core.h, sim-endian.c: Ditto.
2314 * sim-endian.h, sim-events.c, sim-events.h, sim-inline.c: Ditto.
2315 * sim-inline.h, sim-io.c, sim-io.h, sim-n-bits.h: Ditto.
2316 * sim-n-core.h, sim-n-endian.h, sim-types.h: Ditto.
2318 2002-11-13 Andrew Cagney <cagney@redhat.com>
2320 * run.c (main): Remove SIM_HAVE_ENVIRONMENT from #endif.
2322 2002-11-06 Richard Sandiford <rsandifo@redhat.com>
2324 * Make-common.in (SIM_EXTRA_DISTCLEAN): New macro.
2325 (distclean): Depend on it.
2327 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2329 * cgen-trace.h: Test __BFD_H_SEEN__ rather than BFD_VERSION.
2331 2002-08-29 Dave Brolley <brolley@redhat.com>
2333 * Make-common.in (CGEN_READ_SCM): Remove ../../cgen/stamp-cgen.
2335 2002-07-17 Andrew Cagney <cagney@redhat.com>
2337 * run-sim.h: Add #ifdef RUN_SIM_H wrapper.
2338 (sim_set_callbacks, sim_size, sim_trace)
2339 (sim_set_trace, sim_set_profile_size, sim_kill): Declare. Moved
2340 to here from "gdb/remote-sim.h".
2342 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2344 * sim-resume.c (sim_resume): Add local variable sig_to_deliver to
2345 avoid possible longjmp problems with automatic variable siggnal.
2347 2002-07-14 Andrew Cagney <ac131313@redhat.com>
2349 From 2002-07-11 Momchil Velikov <velco@fadata.bg>:
2350 * Make-common.in (installdirs): Make $(libdir) too, needed when
2351 installing libsim.a.
2353 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2355 * gennltvals.sh (dir): Mark d30v as obsolete.
2356 * nltvals.def: Remove d30v.
2358 2002-06-17 Andrew Cagney <cagney@redhat.com>
2360 * hw-events.c (hw_event_queue_schedule): Initialize `dummy'.
2362 * sim-memopt.c: Include <unistd.h>.
2363 (do_memopt_add): Fix printf format.
2364 * sim-events.c (sim_events_schedule): Initialize ``dummy''.
2366 2002-06-16 Andrew Cagney <ac131313@redhat.com>
2368 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Update to match GDB's
2369 --enable-gdb-build-warnings.
2370 * configure: Regenerated to track ../common/aclocal.m4 changes.
2372 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
2374 * sim-fpu.c (unpack_fpu): Initialize exponent for
2377 (sim_fpu_sqrt): Same.
2379 2002-06-08 Andrew Cagney <cagney@redhat.com>
2381 * gentmap.c (gen_targ_map_c): Generate "gdb/callback.h".
2382 * sim-basics.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
2384 * sim-load.c: Ditto.
2385 * callback.c: Ditto.
2387 * Make-common.in (callback_h): Define.
2388 (remote_sim_h): Define.
2390 (callback.o): Update.
2391 (syscall.o): Update.
2394 (sim-hload.o): Update.
2396 (sim-reason.o): Update.
2397 (sim-reg.o): Update.
2398 (sim-resume.o): Update.
2400 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
2402 * run.c: Fix formatting.
2404 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
2406 * run-sim.h: New header. Provide prototypes for functions used
2407 between run() and libsim.a which are not used by GDB.
2408 * run.c: Include run-sim.h.
2409 (main): If SIM_TARGET_SWITCHES is defined call
2410 sim_target_parse_command_line.
2411 (usage): If SIM_TARGET_SWITCHES is defined call
2412 sim_target_display_usage.
2414 2002-05-17 Andrey Volkov <avolkov@transas.com>
2416 * run.c: Made h8300s as new target, not h8300h alias.
2417 Added new option -S (h8300s target)
2418 * sim-options.c: Ditto.
2420 2002-05-01 Chris Demetriou <cgd@broadcom.com>
2422 * callback.c: Use 'deprecated' rather than 'depreciated.'
2424 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2426 From wiz at danbala:
2427 * sim-fpu.h: Fix grammar and typos.
2430 2002-02-10 Chris Demetriou <cgd@broadcom.com>
2432 * callback.c: Fix some spelling errors.
2433 * hw-device.h: Likewise.
2434 * hw-tree.c: Likewise.
2435 * sim-abort.c: Likewise.
2436 * sim-alu.h: Likewise.
2437 * sim-core.h: Likewise.
2438 * sim-events.c: Likewise.
2439 * sim-events.h: Likewise.
2440 * sim-fpu.h: Likewise.
2441 * sim-profile.h: Likewise.
2442 * sim-utils.c: Likewise.
2444 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
2446 * cgen-ops.h (ADDCQI, ADDCFQI, ADDOFQI, SUBCQI, SUBCFQI, SUBOFQI):
2449 2002-01-20 Ben Elliston <bje@redhat.com>
2451 * sim-fpu.h (SIM_FPU_IS_QNAN): Replace "Quite" with "Quiet" in
2452 the comment for this enumerator.
2454 2002-01-14 Ben Elliston <bje@redhat.com>
2456 * sim-fpu.h: Fix comment about sim_fpu_* constants.
2458 2001-12-20 Kazu Hirata <kazu@hxi.com>
2460 * run.c (usage): Fix a typo.
2462 2001-07-05 Ben Elliston <bje@redhat.com>
2464 * Make-common.in (srccgen): Remove.
2465 (CGEN_CPU_DIR): Define.
2466 (CGEN_READ_SCM): Redefine without $(srccgen).
2467 (CGEN_ARCH_SCM): Ditto.
2468 (CGEN_CPU_SCM): Ditto.
2469 (CGEN_DECODE_SCM): Ditto.
2470 (CGEN_DESC_SCM): Ditto.
2472 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
2474 * sim-load.c (sim_load_file): Put it back: external now.
2475 * sim-utils.c (sim_analyze_program): Ditto. Nyuk nyuk nyuk.
2477 2001-04-21 Andrew Cagney <ac131313@redhat.com>
2479 * sim-load.c (sim_load_file): Delete call bfd_cache_close. BFD
2481 * sim-utils.c (sim_analyze_program): Ditto.
2483 2001-04-19 Frank Ch. Eigler <fche@redhat.com>
2485 * sim-utils.c (sim_analyze_program): Call bfd_cache_close after
2486 we're finished with its immediate use.
2487 * sim-load.c (sim_load_file): Ditto.
2489 2001-03-16 Frank Ch. Eigler <fche@redhat.com>
2491 Add support for mmap-based memory regions.
2492 * sim-memopt.c (mmap_next_fd): New global.
2493 (sim_memory_init): Reinitialize it.
2494 (OPTION_MEMORY_MAPFILE, memory_option_handler): Support new
2495 "--memory-mapfile FILE" option. Check for some errors.
2496 (do_memopt_add): Conditionally do mmap instead of malloc for
2497 backing store of simulated memory. Check for more errors.
2498 (do_simopt_delete, sim_memory_uninstall): Corresponding cleanup.
2499 * sim-memopt.h (munmap_length): New member of _sim_memopt.
2500 * configure.in: Look for mmap/fstat related functions and headers.
2501 * config.in, configure: Regenerated.
2503 2001-03-15 Frank Ch. Eigler <fche@redhat.com>
2505 * sim-core.c (sim_core_map_attach): Correct overlap-related
2508 2001-03-07 Michael Meissner <meissner@redhat.com>
2510 * run.c (alloca-conf.h): Delete, no longer provided.
2512 2001-02-22 Ben Elliston <bje@redhat.com>
2514 * sim-trace.h (TRACE_VPU_IDX): Add.
2515 (TRACE_vpu): Define.
2516 (WITH_TRACE_VPU_P): Likewise.
2517 (TRACE_VPU_P): Likewise.
2518 * sim-trace.c (OPTION_TRACE_VPU): Define.
2519 (trace_options): Add --trace-vpu.
2520 (trace_option_handler): Handle OPTION_TRACE_VPU.
2521 (trace_option_handler): Include VPU tracing in --trace-semantics.
2522 (trace_idx_to_str): Handle TRACE_VPU_IDX.
2524 2001-02-21 Ben Elliston <bje@redhat.com>
2526 * sim-trace.h (TRACE_BRANCH_INPUT1): New macro.
2527 (TRACE_BRANCH_INPUT2): Likewise.
2529 2001-02-09 Ben Elliston <bje@redhat.com>
2531 * (profile_print_pc): Write header out in target byte order.
2533 2001-02-09 Ben Elliston <bje@redhat.com>
2535 * sim-profile.c (profile_pc_init): Correct bug in loop logic when
2536 adjusting the pc shift value.
2538 2001-01-12 Chris Demetriou <cgd@sibyte.com>
2540 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Properly handle the case
2541 where a numeric value is supplied.
2543 2001-01-06 Ben Elliston <bje@redhat.com>
2545 * cgen.sh: Allow extrafiles to include the semantics files when
2546 generating an ISA-specific decoder.
2548 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
2550 * Make-common.in (sim-io.o): Depend on targ-vals.h.
2552 2000-12-23 Ben Elliston <bje@redhat.com>
2554 * cgen-trace.c (trace_result): Handle 'f' type operands; output
2555 them to the trace stream using sim_fpu_printn_fpu. Include
2558 2000-12-15 Ben Elliston <bje@redhat.com>
2560 * sim-fpu.h (sim_fpu_printn_fpu): Declare.
2561 * sim-fpu.c (print_bits): Add digits parameter. Print only as many
2562 trailing digits as specified (-1 to print all digits).
2563 (sim_fpu_print_fpu): New wrapper around sim_fpu_printn_fpu.
2564 (sim_fpu_printn_fpu): Rename from sim_fpu_print_fpu; update calls
2567 2000-12-13 Ben Elliston <bje@redhat.com>
2569 * cgen.sh: Set prefix/PREFIX (append ISA if applicable). Factor
2570 sed expressions into $sedscript, substituting @prefix@/@PREFIX@.
2573 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2575 * sim-endian.h: Don't have parameters on macro definitions which
2576 are simply renaming functions, to permit use of XCONCAT2 in both
2577 the macro name and the arguments in a use of such a definition.
2579 2000-12-11 Ben Elliston <bje@redhat.com>
2581 * cgen-ops.h (SUBWORDDFDI): New function.
2583 2000-12-05 Ben Elliston <bje@redhat.com>
2585 * Make-common.in (cgen-defs): New target.
2586 (cgen-decode): Pass $(EXTRAFILES).
2588 * genmloop.sh: Use @prefix@, not @cpu@ throughout. Add -prefix and
2589 -outfile-suffix options.
2591 2000-12-04 Ben Elliston <bje@redhat.com>
2593 * cgen-ops.h (SUBWORDSIQI): Mask off top bits.
2594 (SUBWORDSIUQI): Likewise.
2595 (SUBWORDDIHI): Likewise.
2596 (SUBWORDDIQI): New function.
2598 * cgen-trace.c (disassemble_insn): Remove unused declaration.
2599 * cgen-scache.c (scache_option_handler): Remove unused local var.
2601 2000-12-03 Ben Elliston <bje@redhat.com>
2603 * sim-profile.c (profile_option_handler): Remove unused prof_nr.
2605 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2607 * hw-events.c (delete_hw_event_data): Remove the scheduled events.
2609 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2611 * dv-core.c (dv_core_attach_address_callback): Don't abort if
2614 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2616 * hw-base.c (hw_delete): Don't free base_of_hw since it's freed.
2617 (set_hw_delete): Moved the macro as a function.
2618 * hw-base.h (set_hw_delete): Declare as external function.
2619 * hw-alloc.c (delete_hw_alloc_data): Allow to free the memory
2620 allocated using hw_malloc.
2622 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2624 * sim-options.c (sim_parse_args): Free the memory used for
2625 long_options, short_options, handlers, opt_cpu, orig_val.
2627 2000-11-20 Ben Elliston <bje@redhat.com>
2629 * cgen-ops.h (SUBBI): New macro.
2630 (SUBWORDSIQI, SUBWORDSIHI, SUBWORDSIUQI): New functions.
2631 (SUBWORDDIHI, SUBWORDDIUQI, SUBWORDDIDF): Likewise.
2633 2000-11-16 Ben Elliston <bje@redhat.com>
2635 * cgen-types.h (VOID): New type.
2637 2000-11-09 Ben Elliston <bje@redhat.com>
2639 * sim-fpu.c (sim_fpu_one): Set exponent to 0.
2640 (sim_fpu_two): Set exponent to 1.
2642 2000-10-26 Ben Elliston <bje@redhat.com>
2644 * cgen.sh: Handle an isa argument between cpu and mach. Default to
2645 `all'. Pass `-i' options to cgen applications.
2646 * Make-common.in (cgen-arch, cgen-cpu, cgen-decode, cgen-cpu-decode,
2647 cgen-desc): Pass $(isa) to cgen.sh.
2649 2000-10-08 Ben Elliston <bje@redhat.com>
2651 * cgen-utils.c (cgen_rtx_error): New function.
2653 2000-10-07 Ben Elliston <bje@redhat.com>
2655 * cgen-trace.c (sim_cgen_disassemble_insn): Handle failure
2656 conditions for sim_core_read_buffer().
2658 2000-09-26 Dave Brolley <brolley@redhat.com>
2660 * cgen-utils.c (RORQI): New function.
2661 (ROLQI): New function.
2662 (RORHI): New function.
2663 (ROLHI): New function.
2665 2000-08-28 Dave Brolley <brolley@redhat.com>
2667 * cgen-trace.c (sim_cgen_disassemble_insn): Make sure entire insn is
2668 in insn_value if it will fit.
2670 2000-08-21 Frank Ch. Eigler <fche@redhat.com>
2672 * Make-common.in, cgen.sh: Contribute CGEN-related build targets/rules.
2674 2000-08-15 Dave Brolley <brolley@redhat.com>
2676 * sim-profile.c (profile_print_speed): Print cpu frequency if not zero.
2678 2000-08-15 Dave Brolley <brolley@redhat.com>
2680 * sim-profile.h (PROFILE_DATA): Add cpu_freq.
2681 (PROFILE_CPU_FREQ): New macro.
2682 * sim-profile.c (OPTION_PROFILE_CPU_FREQUENCY): New enumerator.
2683 (profile-options): Add profile-cpu-frequency.
2684 (parse_frequency): New function.
2685 (profile_option_handler): Handle OPTION_PROFILE_CPU_FREQUENCY.
2686 (profile_print_speed): Print cpu frequency and simulated execution time.
2687 Re-indent other items to match.
2689 2000-08-09 Andrew Cagney <cagney@lulu.cygnus.com>
2691 * dv-sockser.c (dv_sockser_init): Eliminate MIN macro.
2693 2000-07-27 Frank Ch. Eigler <fche@redhat.com>
2695 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2696 * Makefile.in (install): Install run.1 man page.
2698 Thu Jul 27 21:56:08 2000 Andrew Cagney <cagney@b1.cygnus.com>
2700 From 2000-06-23 Doug Evans <dje@casey.transmeta.com>:
2701 * Makefile.in (headers,nltvals.def): Merge.
2703 Thu Jul 27 20:37:47 2000 Andrew Cagney <cagney@b1.cygnus.com>
2705 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2706 * nrun.c (main): Print the simulator statistics only in
2708 * hw-properties.h (hw_find_integer_array_property): Fix
2709 prototype (use signed_cell).
2711 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2712 * sim-events.c (sim_events_remain_time): New function returning
2713 the time that remains before the event is raised.
2714 * hw-events.c (hw_event_remain_time): Likewise.
2715 * sim-events.h (sim_events_remain_time): Declare.
2716 * hw-events.h (hw_event_remain_time): Declare.
2718 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2719 * sim-hw.c: Use <errno.h> instead of <sys/errno.h>
2720 (OPTION_HW_LIST): New option --hw-list to list the devices.
2721 (hw_option_handler): List the device tree with 'sim_hw_print'.
2723 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2724 * sim-bits.h (_MSB_16, _LSB_16): Define for 16-bit targets.
2725 (MASK, LSBIT, MSBIT): Likewise and use _MSB_16 and _LSB_16.
2726 (EXTENDED): Define for 16-bit word size.
2727 * sim-bits.c (LSEXTRACTED, MSEXTRACTED, LSINSERTED,
2728 MSINSERTED, LSSEXT, MSSEXT): Implement for 16-bit word size.
2729 * sim-types.h: Added support for 16-bit targets.
2731 2000-06-23 Frank Ch. Eigler <fche@redhat.com>
2733 * cgen-trace.h (TRACE_USEFUL_MASK): Remove TRACE_EVENTS_IDX.
2735 2000-06-24 Frank Ch. Eigler <fche@redhat.com>
2737 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
2738 * Makefile.in (distclean): Clean cconfig.h also.
2740 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
2742 * configure: Regenerated to track ../common/aclocal.m4 changes.
2744 Tue May 23 21:35:53 2000 Andrew Cagney <cagney@b1.cygnus.com>
2746 * aclocal.m4 (sim-profile): Enable the profiler by default.
2748 Tue May 23 20:30:12 2000 Andrew Cagney <cagney@amy.cygnus.com>
2750 * run.c (main): Initialize sigrc.
2752 Wed Apr 26 16:18:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
2754 * sim-events.c (update_time_from_event): Add more detailed event
2757 2000-03-30 Dave Brolley <brolley@redhat.com>
2759 * aclocal.m4 (cgen): Use guile to run cgen.
2761 2000-03-23 Dave Brolley <brolley@redhat.com>
2763 * cgen-fpu.h: Rename extsfdf to fextsfdf. Rename truncdfsf to
2765 * cgen-accfp.c (fextsfdf): New function.
2766 (ftruncdfsf): New function.
2767 (cgen_init_accurate_fpu): Initialize fextsfdf and ftruncdfsf.
2769 2000-03-13 Jeff Johnston <jjohnstn@cygnus.com>
2771 * cgen-ops.h: Added TRUNCSISI.
2773 2000-03-08 Dave Brolley <brolley@redhat.com>
2775 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_SF_WRITE.
2776 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_sf_write.
2777 (sim_queue_fn_si_write): Last argument is has type USI.
2778 (sim_queue_fn_sf_write): New function.
2779 * cgen-par.c (sim_queue_fn_si_write): Declare 'value' as USI.
2780 (sim_queue_fn_sf_write): New function.
2781 (cgen_write_queue_element_execute): Handle CGEN_FN_SF_WRITE.
2783 Tue Feb 22 16:45:09 2000 Andrew Cagney <cagney@b1.cygnus.com>
2785 * run.c (main): When SIM_HAVE_ENVIRONMENT enable tracing with
2786 sim_set_trace and run simulator using sim_resume.
2787 (main): Add option ``-o'' - operating environment. Only continue
2788 after a signal when operating environment.
2789 (main): Always set REASON and SIGRC using sim_stop_reason.
2790 (sim_trace): Delete extern declaration.
2792 2000-02-08 Nick Clifton <nickc@cygnus.com>
2794 * callback.c: Fix compile time warning messages.
2795 * run.c: Fix compile time warning messages.
2797 1999-12-17 Dave Brolley <brolley@cygnus.com>
2799 * sim-profile.h: (set_profile_option_mask): Add prototype.
2800 * sim-profile.c (set_profile_option_mask): No longer static.
2802 Wed Dec 8 21:47:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
2804 * sim-arange.c: Include <string.h>
2806 1999-12-07 Dave Brolley <brolley@cygnus.com>
2808 * sim-options.c (print_help): '=' required before optional argument.
2809 * cgen-par.h (CGEN_FN_MEM_QI_WRITE): New enumerator.
2810 (CGEN_FN_MEM_HI_WRITE): New enumerator.
2811 (CGEN_FN_MEM_SI_WRITE): New enumerator.
2812 (CGEN_FN_MEM_DI_WRITE): New enumerator.
2813 (CGEN_FN_MEM_DF_WRITE): New enumerator.
2814 (CGEN_FN_MEM_XI_WRITE): New enumerator.
2815 (fn_mem_qi_write): New union members.
2816 (fn_mem_hi_write): New union members.
2817 (fn_mem_si_write): New union members.
2818 (fn_mem_di_write): New union members.
2819 (fn_mem_df_write): New union members.
2820 (fn_mem_xi_write): New union members.
2821 (sim_queue_fn_mem_qi_write): New function.
2822 (sim_queue_fn_mem_hi_write): New function.
2823 (sim_queue_fn_mem_si_write): New function.
2824 (sim_queue_fn_mem_di_write): New function.
2825 (sim_queue_fn_mem_df_write): New function.
2826 (sim_queue_fn_mem_xi_write): New function.
2827 * cgen-par.c (sim_queue_fn_mem_qi_write): New function.
2828 (sim_queue_fn_mem_hi_write): New function.
2829 (sim_queue_fn_mem_si_write): New function.
2830 (sim_queue_fn_mem_di_write): New function.
2831 (sim_queue_fn_mem_df_write): New function.
2832 (sim_queue_fn_mem_xi_write): New function.
2833 (cgen_write_queue_element_execute): Handle CGEN_FN_MEM_QI_WRITE,
2834 CGEN_FN_MEM_HI_WRITE, CGEN_FN_MEM_SI_WRITE, CGEN_FN_MEM_DI_WRITE,
2835 CGEN_FN_MEM_DF_WRITE, CGEN_FN_MEM_XI_WRITE.
2837 1999-12-01 Dave Brolley <brolley@cygnus.com>
2839 * cgen-accfp.c (subsf): Check status code.
2857 1999-11-26 Dave Brolley <brolley@cygnus.com>
2859 * cgen-par.h (fn_df_write): Mode of data is DF.
2860 (sim_queue_fn_df_write): Mode of data is DF.
2861 * cgen-par.c (sim_queue_fn_df_write): Mode of data is DF.
2863 1999-11-22 Dave Brolley <brolley@cygnus.com>
2865 * cgen-trace.c (SIZE_TRACE_BUF): Inxrease size of trace buffer.
2866 * cgen-par.h (CGEN_WRITE_QUEUE_SIZE): Increase size of queue.
2868 1999-11-04 Dave Brolley <brolley@cygnus.com>
2870 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_XI_WRITE and
2871 CGEN_MEM_XI_WRITE members.
2872 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_xi_write and mem_xi_write members.
2873 (sim_queue_fn_xi_write): New function.
2874 (sim_queue_mem_xi_write): New function.
2876 * cgen-par.c (sim_queue_fn_xi_write): New function.
2877 (sim_queue_mem_xi_write): New function.
2878 (cgen_write_queue_element_execute): Handle CGEN_FN_XI_WRITE and
2881 1999-10-22 Dave Brolley <brolley@cygnus.com>
2883 * cgen-par.h (insn_address): New field in CGEN_WRITE_QUEUE_ELEMENT.
2884 (CGEN_WRITE_QUEUE_ELEMENT_IADDR): New macro.
2885 * cgen-par.c: Set insn_address for each queued write. Get pc from
2886 cpu when executing queued writes.
2888 1999-10-19 Dave Brolley <brolley@cygnus.com>
2890 * cgen-par.h (sim_queue_fn_pc_write): New function.
2891 (CGEN_FN_PC_WRITE): New enumerator.
2892 (fn_pc_write): New union member.
2893 * cgen-par.c (sim_queue_fn_pc_write): New function.
2894 (cgen_write_queue_element_execute): Handle CGEN_FN_PC_WRITE.
2896 1999-10-18 Dave Brolley <brolley@cygnus.com>
2898 * cgen-par.h (CGEN_MEM_DI_WRITE): New enumerator.
2899 (CGEN_MEM_DF_WRITE): New enumerator.
2900 (mem_di_write): New union member.
2901 (mem_df_write): New union member.
2902 * cgen-par.c (sim_queue_mem_di_write): New function.
2903 (sim_queue_mem_df_write): New function.
2904 (cgen_write_queue_element_execute): Handle CGEN_MEM_DI_WRITE and
2906 * cgen-accfp.c (divsf): Check for division errors.
2908 1999-10-14 Doug Evans <devans@casey.cygnus.com>
2910 * cgen-engine.h (EXTRACT_INT,EXTRACT_UINT): Delete.
2912 1999-10-07 Dave Brolley <brolley@cygnus.com>
2914 * cgen-par.h (CGEN_FN_HI_WRITE): New enumerator.
2915 (fn_hi_write): New union member.
2916 (sim_queue_fn_hi_write): New function.
2917 * cgen-par.c (sim_queue_fn_hi_write): New function.
2918 (cgen_write_queue_element_execute): Handle CGEN_FN_HI_WRITE.
2920 1999-09-29 Doug Evans <devans@casey.cygnus.com>
2922 * cgen-defs.h (sim_engine_invalid_insn): New arg `vpc'.
2923 Change type of result to SEM_PC.
2925 Wed Sep 29 14:43:57 1999 Dave Brolley <brolley@cygnus.com>
2927 * cgen-defs.h (sim_engine_invalid_insn): Now returns PC.
2929 1999-09-25 Doug Evans <devans@casey.cygnus.com>
2931 * cgen-ops.h (SUBWORD*): Delete cpu arg.
2932 (JOIN*): Delete cpu arg.
2934 Tue Sep 21 17:14:16 1999 Dave Brolley <brolley@cygnus.com>
2936 * genmloop.sh (@cpu@_scache_lookup): No longer takes last_insn_p
2938 (SET_LAST_INSN_P): Set last_insn_p flag in the scache element.
2940 Mon Sep 20 21:44:06 1999 Geoffrey Keating <geoffk@cygnus.com>
2942 * sim-fpu.c (i2fpu): Keep the guard bits sticky when converting
2945 Tue Feb 8 16:33:48 2000 Andrew Cagney <cagney@b1.cygnus.com>
2947 * run.c (main): Check the sim_stop_reason and only halt simulation
2948 when a valid stop condition is identified.
2950 Wed Sep 15 14:12:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
2952 * hw-tree.c, hw-properties.c, hw-instances.c: Include "sim-io.h".
2954 Tue Sep 14 14:15:47 1999 Dave Brolley <brolley@cygnus.com>
2956 * cgen-par.h (CGEN_BI_WRITE): New enumerator.
2957 (bi_write): New union element.
2958 (sim_queue_bi_write): New function.
2959 * cgen-par.c (sim_queue_bi_write): New function.
2960 (cgen_write_queue_element_execute): Handle CGEN_BI_WRITE.
2962 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
2964 * configure: Regenerated to track ../common/aclocal.m4 changes.
2966 * aclocal.m4 (WERROR_CFLAGS, WARN_CFLAGS): Merge from
2967 ../gdb/configure.in.
2968 * Make-common.in (WERROR_CFLAGS, WARN_CFLAGS): Define.
2969 (SIM_WERROR_CFLAGS, SIM_WARN_CFLAGS): Define.
2970 (SIM_WARNINGS): Delete
2971 (CONFIG_CFLAGS): Update.
2973 Tue Aug 31 16:01:42 1999 Dave Brolley <brolley@cygnus.com>
2975 * cgen-par.c: New file.
2976 * cgen-par.h: New file.
2977 * cgen-sim.h (cgen-par.h): #include it.
2978 * cgen-cpu.h (write_queue): New field.
2979 (CPU_WRITE_QUEUE): New access macro.
2980 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-par.h.
2981 (cgen-par.o): New target.
2983 1999-08-28 Doug Evans <devans@casey.cygnus.com>
2985 * cgen-types.h (mode_type,MODE_VOID): Renamed from MODE_VM.
2986 * cgen-utils.c (mode_names): Update.
2988 1999-08-20 Doug Evans <devans@casey.cygnus.com>
2990 * genmloop.sh: New args -parallel-generic-write, -parallel-only.
2991 * cgen-engine.h (SEMANTIC_FN): Don't use version with PAREXEC
2992 buffer arg if WITH_PARALLEL_GENWRITE.
2993 (struct insn_sem): Handle WITH_PARALLEL_GENWRITE.
2994 (struct idesc): Ditto.
2996 Wed Aug 18 18:17:28 1999 Doug Evans <devans@canuck.cygnus.com>
2998 * sim-model.c (model_option_handler): Add \n to error message.
3000 1999-08-08 Doug Evans <devans@casey.cygnus.com>
3002 * cgen-engine.h (SEM_FN_NAME,SEMF_FN_NAME): Delete.
3003 (insn_sem): Rewrite.
3004 (sem_fn_desc): New struct.
3006 * genmloop.sh (scache case,@cpu@_scache_lookup): Profile scache hit,
3008 (scache case): Split into non-parallel/parallel versions.
3009 (@cpu@_engine_run_{full,fast}): Call @cpu@_{sem,semf}_init_idesc_table
3010 if not use semantic switch version.
3012 1999-08-04 Doug Evans <devans@casey.cygnus.com>
3014 * cgen-defs.h (SEM_BRANCH_TYPE): New enum.
3015 * cgen-engine.h (SEM_BRANCH_UNTAKEN,SEM_BRANCH_UNCACHEABLE): Delete.
3016 (SEM_BRANCH_INIT_EXTRACT): Delete.
3017 (SEM_BRANCH_INIT): Replace npc_ptr with br_type.
3018 (SEM_BRANCH_FINI): Ditto.
3019 (SEM_BRANCH_VIA_ADDR): Ditto.
3020 (SEM_BRANCH_VIA_CACHE): Ditto. Delete cachvarptr arg.
3021 (SEM_BRANCH_ADDR_CACHE): Delete.
3022 (SEM_SKIP_COMPILE,SEM_SKIP_INSN): New macros.
3023 * cgen-scache.h (cpu_scache): Replace member pbb_pr_npc_ptr with
3025 * genmloop.sh (eng.hin): Update prototype of ${cpu}_pbb_cti_chain.
3026 (@cpu@_pbb_begin): Initialize branch_target.
3027 (@cpu@_pbb_cti_chain): Replace arg new_vpc_ptr with br_type.
3028 (@cpu@_engine_run_full): Replace local pbb_br_npc_ptr with
3030 (@cpu@_engine_run_fast): Ditto.
3032 Fri Jul 16 14:47:53 1999 Dave Brolley <brolley@cygnus.com>
3034 * cgen-utils.c (RORSI): New function.
3035 (ROLSI): New function.
3037 1999-07-14 Doug Evans <devans@casey.cygnus.com>
3039 * Makefile.in (TAGS): Tweak TAGS regex.
3040 * cgen-mem.h (*): Add TAGS markers.
3042 Sun Jul 11 23:47:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
3044 * sim-resume.c (sim_resume): Ensure that the siggnal [sic] is only
3045 passed in when sim_resume is first entered - don't re-pass it
3048 Sun Jul 11 23:34:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
3050 * sim-options.c (standard_option_handler): Add OPTION_LOAD_VMA and
3051 OPTION_LOAD_LMA but only when is defined.
3052 (standard_options): When SIM_HANDLES_LMA is defined include
3053 options --load-lma and --load-vma.
3054 (standard_install): Initialize STATE_LOAD_AT_LMA_P.
3056 * sim-base.h (STATE_LOAD_AT_LMA_P): Define.
3057 (struct sim_state_base): Add load_at_lma_p.
3058 * sim-hload.c (sim_load): Replace SIM_HANDLES_LMA with
3059 STATE_LOAD_AT_LMA_P.
3061 Sun Jul 11 12:03:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
3063 * nrun.c (main): Re-format loop gnu style.
3065 Wed Jul 7 19:56:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
3067 * dv-sockser.c (connected_p): Initialize addrlen.
3069 1999-07-06 Dave Brolley <brolley@cygnus.com>
3071 * cgen-accfp.c (floatsidf): New function.
3072 (fixdfsi): New function.
3074 1999-07-06 Doug Evans <devans@casey.cygnus.com>
3076 * sim-model.c (sim_model_init): Issue error if machine is unsupported.
3078 1999-07-05 Doug Evans <devans@casey.cygnus.com>
3080 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-fpu.h.
3081 (cgen-fpu.o,cgen-accfp.o): Add rules for.
3082 * cgen-fpu.c: New file.
3083 * cgen-fpu.h: New file.
3084 * cgen-accfp.c: New file.
3085 * cgen-cpu.h (CGEN_CPU): New member fpu.
3086 * cgen-mem.h: Redo fp support.
3087 * cgen-ops.h: Delete k&r support. Redo fp support.
3088 * cgen-sim.h: Include cgen-fpu.h.
3089 * cgen-types.h (SF,DF,XF,TF): Moved to cgen-fpu.h.
3091 1999-06-23 Doug Evans <devans@casey.cygnus.com>
3093 * cgen-engine.h (TARGET_SEM_BRANCH_FINI): Remove cruft at end of
3095 * genmloop.sh (@cpu@_scache_lookup): Delete unused local var.
3096 (@cpu@_pbb_cti_chain): Minor clean up.
3098 1999-05-08 Felix Lee <flee@cygnus.com>
3100 * aclocal.m4: Use AC_EXEEXT instead of AM_EXEEXT. Delete defn of
3101 AM_CYGWIN32 and AM_EXEEXT.
3102 * configure: Regenerate.
3104 Fri Apr 16 16:43:22 1999 Doug Evans <devans@charmed.cygnus.com>
3106 * sim-core.c (device_error,device_io_read_buffer,
3107 device_io_write_buffer): Delete decls.
3108 * sim-core.h: Put them here.
3110 * sim-core.c (sim_core_read_buffer): Pass sd to device_io_read_buffer.
3111 (sim_core_write_buffer): Pass sd to device_io_write_buffer.
3112 * sim-n-core.h (sim_core_read_aligned_N): Ditto.
3113 (sim_core_write_aligned_N): Ditto.
3115 1999-04-14 Stephane Carrez <stcarrez@worldnet.fr>
3117 * sim-memopt.c (sim_memory_uninstall): Don't look into
3120 1999-04-14 Doug Evans <devans@casey.cygnus.com>
3122 * cgen-utils.scm (virtual_insn_entries): Update attribute definition.
3124 1999-04-13 Doug Evans <devans@casey.cygnus.com>
3126 * sim-core.c (sim_core_read_buffer): Handle NULL cpu when WITH_DEVICES.
3127 (sim_core_write_buffer): Ditto.
3129 1999-04-02 Keith Seitz <keiths@cygnus.com>
3131 * sim-io.c (sim_io_poll_quit): Only call the poll_quit callback
3132 after the interval counter has expired.
3133 (POLL_QUIT_INTERVAL): Define. Used to tweak the frequency of
3134 poll_quit callbacks. May be overridden by Makefile.
3135 (poll_quit_counter): New global.
3136 * sim-events.c: Remove all mentions of ui_loop_hook. The
3137 host callback "poll_quit" will serve the purpose.
3138 * run.c: Add definition of ui_loop_hook when NEED_UI_LOOP_HOOK
3140 * nrun.c: Remove declaration of ui_loop_hook.
3142 Wed Mar 31 18:55:41 1999 Doug Evans <devans@canuck.cygnus.com>
3144 * cgen-run.c (sim_resume): Don't tell main loop to run "forever"
3145 if being used by gdb.
3147 1999-03-22 Doug Evans <devans@casey.cygnus.com>
3149 * cgen-types.h (XF,TF): Tweak.
3150 * cgen-ops.h: Redo inline support. Delete DI_FN_SUPPORT,
3152 (SUBWORD*,JOIN*): Define.
3153 * cgen-trace.c (sim_cgen_disassemble_insn): Update, base_insn_bitsize
3154 moved into cpu descriptor.
3155 * sim-model.h (MACH): New member `num'.
3157 1999-02-09 Doug Evans <devans@casey.cygnus.com>
3159 * cgen-cpu.h (CGEN_DISASSEMBLER): New type.
3160 (CGEN_CPU): Member opcode renamed to cpu_desc.
3161 New members get_idata,disassembler.
3162 * cgen-defs.h (CGEN_INSN_VIRTUAL_P): CGEN_INSN_ATTR renamed to
3163 CGEN_INSN_ATTR_VALUE.
3164 (CGEN_STATE): Delete member opcode_table.
3165 (sim_disassemble_insn): Delete decl.
3166 * cgen-engine.h (struct insn_sem): Moved to here from <cpu>-decode.c.
3167 (struct idesc): Moved to here from <cpu>-decode.h.
3168 * cgen-run.c (prime_cpu): Call prepare_run callback.
3169 * cgen-trace.h (SFILE): New type.
3170 (sim_disasm_sprintf): Declare.
3171 (sim_disasm_read_memory,sim_disasm_perror_memory): Declare.
3172 (sim_cgen_disassemble_insn): Declare.
3173 * cgen-trace.c: Include errno.h,dis-asm.h. Don't include cpu-opc.h.
3174 (insn_fields): Delete.
3175 (trace_insn_fini): STATE_OPCODE_TABLE (sd) replaced with
3177 (trace_insn): Call CPU_DISASSEMBLER hook.
3178 (sim_disasm_sprintf): New function.
3179 (sim_disasm_read_memory): New function.
3180 (sim_disasm_perror_memory): New function.
3181 (sim_cgen_disassemble_insn): New function.
3182 * cgen-utils.c: Don't include cpu-opc.h.
3183 (virtual_insn_entries): New static local.
3184 (cgen_virtual_insn_table): Renamed from cgen_virtual_opcode_table.
3185 (cgen_insn_name): Rewrite.
3186 (disasm_sprintf,sim_disassemble_insn): Moved to cgen-trace.c.
3187 * cgen.sh (desc): New file generator handler.
3188 * genmloop.sh: -parallel changed to -parallel-read/-parallel-write.
3189 Define WITH_PARALLEL_READ/WITH_PARALLEL_WRITE appropriately.
3190 Don't include cpu-opc.h,cpu-sim.h.
3191 * sim-model.c (model_set): Delete SIM_DESC arg.
3192 (sim_model_set): Update.
3193 * sim-model.h (MACH): New member prepare_run.
3195 1999-01-28 Frank Ch. Eigler <fche@cygnus.com>
3197 * sim-memopt.c (memory_option_handler): Avoid memset() calls
3198 if redundant with allocator functions.
3200 Wed Jan 27 17:19:09 1999 Doug Evans <devans@canuck.cygnus.com>
3202 * cgen-engine.h (EXTRACT_LSB0_{INT,UINT}): Fix.
3204 * sim-profile.h: Make like sim-trace.h.
3205 (PROFILE_USEFUL_MASK): New macro.
3206 * sim-profile.c (profile_options): Make like trace_options, allow
3207 optional on|off arg where applicable.
3208 (set_profile_option_mask): New function.
3209 (sim_profile_set_option): New function.
3210 (profile_option_handler): Simplify.
3211 Have -p only enable selected things, not everything.
3212 Add missing break to OPTION_PROFILE_PC_RANGE.
3213 * cgen-scache.c (scache_options): Allow optional on|off arg to
3215 (scache_option_handler): Use sim_profile_set_option.
3217 1999-01-26 Frank Ch. Eigler <fche@cygnus.com>
3219 * sim-memopt.c (memory_options): Add MEMORY_FILL option.
3220 (memory_option_handler): Implement MEMORY_FILL option. Make
3221 MEMORY_CLEAR an alias for MEMORY_FILL=0.
3222 (parse_ulong_value): New function.
3223 (do_memopt_add): Allocate all buffers. Optionally fill them.
3225 1999-01-15 Richard Henderson <rth@cygnus.com>
3227 * hw-events.c (hw_event_queue_schedule): _vtracef takes a
3228 va_list, not an integer.
3229 * sim-events.c (sim_events_schedule): Likewise.
3231 * sim-types.h (UNSIGNED32, UNSIGNED64): Properly cast to
3232 the appropriate type.
3234 1999-01-14 Doug Evans <devans@casey.cygnus.com>
3236 * cgen-defs.h (PCADDR,CIA): Define in terms of IADDR.
3237 (sim_disassemble_insn): Update prototype.
3238 (sim_engine_invalid_insn): Ditto.
3239 * cgen-engine.h (SEMANTIC_FN): Add !WITH_SCACHE version.
3240 (SEM_BRANCH_INIT): PCADDR->IADDR.
3241 (SEM_NBRANCH_FINI): New macro for !WITH_SCACHE case.
3242 * cgen-scache.c (scache_lookup,scache_lookup_or_alloc): PCADDR->IADDR.
3243 * cgen-scache.h (*): Ditto.
3244 * cgen-trace.c (*): Ditto.
3245 * cgen-trace.h (*): Ditto.
3246 * cgen-utils.c (*): Ditto.
3247 * cgen-types.h (integer modes): Use signedNN/unsignedNN types.
3249 * genmloop.sh (@cpu@_fill_argbuf): Add !WITH_SCACHE support.
3250 (simple engine framework): Rewrite.
3251 * sim-module.c (modules): Install model module sooner (and in
3252 particular before the profile module).
3254 1999-01-12 Doug Evans <devans@casey.cygnus.com>
3256 * sim-model.h (sim_mach_lookup_bfd_name): Add prototype.
3257 * sim-model.c (sim_mach_lookup_bfd_name): New function.
3258 (sim_model_init): Call it.
3260 * cgen-trace.c (trace_insn): Pass pc to trace_prefix for virtual insns.
3262 1999-01-05 Doug Evans <devans@casey.cygnus.com>
3264 * Make-common.in (CGEN_INCLUDE_DEPS): Add cgen-defs.h, cgen-engine.h.
3265 * cgen-engine.h (SEM_BRANCH_FINI): New arg pcvar, all uses updated.
3266 (SEM_BRANCH_INIT_EXTRACT): New macro.
3267 (SEM_BRANCH_INIT): Add taken_p.
3268 (TARGET_SEM_BRANCH_FINI): Provide default definition.
3269 (SEM_BRANCH_FINI): Use it.
3271 * cgen-run.c (sim_resume): Handle tracing of last insn.
3272 * cgen-scache.h (WITH_SCACHE): Define as 0 if not defined.
3273 * cgen-trace.c (current_abuf): New static global.
3274 (trace_insn_init): Initialize it.
3275 (trace_insn_fini): Use it.
3276 (trace_insn): Set it.
3277 * cgen.sh (arch case): Pass -m ${mach} to cgen.
3278 * genmloop.sh (@cpu@_emit_before): Only define if WITH_SCACHE_PBB.
3279 (@cpu@_emit_after): Ditto.
3280 (simple @cpu@_engine_run_full): New local `pc'. Initialize semantic
3281 labels if WITH_SEM_SWITCH_FULL.
3282 * sim-model.c: Include bfd.h.
3283 (sim_model_init): New function.
3284 (sim_model_install): Record init fn.
3285 * sim-model.h (MACH): New member bfd_name.
3286 * sim-module.c (modules): Initialize model before scache.
3288 1998-12-24 Frank Ch. Eigler <fche@cygnus.com>
3290 * dv-sockser.c (DEFAULT_TIMEOUT): Increase to 1 ms.
3292 * nrun.c (main): Remain in simulation loop for traps and
3293 exceptions when in operating environment mode.
3294 (ui_loop_hook): New stub hook for standalone use.
3295 * sim-events.c (sim_events_process): Call ui_loop_hook
3296 periodically on CYGWIN host.
3298 * sim-reason.c (sim_stop_reason): Return host signal numbers
3299 to gdb on sim_stopped and sim_signalled cases.
3300 * sim-engine.c (sim_engine_halt): Call SIM_CPU_EXCEPTION_SUSPEND
3301 hook just before longjmp.
3302 * sim-resume.c (sim_resume): Call SIM_CPU_EXCEPTION_RESUME
3303 hook just before sim_engine_run.
3305 * sim-n-core.h (sim_core_trace_M): Allay const warning.
3306 * sim-trace.h (trace_generic): Ditto.
3307 * sim-trace.c (trace_generic): Ditto.
3309 1998-12-14 Doug Evans <devans@casey.cygnus.com>
3311 * Make-common.in (SIM_MAIN_DEPS): New var.
3312 (CGEN_MAIN_CPU_DEPS): New var.
3313 * aclocal.m4: Add --enable-cgen-maint option.
3314 * cgen-mem.h (GETMEM*): New arg `pc'. Pass to sim_core routine.
3316 (GETIMEM*): Pass pc value to sim_core routine.
3318 Fri Dec 11 16:58:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
3320 * hw-handles.c (hw_handle_add_ihandle, hw_handle_add_phandle):
3321 Compare with ZERO not NULL.
3323 Thu Dec 10 14:14:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
3325 * hw-properties.c, hw-instances.c, hw-tree.c: Include
3328 1998-12-09 Doug Evans <devans@casey.cygnus.com>
3330 * sim-arange.c: Include libiberty.h, and stdlib.h if present.
3331 * sim-trace.c: Include stdlib.h if present.
3332 * dv-sockser.c: Include unistd.h if present.
3333 (dv_sockser_init): Add missing arg to call to sim_io_eprintf.
3334 * cgen-scache.c (scache_flush): Delete unused locals i,sc.
3336 1998-12-08 James E Wilson <wilson@wilson-pc.cygnus.com>
3338 * gennltvals.sh: Add i960.
3339 * nltvals.def: Rebuild.
3341 1998-12-04 Doug Evans <devans@casey.cygnus.com>
3343 * cgen-defs.h: New file, old cgen-sim.h.
3344 * cgen-sim.h: Simple header that includes others.
3345 * sim-arange.c: New file.
3346 * sim-arange.h: New file.
3347 * sim-basics.h: Include it.
3348 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-arange.o.
3349 (sim-arange.o): Add rule for.
3350 * sim-cpu.h (sim_cpu_msg_prefix): Add prototype.
3351 (sim_io_eprintf_cpu): Add prototype.
3352 * sim-inline.h (HAVE_INLINE): Define if GNUC.
3353 (INLINE2): New macro.
3354 (EXTERN_INLINE): New macro.
3355 * sim-module.c (sim_post_argv_init): Initialize cpu backlink
3356 before calling module init fns.
3357 * sim-profile.c (OPTION_PROFILE_*): Move into enum.
3358 (profile_init): New function.
3359 (profile_options): New option --profile-range.
3360 (profile_option_handler): Handle --profile-range.
3361 (profile_print_insn): Qualify address range specific section titles.
3362 (profile_print_addr_ranges): New function.
3363 (profile_info): Print address ranges if specified.
3364 (profile_install): Set profile_init init fn.
3365 * sim-profile.h (PROFILE_DATA): New member `range'.
3366 * sim-trace.c (trace_init): New function.
3367 (trace_options): New option --trace-range.
3368 (trace_option_handler): Handle --trace-range.
3369 (trace_install): Set trace_init init fn.
3370 * sim-trace.h (TRACE_DATA): New member `range'.
3371 * sim-utils.c (sim_cpu_msg_prefix): New function.
3372 (sim_io_eprintf_cpu): New function.
3373 * cgen-engine.h (PC_IN_TRACE_RANGE_P): New macro.
3374 (PC_IN_PROFILE_RANGE_P): New macro.
3375 * cgen-trace.c (trace_insn_init): Set current_insn to NULL.
3376 (trace_insn_fini): New arg abuf. All callers updated.
3377 Exit early if trace_insn not called. Check ARGBUF_PROFILE_P before
3378 printing cycle counts.
3379 * cgen-trace.h (trace_insn_fini): Update prototype.
3380 (TRACE_RESULT_P): New macro.
3381 (TRACE_INSN_INIT,TRACE_INSN_FINI): New arg abuf. All callers updated.
3382 (TRACE_INSN): Check ARGBUF_TRACE_P.
3383 (TRACE_EXTRACT,TRACE_RESULT): New arg abuf. All callers updated.
3384 * cgen-types.h (SIM_INLINE): Delete.
3385 (SIM_HAVE_MODEL,SIM_HAVE_ADDR_RANGE): Define.
3386 * cgen-utils.c: Don't include cgen-engine.h
3387 * genmloop.sh (@cpu@_fill_argbuf): New function.
3388 (@cpu@_fill_argbuf_tp): New function.
3389 (@cpu@_emit_before,@cpu@_emit_after): New functions.
3390 (@cpu@_pbb_begin): Prefix cti_sc,insn_count with '_'.
3391 (SET_CTI_VPC,SET_INSN_COUNT): Update.
3392 (@cpu@_pbb_before): Check ARGBUF_PROFILE_P before calling
3393 doing profiling. Update call to TRACE_INSN_INIT,TRACE_INSN_FINI.
3394 (@cpu@_pbb_after): Check ARGBUF_PROFILE_P before calling
3395 doing profiling. Update call to TRACE_INSN_FINI.
3397 * sim-memopt.c (sim_memory_uninstall): Result type is `void'.
3399 1998-12-03 Frank Ch. Eigler <fche@cygnus.com>
3401 * sim-memopt.c (sim_memory_uninstall): Deallocate all memory
3404 1998-12-01 Doug Evans <devans@casey.cygnus.com>
3406 * sim-inline.c (SIM_INLINE_P): Fix typo.
3408 1998-11-30 Doug Evans <devans@casey.cygnus.com>
3410 * cgen-utils.c (cgen_virtual_opcode_table): Update.
3412 Tue Nov 24 18:40:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
3414 * gennltvals.sh: Add v850 and d10v. Sort alphabetically.
3415 * nltvals.def: Re-generate.
3417 Mon Nov 23 13:28:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
3419 * sim-core.c (reverse_n, sim_core_uninstall, sim_core_init,
3420 sim_core_map_attach, sim_core_map_detach, next_event_queue,
3421 new_sim_core_mapping): Only define when EXTERN_SIM_CORE_P, pacify
3423 * sim-events.c (sim_events_uninstall, sim_events_suspend,
3424 sim_events_resume, sim_events_zalloc, insert_sim_event): Ditto.
3426 1998-11-22 Doug Evans <devans@tobor.to.cygnus.com>
3428 * genmloop.sh (${cpu}_pbb_chain): Watch for Ctrl-C's.
3429 (${cpu}_pbb_cti_chain): Ditto.
3431 1998-11-18 Doug Evans <devans@casey.cygnus.com>
3433 * Make-common.in (cgen-utils.o): Depend on cgen-engine.h.
3434 * cgen-engine.h (EXTRACT_[ML]SB0_{INT,UINT}): New macros.
3435 (EXTRACT_INT,EXTRACT_UINT): New macros.
3436 (SEM_SEM_ARG): New macro.
3437 (SEM_NEXT_VPC): New arg `pc'.
3438 * cgen-sim.h (EXTRACT_SIGNED,EXTRACT_UNSIGNED): Delete.
3439 (sim_disassemble_insn): Update prototype.
3440 * cgen-trace.c (current_insn,insn_fields): New static locals.
3441 (trace_insn): Set them.
3442 * cgen-utils.c: #include cgen-engine.h.
3443 (sim_disassemble_insn): New arg insn_fields.
3444 Handle variable length insns.
3445 * genmloop.sh: Only emit pbb decls if -pbb.
3446 (${cpu}_scache_lookup): New arg `vpc'.
3447 (scache support): Fetch pc before entering loop.
3449 * gennltvals.sh: Add fr30 support.
3450 * nltvals.def: Rebuild.
3452 Wed Nov 18 10:22:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
3454 * sim-types.h: Re-do type system so that GCC's attribute and mode
3455 are used to specify types. Handle case of ALPHA.
3457 1998-11-13 Frank Ch. Eigler <fche@elastic.org>
3459 * aclocal.m4: Add tests for dlopen family.
3460 * config.in: Regenerated.
3462 Wed Nov 11 14:02:25 1998 Doug Evans <devans@canuck.cygnus.com>
3464 * sim-hload.c (sim_load): Pass `prog_name' to sim_load_file, not NULL.
3466 Wed Nov 4 23:51:19 1998 Doug Evans <devans@seba.cygnus.com>
3468 * genmloop.sh (eng.hin): Rename HAVE_PARALLEL_EXEC to
3469 HAVE_PARALLEL_INSNS, define as 0 or 1. Emit decls of fns in mloop.cin.
3470 * cgen-engine.h: Typedefs of IADDR,CIA,SEM_ARG,SEM_PC moved ...
3471 * cgen-sim.h: ... to here.
3473 Wed Oct 28 12:00:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
3475 * aclocal.m4 (enable-build-warnings): Replace
3476 enable-sim-warnings. Extend =LIST syntax so that prepend and
3477 append of options is possible. Drop -Werror, add
3478 -Wstrict-prototypes for GDB compatibility.
3479 * Make-common.in (SIM_WARNINGS): Update.
3481 Mon Oct 19 13:56:32 1998 Doug Evans <devans@seba.cygnus.com>
3483 * Make-common.in (CGEN_INCLUDE_DEPS): Define.
3484 (sim-core.o): Delete duplicate dependence on $(SIM_EXTRA_DEPS).
3485 (sim-cpu.o,sim-endian.o,sim-hw.o): Ditto.
3486 (cgen-run.o,cgen-scache.o,cgen-trace.o,cgen-utils.o): Delete
3487 explicit cgen header dependencies, require SIM_EXTRA_DEPS to include
3489 * cgen-cpu.h: New file.
3490 * cgen-engine.h: New file.
3491 * cgen-scache.h: New file.
3492 * cgen-sim.h: Delete portions moved to new files.
3493 * genmloop.sh: Generate two files eng.hin,mloop.cin explicitly,
3494 rather than sending result to stdout.
3496 Fri Oct 9 14:20:22 1998 Doug Evans <devans@seba.cygnus.com>
3498 * Make-common.in (sim-reg.o): New rule.
3499 (cgen-run.o): New rule.
3500 * cgen-ops.h: Delete many BI macros. Change all UBI -> BI.
3501 * cgen-run.c (prime_cpu): New function.
3502 * cgen-scache.c: Add pseudo-basic-block (pbb) scaching support.
3503 (scache_option_handler, case OPTION_PROFILE_SCACHE): Handle explicitly
3505 (scache_flush_cpu,scache_lookup,scache_lookup_or_alloc): New fns.
3506 * cgen-sim.h (CGEN_INSN_VIRTUAL_TYPE): New enum.
3507 (CGEN_INSN_VIRTUAL_P): New macro.
3508 (SEM_PC): New typedef.
3509 (SEMANTIC_FN): Change type of result to SEM_PC.
3510 (SEM_SET_FULL_CODE,SEM_SET_FAST_CODE,SEM_SET_CODE): New macros.
3511 (IDESC_CTI_P,IDESC_SKIP_P): New macros.
3512 (SCACHE_MAP): New typedef.
3513 (CPU_SCACHE): Add pbb support.
3514 (scace_lookup,scache_lookup_or_alloc,scache_flush_cpu): Declare.
3515 (SEM_BRANCH_INIT_EXTRACT,SEM_BRANCH_INIT,SEM_BRANCH_FINI): New macros.
3516 (CGEN_CPU): New members running_p,insn_count,{fast,full}_engine_fn,
3518 (INSN_NAME): Delete.
3519 (cgen_insn_name): Declare.
3520 (sim_engine_invalid_insn): Renamed from sim_engine_illegal_insn.
3521 * cgen-trace.c (trace_buf): Shrink from 1024 to 256 bytes.
3522 (first_insn_p): Make static.
3523 (trace_insn): Handle virtual insns specially.
3524 (cgen_trace_printf): Ensure we haven't overflowed the buffer.
3525 * cgen-types.h (UBI): Delete.
3526 (MODE_TYPE): New enum.
3527 (HOSTINT,HOSTUINT,HOSTPTR): Delete.
3528 * cgen-utils.c (mode_names): Delete UBI. Add INT,UINT,PTR.
3529 (cgen_virtual_opcode_table): New global.
3530 (cgen_insn_name): New function.
3531 (sim_disassemble_insn): Ignore virtual insns.
3532 * genmloop.sh: Delete top level loop generation. Add pbb support.
3533 * sim-cpu.h (CPU_INSN_NAME_FN): New typedef.
3534 (sim_cpu_base): New members max_insns,insn_name,model_data.
3535 (CPU_PC_GET,CPU_PC_SET): New macros.
3536 (sim_pc_get,sim_pc_set): Declare.
3537 * sim-model.c (model_set): Call model init fn.
3538 * sim-model.h (MODEL_FN): New typedef.
3539 (INSN_TIMING): New member model_fn.
3540 (MODEL): New members num,init.
3541 * sim-profile.c (sim_profile_print_bar): Renamed from print_bar.
3542 All callers updated.
3543 (profile_insn_init): New fn.
3544 (profile_print_insn): Update, INSN_NAME -> CPU_INSN_NAME.
3545 Exit early if insn profiling not supported.
3546 (profile_print_memory): Update, MAX_MODES -> MODE_TARGET_MAX.
3547 (profile_install): Record profile_insn_init as init fn.
3548 (profile_uninstall): Free PROFILE_INSN_COUNT if non-null.
3549 * sim-profile.h: Update, MAX_MODES -> MODE_TARGET_MAX.
3550 (PROFILE_DATA): Delete member exec_time.
3551 Change insn_count to pointer to array, rather than the array.
3552 (sim_profile_print_bar): Declare.
3554 Wed Oct 7 16:56:42 1998 Doug Evans <devans@seba.cygnus.com>
3556 * cgen-run.c: New file.
3557 * sim-reg.c: New file.
3559 Mon Sep 14 10:58:19 1998 Frank Ch. Eigler <fche@cygnus.com>
3561 * aclocal.m4: Add checks for -lsocket and -lnsl.
3563 * dv-sockser.c (dv_sockser_init): Use SO_REUSEADDR to
3564 allow local port reuse on listening socket.
3566 Tue Sep 1 15:36:52 1998 Frank Ch. Eigler <fche@cygnus.com>
3568 * sim-config.h: Remove reference to linux kernel header.
3570 Tue Aug 25 12:45:27 1998 Frank Ch. Eigler <fche@cygnus.com>
3572 * dv-sockser.c (sockser_addr): Make variable non-static.
3574 Mon Aug 24 11:47:37 1998 Joyce Janczyn <janczyn@cygnus.com>
3576 * sim-hw.{c,h} (sim_hw_parse): Return struct hw pointer.
3578 Tue Aug 11 18:12:19 1998 Doug Evans <devans@canuck.cygnus.com>
3580 * sim-events.c (sim_events_elapsed_time): Fix calculation.
3582 Tue Aug 4 20:36:46 1998 Jeff Holcomb <jeffh@cygnus.com>
3584 * Make-common.in (install-common): Add $(EXEEXT) when installing
3587 Mon Aug 3 11:46:01 1998 Doug Evans <devans@seba.cygnus.com>
3589 * cgen-sim.h (cgen_state): New member opcode_table.
3590 * cgen-utils.c (sim_disassemble_insn): Use it.
3592 Fri Jul 24 10:14:18 1998 Doug Evans <devans@canuck.cygnus.com>
3594 * cgen-mem.h (DECLARE_SETT): Fix return type.
3595 * cgen-sim.h (sim_engine_illegal_insn): Declare.
3596 * cgen-scache.c: Include stdlib.h.
3597 * cgen-trace.c (trace_extract): Use %lx for PCADDR.
3598 * sim-model.c (model_option_handler): Remove unused variable `n'.
3600 Tue Jul 21 16:27:43 1998 Doug Evans <devans@seba.cygnus.com>
3602 * cgen-utils.c: Include bfd.h.
3603 (sim_disassemble_insn): Update call to CGEN_EXTRACT_FN.
3605 Wed Jul 8 18:24:10 1998 Jeffrey A Law (law@cygnus.com)
3607 * sim-bits.h (EXTEND24): Fix typo.
3609 Wed Jul 8 17:41:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
3611 * sim-events.c (ETRACE_P): New macro.
3612 (struct _sim_event): Add member trace.
3613 (sim_events_free): Reclaim trace message.
3615 * sim-events.c, sim-events.h (sim_events_schedule_vtracef,
3616 sim_events_schedule_tracef): New functions, include printf trace
3617 information in argument list. If tracing, store asprintf'd trace
3618 message in sim_event.
3620 * hw-events.c, hw-events.h (hw_event_queue_schedule_tracef,
3621 hw_event_queue_schedule_vtracef): New functions, mimic
3624 Mon Jul 6 15:51:14 1998 Jeffrey A Law (law@cygnus.com)
3626 * sim-bits.h (EXTEND24): Define.
3628 Thu Jul 2 17:13:25 1998 Doug Evans <devans@seba.cygnus.com>
3630 * cgen-sim.h (CPU_SCACHE): Make size unsigned.
3631 (CPU_SCACHE_HASH_MASK): New macro.
3632 (SCACHE_HASH_PC): Rewrite.
3633 * genmloop.sh (engine_resume_{full,fast}): Move some of hash
3634 computation out of main loop.
3636 Wed Jul 1 16:44:12 1998 Doug Evans <devans@seba.cygnus.com>
3638 * cgen-sim.h (RECORD_IADDR): Delete.
3639 * cgen-types.h (HOSTINT,HOSTUINT,HOSTPTR): New types.
3640 * genmloop.sh (engine_resume_{full,fast}): Delete icount.
3642 Wed Jun 17 12:25:08 1998 Mark Alexander <marka@cygnus.com>
3644 * gennltvals.def (mn10200): Add entry.
3645 * nltvals.def: Regenerate with MN10200 additions.
3647 Wed Jun 17 13:18:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
3649 * sim-inline.h (EXTERN_*): Replace with EXTERN_*_P. Correct
3650 documentation on how it works.
3652 * sim-core.h, sim-core.c (sim_core_install, sim_core_attach,
3653 sim_core_detach, sim_core_read_buffer, sim_core_write_buffer,
3654 sim_core_set_xor, sim_core_xor_read_buffer,
3655 sim_core_xor_write_buffer): Update.
3657 * sim-events.h, sim-events.c (sim_events_install,
3658 sim_events_watch_clock, sim_events_schedule_after_signal,
3659 sim_events_schedule, sim_events_watch_sim, sim_events_watch_core,
3660 sim_events_deschedule): Update.
3662 * sim-fpu.h, sim-fpu.c (sim_fpu_zero, sim_fpu_one, sim_fpu_two,
3663 sim_fpu_max32, sim_fpu_max64): Update.
3665 Sat Jun 13 07:45:38 1998 Doug Evans <devans@fallis.cygnus.com>
3667 * cgen-trace.c (trace_insn_fini): Redo cycle handling.
3668 * sim-profile.h (PROFILE_DATA): Rename cycle handling members.
3669 * sim-profile.c (profile_print_model): Update.
3671 Fri Jun 12 18:35:07 1998 Doug Evans <devans@seba.cygnus.com>
3673 * gennltvals.def (m32r): Use common syscall.h now.
3674 (mn10300): Add entry.
3675 * nltvals.def: Regenerate.
3677 * sim-engine.c (sim_engine_get_run_state): New function.
3678 * sim-engine.h (sim_engine_get_run_state): Declare it.
3680 Thu Jun 11 00:50:03 1998 Doug Evans <devans@seba.cygnus.com>
3682 * sim-core.h (SIM_CORE_SIGNAL_FN): New typedef.
3683 * sim-core.c (sim_core_signal): Make extern, always define.
3685 Wed Jun 10 16:02:29 1998 Doug Evans <devans@seba.cygnus.com>
3687 * Make-common.in (CGEN_FLAGS_TO_PASS): New variable.
3688 * cgen-ops.h (ANDIF): New macro.
3689 (ANDIF[BQHSD]I): Delete.
3691 Thu Jun 4 13:53:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
3693 * hw-events.c (create_hw_event, delete_hw_event): Delete.
3694 (hw_event_queue_schedule, hw_event_queue_deschedule,
3695 bounce_hw_event): Fix hw-event memory corruptions found by Joyce
3698 * hw-alloc.h (HW_NZALLOC): Define.
3700 * Make-common.in (test-hw-events): Add target for testing the
3703 Mon May 25 21:11:26 1998 Andrew Cagney <cagney@b1.cygnus.com>
3705 * Make-common.in (SIM_COMMON_HW_OBJS): Add hw-handles.o and
3707 hw-handles.c, hw-instances.c, hw-handles.h, hw-instances.h: New
3709 * hw-main.h: Include hw-handles.h, hw-instances.h.
3710 * hw-base.h ({create,delete}_hw_{handles,instances}_data): Declare
3711 * hw-base.c (hw_create, hw_delete): Call same.
3713 Mon May 25 18:55:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
3715 * dv-core.c: Include hw-main.h and sim-main.h.
3716 * dv-pal.c: Include hw-main.h and sim-io.h.
3717 * dv-glue.c: Include hw-main.h.
3719 * hw-main.h: New file. Move list of includes to here.
3720 * hw-base.h: From here.
3721 * Make-common.in (hw_base_headers): Rename to hw_main_headers.
3722 (hw-*.o, dv-*.o): Update.
3723 * hw-tree.c, hw-base.c, hw-properties.c, hw-ports.c, hw-device.c,
3724 hw-events.c, hw-alloc.c, sim-hw.c: Include hw-main.h instead of
3727 * hw-base.h (do_hw_attach_regs, do_hw_poll_read_method,
3728 do_hw_poll_read): Move declarations from here.
3729 * hw-main.h: To here.
3731 * hw-base.h (struct hw_device_descriptor, hw_finish_callback):
3733 * hw-main.h (struct hw_descriptor, hw_finish_method): To here,
3735 * Make-common.in (hw-config.h): Update
3736 * hw-base.c, dv-pal.c, dv-glue.c: Update
3738 * dv-glue.c, hw-device.h, hw-base.h, hw-ports.c: Rename
3739 `*_callback' to `*_method.
3741 Mon May 25 18:41:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
3743 * hw-base.h (set_*): Move set method macros from here.
3744 * hw-device.h: To here.
3746 Mon May 25 18:21:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
3748 * hw-base.h (create_hw_property_data, delete_hw_property_data):
3751 * hw-base.c (hw_create, hw_delete): Call
3752 * hw-properties.c (create_hw_property_data,
3753 delete_hw_property_data): Define.
3755 Mon May 25 17:40:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
3757 * hw-device.c, hw-properties.c: Include hw-base.h
3759 * hw-alloc.h, hw-alloc.c: New files. Move alloc code to here.
3760 * hw-device.c: From here.
3761 * hw-base.h: Include "hw-events.h".
3763 * hw-base.h (create_hw_alloc_data, delete_hw_alloc_data): Declare.
3764 * hw-base.c (hw_create, hw_delete): Call.
3765 * hw-alloc.c (create_hw_alloc_data, delete_hw_alloc_data): Define.
3767 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-alloc.o.
3768 (hw-alloc.o): New target.
3770 Mon May 25 17:14:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
3772 * hw-events.h, hw-events.c: New files. Move event code to here.
3773 * sim-hw.c: From here.
3774 * hw-base.h: Include "hw-events.h".
3775 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-events.o.
3776 (hw-events.o): New target.
3778 * hw-device.h (struct hw): Add struct hw_event_data events_of_hw.
3779 * hw-events.h (struct hw_event): Replace typedef hw_event.
3781 * hw-base.h (create_hw_event_data, delete_hw_event_data): Declare.
3782 * hw-base.c (hw_create, hw_delete): Call.
3783 * hw-events.c (create_hw_event_data, delete_hw_event_data): Define.
3787 Mon May 25 16:55:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
3789 * hw-base.c (panic_hw_port_event, empty_hw_ports): Move from here.
3790 * hw-ports.c: To here.
3792 * hw-base.h, hw-ports.c (create_hw_port_data,
3793 delete_hw_port_data): New functions.
3794 * hw-base.c (hw_delete, hw_create): Call same.
3796 * hw-base.h (set_hw_ports, set_hw_port_event): Move set functions
3798 * hw-ports.h: To here.
3800 Mon May 25 16:42:48 1998 Andrew Cagney <cagney@b1.cygnus.com>
3802 * hw-device.c (hw_ioctl), hw-device.h (hw_ioctl_callback): Drop
3803 PROCESSOR and CIA arguments.
3805 Fri May 22 12:16:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
3807 * aclocal.m4 (SIM_AC_OPTION_HW): Add enable / disable argument.
3808 Move common object files from here.
3809 * Make-common.in (SIM_COMMON_HW_OBJS): To here.
3811 Thu May 21 17:57:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
3813 * sim-hw.c: Include ctype.h.
3814 (do_hw_poll_read): Do not assume EAGAIN.
3816 Wed May 20 04:37:57 1998 Doug Evans <devans@seba.cygnus.com>
3818 * cgen-trace.c (first_insn_p): New static local.
3819 (trace_insn_init): Set it.
3820 (trace_insn_fini): Use TRACE_PREFIX.
3821 (trace_insn): Rewrite to use trace_prefix.
3822 * sim-trace.c (trace_prefix): Don't print filename arg if NULL.
3823 Adjust width accordingly.
3825 * sim-profile.h (PROFILE_DATA): New member profile_any_p.
3826 (PROFILE_ANY_P,PROFILE_INSN_P,PROFILE_MEMORY): New macros.
3827 (PROFILE_SCACHE_P,PROFILE_PC_P,PROFILE_CORE_P): New macros.
3828 (PROFILE_COUNT_INSN,PROFILE_COUNT_READ,PROFILE_COUNT_WRITE): Simplify.
3829 (PROFILE_COUNT_CORE): Simplify.
3830 * sim-profile.c (profile_option_handler): Compute profile_any_p.
3832 Tue May 19 23:55:30 1998 Doug Evans <devans@seba.cygnus.com>
3834 * cgen-ops.h (ADDCFSI): Fix typo.
3836 Sat May 16 12:44:52 1998 Doug Evans <devans@seba.cygnus.com>
3838 * cgen-sim.h (CGEN_CPU): New members idesc_{read,sem}_init_p.
3839 * genmloop.sh: Use them rather than static locals.
3841 * sim-engine.c (sim_engine_set_run_state): New function.
3842 * sim-engine.h (sim_engine_set_run_state): Declare.
3843 * genmloop.sh (pending_reason,pending_sigrc): New static locals.
3844 (@cpu@_engine_stop): New args reason,sigrc. All callers updated.
3845 (engine_resume): Reorganize. Allow synchronous exit from main loop.
3847 Fri May 15 16:06:05 1998 Doug Evans <devans@seba.cygnus.com>
3849 * cgen-trace.c (trace_insn_init): New arg first_p.
3850 All callers updated.
3851 (trace_insn_fini): New arg last_p. All callers updated.
3852 * cgen-trace.h (trace_insn_init,trace_insn_fini): Update.
3853 (TRACE_INSN_INIT,TRACE_INSN_FINI): Update.
3854 * genmloop.sh (engine_resume): Update.
3856 Fri May 15 15:59:00 1998 Joyce Janczyn <janczyn@cygnus.com>
3858 * Make-common.in (install-common): Run ranlib on installed copy of
3861 Fri May 15 15:03:00 1998 Joyce Janczyn <janczyn@cygnus.com>
3863 * Make-common.in (install-common): Rename and install libsim.a.
3865 Tue May 12 15:23:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
3867 * sim-io.c (unistd.h): Include.
3869 Wed May 6 16:04:18 1998 Doug Evans <devans@seba.cygnus.com>
3871 * Make-common (sim_main_headers): Sort.
3872 (cgen-*.o): Add cgen-sim.h dependency.
3874 * cgen-scache.c (scache_init): Only allocate space if scache element
3876 (scache_flush,scache_print_profile): Check if scache in use first.
3878 * cgen-sim.h (IDESC): Provide forward declaration.
3880 (CGEN_CPU): Always define scache member. New members idesc,opcode.
3881 (cgen_cpu_max_extra_bytes): Declare.
3882 * cgen-utils.c (cgen_cpu_max_extra_bytes): New function.
3884 * sim-cpu.h: New file. sim_cpu_base moved here.
3885 Move sim_cpu_lookup decl here.
3886 * sim-base.h: #include "sim-cpu.h".
3887 * sim-cpu.c: New file.
3888 * Make-common (sim_main_headers): Add sim-cpu.h.
3889 (sim-cpu.o): Add rule for.
3891 * sim-model.c (set_model): Delete.
3892 (sim_model_set,model_set): New functions.
3893 (sim_model_install): Renamed from model_install.
3894 Don't set default model here.
3895 (model_option_handler): Rewrite --model processing.
3896 (sim_model_lookup,sim_mach_lookup): New functions.
3897 * sim-model.h (MAX_MODELS,MAX_INSNS): Delete.
3898 (insn_timing): Delete.
3899 (INSN_TIMING): New member `num'.
3900 (IMP_PROPERTIES): Always define scache_elm_size member.
3901 (MACH): New member init_cpu.
3902 (sim_machs): Renamed from machs.
3903 (sim_model_install): Renamed from model_install.
3904 (sim_model_set,sim_model_lookup,sim_mach_lookup): Declare.
3905 * sim-module.c (modules): Update.
3907 * sim-profile.c (profile_print_insn): Add cpu arg to INSN_NAME macro.
3909 * sim-io.c: #include <errno.h>.
3911 Wed May 6 12:39:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
3913 * dv-pal.c (struct hw_pal_device): Add reader.
3914 (hw_pal_finish): Initialize reader.
3915 (scan_hw_pal): Use reader.
3917 * hw-base.h, sim-hw.c (do_hw_poll_read): New function.
3918 (HW_IO_EOF, HW_IO_NOT_READY): Define.
3921 * sim-io.h, sim-io.c (sim_io_poll_read): New function. Copy from
3922 ../ppc/main.c sim_io_read_stdin.
3924 Fri May 1 12:11:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
3926 * hw-tree.h (hw_tree_print): Paramaterize with print and file
3928 * hw-tree.c: Update.
3930 * hw-base.h (hw_port_event_callback): Delete CPU/CIA args.
3931 * hw-device.h (hw_io_read_buffer, hw_io_write_buffer): Delete
3933 * hw-ports.h (hw_port_event): Ditto.
3934 * hw-ports.c (hw_port_event): Update.
3935 * hw-base.c (panic_hw_io_read_buffer, panic_hw_io_write_buffer):
3937 * dv-pal.c (hw_pal_io_read_buffer, hw_pal_io_write_buffer):
3939 (hw_pal_io_write_buffer): Call hw_halt not sim_engine_halt.
3940 (do_counter_event): Update.
3941 * dv-glue.c (hw_glue_io_read_buffer): Update.
3942 (hw_glue_port_event): Update.
3944 * hw-device.h (SIM_DESC): Replace with struct sim_state.
3945 * hw-base.h (hw_create): Ditto.
3946 * hw-base.c (hw_create): Ditto.
3948 * hw-device.c (hw_abort, hw_trace, hw_hw_event_queue_schedule,
3949 hw_event_queue_deschedule, hw_event_queue_time): Delete, moved
3952 * hw-device.h (hw_system_cpu): Declare.
3953 * sim-hw.c (hw_system_cpu): New function.
3955 * sim-core.c (sim_core_map_attach, sim_core_attach): Call
3956 sim_hw_abort not hw_abort.
3957 (sim-hw.h): Include.
3958 (sim_core_read_buffer, sim_core_write_buffer): Call
3959 sim_hw_io_read_buffer and sim_hw_io_write_buffer. Do not pass CPU
3961 (sim_core_set_xor): Do not pass CPU when aborting.
3963 * sim-n-core.h (sim_core_read_aligned_N,
3964 sim_core_write_aligned_N): Call sim_hw_abort not hw_abort.
3965 (sim_core_read_aligned_N, sim_core_write_aligned_N): Call
3966 sim_cpu_hw_io_read_buffer and sim_cpu_hw_io_write_buffer. Does not
3969 * sim-hw.h: Declare sim_hw_io_{read,write}_buffer. Declare
3971 * sim-hw.c (sim_hw_io_read_buffer, sim_hw_io_write_buffer,
3972 sim_cpu_hw_io_read_buffer, sim_cpu_hw_io_write_buffer): New
3974 (sim_hw_print): New function.
3976 * sim-engine.h (sim_engine_vabort): Declare.
3977 * sim-engine.c (sim_engine_vabort): New function.
3979 Wed Apr 29 23:58:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
3981 * sim-trace.c (print_data): For floating-point numbers trace raw
3983 (trace_result_fp2): New function.
3984 * sim-trace.h (trace_result_fp2): New declaration.
3985 (TRACE_FP_RESULT2): New macro.
3987 Tue Apr 28 18:28:58 1998 Geoffrey Noer <noer@cygnus.com>
3989 * common/aclocal.m4: call AM_EXEEXT in SIM_AC_COMMON, define
3990 AM_CYGWIN32 and AM_EXEEXT.
3991 * common/Make-common.in: set EXEEXT, add missing EXEEXTs
3992 to run and install-common rules.
3993 * common/configure: regenerate
3995 Sat Apr 25 17:45:01 1998 Andrew Cagney <cagney@b1.cygnus.com>
3997 * sim-types.h (cell_word): New type.
3998 (natural_cell): Delete type.
4000 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
4002 * configure: Regenerated to track ../common/aclocal.m4 changes.
4005 Sun Apr 26 15:25:07 1998 Tom Tromey <tromey@cygnus.com>
4007 * acconfig.h (NEED_DECLARATION_PRINTF): Removed.
4009 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
4011 * configure: Regenerated to track ../common/aclocal.m4 changes.
4014 Fri Apr 24 11:38:08 1998 Tom Tromey <tromey@cygnus.com>
4016 * acconfig.h: New file.
4017 * Make-common.in (top_builddir): New macro.
4018 (INTL_LIB): Removed.
4019 (INTLLIBS): New macro.
4020 (INTLDEPS): Likewise.
4021 (LIBDEPS): Use INTLDEPS.
4022 (EXTRA_LIBS): Use INTLLIBS.
4023 * aclocal.m4 (SIM_AC_COMMON): Call CY_GNU_GETTEXT.
4024 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST,
4025 AM_LC_MESSAGES): New macros from GNU gettext.
4027 Fri Apr 24 19:57:59 1998 Andrew Cagney <cagney@b1.cygnus.com>
4029 * sim-config.h: Discard leading _ from macros.
4030 * sim-types.h: Ditto.
4032 Wed Apr 22 14:14:19 1998 Michael Meissner <meissner@cygnus.com>
4034 * Make-common.in (CSEARCH): Add -I to intl directories.
4035 (INTL_LIB): Point to libintl.a.
4036 (LIBDEPS): Add $(INTL_LIB).
4037 (EXTRA_LIBS): Ditto.
4039 Tue Apr 21 12:44:27 1998 Doug Evans <devans@canuck.cygnus.com>
4041 * cgen-types.h (GETHIDI,MAKEDI): Tweak.
4043 * cgen-ops.h (ADDCFSI): Fix.
4046 Tue Apr 21 13:18:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
4048 * sim-types.h (signed_address, unsigned_address): Define.
4050 Mon Apr 20 21:47:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4052 * sim-fpu.c (sim_fpu_2d): Don't return an SNaN, convert it into a
4055 Thu Apr 16 10:30:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
4057 * sim-fpu.c, sim-fpu.h (sim_fpu_fractionto, sim_fpu_tofraction):
4058 New functions, pack / unpack sim_fpu struct using raw values.
4059 (sim_fpu_is): Differentiate between negative and positive
4062 Tue Apr 14 18:49:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
4064 * sim-bits.h (EXTEND4): Define.
4065 (EXTEND4, EXTEND15, EXTEND11): Ditto.
4067 Tue Apr 14 16:31:35 1998 John Metzler <jmetzler@cygnus.com>
4069 * sim-memopt.c (parse_addr): Sunos 4.5 does not have strtol
4070 declared so we need this cast to prevent long long addresses
4071 from being misconfigures. Results in access to unmapped memory.
4073 Tue Apr 14 13:19:14 1998 Doug Evans <devans@canuck.cygnus.com>
4075 * Make-common.in (RUNTESTFLAGS): Define.
4076 (check): Pass RUNTESTFLAGS to recursive make.
4078 Tue Apr 14 15:09:19 1998 Andrew Cagney <cagney@b1.cygnus.com>
4080 * sim-info.c (sim_info): Be verbose when either VERBOSE or
4083 Sat Apr 4 23:24:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
4085 * aclocal.m4 (sim-inline): By default, disable sim-inline when
4088 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
4090 * aclocal.m4 (sim-cflags): Add -fomit-frame-pointer to defaults.
4091 (sim-inline): Update to match sim-inline.[hc]
4092 * configure: Regenerated to track ../common/aclocal.m4 changes.
4094 * Make-common.in (sim_main_headers): Add sim-inline.h
4096 * sim-bits.h (sim-bits.c): Include when H_REVEALS_MODULE_P.
4098 * sim-endian.h (sim-endian.c): Ditto.
4100 * sim-events.h (_SIM_EVENTS_H_): Replace with SIM_EVENTS_H.
4101 (sim_events_set_trace): Delete unused prototype.
4103 * sim-core.h (_SIM_CORE_H_): Replace with SIM_CORE_H.
4104 * sim-core.c (_SIM_CORE_C_): Ditto for SIM_CORE_C.
4106 * sim-fpu.h (sim-fpu.c): Include when H_REVEALS_MODULE_P.
4107 (sim_fpu_to232i, sim_fpu_to232u, sim_fpu_i232to, sim_fpu_u232to):
4108 Comment out, not yet implemented in sim-fpu.c.
4109 (sim_fpu_zero, sim_fpu_one, sim_fpu_two, sim_fpu_qnan,
4110 sim_fpu_max32, sim_fpu_max64): Mark as EXTERN_SIM_FPU.
4112 * sim-inline.h: Rewrite description.
4113 (H_REVEALS_MODULE_P, C_REVEALS_MODULE_P): Define.
4114 (SIM_MAIN_INLINE): Add inline option.
4116 * sim-inline.c (semantics.c, idecode.c, engine.c, ...): Do not
4117 include generated files. Handled by generator directly.
4119 Sat Apr 4 01:07:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
4121 * sim-trace.c (set_trace_option_mask): Keep TRACE_ANY_P
4124 * sim-trace.h (TRACE_ANY_P): Define.
4125 (struct _trace_data): Add trace_any_p.
4127 Mon Mar 30 17:11:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
4129 * run.c (main): Handle all alternatives of enum sim_stop.
4130 (main): Delete unused `asection *s'.
4132 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
4134 * hw-tree.h, hw-tree.c (hw_tree_vparse): New function
4136 * configure: Regenerated to track ../common/aclocal.m4 changes.
4138 * sim-hw.c: New file.
4139 * sim-hw.h (sim_hw_parse): Declare function.
4140 (hw-tree.h): Do not include.
4142 * sim-base.h (STATE_HW): Define.
4143 (struct sim_state_base): Add member struct *hw.
4145 * sim-module.c (sim-hw.h): Include.
4146 (modules): Add sim_hw_install.
4148 * aclocal.m4 (sim_hw_obj): Add sim-hw.o
4150 Fri Mar 27 14:55:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
4152 * sim-base.h (CPU_INDEX): Define.
4154 * sim-utils.c (sim_state_alloc): Initialize.
4155 * sim-module.c (sim_post_argv_init): Ditto.
4157 Thu Mar 26 10:07:57 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
4159 * aclocal.m4 (sim_hw_obj): Fix sed expression to generate
4160 properly formatted lists.
4162 Thu Mar 26 10:37:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
4164 * dv-pal.c (enum hw_pal_address_mask): From Stu Grossman, was
4165 0x2f needs to be 0x3f.
4167 Thu Mar 26 09:10:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
4169 * hw-tree.c (hw_tree_find_property): Return NULL when device is
4171 (hw_tree_find_*_property): Clean up error message when property is
4174 * dv-pal.c (hw_pal_io_read_buffer): Check the smp property is
4175 present before looking for it.
4177 Wed Mar 25 16:17:38 1998 Ian Carmichael <iancarm@cygnus.com>
4179 * aclocal.m4 (AC_CHECK_HEADERS): Add check for fpu_control.h.
4180 (AC_CHECK_FUNCS): Add check for __setfpucw.
4181 * configure: Regenerated.
4183 Wed Mar 25 09:18:34 1998 Andrew Cagney <cagney@b1.cygnus.com>
4185 * dv-pal.c (hw_pal_countdown, hw_pal_countdown_value,
4186 hw_pal_timer, hw_pal_timer_value): Define.
4187 (hw_pal_io_read_buffer, hw_pal_io_write_buffer): Add timer support
4188 (do_counter_event, do_counter_read, do_counter_value,
4189 do_counter_write): new functions.
4191 Tue Mar 24 12:24:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
4193 * hw-tree.c (hw_printf): Send tree dump to stderr, same as other
4196 * hw-base.c (hw_create): Stop searching for a device when one is
4199 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
4201 * configure: Regenerated to track ../common/aclocal.m4 changes.
4203 Mon Mar 23 10:25:08 1998 Andrew Cagney <cagney@b1.cygnus.com>
4205 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add second argument,
4206 appends extra devices.
4207 (SIM_AC_OPTION_HARDWARE): Substute sim_hw, a non-duplicate list of
4210 * Make-common.in (hw-config.h): New target, create hw-config.h
4212 (SIM_HW): Definition from @sim_hw@.
4213 (hw-base.o): Depend on hw-config.h
4215 Tue Mar 24 17:41:35 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
4217 * Make-common.in: Get SHELL from configure.
4218 * (stamp-tvals sim-inline.c): Use $(SHELL) when invoking
4219 move-if-change. Fixes NT native build problem.
4220 * Makefile.in (nltvals.def): Use $(SHELL) when invoking
4221 move-if-change. Fixes NT native build problem.
4222 * configure: Regenerate with autoconf 2.12.1 to fix shell issues for
4225 Sun Mar 22 16:54:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
4227 * hw-device.h, hw-device.c (hw_strdup): New function.
4229 * hw-base.c (hw_create): Use hw_strdup when saving a copy of the
4230 strings name, family and args.
4231 (full_name_of_hw): Use hw_strdup when returning the full path.
4233 * hw-properties.c: Clean up property not found / wrong type error
4236 * hw-tree.c (hw_tree_parse): Finish a devices initialization
4237 before attaching any ports.
4239 * hw-base.c (hw-config.): Include. Replace hardwired table.
4241 * dv-glue.c: Copy over ../ppc/hw_glue.c. Update to new framework.
4243 * Make-common.in: Add rule for dv-glue.o.
4245 Sun Mar 22 16:45:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4247 * hw-base.c (hw_finish): Move setting of trace level to here.
4248 (hw_create): From here.
4250 * hw-base.h, hw-base.c (do_hw_attach_regs): Copy function from
4251 ../ppc/device_table.c.
4253 * dv-pal.c (hw_pal_finish): Attach PAL device to parent bus.
4255 * hw-tree.c (print_properties): Supress path when printing
4256 properties of root node.
4258 Sun Mar 22 16:21:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
4260 * hw-device.h (HW_TRACE): Define.
4261 (hw_trace): Declare.
4262 * hw-device.c (hw_trace): Implement function.
4264 * hw-base.c (hw_create): Set hw trace level from "trace?"
4267 * dv-core.c (dv_core_attach_address_callback): Add trace.
4269 * dv-pal.c: Replace DTRACE with HW_TRACE.
4271 Sun Mar 22 15:23:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
4273 * hw-device.h (HW_ZALLOC, HW_MALLOC): New macros.
4274 (hw_alloc_data): Delcare.
4275 (struct hw): Add member alloc_of_hw.
4277 * hw-device.c (hw_zalloc, hw_malloc, hw_free, hw_free_all): New
4278 functions. Assocate memory with a device.
4279 (stdlib.h): Include.
4281 * hw-base.h (set_hw_delete): Define.
4282 (hw_delete_callback): Declare.
4283 (hw_delete): Declare.
4285 * hw-base.c (hw_delete): Implement function.
4286 (struct hw_base_data): Add member to_delete.
4287 (ignore_hw_delete): New function, does nothing.
4288 (hw_create): Set the hw_delete method.
4289 (hw_create): Allocate the base type using HW_ZALLOC before setting
4292 * hw-tree.h, hw-tree.c (hw_tree_delete): New function.
4294 * hw-properties.c: Replace zalloc/zfree with hw_zalloc/hw_free.
4296 * hw-ports.c: Replace zalloc/zfree with hw_zalloc/hw_free.
4297 (attach_hw_port_edge): Add struct hw argument
4299 * dv-pal.c (hw_pal_finish): Replace zalloc/zfree with
4302 Sun Mar 22 15:09:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
4304 * hw-device.h (hw_attach_address_callback,
4305 hw_detach_address_callback): Attach to a single space not a space
4306 mask. Clarify interpretation of SPACE:ADDR parameters.
4308 * hw-base.c (passthrough_hw_attach_address,
4309 passthrough_hw_detach_address): Update.
4310 * dv-core.c (dv_core_attach_address_callback): Ditto.
4311 * dv-pal.c (hw_pal_attach_address): Ditto.
4313 Thu Mar 19 00:41:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
4315 * sim-options.h: Document additional CPU arg to OPTION_HANDLER.
4317 Wed Mar 18 14:13:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
4319 * Make-common.in (SIM_HW_OBJS, SIM_HW_SRC, SIM_DV_OBJS): Define.
4320 (hw-base_h, hw-device_h, hw-handles_h, hw-instances_h, hw_ports_h,
4321 hw-properties_h, hw-tree_h): Define, point at corresponding
4323 (hw_base_headers): Define list of headers included by hw-base.h
4324 (hw-base.o, hw-device.o, hw-instances.o, hw-handles.o, hw-ports.o,
4325 hw-properties.o, hw-tree.o): Specify dependencies.
4326 (dv-core.o, dv-pal.o): Ditto.
4328 * sim-hw.h: New file.
4330 * hw-device.h, hw-device.c, hw-properties.h, hw-properties.c,
4331 hw-ports.h, hw-ports.c: New files. Copied from ../ppc/device.[ch].
4333 * hw-tree.h, hw-tree.c: New files. Copied from ../ppc/tree.[hc].
4335 * hw-base.h, hw-base.c: new files. Copied from
4336 ../ppc/device_table.[hc].
4338 * dv-core.c, dv-pal.c: New files. Copied from
4339 ../ppc/hw_{core,pal}.c
4341 * sim-basics.h (struct hw): Declare.
4342 (enum port_direction, enum object_disposition): Declare.
4344 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
4346 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set sim_hw_obj, sim_dv_obj,
4347 sim_dv_src in Makefile. Take list of devices as parameter to m4
4350 * configure: Regenerated to track ../common/aclocal.m4 changes.
4352 Mon Mar 16 12:37:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
4354 * sim-trace.h, sim-trace.c (trace_prefix): Pass in sim_cia so that
4355 trace_prefix can abort cleanly.
4357 Sat Mar 14 18:36:12 1998 Doug Evans <devans@seba.cygnus.com>
4359 * dv-sockser.c, dv-sockser.h: New files.
4360 * Make-common.in (dv-sockser.o): Add rule for.
4361 * aclocal.m4: Check for fcntl.h.
4362 * config.h: Add HAVE_FCNTL_H.
4364 * sim-break.c (remove_breakpoint): Fix thinko.
4366 * sim-hload.c (sim_load): Provide default value of SIM_HANDLES_LMA.
4367 Use SIM_HANDLES_LMA for lma_p arg to sim_load_file.
4369 1998-03-13 Fred Fish <fnf@cygnus.com>
4371 * sim-base.h (struct sim_state_base): Add prog_syms and
4372 define macro STATE_PROG_SYMS.
4373 * sim-trace.c (trace_prefix): Add variables abfd, symsize,
4374 symbol_count, and asymbols. Call bfd_get_symtab_upper_bound
4375 and bfd_canonicalize_symtab, to get symbol table on first use
4376 and preserve it via STATE_PROG_SYMS for future calls to
4377 bfd_find_nearest_line.
4379 Wed Mar 11 14:02:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
4381 * sim-core.h, sim-core.c (sim_core_map_to_str): Delete.
4383 * sim-core.c (sim_core_attach): Handle a generic number of maps -
4384 up to nr_maps, not just access_* maps.
4386 * sim-profile.h (struct PROFILE_DATA): Track nr_maps different
4389 * sim-profile.c (profile_print_core): Make map unsigned. Iterate
4390 over nr_maps not sim_core_nr_maps.
4392 * sim-events.h, sim-events.c (sim_events_watch_core): Change
4393 core_map argument to unsigned.
4394 (struct _sim_core): Ditto for struct member core_map.
4396 * sim-core.h (nr_sim_core_maps, sim_core_*_map): Delete
4398 * sim-basics.h (access_io, access_*_io): Define.
4399 (map_read, map_write, map_exec, map_io): Define.
4401 * sim-core.c, sim-core.h (sim_core_attach): Replace argument
4402 attach with more generic mapmask.
4403 (sim_core_{read,write}_*): Change map argument to unsigned.
4405 * sim-core.c (sim_core_uninstall, sim_core_attach,
4406 sim_core_detach): Iterate over nr_maps instead of
4409 * sim-break.c (insert_breakpoint): Write breakpoints to exec_map
4410 instead of the write_map.
4411 (remove_breakpoint): Ditto.
4413 * genmloop.sh (engine_resume_full): Replace sim_core_*_map
4414 with read_map, write_map, exec_map resp.
4416 * cgen-mem.h (DECLARE_GETMEM, DECLARE_SETMEM, DECLARE_GETIMEM):
4419 * cgen-utils.c (sim_disassemble_insn): Ditto.
4421 * sim-hrw.c (sim_write, sim_write): Ditto.
4423 * sim-utils.h, sim-utils.c (access_to_str, map_to_str,
4424 transfer_to_str): New functions.
4426 Mon Mar 9 12:50:59 1998 Doug Evans <devans@seba.cygnus.com>
4428 * sim-base.h (sim_state_base): New member environment.
4429 (STATE_ENVIRONMENT): New macro.
4430 * sim-config.c (current_environment): Delete.
4431 (sim_config_default): New function.
4432 (sim_config): Set STATE_ENVIRONMENT, not current_environment.
4433 * sim-config.h (current_environment,CURRENT_ENVIRONMENT): Delete.
4434 (sim_config_default): Add prototype.
4435 * sim-module.c (sim_pre_argv_init): Call sim_config_default.
4436 * sim-options.c (standard_option_handler, case OPTION_ENVIRONMENT):
4437 Set STATE_ENVIRONMENT, not current_environment.
4439 Mon Mar 9 11:59:03 1998 Jim Wilson <wilson@cygnus.com>
4441 * sim-fpu.c (NR_GUARDS64): Change NR_PAD32 to NR_PAD64.
4443 Tue Mar 3 10:53:05 1998 Andrew Cagney <cagney@b1.cygnus.com>
4445 * sim-types.h (SIGNED32, SIGNED64): Pacify GCC.
4447 * sim-alu.h (ALU64_BEGIN): Make alu64_r unsigned.
4449 Mon Mar 2 10:20:06 1998 Doug Evans <devans@seba.cygnus.com>
4451 * Make-common.in (TAGS): Make smarter.
4452 * Makefile.in (TAGS): Ditto.
4454 Fri Feb 27 19:09:57 1998 Doug Evans <devans@canuck.cygnus.com>
4456 * sim-module.c (*): Fix typos in assertion tests.
4458 Sat Feb 28 13:54:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
4460 * sim-module.c (sim_pre_argv_init): String passed to asprintf
4463 * sim-options.c (sim_parse_args): Ditto.
4464 (sim_args_command): Return OK, instead of nothing, for an empty
4467 Fri Feb 27 13:29:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
4469 * sim-profile.c (profile_info): Rename from profile_print. Drop
4470 misc and misc_cpu callback arguments. Use
4471 PROFILE_INFO_CPU_CALLBACK and STATE_PROFILE_INFO_CALLBACK instead.
4472 (profile_install): Install profile_info function.
4474 * sim-profile.h (PROFILE_INFO_CPU_CALLBACK,
4475 STATE_PROFILE_INFO_CALLBACK): Define.
4476 (struct PROFILE_DATA): Add field info_cpu_callback.
4477 (profile_print): Delete function.
4479 * sim-base.h (STATE_MODULES): Define. Replace individual
4480 STATE_*_LIST with single struct module_list.
4482 * sim-module.h (MODULE_INFO_FN, MODULE_INFO_LIST): Declare.
4483 (struct module_list): Declare.
4485 * sim-module.h, sim-module.c (sim_module_add_info_fn,
4486 sim_module_info): New functions.
4487 (sim_module_install): Clean up module data structures.
4489 * sim-info.c (sim_info): New file. New function. Call
4492 * Make-common.in (sim-info.o): Define rule.
4493 (SIM_NEW_COMMON_OBJS): Add sim-info.o.
4496 Fri Feb 27 18:26:16 1998 Doug Evans <devans@canuck.cygnus.com>
4498 * sim-base.h (sim_cpu_base): New members name, options.
4499 (sim_cpu_lookup): Add prototype.
4500 * sim-module.c (sim_pre_argv_init): Provide default names for cpus.
4501 * sim-options.h (DECLARE_OPTION_HANDLER): New argument `cpu'.
4502 (sim_add_option_table): Update prototype.
4503 * sim-options.c (sim_add_option_table): New argument `cpu'.
4504 (standard_option_handler,standard_install): Update.
4505 (sim_parse_args): Handle cpu specific options.
4506 (print_help): New static function.
4507 (sim_print_help): Call it. Print cpu specific options.
4508 (find_match): New static function.
4509 (sim_args_command): Call it. Handle cpu specific options.
4510 * sim-utils.c (sim_cpu_lookup): New function.
4511 * sim-memopt.c (memory_option_handler): Update.
4512 (sim_memopt_install): Update.
4513 * sim-model.c (model_option_handler): Update.
4514 (model_install): Update.
4515 * sim-profile.c (profile_option_handler): Update.
4516 (profile_install): Update.
4517 * sim-trace.c (trace_option_handler): Update.
4518 (trace_install): Update.
4519 * sim-watch.c (watchpoint_option_handler): Update.
4520 (sim_watchpoint_install): Update.
4521 * cgen-scache.c (scache_option_handler): Update.
4522 (scache_install): Update.
4524 Wed Feb 25 11:00:26 1998 Doug Evans <devans@canuck.cygnus.com>
4526 * Make-common.in (check): Run `make check' in testsuite dir.
4528 Wed Feb 25 14:40:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
4530 * sim-trace.c (trace_result0): New function.
4532 * sim-trace.h (TRACE_FP_*, TRACE_FPU_*): Rename TRACE_FPU_*
4533 macro's to TRACE_FP_*. TRACE_FPU_* should be defined and used when
4534 tracing sim_fpu variables.
4535 (TRACE_ALU_RESULT0): Define.
4536 (TRACE_FP_RESULT_WORD): Define.
4537 (TRACE_FP_INPUT_WORD1): Define.
4539 * sim-fpu.c, sim-fpu.h (sim_fpu_max32, sim_fpu_max64, sim_fpu_one,
4540 sim_fpu_two): New constants.
4541 (sim_fpu_op1, sim_fpu_op2): New types.
4542 (struct _sim_fpu): Delete member result. Re-order other members.
4543 (sim_fpu_sign, sim_fpu_exp): New functions.
4544 (sim_fpu_max, sim_fpu_min): new functions.
4545 (EXPMAX32, EXPMAX64, NR_PAD32, NR_PAD64, NR_GUARDS32, NR_GUARDS64,
4546 NORMAL_EXPMAX32, NORMAL_EXPMAX64): Define.
4548 Tue Feb 24 22:45:39 1998 Doug Evans <devans@seba.cygnus.com>
4550 * sim-profile.c (profile_print): Delete duplicate test of
4552 (profile_print_pc): Exit early if data collection not set up.
4553 (profile_print_core): Simplify by calling sim_core_map_to_str.
4554 * sim-core.h (sim_core_map_to_str): Declare.
4555 * sim-core.c (sim_core_map_to_str): Make non-static.
4557 * genmloop.sh (engine_resume): Update insn_count before exiting.
4558 (engine_resume_full): Keep accurate core profile data.
4560 * cgen-utils.c (sim_disassemble_insn): Don't use
4561 sim_core_read_aligned_N, it messes up profiling results.
4563 Mon Feb 23 20:45:57 1998 Mark Alexander <marka@cygnus.com>
4565 * nltvals.def: Regenerate with MN10300 additions.
4567 Tue Feb 24 13:18:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
4569 * sim-trace.h (TRACE_ALU_RESULT2): Define.
4571 * sim-trace.h, sim-trace.c (trace_result_word2,
4572 trace_input_word4, trace_result_word4): New function.
4574 Mon Feb 23 13:08:35 1998 Doug Evans <devans@canuck.cygnus.com>
4576 * cgen-sim.h (SEM_NEXT_PC): New arg `len'.
4578 * sim-xcat.h: Delete.
4579 * cgen-mem.h: Delete inclusion of sim-xcat.h.
4580 * cgen-sim.h: Ditto.
4581 * sim-alu.h: Replace sim-xcat.h with symcat.h.
4582 * sim-n-bits.h: Ditto.
4583 * sim-n-core.h: Ditto.
4584 * sim-n-endian.h: Ditto.
4586 Mon Feb 23 13:19:58 1998 Michael Meissner <meissner@cygnus.com>
4588 * syscall.c (cb_syscall): Handle short reads, and EOF.
4590 Tue Feb 24 00:29:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
4592 * sim-trace.c (print_data): case trace_fmt_fp missing break. Use
4593 sim_fpu to safely print fp_word values.
4594 (print_data): Add trace_fmt_bool and trace_fmt_addr.
4595 (trace_result_bool1, trace_result_addr1): New functions.
4596 (trace_input_bool1, trace_input_addr1): New functions.
4598 * sim-trace.h (TRACE_FPU_*): Define.
4600 Mon Feb 23 13:24:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4602 * sim-fpu.h (enum sim_fpu_class): Add sim_fpu_class_denorm.
4603 (sim_fpu_fpto, sim_fpu_tofp): Define.
4605 Fri Feb 20 18:08:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
4607 * sim-fpu.c (sim_fpu_cmp): New function.
4609 Wed Feb 18 16:29:21 1998 Doug Evans <devans@canuck.cygnus.com>
4611 * cgen-utils.h (sim_disassemble_insn): Use CGEN_INSN_BITSIZE
4612 instead of abuf->length.
4613 * sim-trace.c (trace_options): Have -t only trace a few useful things.
4614 (set_trace_option_mask): Renamed from set_trace_options.
4615 (set_trace_option): New function.
4616 (trace_option_handler): Update calls to set_trace_option{,_mask}.
4617 * sim-trace.h (TRACE_USEFUL_MASK): New macro.
4619 Wed Feb 18 12:42:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
4621 * sim-basics.h: Declare struct _sim_fpu.
4623 Tue Feb 17 16:27:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
4625 * sim-trace.h (TRACE_ALU_INPUT*, TRACE_ALU_RESULT): Define.
4626 (trace_prefix, trace_input*, trace_result*): Declare.
4627 (trace_one_insn): Change declaration, assume trace_prefix called.
4628 (trace_generic): Like trace_one_insn.
4629 (TRACE_ALU_IDX, TRACE_*_IDX): Change #define's to enum.
4630 (TRACE_alu, TRACE_[a-z]*): Update.
4632 * sim-trace.c (trace_prefix, trace_input*, trace_result*,
4633 trace_insn, save_data, trace_idx_to_str, print_data): New
4635 (trace_one_insn): Rewrite.
4636 (trace_generic): New function.
4638 Tue Feb 17 17:27:30 1998 Doug Evans <devans@seba.cygnus.com>
4640 * aclocal.m4 (USE_MAINTAINER_MODE): New variable.
4642 * cgen-sim.h (SEMANTIC_CACHE_FN): Delete.
4643 (SEMANTIC_FN): Rewrite declaration.
4644 (DECODE): Update type of semantic_fast member.
4645 ({EX,SEM}_FN_NAME): Have only one version.
4646 * sim-base.h (sim_state_base): Delete conditionals surrounding
4649 Tue Feb 10 18:31:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
4651 * sim-load.c (sim_load_file): Print LMA/VMA according to value
4654 Tue Feb 10 14:56:23 1998 Ian Carmichael <iancarm@cygnus.com>
4656 * sim-core.c: Add missing prototypes for WITH_DEVICES.
4657 Add missing parameters to device_io calls.
4658 * sim-core.h: Add missing parameters to device_io calls.
4660 Mon Feb 9 14:48:37 1998 Doug Evans <devans@canuck.cygnus.com>
4662 * cgen-sim.h (DECODE): Always use switch for `read' for now.
4663 (PAREXEC): Renamed from PARALLEL_EXEC. All uses updated.
4664 (SEMANTIC{,_CACHE}_FN): Fix return type.
4665 * genmloop.sh (@cpu@_engine_run): Delete `current_state'.
4666 (engine_resume): Likewise. Make `engine' volatile. Save copy
4667 of cpu pointer in volatile object. Initialize read switch if
4670 Thu Feb 5 13:27:04 1998 Doug Evans <devans@seba.cygnus.com>
4672 * cgen-sim.h (EX_FN_NAME): _exc_ -> _ex_.
4673 (SEM_INSN): New macro.
4675 Tue Feb 3 16:31:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
4677 * sim-run.c (sim_engine_run): Assume IMEM is 32 bit.
4679 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
4681 * configure: Regenerated to track ../common/aclocal.m4 changes.
4683 Sun Feb 1 16:16:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
4685 * sim-types.h (fp_word): New type, define according to
4686 WITH_TARGET_FLOATING_POINT_BITSIZE.
4688 * aclocal.m4 (default_sim_floating_point_bitsize): Add
4689 configuration of size of floating point registers.
4691 Sun Feb 1 14:02:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
4693 * sim-profile.c (profile_print): Only print CPU <N> if other
4694 output is going to appear.
4696 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
4698 * configure: Regenerated to track ../common/aclocal.m4 changes.
4700 Sat Jan 31 18:03:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
4702 * sim-types.h (address_word): Typedef according to
4703 WITH_TARGET_ADDRESS_BITSIZE.
4704 (signed_cell, unsigned_cell, natural_cell): Ditto using
4705 WITH_TARGET_CELL_BITSIZE.
4707 * sim-config.h (WITH_TARGET_ADDRESS_BITSIZE): Define.
4708 (WITH_TARGET_CELL_BITSIZE): Define.
4709 (WITH_HOST_WORD_BITSIZE): Delete.
4711 * sim-config.c (print_sim_config): Update.
4713 * aclocal.m4 (SIM_AC_OPTION_BITSIZE): Add support for
4714 configuration of address and OpenFirmware cell sizes.
4716 Fri Jan 30 09:36:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
4718 * sim-engine.h (sim_engine_run): Add argument nr_cpus.
4719 * sim-run.c (sim_engine_run): Update.
4721 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use SET_CPU_CIA instead of
4723 * sim-run.c (sim_engine_run): Ditto.
4725 * sim-resume.c (sim_resume): Obtain nr_cpus from sim_engine.
4726 (sim_resume): Pass nr_cpus to sim_engine_run.
4728 * sim-engine.h (struct _sim_engine): Add member nr_cpus.
4730 * sim-engine.c (sim_engine_init): Hardwire nr_cpus to
4732 (sim_engine_nr_cpus) sim-engine.c, sim-engine.h: New function
4734 Fri Jan 23 14:20:54 1998 Doug Evans <devans@seba.cygnus.com>
4736 * Make-common.in (stamp-tvals): New rule.
4737 (targ-vals.h,targ-map.c): Depend on it.
4738 (clean): Remove stamp-tvals.
4740 Tue Jan 20 21:35:13 1998 Michael Meissner <meissner@cygnus.com>
4742 * sim-utils.c (sim_state_alloc): #if 0 variable that is only used
4743 in code also #if 0'ed.
4745 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
4747 * configure: Regenerated to track ../common/aclocal.m4 changes.
4748 * aclocal.m4: Recognize --enable-maintainer-mode.
4750 Mon Jan 19 12:45:45 1998 Doug Evans <devans@seba.cygnus.com>
4752 * cgen-scache.h: Deleted.
4753 * Make-common.in (cgen-run.o,cgen-scache.o): Delete cgen-scache.h dep.
4754 * cgen-scache.c: Only compile contents if WITH_SCACHE.
4755 (scache_init): Use runtime computed size of SCACHE.
4756 (scache_flush): Likewise.
4757 * cgen-mem.h (GETIMEMU[QHSD]I): Declare.
4758 ([GS]ETT{QI,UQI,HI,UHI,SI,USI,DI,UDI}): Declare.
4759 * cgen-sim.h: Scache support moved here.
4760 (PC): Redo definition.
4761 (ARGBUF,SCACHE,PARALLEL_EXEC): Provide forward decls.
4762 (DECODE): Add parallel execution support.
4763 Only include semantic label members if using switch.
4764 (SWITCH,CASE,BREAK,DEFAULT,ENDSWITCH): Portable computed goto support.
4765 (CGEN_CPU): Delete members exec_state, halt_sigrc, halt_jmp_buf.
4766 (IADDR,CIA,SEM_ARG,EX_FN_NAME,SEM_FN_NAME,RECORD_IADDR,SEM_ARGBUF,
4767 SEM_NEXT_PC,SEM_BRANCH_VIA_{CACHE,ADDR},SEM_NEW_PC_ADDR): Moved here
4769 (engine_{stop,run,resume,halt,signal}): Delete decls.
4770 * cgen-types.h (CGEN_{XCAT3,CAT3}): Delete.
4771 (argbuf,scache): Delete forward decls.
4772 (STATE): Delete decl.
4773 * cgen-utils.c: Don't include decode.h, mem-ops.h, sem-ops.h.
4774 Include cgen-mem.h, cgen-ops.h.
4775 (engine_halt,engine_signal): Delete.
4776 ({ex,exc,sem,semc}_illegal): Delete.
4777 (sim_disassemble_insn): Result of extract fn is in bits.
4778 * genmloop.sh: Rewrite.
4780 * cgen-trace.c (trace_insn): Set printed_result_p=0 if not tracing
4783 * sim-base.h (sim_state_base): Delete member `model'.
4784 (sim_cpu_base): Add member `model'.
4785 * sim-model.h (IMP_PROPERTIES): New type.
4786 (MACH): New members imp_props, models.
4787 (models): Delete decl.
4788 * sim-model.c (set_model): Update.
4789 * sim-profile.c (profile_print_model): Update.
4791 * sim-utils.c (sim_state_alloc): Delete setting of cpu backlink here.
4793 Fri Jan 16 12:33:09 1998 Nick Clifton <nickc@cygnus.com>
4795 * cgen-trace.c (trace_insn): Call CGEN_INSN_MNEMONIC() rather than
4798 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
4800 * configure: Regenerated to track ../common/aclocal.m4 changes.
4803 Mon Dec 15 23:16:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
4805 * aclocal.m4 (AR): Check for sigaction.
4807 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
4809 * Make-common.in (sim-core.o): Depend on $(sim_main_headers).
4811 * sim-config.h (WITH_TREE_PROPERTIES): Define as 0.
4812 * sim-config.c (sim_config): Replace WITH_DEVICES with
4813 WITH_TREE_PROPERTIES.
4815 * configure: Regenerated to track ../common/aclocal.m4 changes.
4817 Wed Dec 3 17:56:02 1997 Doug Evans <devans@canuck.cygnus.com>
4819 * Make-common.in (SIM_ENVIRONMENT): New variable.
4820 (CONFIG_CFLAGS): Add it.
4821 * aclocal.m4 (SIM_AC_OPTION_ENVIRONMENT): Handle
4822 --enable-sim-environment option.
4823 * configure: Regenerated.
4824 * sim-config.h (environment support): Rewrite.
4825 * sim-config.c (current_environment): Define as enum, unconditionally.
4826 (current_alignment): Define unconditionally.
4827 (config_environment_to_a): Update.
4828 (config_alignment_to_a): Fix type of argument. Define unconditionally.
4829 (sim_config): Handle environment and alignment determination
4830 unconditionally. Delete sanity checks of current_environment,
4832 (print_sim_config): Update.
4833 * sim-options.c (STANDARD_OPTIONS enum): Add OPTION_ENVIRONMENT.
4834 (standard_options): Add --environment.
4835 (standard_option_handler): Likewise.
4837 Fri Nov 28 12:21:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
4839 * sim-alu.h: Add notes on carry vs borrow for subtraction.
4840 (ALU{,8,16,32,64}ADD): Redefine ADD macro as add overflowing.
4841 (ALU{,8,16,32,64}ADDC): Define - add carrying.
4842 (ALU{,8,16,32,64}SUB): Redefine SUB macro as subtract overflowing.
4843 (ALU{,8,16,32,64}SUBB): Define - subtract borrowing.
4844 (ALU{,8,16,32,64}SUBC): Define - tract carrying.
4845 (ALU{,8,16,32,64}ADD_CA, ALU{,8,16,32,64}ADDC_C): Replace single
4846 argument ADD_CA macro with two argument ADDC_C - add carrying with
4848 (ALU{,8,16,32,64}SUB_CA, ALU{,8,16,32,64}SUBC_X): Replace single
4849 argument SUB_CA macro with two argument SUBC_X - subtract
4851 (ALU{,8,16,32,64}SUBB_B): Define - subtract borrowing with
4853 (ALU{,8,16,32,64}NEGC, ALU{,8,16,32,64}NEGB): Define.
4855 Sun Nov 30 17:40:57 1997 Michael Meissner <meissner@cygnus.com>
4857 * sim-io.c (sim_io_{syscalls,getstring}): Delete. No longer used.
4858 * sim-io.h (sim_io_syscalls): Delete.
4860 Fri Nov 28 20:10:09 1997 Michael Meissner <meissner@cygnus.com>
4862 * syscall.c (cb_syscall): Add missing else, so write to stdout
4865 * sim-alu.h (ALU{,8,16,32,64}_SET_CARRY): Provide macros to import
4866 the carry bit from the CPU's psw.
4868 Fri Nov 28 11:15:05 1997 Doug Evans <devans@canuck.cygnus.com>
4870 * gennltvals.sh: Redo syscall support.
4871 * nltvals.def: Regenerated.
4873 Wed Nov 26 16:49:38 1997 Michael Meissner <meissner@cygnus.com>
4875 * syscall.c (cb_syscall): If writing to stdout or stderr, flush
4876 the stream immediately.
4878 Wed Nov 26 12:32:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
4880 * sim-io.c (sim_io_getstring): Delete unused len2.
4881 (sim_io_syscalls): Ditto for sys_errno.
4883 Wed Nov 26 11:18:40 1997 Doug Evans <devans@canuck.cygnus.com>
4885 * syscall.c (cb_syscall): Test CB_SYSCALL struct magic number.
4887 * Make-common.in (run.o): Depend on remote-sim.h.
4888 (nrun.o,sim-hload.o,sim-hrw.o): Likewise.
4889 (sim-io.o,sim-reason.o,sim-resume.o): Likewise.
4891 Tue Nov 25 20:12:46 1997 Michael Meissner <meissner@cygnus.com>
4893 * sim-io.c (sim_io_syscalls): Disable lseek.
4895 Tue Nov 25 00:12:38 1997 Doug Evans <devans@seba.cygnus.com>
4897 * gennltvals.sh: Generate syscall values for d30v.
4899 * gennltvals.sh: Use libgloss/syscall.h for sparc.
4900 * nltvals.def: Regenerate.
4902 * callback.c (os_stat): Make 3rd arg a host struct stat ptr.
4903 (os_fstat): Likewise. Validate fd argument.
4904 (cb_host_to_target_stat): Delete big_p arg. If HS arg is NULL,
4905 just compute target stat struct length.
4906 * syscall.c: #include "libiberty.h", <sys/types.h>, <sys/stat.h>.
4907 (ENOSYS,ENAMETOOLONG): Provide definitions if missing.
4908 (get_string): Return host errno values so they can be properly
4910 (cb_syscall): Likewise.
4911 (cb_syscall, cases open,unlink): Use get_path instead of get_string.
4912 (cb_syscall, case read): Use read_stdin for file descriptor 0.
4913 (cb_syscall, case write): Use write_stderr for file descriptor 2.
4914 (cb_syscall): Add cases for lseek, unlink, stat, fstat, time.
4915 (get_path): New function.
4917 Mon Nov 24 18:56:07 1997 Michael Meissner <meissner@cygnus.com>
4919 * sim-io.c (sim_io_syscalls): New function to provide system call
4920 emulation. Provide exit, open, close, read, write, lseek, and
4922 (sim_io_getstring): New function to return a string from a
4923 simulated memory location.
4925 * sim-io.h (sim_io_syscalls): Add declaration.
4927 Mon Nov 24 12:09:59 1997 Doug Evans <devans@seba.cygnus.com>
4929 * sim-core.c (sim_core_signal): Fix spelling error in message.
4931 * sim-hrw.c (sim_read): Use read map, not write map.
4933 * Make-common.in (all): Add .gdbinit.
4934 * gdbinit.in: Add dump command.
4936 * sim-model.c (model_options): Use '\0' for `shortopt'.
4938 * sim-trace.c (trace_option_handler): Set state trace file
4939 for --trace-file in addition to cpu's values.
4940 (trace_vprintf): If cpu == NULL, try state's trace file.
4941 (trace_options): Reorganize table, reword some descriptions.
4943 Sun Nov 23 10:57:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
4945 * sim-fpu.c (sim_fpu_abs, sim_fpu_neg, sim_fpu_inv), sim-fpu.h:
4948 Sat Nov 22 19:16:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
4950 * sim-reason.c (sim_stop_reason): For sim_signalled, return the
4951 signal untranslated, document problem with this.
4953 * nrun.c (main): Check for a prog name of `*step'. If present,
4954 step the simulator instead of allowing it to run free.
4956 * sim-signal.c (SIGQUIT): Define on _MSC_VER hosts.
4958 * Make-common.in (sim_main_headers): Add sim-signal.h.
4960 Fri Nov 21 09:32:32 1997 Andrew Cagney <cagney@b1.cygnus.com>
4962 * sim-signal.c (sim_signal_to_host): Return 0 for SIM_SIGNONE.
4964 Thu Nov 20 20:35:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
4966 * sim-signal.h: Start simulator signals at 64 so that host signal
4967 numbers can be detected and reported.
4969 * sim-signal.h (SIM_SIGFPE), sim-signal.h: Add signal.
4971 Wed Nov 19 12:02:41 1997 Doug Evans <devans@seba.cygnus.com>
4973 * callback.c (cb_host_to_target_stat): Fix return values.
4975 * cgen-sim.h (enum_signal_type): Delete.
4976 (engine_signal): Update prototype.
4977 * cgen-utils.c: Don't include <signal.h>.
4978 (sim_signal_to_host): Delete, lives in sim-signal.c now.
4979 (engine_signal): Update.
4981 * sim-utils.c (sim_state_alloc): Call SIM_STATE_ALLOC if defined.
4982 (sim_state_free): Call SIM_STATE_FREE if defined.
4984 * sim-module.c (sim_module_install): Don't leave any modules
4985 installed if one fails to install.
4987 Wed Nov 19 13:25:48 1997 Michael Meissner <meissner@cygnus.com>
4989 * sim-options.c: Don't include ../libiberty/alloca-conf.h any
4990 more, since alloca is not used in this file.
4992 * sim-alu.h (ALU{32,64}_*): Rewrite 32 and 64 bit ALU support to
4993 correctly set the carry and overflow bits for those types.
4994 (ALU{8,16,32,64}_{ADD,SUB}_CA): Take VAL argument to add along
4995 with carry, so carry is correct after doing both adds.
4996 (ALU*): Space out '\' to make it easier to read.
4998 Tue Nov 18 15:53:45 1997 Doug Evans <devans@canuck.cygnus.com>
5000 * sim-core.c (sim_core_signal): Use sim_stopped instead of
5003 * sim-signal.c, sim-signal.h: New files.
5004 * Make-common.in (sim-signal.o): Add rule for.
5005 (SIM_NEW_COMMON_OBJS): Add sim-signal.o.
5006 * sim-abort.c: Don't include <signal.h>.
5007 * sim-basics.h: #include "sim-signal.h".
5008 * sim-break.c: Don't include <signal.h>.
5009 (sim_handle_breakpoint): Replace SIGTRAP with SIM_SIGTRAP.
5010 * sim-core.c: Don't include <signal.h>.
5011 (SIGBUS): Delete definition.
5012 (sim_core_signal): Replace SIGSEGV,SIGBUS with SIM_SIGSEGV,SIM_SIGBUS.
5013 * sim-engine.c: Don't include <signal.h>.
5014 (sim_engine_abort): Replace SIGABRT with SIM_SIGABRT.
5015 * sim-reason.c (sim_stop_reason): Call sim_signal_to_host.
5016 * sim-resume.c: Don't include <signal.h>.
5017 (SIGTRAP): Delete definition.
5018 (has_stepped): Replace SIGTRAP with SIM_SIGTRAP.
5019 * sim-stop.c: Don't include <signal.h>.
5020 (control_c_simulation): Replace SIGINT with SIM_SIGINT.
5021 * sim-watch.c: Don't include <signal.h>.
5022 (handle_watchpoint): Replace SIGINT with SIM_SIGINT.
5024 * Make-common.in (SIM_NEW_COMMON_OBJS): New variable.
5026 * sim-base.h (CIA_ADDR): Provide default definition.
5027 * sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
5028 * sim-break.c (sim_handle_breakpoint): Likewise.
5030 Mon Nov 17 14:15:31 1997 Doug Evans <devans@seba.cygnus.com>
5032 * Make-common.in (srccom): New variable.
5034 * Make-common.in (DEP, COMMON_DEP_CFLAGS): Define.
5035 (LIB_OBJS): Add syscall.o.
5036 (gentmap): Pass $(NL_TARGET) to $(CC).
5037 (syscall.o): Add rule for.
5038 (sim_main_headers): Add $(SIM_EXTRA_DEPS).
5039 (sim-bits.o): Depend on $(sim-n-bits_h).
5040 (sim-load.o): Depend on callback.h.
5042 * Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to
5043 cgen-mem.h, sem-ops.h renamed to cgen-ops.h.
5044 * cgen-mem.h, cgen-ops.h: New files.
5046 * aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no".
5048 * Makefile.in (nltvals.def): Depend on gennltvals.sh.
5050 * callback.c: #include string.h or strings.h.
5051 #include sys/types.h and sys/stat.h.
5052 (cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare.
5053 (os_get_errno,os_open): Update.
5054 (os_stat,os_fstat): New functions.
5055 (os_init): Initialize syscall_map, errno_map, open_map.
5056 (default_callback): Add entries for os_stat, os_fstat, syscall_map,
5057 errno_map, open_map, signal_map, stat_map.
5058 (cb_read_target_syscall_maps): New function.
5059 (cb_target_to_host_syscall): New function.
5060 (cb_host_to_target_errno): Renamed from host_to_target_errno.
5061 (cb_target_to_host_open): Renamed from target_to_host_open.
5062 (store): New function.
5063 (cb_host_to_target_stat): New function.
5064 * syscall.c: New file.
5065 * gentmap.c (sys_tdefs): New global.
5066 (gen_targ_vals_h): Output target syscall numbers.
5067 (gen_targ_map_c): Update. Output target syscall translation map.
5068 * gentvals.sh: New first argument `target'. Preface table with
5069 #ifdef NL_TARGET_$target if non-null target passed.
5070 * gennltvals.sh: New file.
5071 * nltvals.def: Regenerated.
5073 Fri Nov 14 11:33:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
5075 * sim-n-core.h (sim_core_read_unaligned_N): Return static
5077 (sim_core_dummy_M): Declare.
5079 Wed Nov 12 18:16:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
5081 * sim-core.c (sim_core_signal): Print the address of the
5084 Thu Nov 13 11:49:41 1997 Doug Evans <devans@seba.cygnus.com>
5086 * sim-base.h (sim_state_base): Move `magic' to end of struct.
5088 * sim-base.h (sim_state_base): Add member trace_data.
5089 (STATE_TRACE_DATA): New macro.
5090 * sim-trace.h (TRACE_DEBUG_IDX,TRACE_debug): New macros.
5091 ({WITH_,}TRACE_DEBUG_P): New macros.
5092 (STATE_TRACE_FLAGS,STRACE_P,STRACE_DEBUG_P): New macros.
5093 (_sim_cpu): Delete forward reference.
5094 (debug_printf): Update.
5095 * sim-trace.c (OPTION_TRACE_DEBUG): Define.
5096 (trace_options): Add --trace-debug.
5097 (set_trace_options): Handle it.
5098 (trace_option_handler): Likewise.
5099 (trace_install): Init state trace_data struct.
5100 (trace_uninstall): Close state trace file.
5101 * sim-events.c (ETRACE): Only print source file and line number if
5103 * sim-n-core.h (sim_core_trace_M): Likewise.
5105 * sim-core.c (sim_core_signal): Add missing "\n" in message.
5107 1997-11-13 Felix Lee <flee@cygnus.com>
5109 * sim-n-core.h (sim_core_read_unaligned_N): illegal empty
5111 * sim-types.h (unsigned128,signed128): fix typo for MSVC.
5113 Wed Nov 12 12:18:08 1997 Doug Evans <devans@canuck.cygnus.com>
5115 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Fix typo.
5117 * Make-common.in (BUILT_SRC_FROM_COMMON): Remove files no longer
5119 (sim-config.o): Remove non-existent $(sim-nconfig_h) dependency.
5120 (clean): Don't delete $(BUILT_SRC_FROM_COMMON) if building in
5123 Tue Nov 11 13:28:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
5125 * sim-events.c (sim_events_process): Re-compute the time -
5126 update_time_from_event - as each event is processed. Reverses
5129 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
5131 * callback.c (os_poll_quit): Replace _WIN32 with _MSC_VER.
5133 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
5135 * sim-events.c (sim_events_process): Delete redundant call to
5136 update_time_from_event.
5137 (sim_events_slip): Always decrement time_from_event.
5138 (sim_events_tick, sim_events_deschedule, update_time_from_event):
5139 Delete assertion that time_from_event >=0 when work in queue, no
5142 Thu Nov 6 12:06:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
5144 * sim-options.c (STANDARD_OPTIONS): Change OPTION_* to an enum.
5145 (standard_option_handler): Update.
5147 * sim-options.h: Clarify documentation.
5148 (OPTION_LONG_ONLY_P): Delete definition.
5149 (OPTION_VALID_P): Define.
5151 * sim-options.c (sim_print_help): Allow short only options.
5152 (sim_parse_args): Ditto.
5153 (sim_args_command): Skip short only options.
5154 (sim_parse_args): Allocate space for NUM_OPTS not just 256. Make
5155 separate entries for short and long options in the HANDLERS and
5157 (sim_parse_args): Disable argument permutation.
5159 Wed Nov 5 13:40:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
5161 * sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N):
5162 Add argument M, size of data type.
5163 (sim_core_read_misaligned_3, sim_core_write_misaligned_3):
5164 Declare, ditto for 5, 6 & 7 byte transfers.
5165 (sim_core_write_unaligned_1, sim_core_write_unaligned_1): Define
5168 * sim-n-core.h (sim_core_trace_M): Rename from
5169 sim_core_trace_N. Add nr_bytes argument. Replace transfer argument
5170 with transfer type. Print transfer direction. Handle 1 and 2 byte
5172 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Trace
5174 (unsigned_M, T2H_M, H2T_M): Rename from unsigned_N, T2H_N, H2T_N.
5175 Update all functions.
5177 * sim-core.c: Generate functions starting with 16 not 1.
5178 (sim_core_read_unaligned_3): Generate. Ditto for 3 byte write and
5179 all 5, 6 & 7 byte transfers.
5181 * sim-n-core.h (sim_core_read_misaligned_N,
5182 sim_core_write_misaligned_N): Implement.
5184 Mon Nov 3 15:03:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
5186 * sim-endian.h (U16_8): Implement
5188 * sim-endian.c (sim_endian_split_16, sim_endian_join_16): New functions
5190 * sim-endian.h (VL8_16, VH8_16): Implement.
5192 * sim-memopt.c (memory_option_handler): Typecast 64bit value to
5194 (memory_option_handler): Only zalloc modulo bytes when non-zero.
5195 (memory_option_handler): Skip comma in alias address list
5197 Fri Oct 31 13:03:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
5199 * sim-memopt.c (do_memopt_add, do_memopt_delete): Add level and
5201 (parse_size, parse_addr): New functions
5202 (memory_option_handler, memory_options): Parse address & size
5203 using new functions. Pass level, space, modulo to do_memopt_add &
5206 * sim-memopt.h (struct _sim_memopt): Add level & space fields.
5208 * sim-core.h (sim_core_arrach, sim_core_detach): Replace
5209 `attach_type attach' argument with `unsigned level' argument.
5212 * sim-core.c (new_sim_core_mapping, sim_core_map_attach,
5213 sim_core_attach): Replace argument attach with level. Update
5214 verification of arguments.
5215 (sim_core_map_detach, sim_core_detach): Replace argument attach
5218 * sim-basics.h (enum _attach_type): Delete.
5220 Thu Oct 30 13:45:00 1997 Doug Evans <devans@seba.cygnus.com>
5222 * sim-core.h (sim_core_write_8): Define.
5224 Tue Oct 28 12:29:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5226 * sim-bits.h: Document ROTn macro.
5228 * sim-endian.h (H2T): Handle 16 byte variables.
5230 * sim-n-core.h (sim_core_read_unaligned_N): Return a dummy when an
5233 * sim-core.c: Do not generate sim_core_*_word.
5235 * sim-n-core.h (sim_core_trace_N): Add line_nr argument.
5236 (sim_core_write_aligned_N, sim_core_read_aligned_N): Update.
5238 * sim-core.h (sim_core_read_unaligned_word,
5239 sim_core_read_aligned_word, sim_core_read_word,
5240 sim_core_write_unaligned_word, sim_core_write_aligned_word,
5241 sim_core_write_word): Change to macros that map onto sim_core_*_N.
5243 Mon Oct 27 11:25:10 1997 Doug Evans <devans@canuck.cygnus.com>
5245 * sim-n-endian.h: Add TAGS entrys for 16 byte versions.
5247 * sim-endian.h: Disable 16 byte support.
5249 Mon Oct 27 12:00:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
5251 * sim-endian.c (_SWAP_16): Define. Generate 126 bit swap code.
5253 * sim-n-core.h (sim_core_trace_N): New function.
5254 (sim_core_read_aligned_N, sim_core_write_aligned_N): Use,
5255 (sim_core_read_unaligned_N): Do not retyrn bogus value wden error.
5257 * sim-endian.h: Add 128 bit variant.
5259 * sim-core.h, sim-core.c: Add 128 bit variant.
5261 * sim-types.h: Add signed128 and unsigned128 types using a struct.
5263 Fri Oct 24 11:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
5265 * sim-events.c (sim_events_process): Clear events->work_pending.
5266 (sim_events_tickn, sim_events_tick): Accumulate, instead of
5267 setting, nr_ticks_to_process.
5268 (sim_events_preprocess): Allow nr_ticks_to_process to be non-zero
5269 when the event queue isn't next.
5271 * sim-events.h, sim-events.c (sim_events_slip): New function.
5273 Wed Oct 22 14:18:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5275 * sim-hload.c (sim_load): Pass lma_p==0 and do_load=sim_load.
5277 * sim-utils.h, sim-load.c (sim_load_file): Add lma_p and do_load
5280 Tue Oct 21 18:37:57 1997 Doug Evans <devans@canuck.cygnus.com>
5282 * nrun.c (main): Remove useless test of name != NULL.
5283 Exit if bfd_openr fails. Call bfd_check_format after bfd_openr.
5285 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5287 * sim-fpu.c (EXPMAX): Type is unsigned.
5288 (MIN_INT, MAX_INT): Type is signed64.
5289 (i2fpu): Type of val is signed64.
5291 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5293 * sim-profile.h (PROFILE_PC_BUCKET_SIZE): Treat a shift of zero as
5294 a bucket size of zero.
5296 * sim-profile.c (OPTION_PROFILE_PC_GRANULARITY,
5297 OPTION_PROFILE_PC): Define.
5298 (profile_option_handler): Add support for --profile-pc and
5299 --profile-pc-granularity options.
5300 (profile_pc_init): When possible, compute nr buckets from bucket
5303 * sim-profile.c (profile_pc_init): Align the profile-pc end
5304 address with the profile-pc bucket size.
5306 * sim-profile.h (PROFILE_PC_NR_BUCKETS): Rename PROFILE_PC_SIZE to
5307 something less ambiguous.
5308 (PROFILE_PC_BUCKET_SIZE): Ditto for PROFILE_PC_SAMPLE_SIZE.
5310 * sim-profile.c (profile_pc_cleanup): New function. Move
5311 profile_pc_uninstall code to here.
5312 (profile_pc_uninstall): Call.
5313 (profile_pc_init): Call.
5315 Mon Oct 20 17:23:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
5317 * sim-profile.c (profile_print_pc): Dump pc profile to dmon.out
5318 file using BSD gprof format.
5320 * sim-bits.h (LSBIT, MSBIT, BIT): Force result to type
5322 (LSBIT8, LSBIT16, LSBIT32, LSBIT64, MSBIT8, MSBIT16, MSBIT32,
5323 MSBIT64): Force result to unsignedN.
5325 Thu Oct 16 11:38:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
5327 * sim-alu.h (ALU16_BEGIN, ALU32_BEGIN, ALU64_BEGIN): Drop opening
5329 (ALU8_BEGIN, ALU8_SET, ALU8_ADD, ALU8_SUB, ALU8_NEGATE): Define.
5330 (ALU16_ADD, ALU16_SUB, ALU16_NEGATE): Simplify arrithmetic.
5331 (ALU32_ADD, ALU32_SUB, ALU32_NEGATE): Simplify arrithmetic.
5332 (ALU64_ADD, ALU64_SUB, ALU64_NEGATE): Simplify arrithmetic.
5334 Wed Oct 15 09:24:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
5336 * sim-core.h (struct _sim_core_mapping): Change free_buffer to
5339 * sim-core.c (sim_core_uninstall, new_sim_core_mapping,
5340 sim_core_map_attach, sim_core_map_detach): Change free_buffer to
5342 (sim_core_attach): Rename buffer_freed to free_buffer, type
5343 void*. Ensure that allocated buffer is alligned according to
5346 Mon Oct 13 11:34:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
5348 * sim-alu.h (ALU64_HAD_OVERFLOW): Define.
5349 (ALU64_SUB): Define.
5351 * Make-common.in (all): Build SIM_EXTRA_ALL first.
5352 (.gdbinit): Remove dependencies, generate once per build.
5354 Tue Oct 14 19:20:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
5356 * sim-n-core.h (sim_core_read_aligned_N,
5357 sim_core_write_aligned_N): Make xaddr param type address_word not
5360 Fri Oct 3 09:49:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
5362 * sim-fpu.h, sim-fpu.c: Rewrite. Change sim_fpu object to an
5363 unpacked floating point struct. Pass sim_fpu object by reference.
5364 Add preliminary support for rounding modes.
5366 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5368 * configure: Regenerated to track ../common/aclocal.m4 changes.
5370 Thu Oct 2 19:43:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
5372 * aclocal.m4 (sim-bitsize): Fix typo, WITH_TARGET_WORD_BITSIZE not
5373 WITH_TARGET_BITSIZE.
5375 Thu Sep 25 23:20:20 1997 Felix Lee <flee@yin.cygnus.com>
5377 * sim-profile.c (profile_print_core): label needs empty statement.
5379 Thu Sep 25 11:20:47 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
5381 * sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC
5382 and zfree instead of xmalloc and free. Prevents warnings.
5384 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
5386 * configure: Regenerated to track ../common/aclocal.m4 changes.
5388 Wed Sep 24 17:23:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
5390 * Make-common.in (SIM_BITSIZE): Assign from configured value.
5391 (CONFIG_CFLAGS): Add SIM_BITSIZE.
5393 * aclocal.m4 (--enable-sim-bitsize): Developer option for
5394 controling the bitsize/msb of the target.
5396 Wed Sep 24 17:41:40 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
5398 * Make-common.in: New files sim-break.c, sim-break.h.
5399 * sim-base.h: Add point to breakpoint list to sim_state_base.
5400 * sim-break.c sim-break.h: New modules that implement intrinsic
5402 * sim-module.c: Add breakpoint module.
5404 Tue Sep 23 00:26:39 1997 Felix Lee <flee@yin.cygnus.com>
5406 * sim-events.c (SIM_EVENTS_POLL_RATE): poll more often than once
5408 * sim-n-core.h (WITH_XOR_ENDIAN): MSVC barfs on
5410 * sim-core.c (sim_core_xor_write_buffer): WITH_XOR_ENDIAN + 1.
5411 (SIGBUS) define for Windows.
5412 * sim-trace.c (trace_printf,debug_printf): added ALMOST_STDC.
5413 * sim-resume.c: define SIGTRAP for windows.
5414 * sim-xcat.h: use token pasting if ALMOST_STDC.
5416 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5418 * Make-common.in (SIM_SCACHE, SIM_DEFAULT_MODEL): Assign
5420 (CONFIG_CFLAGS): Add same.
5422 Mon Sep 22 17:20:27 1997 Felix Lee <flee@cygnus.com>
5424 * sim-types.h (SIGNED64): ##i64 when _MSC_VER, not _WIN32.
5425 (SIGNED32): use ##i32.
5427 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5429 * configure: Regenerated to track ../common/aclocal.m4 changes.
5431 Tue Sep 23 10:07:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
5433 * aclocal.m4 (sim-endian): Simplify logic determining [default]
5436 * Make-common.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
5437 SIM_HOSTENDIAN, SIM_RESERVED_BITS, SIM_ASSERT, SIM_FLOAT,
5438 SIM_HARDWARE, SIM_INLINE, SIM_PACKAGES, SIM_REGPARM, SIM_SMP,
5439 SIM_STDCALL, SIM_XOR_ENDIAN): Assign configured values.
5440 (CONFIG_CFLAGS): Add same.
5442 * aclocal.m4: Perform AC_SUBST on optional options.
5444 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5446 * sim-config.h (WITH_DEFAULT_ALIGNMENT): Don't hardwire any alignment.
5448 * sim-options.c (standard_option_handler): Typo in warning message.
5450 * sim-base.h (STATE_MODEL): Make conditional on SIM_HAVE_MODEL.
5452 * sim-profile.c (profile_print_insn): Check 0 .. MAX_INSN for any
5453 insn count. Make count conditional on there being a valid
5455 (profile_pc_init): Make default PC profile frequency an arbitrary
5458 * sim-base.h: Ditto.
5460 * sim-profile.h (WITH_PROFILE_MODEL_P): Only enable modeling when
5463 * sim-model.h (struct MACH): Depreciate, to be replaced by bfd
5466 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5468 * configure: Regenerated to track ../common/aclocal.m4 changes.
5470 Mon Sep 22 11:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5472 * aclocal.m4 (sim_alignment): Simplify logic for selecting the
5473 configured alignment.
5475 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
5477 * configure: Regenerated to track ../common/aclocal.m4 changes.
5479 Fri Sep 19 17:26:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
5481 * sim-config.c (sim_config): Check for default alignment.
5483 * sim-options.c (standard_option_handler): Add alignment option.
5485 * aclocal.m4 (sim_alignment): Allow configuration of hardwired and
5486 default alignment requirements on memory accesses.
5488 Fri Sep 19 11:51:35 1997 Jeffrey A Law (law@cygnus.com)
5490 * sim-load.c (sim_load_file): Return failure if the executable
5491 had no loadable sections.
5493 Wed Sep 17 13:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
5495 * sim-events.c (ETRACE): Use trace_printf not sim_io_printf for
5498 * sim-core.c (sim_core_signal): When bad access halt simulator
5499 SIGSEGV / SIGBUS instead of aborting.
5500 (signal.h): Include.
5502 * sim-watch.c (sim_watchpoint_install): Handler for watchpoint
5503 options was missing.
5505 * sim-bits.h (MOVED): Define
5507 Wed Sep 17 10:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
5509 * sim-alu.h (ALU32_HAD_OVERFLOW): Pacify GCC, Use MSBIT instead of
5512 * sim-bits.h (LSBIT, MSBIT): Check for overflow of shift value.
5514 * sim-bits.c: Add 8 bit versions of bit macros.
5516 * sim-bits.h: Ditto.
5518 Tue Sep 16 16:15:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
5520 * sim-bits.c (LSSEXT, MSSEXT): Replace SEXT.
5521 (LSINSERTED, MSINSERTED): Ditto for INSERTED.
5523 * sim-n-bits.h (MSSEXTn, LSSEXTn): Replace SEXTn.
5524 (LSINSERTDn, MSINSERTEDN): Ditto for INSERTEDn.
5526 * sim-bits.h (SEXT*): Define as MSEXT/LSEXT.
5527 (INSERTED*): Ditto for LSINSERTED/MSINSERTED.
5529 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
5531 * aclocal.m4 (SIM_AC_COMMON): Add optional config.h file argument.
5532 configure.in: Output to cconfig.h instead of config.h.
5534 * configure: Regenerated to track ../common/aclocal.m4 changes.
5536 Mon Sep 15 15:39:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
5538 * sim-utils.c (sim_analyze_program): Set STATE_ARCHITECTURE from
5541 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
5543 * callback.c (os_write): divert stdout and stderr to their
5546 Thu Sep 11 10:08:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
5548 * sim-profile.c (profile_print_speed): Call
5549 sim_events_elapsed_time instead of PROFILE_EXEC_TIME for moment.
5551 * sim-events.c (sim_events_elapsed_time): New function return nr
5552 host MS consumed by the simulator.
5553 (sim_watch_valid): Use.
5555 * sim-module.c (modules): Install sim_events very very early.
5557 * sim-profile.c (profile_print): Call profile_print_pc.
5559 (profile_pc_init): New function, set up processor for PC
5561 (profile_print_pc): New function, print a PC profile.
5562 (profile_pc_event): New function, sample PC.
5564 * sim-profile.h (PROFILE_PC_COUNT, PROFILE_PC_START,
5565 PROFILE_PC_END, PROFILE_PC_SHIFT, PROFILE_PC_SAMPLE_SIZE): Add to
5568 * sim-options.c (sim_print_help): Pacify GCC.
5570 * sim-n-core.h (sim_core_read_aligned_N,
5571 sim_core_write_aligned_N): Add un-conditional profile call.
5572 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Add
5573 profile call when aligned read/write isn't used.
5575 * sim-base.h: Include sim-profile, sim-model after sim-core &
5576 sim-events allow sim-core to define useful values.
5578 * sim-profile.c (OPTION_PROFILE_CORE): Define.
5579 (profile_option_handler, profile_options): Add support for
5580 --profile-core option.
5581 (print_bar): Include when core profiling.
5582 (profile_print_core): New function, print core profile.
5584 * sim-config.c (print_sim_config): Print profile status.
5586 * sim-profile.h (PROFILE_NEXT_IDX, PROFILE_core,
5587 WITH_PROFILE_PC_P): Define.
5588 (PROFILE_CORE_COUNT): Count each core-map/size separatly.
5589 (PROFILE_COUNT_CORE): Define.
5591 Thu Sep 11 08:44:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
5593 * sim-watch.c (handle_watchpoint): Pass a char** index into the
5594 interrupt_names array as the data.
5595 (sim-watch.h): Document.
5597 Wed Sep 10 16:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5599 * sim-options.c (sim_print_help): When the doc string is to long
5602 * sim-watch.c (sim_watchpoint_install): Use option.doc_name so
5603 that only the first few the watch options are listed. Generate
5604 meanginful usage messages.
5606 * sim-options.h (struct OPTION): Clarify use of doc_name field
5608 Wed Sep 10 13:23:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
5610 * sim-options.c (OPTION_ARCHITECTURE_INFO): New option.
5611 (standard_option_handler): Handle --architecture-info.
5613 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
5615 * sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid
5616 illegal zero-sized array.
5617 * sim-core.c (sim_core_xor_read_buffer): same.
5619 Tue Sep 9 11:20:35 1997 Doug Evans <dje@canuck.cygnus.com>
5621 * nltvals.def: Regenerate.
5623 Tue Sep 9 02:10:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
5625 * sim-fpu.c (DP_FRACHIGH2): Define LL using SIGNED64.
5627 Mon Sep 8 12:22:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5629 * sim-bits.c (MASKED): Delete.
5630 (EXTRACTED): Delete.
5631 (LSEXTRACTED, MSEXTRACTED): New functions.
5633 * sim-n-bits.h (MASKEDn): Delete, define as MSMASKED or LSMASKED.
5634 (MSMASKEDn, LSMASKEDn): Add last argument.
5637 * sim-bits.h (EXTEND8, EXTEND16): Define.
5638 (EXTRACTED64): Define as 64 bit extract, not 32 bit.
5640 * sim-run.c (sim_engine_run): Use CPU_CIA macro.
5642 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use CPU_CIA to get at
5643 current instruction address.
5645 * sim-inline.h (*_ENGINE): Define.
5647 Fri Sep 5 08:39:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
5649 * sim-core.c (sim_core_attach): Fix checks of modulo/mask.
5651 * sim-watch.c (delete_watchpoint): Delete by ident and type.
5652 (watch_option_handler): Call delete_watchpoint with ident or type.
5653 (sim_watchpoint_install): Create interrupt specific watchpoint
5654 commands on the fly.
5655 (do_watchpoint_create): New function, create a watch point using
5656 type/int-nr info encoded in the option nr.
5657 (do_watchpoint_info): New function. List active watchpoints.
5659 * sim-watch.h: Change data structure to a list.
5661 * sim-memopt.c (memory_option_handler): Require explicit "all"
5662 before deleting all memory regions.
5664 * sim-utils.c (sim_do_commandf): New function, printf version of
5667 * sim-basics.h (asprintf, vasprintf): Hack, define for CYGWIN32.
5669 * sim-alu.h (ALU64_ADD): Use explicit MSEXTRACTED64, do not assume
5671 (SIGNED64, UNSIGNED64): Delete.
5672 (ALU64_ADD): Don't rely on bit endianness.
5673 (ALU64_BEGIN): Define.
5675 * sim-n-bits.h (MSEXTRACTEDn, LSEXTRACTED): New functions.
5676 (EXTRACTEDn): Delete, define as either LSEXTRACTED or MSEXTRACTED.
5678 * sim-types.h (SIGNED64, UNSIGNED64): New macros, attach relevant
5679 suffix - u64, LL - to 64 bit constants.
5681 Thu Sep 4 09:27:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
5683 * sim-config.c (sim_config): Add assert for SIM_MAGIC_NUMBER.
5685 * sim-utils.h (NZALLOC): Define - zalloc * N.
5687 * sim-hrw.c (sim_read, sim_write): New file. Provide generic
5688 implementation of read/write functions.
5690 * Make-common.in (sim-hrw.o): New target.
5692 * sim-base.h (STATE_MEMOPT_P): Delete, simulators _always_ add
5695 * sim-memopt.c (memory_option_handler): Implement memory-size
5696 command. Implement memory-alias command. Let memory-delete delete
5698 (add_memopt): New function. Add a memory region.
5699 (do_memopt_delete): New function. Delete a memory region.
5701 * sim-utils.c (sim_elapsed_time_get): Never return zero.
5703 * sim-core.c (sim_core_detach): New function.
5704 (sim_core_map_detach): New function. Perform the actual detach.
5705 (sim_core_init): Move initialization code from here.
5706 (sim_core_install): To here.
5707 (sim_core_uninstall): And here.
5709 * sim-module.c: Add memopt module.
5711 * sim-base.h (STATE_MEMOPT, STATE_MEMOPT_P): Add memopt to
5712 simulator base type.
5714 * Make-common.in (sim_main_headers): Add sim-memopt.h
5715 (sim-memopt.o): New target.
5717 * sim-core.c (sim_core_install): Add core_options to the option
5720 * sim-watch.c (watch_options): Make --delete-watch a synonym for
5723 * sim-config.h (WITH_MODULO_MEMORY): Define as 0. Update
5726 * sim-core.h (struct _sim_core_mapping): Change nr_bytes to type
5727 address_word, add mask member.
5729 * sim-core.h, sim-core.c (sim_core_attach): Make nr_bytes of type
5730 address_word, allow for 64bit targets in 32bit host. Add modulo
5732 (sim_core_map_attach): Ditto.
5733 (new_sim_core_mapping): Ditto.
5734 (sim_core_translate): Mask address when modulo memory.
5736 Wed Sep 3 17:32:54 1997 Doug Evans <dje@seba.cygnus.com>
5738 * sim-hload.c (sim_load): Add assert for SIM_MAGIC_NUMBER.
5740 * gdbinit.in: New file.
5741 * aclocal.m4 (SIM_AC_OUTPUT): Build .gdbinit.
5742 * Make-common.in (distclean): Delete .gdbinit.
5743 (.gdbinit): Add rule for.
5744 * configure: Regenerated to track ../common/aclocal.m4 changes.
5746 * Make-common.in (cgen-run.o): Add rule for.
5748 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
5750 * sim-resume.c (sim_resume): Suspend/resume the simulator.
5752 * sim-events.c (sim_watch_valid): Compute total elapsed time from
5753 both resumed and previous elapsed time.
5754 (sim_events_init): Set initial_wallclock and current_wallclock to
5756 (sim_events_install): Install sim_events_suspend and
5758 (sim_events_watch_clock): Allow for suspended simulator when
5759 computing the time of the clock event.
5761 * sim-events.h (struct _sim_event): Add resume_wallclock, rename
5762 initial_wallclock to elapsed_wallclock, set both to zero.
5763 (sim_events_init, sim_events_uninstall): Delete prototypes.
5765 * sim-module.h (MODULE_SUSPEND_FN, MODULE_RESUME_FN): Define types.
5767 * sim-module.c(sim_module_resume, sim_module_suspend): New
5770 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
5772 * sim-core.c (sim_core_map_attach): Clarify memory overlap error
5775 Tue Sep 2 14:57:06 1997 Doug Evans <dje@canuck.cygnus.com>
5777 * Makefile.in (TAGS): Add support for "/* TAGS: foo */" marker.
5778 * Make-common.in (TAGS): Likewise.
5779 * sim-n-bits.h: Add TAGS comments for all functions.
5780 * sim-n-core.h: Likewise.
5781 * sim-n-endian.h: Likewise.
5783 Mon Sep 1 10:50:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
5785 * sim-utils.c (sim_state_alloc): Set CPU backlinks, callback and
5788 * sim-base.h (sim_state_alloc): Add callback and kind arguments.
5790 * sim-base.h (INVALID_INSTRUCTION_ADDRESS): Add default
5793 Sat Aug 30 09:47:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
5795 * sim-fpu.c (DP_GARDMSB, ...): Make unsigned.
5796 (DP_FRACHIGH, DP_FRACHIGH2, ..): Use MSMASK to avoid LL.
5798 Fri Aug 29 13:37:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
5800 * sim-core.c (sim_core_map_attach): Cast attach enum to int.
5801 (sim_core_xor_read_buffer, sim_core_xor_write_buffer): Make
5802 nr_transfered and nr_this_transfer unsigned.
5804 * sim-events.c (sim_events_tickn): N is signed, as limited to
5807 * sim-n-endian.h (offset_N): Change size to unsigned.
5809 * callback.c (os_poll_quit): Add prototypes for kbhit and getkey.
5811 Fri Aug 29 10:10:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
5813 * sim-utils.c (sim_copy_argv): Delete, replaced by dupargv.
5815 * sim-options.c (sim_parse_args): Use dupargv.
5817 Thu Aug 28 10:36:34 1997 Doug Evans <dje@canuck.cygnus.com>
5819 * sim-options.c (standard_option_handler): Use xstrdup, not strdup.
5821 Thu Aug 28 12:09:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
5823 * sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator
5826 * sim-options.c (standard_options): Add --architecture=MACHINE and
5827 --target=TARGET options.
5828 (OPTION_ARCHITECTURE, OPTION_TARGET): Define.
5829 (standard_option_handler): Handle architecture and target options.
5832 * sim-utils.c (sim_analyze_program): Pass STATE_TARGET to
5834 (sim_analyze_program): Set prog_bfd architecture from
5835 STATE_ARCHITECTURE if known.
5837 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5839 * configure: Regenerated to track ../common/aclocal.m4 changes.
5842 Wed Aug 27 18:11:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
5844 * aclocal.m4 (enable-sim-warnings): Remove comment stating
5845 that option does not apply to certain files.
5847 Wed Aug 27 15:13:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
5849 * sim-bits.h (LSBIT8, LSBIT16, LSBIT32, LSBIT64, LSBIT, MSBIT8,
5850 MSBIT16, MSBIT32, MSBIT64, MSBIT): New macros - single bit as
5851 offset from MSB/LSB.
5853 * sim-endian.h (A1_8, A2_8, A4_8, A1_4, A2_4, A1_2): New macro,
5854 access address of sub word quantity of a hosts 16, 32, 64 bit word
5856 (V1_2, V1_4, V2_4, V1_8, V2_8, V4_8): Ditto for values.
5857 (U8_1, U8_2, U8_4, U4_1, U4_2, U2_1): Ditto for set of values.
5858 (V2_H1, V2_L1, V4_H2, V4_L2, V8_L4, V8_H4): Given N byte argument,
5859 return N*2 byte value with argument in Hi/Lo word. Renamed from
5860 V1_H2, V1_L2, V2_H4, V2_L4, V4_H8, V4_L8.
5862 * sim-alu.h (ALU32_HAD_OVERFLOW): Use 64 bit mask not 32bit.
5863 (ALU16_HAD_CARRY, ALU32_HAD_CARRY, ALU16_HAD_OVERFLOW): Use MSBIT
5864 so that bit offset is explicit.
5866 Wed Aug 27 11:55:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
5868 * sim-utils.c (sim_analyze_program): Add prog_name argument.
5869 Update STATE_PROG_BFD when needed with a dup'd copy of the
5872 * sim-config.c (sim_config): Delete ABFD argument, use
5873 STATE_PROG_BFD directly.
5875 Tue Aug 26 12:55:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
5877 * run.c (main): Pass the open ABFD to sim_create_inferior.
5879 * nrun.c (main): Determine prog_bfd. Pass to sim_create_inferior
5883 * sim-hload.c (sim_load): New file. Implement generic sim_load for
5884 hardware only simulator targets.
5886 * Make-common.in (sim-hload.o): Add rule.
5888 Wed Aug 27 09:51:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
5890 * sim-utils.c (sim_copy_argv): Rewrite to match malloc strategy
5891 used by copyargv and freeargv.
5893 * sim-options.c (sim_parse_args): Save a copy of PROG-ARGS in
5894 STATE_PROG_ARGV, not just a pointer.
5896 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5898 * configure: Regenerated to track ../common/aclocal.m4 changes.
5901 Mon Aug 25 12:11:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
5903 * aclocal.m4 (sim-endian): Add second argument to
5904 SIM_AC_OPTION_ENDIAN. First is hardwired endian, second is
5905 default endian when not hardwired.
5907 * sim-config.h (WITH_DEFAULT_TARGET_BYTE_ORDER): New macro, if all
5908 else failes value for target byte order.
5910 * sim-config.c (sim_config): Add abfd arguments. Set
5911 STATE_PROG_BFD accordingly. Determine prefered_target_byte_order
5913 (sim_config): Return SIM_RC, don't abort.
5916 * run.c (main): Update call to sim_open - add ABFD argument.
5917 * nrun.c (main): Add NULL ABFD argument.
5919 Thu Aug 14 12:48:57 1997 Doug Evans <dje@canuck.cygnus.com>
5921 * callback.c (os_poll_quit): Make static.
5922 Call sim_cb_eprintf, not p->eprintf.
5923 (sim_cb_printf, sim_cb_eprintf): New functions.
5924 * sim-utils.h (sim_cb_printf, sim_cb_eprintf): Declare.
5926 * sim-basics.h (zalloc,zfree,sim_add_commas,SIM_ELAPSED_TIME,
5927 sim_elapsed_time_get,sim_elapsed_time_since): Move decls to
5928 sim-utils.h. #include sim-utils.h.
5929 * sim-utils.h: Above decls moved here.
5930 (sim_analyze_program,sim_load_file): Use `struct _bfd', not `bfd'.
5932 * sim-watch.c (action_watchpoint): Fix thinkos.
5934 Thu Jul 24 08:48:05 1997 Stu Grossman (grossman@critters.cygnus.com)
5936 * sim-types.h: Fix defs of 64 bit data types for MSVC.
5938 Tue Jul 22 10:35:37 1997 Doug Evans <dje@canuck.cygnus.com>
5940 * sim-n-core.h (sim_core_write_unaligned_N): Add missing break
5941 to FORCED_ALIGNMENT case.
5943 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
5945 * callback.c (target_to_host_open): Handle hosts with O_BINARY.
5947 Thu Jun 5 08:47:10 1997 Jeffrey A Law (law@cygnus.com)
5949 * Make-common.in (libsim.a): Fix typo.
5951 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
5953 * nrun.c (main): Verify the structure returned before using it.
5955 Wed Jun 4 11:44:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
5957 * sim-config.h (WITH_ENGINE): Enable the sim-engine module by
5960 * sim-engine.c (sim_engine_install): New function. Install the
5961 engine init functions.
5962 (sim_engine_init): [Re]initialize the simulator engine.
5964 * sim-module.c: Add sim_engine to list of modules that always
5967 Tue Jun 3 04:52:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
5969 * sim-watch.c (schedule_watchpoint): Use sim_unschedule_watchpoint
5970 to remove the old watchpoint, not delete_watchpoint.
5971 (watch_option_handler): Action the correct watchpoint, not just
5974 Wed May 28 14:47:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
5976 * sim-n-core.h (sim_core_write_aligned_N): For 8byte reads, output
5977 both low and high word.
5978 (sim_core_write_aligned_N): Ditto.
5980 * sim-trace.c (set_trace_options): Delete code explicitly setting
5983 * sim-options.c (sim_print_help): Call the list commands if not a
5984 standalone simulator.
5985 (sim_print_help): Advise that some options may not be applicable.
5987 * sim-trace.c (set_trace_options): Assume core present.
5989 * sim-events.c (sim_events_schedule_after_signal): Overflow signal
5990 buffer when full not almost full.
5992 Tue May 27 14:32:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5994 * sim-events.c (sim_events_process): Don't blat the event queue
5995 when processing watchpoints.
5997 * sim-watch.h: Make arg unsigned long - stop sign extension.
5999 * sim-events.c (sim_watch_valid): rewrite so debugable.
6001 * sim-config.h (WITH_XOR_ENDIAN): Default to zero.
6003 * sim-watch.c (schedule_watchpoint): Add is_within option so that
6004 inequality test is possible.
6005 (handle_watchpoint): Re-pass is_within arg.
6006 (watch_option_handler): When `!' prefix to pc-watchpoint arg pass
6007 0 to schedule_watchpoint's is_within arg.
6008 (sim_watchpoint_init): Re-pass is_within arg.
6010 * sim-options.c (sim_print_help): Add is_command argument. Don't
6011 include -- prefix when called from the command line interpreter.
6013 * sim-watch.c (schedule_watchpoint): Pass true is_within argument.
6015 * sim-events.c (sim_events_watch_sim): Add is_within argument,
6016 zero indicates that the test should be reversed.
6017 (sim_events_watch_core): Ditto.
6018 (WATCH_CORE): Compare range against is_within.
6021 Tue May 27 12:48:03 1997 Andrew Cagney <cagney@b2.cygnus.com>
6023 * sim-events.c (WATCH_CORE): Pass NULL cpu argument to
6024 sim_core_read_buffer. Check nr-bytes transfered.
6026 * sim-core.h (sim_core_common): Define a new struct that contains
6027 the common data. to sd and cpu structures.
6028 * sim-core.c (sim_core_attach): Update.
6029 (sim_core_init): Update. Remember to copy initialized data to each
6031 (sim_core_find_mapping): Ditto.
6033 * sim-core.c (sim_core_read_buffer): Add cpu argument.
6034 (sim_core_write_buffer): Ditto.
6036 * sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned
6037 transfer use xor version of read buffer.
6038 (sim_core_write_unaligned_N): Ditto for write.
6040 * sim-core.c (sim_core_xor_read_buffer): New function implement
6041 xor-endian data read breaking transfer up into xor-endian sized
6043 (sim_core_xor_write_buffer): Ditto for write.
6044 (reverse_n): Reverse order of arbitrary number of bytes in buffer
6045 - needed for xor-endian transfers.
6047 Fri May 23 14:24:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
6049 * sim-inline.h: Review description.
6051 * sim-core.h, sim-core.c: Reduce number of functions being inlined
6052 to just those involved in data transfers and configuration.
6054 * sim-xcat.h (XSTRING): New macro, map macro definition onto
6056 * sim-n-core.h (sim_core_read_aligned_N): Use.
6057 (sim_core_read_unaligned_N): Ditto.
6058 (sim_core_read_unaligned_N): Ditto..
6059 (sim_core_write_unaligned_N): Ditto.
6061 * sim-core.h: Add xor endian bitmap to main structure. *
6063 sim-n-core.h (sim_core_write_aligned_N): Add suport for xor
6065 (sim_core_read_aligned_N): Ditto.
6067 * sim-core.c (sim_core_set_xor_endian): New function.
6068 (sim_core_attach): Don't overwrite the per-cpu xor map when
6069 cloning the global core.
6071 Fri May 23 10:53:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
6073 * sim-engine.h: Update below so that it is using an enumerated
6076 Thu May 22 09:12:16 1997 Gavin Koch <gavin@cygnus.com>
6078 * sim-engine.c (sim_engine_restart):
6079 * sim-resume.c (sim_resume): Change longjmp param/setjmp
6080 return value used for simulator restart from 0 to 2.
6082 Wed May 21 08:47:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
6084 * cgen-scache.c (scache_option_handler): Add is_command arg.
6086 * sim-model.c (model_option_handler): Add is_command argument.
6088 * sim-profile.c (profile_option_handler): Add is_command arg.
6090 * sim-events.c (sim_watch_valid): Use ub64, lb64 when 64bit value
6093 * sim-module.c (sim_module_add_init_fn): Call init fn in the same
6094 order that they are registered.
6096 * sim-options.h (OPTION_HANDLER): Add argument to differentiate
6097 between option and command line processing.
6099 * sim-options.c: Include stdlib.h, ctype.h.
6101 * Make-common.in (sim-watch.o): Add rule.
6102 (sim_main_headers): Assume sim-assert.h included.
6103 (sim-*.o): Simplify make rule.
6105 * sim-module.c: Add sim_watch_install to module list.
6107 Tue May 20 14:15:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
6109 * sim-base.h (STATE_LOADED_P): New predicate. Set once everything
6112 * sim-trace.c (trace_install): Check magic. Include sim-assert.h.
6113 * sim-events.c (sim_events_install): Ditto.
6114 * sim-core.c (sim_core_install): Ditto.
6115 * sim-model.c (model_install): Ditto.
6116 * sim-options.c (standard_install): Ditto.
6117 * sim-profile.c (profile_install): Ditto.
6118 * sim-reason.c (sim_stop_reason): Ditto.
6119 * sim-run.c (sim_engine_run): Ditto.
6120 * sim-utils.c (sim_analyze_program): Ditto.
6122 * sim-module.c (modules): Make profile_install and trace_install
6125 * sim-base.h (STATE_MEM_BASE): Define for flat memory systems.
6127 * sim-options.c (standard_option_handler): Set the byte order.
6129 * sim-events.c (sim_events_process): Allow multi tick processing.
6130 (sim_events_tickn): New function - multi cycle tick.
6132 * sim-events.h (sim_events_tickn, sim_events_timewarp): Add
6133 prototypes. Under development.
6134 (sim_events): Replace processing with nr_ticks_to_process.
6136 Tue May 20 09:39:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6138 * nrun.c (main): Pass callbacks to sim_open instead of using
6141 * run.c (main): Ditto.
6143 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6145 * sim-events.c (sim_events_zalloc): Signal save memory allocator -
6146 stop tk interrupting malloc calls.
6147 (sim_events_zalloc): Converse.
6149 * Make-common.in (sim_main_headers): Add sim-events.h.
6151 * sim-events.c (sim_events_schedule_after_signal): Change return
6152 type to void - signal events are strictly internal.
6153 (sim_events_init): Allocate a finite buffer for signal events.
6154 (sim_events_schedule_after_signal): Enter signal events into the
6157 * sim-engine.c (sim_engine_halt): Check SIM_DESC magic.
6158 (sim_engine_restart): Ditto.
6159 (sim_engine_abort): Ditto.
6160 * sim-stop.c (sim_stop): Ditto.
6161 (control_c_simulation): Ditto.
6162 * sim-resume.c (sim_resume): Ditto.
6163 (has_stepped): Ditto.
6164 * sim-abort.c (sim_engine_abort): Ditto.
6166 * sim-basics.h (transfer_type): New type.
6168 * sim-core.c (sim_core_signal): New function. Print core signal
6170 (sim_core_find_mapping): Add transfer argument.
6172 * sim-n-core.h (sim_core_{write,write}_unaligned_N): Call
6173 SIM_CORE_SIGNAL if a recoverable abort.
6174 * sim-core.c (sim_core_find_mapping): Ditto.
6176 Fri May 16 15:13:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6178 * sim-core.c (sim_core_find_mapping): Replace calls to
6179 sim_io_error to more resiliant sim_engine_abort.
6181 * sim-n-core.h (sim_core_read_unaligned_N): Ditto.
6182 (sim_core_write_unaligned_N): Ditto.
6184 Tue May 13 13:50:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
6186 * sim-module.c: Add sim_events_install to list.
6188 * sim-events.c (sim_events_install, sim_events_uninstall): Clonse
6190 (sim_events_init): Now returns SIG_RC.
6192 * sim-run.c: New file. Generic sim_engine_run.
6193 * sim-reason.c: New file. Generic sim_stop_reason.
6194 * sim-stop.c: New file. Generic sim_stop.
6195 * sim-resume.c: New file. Generic sim_resume.
6197 * Make-common.in (sim-engine.o): Add rule.
6198 (sim-run.o, sim-reason.o, sim-stop.o, sim-resume.o): Ditto.
6200 * sim-engine.h, sim-engine.c: New file. Provide generic
6201 implementation of sim_engine_halt, sim_engine_error. et.al.
6203 * sim-base.h (sim_state_base): Add member halt.
6204 (sim-engine.h): Include.
6206 * sim-events.h (sim_event_handler): Always pass SIM_DESC to event
6208 * sim-events.c (sim_events_poll): Update event handler.
6210 Tue May 13 09:57:49 1997 Andrew Cagney <cagney@b2.cygnus.com>
6212 * sim-events.h, sim-events.c (sim_events_watch_clock): New
6214 (sim_events_watch_sim): New function.
6215 (sim_events_watch_core): New function.
6216 (sim_watch_valid): New function.
6217 (sim_events_preprocess): New function.
6218 (sim_events_process): Process the watchpoints as well as the timer
6220 (sim_events_tick): Check WORK_PENDING instead of the hold queue.
6221 (sim_events_deschedule): Check all the queues when removing an
6223 (sim_events_init): Ditto for cleaning.
6225 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6227 * sim-fpu.c (is_ufpu_number): Comment out - currently unused.
6229 Mon May 19 11:23:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
6231 * callback.c (os_open): Type of arg flags is int.
6233 Fri May 16 22:26:43 1997 Michael Meissner <meissner@cygnus.com>
6235 * sim-fpu.c (sim_fpu_is_{eq,ne,lt,le,gt,ge}): Compare Infinities
6236 just like normal numbers as per IEEE rules.
6238 Wed May 14 21:20:38 1997 Bob Manson <manson@charmed.cygnus.com>
6240 * callback.c (os_close): Mark the descriptor as being
6241 available if the close succeeded.
6242 (os_open): Pass 0644 as the mode of the file being created.
6244 Thu May 15 10:58:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
6246 * sim-fpu.c (pack_fpu, unpack_fpu): New functions - decode a
6249 * sim-inline.c (SIM_INLINE_C): Rename from _SIM_INLINE_C_.
6250 * sim-lnline.h: Update.
6252 * sim-fpu.h, sim-fpu.c (sim_fpu_[iu]{32,64}to): New int2fp
6253 conversion functions.
6254 (sim_fpu_to{32,64}[iu]): New fp2int functions.
6256 * sim-fpu.h, sim-fpu.c (sim_fpu_is_{lt,le,eq,ne,ge,gt}): New fp
6257 compare functions. Replacing.
6258 (sim_fpu_cmp): This. Delete.
6260 Mon May 12 14:49:05 1997 Andrew Cagney <cagney@b1.cygnus.com>
6262 * sim-core.c (sim_core_find_mapping): Call engine_error not
6263 sim_io_error when possible.
6265 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b2.cygnus.com>
6267 * sim-endian.h (V1_H2): Add macro's to insert a word into a
6268 high/low double word.
6270 * sim-trace.h: Remove definition of attribute - defined in
6273 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
6275 * sim-options.h (struct OPTION): Add doc_opt as the documenting
6276 name of the option - or family of options.
6278 * sim-options.c (sim_args_command): Match command `a-b c' with
6279 option `--a-b-c' from option table.
6281 Thu May 8 12:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
6283 * sim-options.c (sim_print_help): For optional arguments, wrap
6286 * sim-trace.c (set_trace_options): New function, handle optional
6287 argument and multiple assignment.
6288 (trace_option_handler): Update.
6290 * sim-trace.c (trace_option_handler): Trace branch and not fpu
6291 when branch tracing selected.
6293 Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
6295 * sim-trace.c (trace_one_insn): Make a va-args function.
6297 * sim-trace.c (trace_vprintf): New function, va-arg version of
6300 Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com>
6302 * sim-trace.c (trace_uninstall): Don't close a file twice.
6303 * sim-profile.c (profile_uninstall): Likewise.
6305 Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com>
6307 * sim-trace.c (toplevel): Include bfd.h.
6308 (trace_options): Note that --trace-linenum also turns on
6309 --trace-insn. Add --trace-{branch,semantics}.
6310 (trace_option_handler): If --trace-linenum, also turn on
6311 --trace-insn. Add --trace-branch support. If --trace-semantics,
6312 turn on ALU, FPU, branch, and memory tracing.
6313 (trace_one_insn): New function to trace an instruction. Support
6315 (OPTION_TRACE_*): Use an enum, rather than lots of defines.
6317 * sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros.
6318 (MAX_TRACE_VALUES): Use 32, not 12 by default.
6319 (TRACE_branch): Add new mask.
6320 (TRACE_*_P): Define all possible trace_p macros.
6321 (trace_one_insn): Declare function.
6323 Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com>
6325 * sim-trace.h (__attribute__): Define as nothing if not GNU C or
6326 GNU C doesn't support __attributes__.
6327 ({trace,debug}_printf): Add attribute's so -Wformat can check the
6330 Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
6332 * sim-config.h (FORCED_ALIGNMENT): New alignment option -
6333 addresses are masked forcing them to be correctly aligned.
6334 (WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default.
6335 * sim-config.c (config_alignment_to_a): Update.
6337 * sim-core.h (sim_cpu_core): New data type contains cpu specific
6339 * sim-base.h (CPU_CORE): Add cpu specific core data to cpu base
6341 * sim-core.c (sim_core_attach): Add CPU argument. Ready for
6342 processor specific core maps.
6343 (sim_core_map_attach): Copy the core map data to each of the
6344 processor specific core data structures.
6345 * sim-core.c (sim_core_find_mapping): Update.
6347 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename.
6348 (sim_core_write_aligned_N, sim_core_write_aligned_N): New names.
6349 (sim_core_write_unaligned_N, sim_core_write_unaligned_N): New
6350 alternatives that handle unaligned addresses.
6351 (sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace
6353 * cgen-utils.c (sim_disassemble_insn): Update.
6355 Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
6357 * sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific
6360 * sim-fpu.h, sim-fpu.c: New files - prototype for generic target
6363 * sim-inline.h, sim-inline.c: Add support for SIM_FPU.
6365 Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
6367 * sim-core.c (sim_core_map_to_str): New function ascii equivalent
6370 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace
6373 Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com>
6375 * cgen-trace.c: Prepend additional trace_printf argument.
6377 * cgen-utils.c (sim_disassemble_insn): Add additional core
6380 Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
6382 * nrun.c (main): Catch/report errorenous simulator states.
6384 * sim-module.c: #include "libiberty.h" so that xmalloc is defined.
6385 * sim-trace.c: #include string.h/strings.h so that memset is
6387 * sim-utils.c: Ditto.
6388 * sim-profile.c: Ditto. And stdlib.h.
6389 (print_bar): Only define when used by instruction or memory profiler.
6391 * sim-options.c (standard_option_handler): Make ul more local.
6393 * sim-load.c (sim_load_file): Make the name constant.
6394 (sim_load_file): Passify gcc.
6396 * sim-utils.h: New file, pre-declare utilites in corresponding .c
6398 * sim-utils.c, sim-load.c: Include sim-utils.h.
6400 * sim-base.h (sim_cpu): Pre define here so available to all.
6402 * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N):
6403 Restore the sim_cpu and instruction_address arguments so that full
6404 information is available to the abort function.
6405 * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto.
6406 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
6408 * sim-trace.h, sim-trace.c (trace_option_handler): Add interim
6409 tracing support for sim-events and sim-core.
6410 (trace_option_handler): Convert #if to if where possible so always
6411 compiled/checked by C compiler.
6412 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
6414 * sim-base.h: Adjust comment documenting how to define the cpu
6416 (sim_state_base): Add sim_core and sim_events to simulator base
6419 * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument.
6420 * sim-core.c (sim_core_init, sim_core_attach,
6421 sim_core_find_mapping): Update.
6422 * sim-events.c (ETRACE, sim_events_init, sim_events_time,
6423 update_time_from_event, insert_sim_event,
6424 sim_events_schedule_after_signal, sim_events_deschedule,
6425 sim_events_tick): Ditto.
6427 * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h,
6428 sim-model.h): Move #includes from here.
6429 * sim-base.h: To here.
6430 (sim-core.h, sim-events.h, sim-io.h): Include also
6432 Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
6434 * callback.c (default_callback): Missing initialisers.
6436 Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com>
6438 * sim-utils.c (sim_add_commas): New function.
6439 * sim-basics.h (sim_add_commas): Add prototype.
6440 * cgen-scache.c (scache_print_profile): Print commas in numbers.
6441 * sim-profile.c (COMMAS): New macro.
6442 (print_*): Use it to print commas in numbers.
6444 * configure: Regenerated.
6446 * cgen-sim.h (sim_signal_type): Add SIM_SIGINT.
6447 (cgen_state): New member run_fast_p.
6448 (cgen_init): Add prototype.
6449 (sim_disassemble_insn): New arg `cpu'.
6450 * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn.
6451 * cgen-utils.c (cgen_init): New function.
6452 (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn.
6453 * genmloop.sh: Call engine_halt if loop exits.
6455 * Makefile.in (sim-options_h): Define.
6456 (sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
6457 (sim-model.o): Add new rule.
6458 (cgen-{scache,trace,utils}.o): Add new rules.
6459 * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
6460 * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
6461 Indent output by 2 spaces.
6462 * cgen-scache.h (scache_print_profile): Update.
6463 * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
6464 Use trace_printf, not fprintf.
6465 (trace_extract): Use trace_printf, not cgen_trace_printf.
6466 * genmloop.sh (!FAST case): Increment `insn_count'.
6467 * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
6468 (sim_cpu_base): Rename member `sd' to `state' to be consistent with
6469 access macro's name.
6470 * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
6471 Change return type to SIM_RC.
6472 (sim_core_{install,uninstall}): New functions.
6473 * sim-core.h (sim_core_{install,uninstall}): Declare.
6474 (sim_core_init): Use EXTERN_SIM_CORE to define it.
6475 Change return type to SIM_RC.
6476 * sim-model.h (models,machs,model_install): Declare.
6477 * sim-module.c (modules): Add scache_install, model_install.
6478 (sim_post_argv_init): Set cpu->state backlinks.
6479 * sim-options.c (standard_options): Delete --simcache-size,--max-insns.
6480 (standard_option_handler): Likewise.
6481 * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
6484 (profile_options): Delete --profile-simcache.
6485 (profile_option_handler): Likewise.
6486 (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
6488 (profile_print_{memory,model}): Likewise.
6489 (profile_print_simcache): Delete.
6490 (profile_print_speed): New function.
6491 (profile_print): Rewrite.
6492 * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
6493 (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
6494 (PROFILE_DATA): Delete members simcache_{hits,misses}.
6495 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
6496 (PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
6497 (profile_print): Update prototype.
6499 Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com>
6501 * cgen-scache.[ch], cgen-sim.h: New files.
6502 * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files.
6503 * sim-model.c: New file.
6505 * Make-common.in (clean targets): Undo patch of Apr. 22.
6507 Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com>
6509 * sim-n-bits.h (signed): If we have a standard compiler, undef
6510 signed, so that signedN is defined correctly.
6512 Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com>
6514 * sim-module.h, sim-model.h, sim-profile.h: New files.
6515 * sim-module.c, sim-profile.c: New files.
6516 * Make-common.in (SIM_PROFILE): Define
6517 (CONFIG_CFLAGS): Add $(SIM_PROFILE).
6518 (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
6519 (sim_module.o,sim-profile.o): Add rules for.
6520 * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
6521 (--enable-sim-profile): Add.
6522 * configure: Regenerated.
6523 * sim-base.h (sim_state_base): New members init_list, uninstall_list,
6524 model. Move trace and profile support to sim-{trace,profile}.h.
6525 New members trace_data, profile_data.
6526 * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
6527 * sim-config.h: Provide default definition of WITH_PROFILE.
6528 (WITH_TRACE): Change default to -1.
6529 (MAX_NR_PROCESSORS): Always define.
6530 * sim-options.c: Move trace and profile support to
6531 sim-{trace,profile}.h.
6532 (sim_pre_argv_init): Moved to sim-model.c.
6533 (standard_install): New function.
6534 * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
6535 (standard_install): Declare.
6536 * sim-trace.c: Tracing option handling moved here from sim-options.c.
6537 (trace_install, trace_uninstall): New functions.
6538 (trace_printf): Update reference to TRACE_FILE.
6539 * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
6540 (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
6541 (WITH_TRACE_FOO_P): Define.
6542 (trace_install): Declare.
6543 (TRACE_DATA): New struct.
6545 Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com>
6547 * run.c: Undo last exec_bfd patch.
6548 (main): Only pass -E ifdef SIM_HAVE_BIENDIAN.
6550 Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com>
6552 * run.c (exec_bfd): Add back in.
6553 (main): Set exec_bfd.
6555 Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com>
6557 * sim-load.c (sim_load_file): #include <stdio.h> for NULL.
6559 Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
6561 * sim-events.c (insert_sim_event): Call sim_io_error instead of
6562 less well defined engine_error.
6563 * sim-core.c: Ditto.
6565 Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com)
6567 * Make-common.in: Change clean targets to use :: so that other
6568 Makefiles can have their own clean targets.
6569 * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of
6570 __STDC__ to control use of stdarg vs. varargs syntax. Some
6571 systems can't use __STDC__, but require stdarg.
6573 Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com>
6575 * sim-options.c (standard_options): Add --endian.
6576 (standard_option_handler): Likewise.
6578 * nrun.c: #include <signal.h>.
6579 (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
6580 handler that calls sim_stop ().
6582 Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
6584 * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
6585 handler that calls sim_stop (). Simulators may still be
6586 establishing their own handler.
6588 * sim-events.c (sim_events_poll): Rename from
6589 sim_events_at_large_int. Poll IO.
6591 * sim-io.c (sim_io_poll_quit): New function - pass on a polling
6594 * callback.c (os_poll_quit): New function poll for quit signal
6596 (default_callback): Include magic number.
6598 Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
6600 * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
6601 Check for functions getrusage, time.
6602 * sim-basics.h (SIM_ELAPSED_TIME): New typedef.
6603 (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes.
6604 * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able.
6605 (sim_elapsed_time_get, sim_elapsed_time_since): New functions.
6607 * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.
6609 * sim-options.c, sim-options.h: New files.
6610 * sim-config.h (WITH_DEBUG): Provide default value of zero.
6611 * Make-common.in (nrun.o): Add rules for.
6614 * run.c (main): Check return value of sim_open.
6616 * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules.
6617 (sim_main_headers): Add sim-trace.h.
6618 * run.c (exec_bfd, target_byte_order): Delete.
6619 (main): Pass -E <endian> to sim_open. Delete code to load sections,
6620 call sim_load instead. Check return code of sim_create_inferior.
6621 * sim-base.h (CURRENT_STATE): Define.
6622 (sim_state_base): Make typedef. New members options, prog_argv,
6623 prog_bfd, text_{section,start,end}, start_addr, simcache_size,
6624 mem_size, memory [+ corresponding access macros].
6625 (sim_cpu_base): New typedef.
6626 * sim-trace.h: New file.
6627 * sim-trace.c: New file.
6628 * sim-basics.h: #include it.
6629 * sim-load.c: New file.
6631 Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com>
6633 * Make-common.in (INSTALL): Set to @INSTALL@.
6634 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
6635 (install-common): Depend upon installdirs. Use
6636 $(program_transform_name) directly, rather than using
6638 (installdirs): New target.
6639 * Makefile.in (INSTALL): Set to @INSTALL@.
6640 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
6641 (install-man): Depend upon installdirs. Use
6642 $(program_transform_name) directly, rather than using
6644 (installdirs): New target.
6646 Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
6648 * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
6651 Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6653 * sim-basics.h: Only bring in config.h and tconfig.h if
6656 Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6658 * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
6659 numbering convention of the target.
6660 * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
6661 and WITH_TARGET_WORD_MSB.
6662 (sim_config): When possible, check for consistency with bitsize
6665 * sim-bits.h: Allow MSB to be other than zero.
6666 * sim-bits.c: Ditto.
6667 * sim-n-bits.h: Ditto.
6669 * sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
6670 * sim-n-bits.h (MSMASKEDn): Ditto.
6672 Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com>
6674 * Makefile.in (INSTALL): Change install.sh to install-sh.
6676 Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com>
6678 * sim-base.h (sim_state_base): Move `magic' to end of struct.
6680 Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6682 * run.c (main): Check that a program to run was specified.
6684 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6686 * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
6688 * configure: Regenerated to track ../common/aclocal.m4 changes.
6691 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
6693 * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
6694 * sim-config.h: To here.
6696 * Make-common.in (SIM_EXTRA_DEPS): New config var.
6697 (sim_main_headers): Define.
6698 (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
6699 (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
6701 (sim-utils.o): Add rule for.
6702 * sim-utils.o: New file.
6703 * sim-basics.h: #include sim-base.h.
6704 (zalloc): Make argument unsigned long.
6705 * sim-base.h: New file.
6706 * sim-inline.h (SIM_IO support): Delete.
6707 * sim-io.h: Delete inline support.
6708 * sim-io.c: Likewise. sim-state.h renamed to sim-main.h.
6709 * sim-config.c: sim-state.h renamed to sim-main.h.
6710 * sim-core.c: Likewise.
6711 * sim-events.c: Likewise.
6713 * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
6715 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
6716 (sim-debug): Allow arguments. Define WITH_DEBUG in addition to
6718 * configure: Regenerated to track ../common/aclocal.m4 changes.
6720 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6722 * configure: Regenerated to track ../common/aclocal.m4 changes.
6724 Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6726 * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
6727 WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
6728 are defined by the configure.
6730 * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
6732 * aclocal.m4 (floating-point, xor-endian, alignment, smp,
6733 reserved-bits): Always define.
6735 * sim-config.h, sim-config.c (sim_config): New function - and new
6736 file - co-ordinate the setting/checking of the common simulator
6737 configuration options.
6739 * Make-common.in (sim-config.o): Add rule.
6741 Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com>
6743 * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
6744 va_list from void *, since va_list might not be a pointer type.
6746 Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6748 * sim-n-endian.h (offset_N): Correct assertion - word and sub word
6750 (offset_N): Correct computation of LE offset.
6752 * sim-io.c (sim_io_error): Include a new line when reporting
6755 * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
6758 Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com)
6760 * run.c: Include alloca-conf.h.
6762 * callback.c (os_evprintf_filtered): Fix typo.
6764 Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6766 * run.c (string.h, strings.h, stdlib.h): Include.
6768 * sim-events.c (sim_events_tick): Recent cleanup failed to return
6769 0 when nothing pending.
6771 * run.c (sim_size, sim_trace): Plicate GCC - these two functions
6772 will soon be going away.
6773 (getopt): Plicate GCC.
6775 * sim-endian.c (sim-io.h): Plicate GCC.
6776 * sim-bits.c (sim-io.h): Ditto.
6777 * sim-n-bits.h (ROTn): Ditto.
6779 * sim-io.c (sim_io_error): Correct check for NULL.
6781 * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
6783 * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
6786 Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6788 * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
6789 SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
6791 Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6793 * sim-alu.h: Include sim-xcat.h.
6795 Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6797 * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
6798 sim-events.c, sim-inline.c, sim-io.c): Define rules for building
6801 * sim-events.c (sim_events_at_large_int): New function. Just
6802 schedules an event every large-int ticks.
6803 (sim_events_init): Call.
6804 (sim_events_tick, sim_events_process): Move async handing to
6805 sim_events_process. Move timer decrement so that it occures after
6806 events have been processed.
6808 * sim-basics.h (struct _engine): Remove declaration.
6810 * sim-events.h, sim-events.c: Rename type to sim_events. Prefix
6811 everything with same. Rename global struct to SIM_DESC.
6812 * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
6813 * sim-io.h, sim-io.c: Ditto.
6815 * sim-assert.h: New file. Optional assertion checking macros.
6816 * sim-io.c (sim_io_error): Make just this function tolerant to
6819 * sim-xcat.h: New file. Define concatenate macros.
6820 * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
6821 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
6825 Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6827 * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
6829 Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6831 * sim-inline.h: Add definitions for sim-types.
6832 (ALL_BY_MODULE): New macro, encapsulate full inlining by the
6835 Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6837 * sim-events.h: Remove defunct reference to callback struct.
6839 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6841 * configure: Re-generate.
6843 Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6845 * Make-common.in (CSEARCH): Do not include the gdb directory in
6848 Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6850 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
6851 SIM_WARNING): Drop, requiring the simulator specific Makefile.in
6852 to explicitly incorporate these.
6854 * aclocal.m4 (--enable-sim-alignment); New option. Strongly
6855 specify the alignment restrictions of the target architecture -
6856 without this option all alignment restrictions are accomodated.
6857 (--enable-sim-assert): New option. Conditionally compile in
6858 assertion statements.
6859 (--enable-sim-float): New option. Strongly specify the target's
6860 floating point support.
6861 (--enable-sim-hardware): New option. Specify the hardware devices
6862 included in the simulation.
6863 (--enable-sim-packages): New option. Specify the hardware
6864 packages included in the simulation.
6865 (--enable-sim-regparm): New option. Specify that parameters be
6866 passed in registers instead of on the stack.
6867 (--enable-sim-reserved-bits): New option. Specify that reserved
6868 bits within an instruction are are correctly set.
6869 (--enable-sim-smp): New option. Specify the level of SMP support
6870 to be included in the simulator.
6871 (--enable-sim-stdcall): New option. Specify an alternative
6872 function call convention.
6873 (--enable-sim-xor-endian): New option. Configure xor-endian
6874 support used by some targets to implement bi-endian support.
6876 Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6878 * aclocal.m4 (--enable-sim-hostendian): New option. Allow the
6879 host endianness to be overridden.
6880 (--enable-sim-endian): Allow the target platform's byte order
6882 (--enable-sim-inline): Control the inlining of common components.
6883 (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
6884 (--enable-sim-warnings): Enable additional GCC compiler checks.
6885 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
6888 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
6889 sim-*-n.h so that the names are uniq on dos machines
6890 * sim-core.c, sim-bits.c, sim-endian.c: Update.
6892 Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
6894 * run.c: #include "libiberty.h".
6895 (main): New locals sd,no_args,sim_argv.
6896 Run buildargv on -a option. Pass argv to sim_open, argv[0]
6897 is program name. Update call to sim_set_callbacks.
6898 Record result of sim_open, pass to other sim_foo routines.
6900 Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
6902 * callback.c (os_printf_filtered): Do not call exit(1) or print a
6905 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6907 * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
6908 Route stdout through buffered IO.
6910 * callback.c: Add os_flush_stderr, os_write_stderr,
6911 os_evprintf_filtered functions to route error output through
6914 * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
6915 Correct return type - should be void.
6917 Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6919 * sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
6921 * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
6922 not provide a default value as undefined indicates disable code.
6924 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6926 * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
6928 * sim-events.h, sim-events.c: Ditto.
6929 * sim-io.h, sim-io.c: Ditto.
6931 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6933 * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
6935 * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
6936 extract the tail or least signifiant bits from an integer of the
6939 * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
6940 WITH_TARGET_BITSIZE so that the compilation will fail when an
6941 unsupported bitsize value is defined.
6943 (INSERTED*): Convert to functions.
6944 (EXTRACTED*): Ditto.
6946 (SIGN_EXTEND, SEXT): Change to more terse name.
6948 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6950 * sim-inline.h: Allow explicit control over which .c files will be
6951 included by their header.
6953 * sim-inline.h: Allow explicit control over which .c files use the
6954 alternative - REGPARM - parameter passing mechanism.
6956 * sim-inline.h, sim-inline.c: Don't attempt to include any of
6957 icache.c, idecode.c, semantics.c or support.c. Those names are
6958 not generally applicable.
6960 Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6962 * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
6963 in a fashion similar to sim-endian-n.
6965 * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
6966 both value and address macro's.
6968 Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6970 * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
6972 * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
6973 generic L_word, H_word macro's.
6975 Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
6977 * sim-basics.h: Borrow code from ppc directory.
6978 * sim-bits.c: Ditto.
6979 * sim-bits.h: Ditto.
6980 * sim-config.h: Ditto.
6981 * sim-endian-n.h: Ditto.
6982 * sim-endian.c: Ditto.
6983 * sim-endian.h: Ditto.
6984 * sim-inline.c: Ditto.
6985 * sim-inline.h: Ditto.
6986 * sim-types.h: Ditto.
6988 Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
6990 * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
6991 all the ALU size alternatives and then auto-configure a default.
6993 * sim-alu.h: Copy ppc/idecode_expression.h.
6995 Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
6997 * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
6998 sign extend a bit within a value.
7000 * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
7001 a pointer into the middle of a host word.
7002 * sim-endian.h (MS2W_4, LS2W_4): Use this function.
7004 Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
7006 * callback.c: If HAVE_CONFIG_H is defined, include config.h from
7007 autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
7008 appropriate definitions of read, write, etc. Add prototype for
7011 Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
7013 * Makefile.in (libcommon.a): Delete.
7014 (callback.o,targ-map.o): Delete, moved to Make-common.in.
7015 (gentmap,targ-vals.h,targ-map.c): Likewise.
7016 (run-autoconf): Delete.
7017 * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
7018 (common makefile fragment): Moved back into ...
7019 * Make-common.in: Resurrect.
7020 * configure.in (AC_LINK_FILES): Delete, unnecessary now.
7021 * configure: Regenerated.
7023 Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
7025 * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
7026 (SIM_AC_OUTPUT): To here.
7028 Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
7030 * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
7031 comments and single quotes. Fixes a problem found on hpux.
7033 Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
7035 * aclocal.m4: Remove Make-common.in from dependencies.
7036 * (distclean): Remove targ-vals.def.
7038 * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
7039 into here. Makes insertion into makefiles easier. Also, change
7040 the way that callback.o, gentmap, targ-vals.h, targ-map.c,
7041 targ-map.o, and run are built. They are now built in the
7042 individual simulator directories, taking sources from ../common as
7043 necessary. This replaces the merging of libcommon.a into
7044 linsim.a, which was problematic for the WinGDB build process.
7045 * run.c: Include config.h from . instead of ../common.
7046 * Make-common.in: Remove. It's no longer necessary.
7048 Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
7050 * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
7051 (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
7053 Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
7055 * run.c (main): Set target_byte_order before call to sim_open.
7057 Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
7059 * callback.c: #include <stdlib.h>
7060 (os_error): New function.
7061 (default_callback): Add os_error.
7063 Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
7065 * Make-common.in (Makefile): Set CONFIG_HEADERS="".
7066 * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
7068 (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
7070 Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
7072 * run.c: #include ../common/config.h, tconfig.h.
7073 (myname): New static global.
7074 (main): Recognize new options -a, -c. Also recognize -h if h8/300.
7075 Only process -c ifdef SIM_HAVE_SIMCACHE.
7076 Only process -p/-s ifdef SIM_HAVE_PROFILE.
7077 Parse program name from argv[0] and use in error messages.
7078 Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
7079 Add support for incomplete h8/300 termination indicators.
7080 (usage): Make more verbose.
7081 * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
7082 * Makefile.in,Make-common.in,callback.c: New files.
7083 * nltvals.def,gentmap.c,gentvals.sh: New files.
7085 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
7087 * run.c: Include stdarg.h if __STDC__.
7089 Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
7091 * run.c (main): Don't print out anything if the signal
7092 number is zero (ie no signal).
7094 Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7096 * run.c (main): Print out if the program raised a signal.
7098 Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7100 * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
7103 Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
7105 * run.c (main): Explicitly cast malloc() parameter.
7107 Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7109 * run.c (sim_bfd): New global to hold the bfd pointer for the
7111 (main): Initialize sim_bfd.
7113 Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
7115 * run.c (main): Use new bfd_big_endian macro.
7117 Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
7119 * run.c (main): Removed SH specific comments, so source is
7120 generic. Also updated to only load relevant sections. Moved
7121 sim_open() to after callback attach (to match GDB).
7123 * run.1: Removed SH specific comments.
7125 Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
7127 * run.c (main): Always return sigrc at end.
7129 Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
7131 * run.c (main): Print error diagnostic and exit if bfd_openr() or
7132 bfd_check_format() fails.
7134 Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
7136 * run.c, run.1: From sh directory.