1 2016-01-11 Mike Frysinger <vapier@gentoo.org>
3 * sim-config.c (print_sim_config): Drop extra whitespace before =
4 in output for byte order, stdio, and msb settings.
6 2016-01-10 Mike Frysinger <vapier@gentoo.org>
8 * acinclude.m4 (SIM_AC_COMMON): Call AC_MSG_CHECKING,
9 AC_DEFINE_UNQUOTED, and AC_MSG_RESULT for sim-debug. Likewise for
10 sim-stdio, sim-trace, and sim-profile.
11 (SIM_AC_OPTION_ENVIRONMENT): Likewise.
12 (SIM_AC_OPTION_ASSERT): Likewise.
13 (SIM_AC_OPTION_SMP): Likewise.
14 (SIM_AC_OPTION_XOR_ENDIAN): Likewise.
15 * configure: Regenerate.
16 * Make-common.in (SIM_DEBUG, SIM_TRACE, SIM_PROFILE, SIM_ASSERT,
17 SIM_ENVIRONMENT, SIM_SMP, SIM_XOR_ENDIAN): Delete.
18 (CONFIG_CFLAGS): Delete $(SIM_DEBUG), $(SIM_TRACE), $(SIM_PROFILE),
19 $(SIM_ASSERT), $(SIM_ENVIRONMENT), $(SIM_SMP), and $(SIM_XOR_ENDIAN).
20 * sim-config.c (sim_config): Change DEFAULT_ENVIRONMENT to
21 WITH_ENVIRONMENT & USER_ENVIRONMENT.
22 * sim-config.h (SIM_HAVE_ENVIRONMENT, WITH_ENVIRONMENT,
23 DEFAULT_ENVIRONMENT, WITH_DEBUG, WITH_TRACE, WITH_PROFILE,
24 WITH_ASSERT, WITH_STDIO): Delete.
25 * sim-options.c (standard_options): Delete SIM_HAVE_ENVIRONMENT
28 2016-01-10 Mike Frysinger <vapier@gentoo.org>
30 * acinclude.m4 (SIM_AC_OPTION_PACKAGES): Delete.
31 * configure: Regenerate.
32 * Make-common.in (SIM_PACKAGES): Delete.
33 (CONFIG_CFLAGS): Delete $(SIM_PACKAGES).
35 2016-01-10 Mike Frysinger <vapier@gentoo.org>
37 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ENVIRONMENT.
39 2016-01-10 Mike Frysinger <vapier@gentoo.org>
41 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_ASSERT.
43 2016-01-10 Mike Frysinger <vapier@gentoo.org>
45 * acinclude.m4 (SIM_AC_COMMON): Delete sim_link_files and
47 (SIM_AC_OUTPUT): Delete AC_LINK_FILES call.
48 * gentmap.c: Change targ-vals.def include to nltvals.def.
49 * Make-common.in (gentmap): Change targ-vals.def to
50 $(srccom)/nltvals.def.
51 (distclean): Delete rm -f targ-vals.def.
52 * Makefile.in: Update comment.
54 2016-01-10 Mike Frysinger <vapier@gentoo.org>
56 * acinclude.m4 (SIM_AC_COMMON): Call SIM_AC_OPTION_INLINE.
57 (SIM_AC_OPTION_INLINE): Rename default_sim_inline to sim_inline
58 and always set -DDEFAULT_INLINE. Delete AC_ARG_ENABLE 4th arg.
60 2016-01-10 Mike Frysinger <vapier@gentoo.org>
62 * acinclude.m4: Delete --enable-sim-regparm and sim_regparm,
63 and --enable-sim-stdcall and sim_stdcall.
64 * configure: Regenerate.
65 * Make-common.in (SIM_REGPARM, SIM_STDCALL): Delete.
66 (CONFIG_CFLAGS): Delete $(SIM_REGPARM) and $(SIM_STDCALL).
67 * sim-config.h (WITH_REGPARM, WITH_STDCALL): Delete.
68 * sim-inline.h (REGPARM_MODULE, REGPARM): Delete.
69 (REGPARM_*): Delete all regparm defines and their use.
71 2016-01-10 Mike Frysinger <vapier@gentoo.org>
73 * acinclude.m4: Delete --enable-sim-cflags and sim_cflags.
74 * Make-common.in (SIM_CFLAGS): Delete.
75 (CONFIG_CFLAGS): Delete $(SIM_CFLAGS).
76 * Makefile.in: Likewise.
78 2016-01-09 Mike Frysinger <vapier@gentoo.org>
80 * configure.ac: Change SIM_AC_COMMON to AC_PROG_CC. Drop 2nd arg
81 to AC_OUTPUT. Move AC_CHECK_HEADERS, AC_CHECK_FUNCS,
82 AC_CHECK_MEMBERS, and -AC_CHECK_TYPES ...
83 * acinclude.m4 (SIM_AC_COMMON): ... here.
84 * aclocal.m4, configure: Regenerate.
85 * config.in: Delete file.
86 * callback.c: Change cconfig.h include to config.h.
87 * dv-cfi.c, nrun.c, sim-basics.h, sim-load.c, sim-memopt.c,
89 * Make-common.in (sim-basics_h): Delete ../common/cconfig.h.
90 * Makefile.in (distclean): Delete rm -f cconfig.h config.h stamp-h.
92 2016-01-06 Mike Frysinger <vapier@gentoo.org>
94 * sim-config.c (print_sim_config): Delete sim_io_printf of version,
95 date, and time information.
97 2016-01-06 Mike Frysinger <vapier@gentoo.org>
99 * sim-options.c (sim_parse_args): Mark argv array const.
100 * sim-options.h (sim_parse_args): Likewise.
102 2016-01-05 Mike Frysinger <vapier@gentoo.org>
104 * sim-trace.c: Include dis-asm.h.
105 (OPTION_TRACE_DISASM): New enum.
106 (trace_options): Add trace-disasm flag.
107 (trace_option_handler): Handle OPTION_TRACE_DISASM.
108 (trace_idx_to_str): Handle TRACE_DISASM_IDX.
109 (dis_read, dis_printf, trace_disasm): New functions.
110 * sim-trace.h: Include dis-asm.h.
111 (TRACE_INSN_IDX): Clarify comment.
112 (TRACE_DISASM_IDX): New enum.
113 (TRACE_disasm): New define.
114 (WITH_TRACE_DISASM_P): New define.
115 (struct _trace_data): Add dis_bfd, disassembler, and dis_info.
116 (STRACE_DISASM_P): New define.
117 (TRACE_DISASM_P): Likewise.
118 (TRACE_DISASM_P): Likewise.
119 (TRACE_DISASM): Likewise.
120 (trace_disasm): New function.
122 2016-01-04 Mike Frysinger <vapier@gentoo.org>
124 * sim-utils.c (sim_state_free): Change to STATE_MAGIC.
126 2016-01-04 Mike Frysinger <vapier@gentoo.org>
128 * cgen-scache.c (MAX): Delete.
129 (scache_init): Change MAX to max.
130 * cgen-trace.c (min): Delete.
131 * cgen-utils.c (min): Delete.
132 * sim-basics.h [!min] (min): Define.
133 [!max] (max): Define.
135 2016-01-04 Mike Frysinger <vapier@gentoo.org>
137 * sim-options.c (sim_parse_args): Tweak getopt error message.
139 2016-01-04 Mike Frysinger <vapier@gentoo.org>
141 * acinclude.m4 (sim-bswap): Delete.
142 * configure: Regenerate.
143 * Make-common.in (SIM_BSWAP): Delete.
144 (CONFIG_CFLAGS): Delete $(SIM_BSWAP).
145 * sim-config.h (htonl, ntohl): Delete.
146 (WITH_BSWAP): Delete.
148 2016-01-03 Mike Frysinger <vapier@gentoo.org>
150 * sim-options.c (sim_parse_args): Declare local save_opterr. Save
151 opterr state to it before calling getopt_long and restore afterwards.
152 Set opterr to 0. When optc is '?', call sim_io_eprintf.
154 2016-01-03 Mike Frysinger <vapier@gentoo.org>
156 * hw-device.h (device): Delete commented typedef.
157 * sim-basics.h (device): Delete typedef.
159 2016-01-03 Mike Frysinger <vapier@gentoo.org>
161 * sim-options.c (sim_parse_args): Replace for loop with a call
164 2016-01-03 Mike Frysinger <vapier@gentoo.org>
166 * nrun.c (myname): Mark const.
167 (main): Mark name const. Replace myname parsing loop with a
170 2016-01-03 Mike Frysinger <vapier@gentoo.org>
172 (CONFIG_CFLAGS): Delte $(SIM_HOSTENDIAN).
173 * acinclude.m4 (SIM_AC_COMMON): Call AC_C_BIGENDIAN.
174 (SIM_AC_OPTION_HOSTENDIAN): Delete.
175 * config.in, configure: Regenerate.
176 * Make-common.in (SIM_HOSTENDIAN): Delete.
177 * sim-config.c (current_host_byte_order): Delete.
178 (sim_config): Delete current_host_byte_order assignments and
179 CURRENT_HOST_BYTE_ORDER checks.
180 (print_sim_config): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
181 * sim-config.h (WITH_HOST_BYTE_ORDER): Change to ...
182 (HOST_BYTE_ORDER): ... this. Define based on WORDS_BIGENDIAN.
183 (current_host_byte_order): Delete.
184 (CURRENT_HOST_BYTE_ORDER): Likewise.
185 * sim-endian.c (WITH_HOST_BYTE_ORDER): Rename to ...
186 (HOST_BYTE_ORDER): ... this.
187 (sim_endian_split_16): Change WITH_HOST_BYTE_ORDER to
189 (sim_endian_join_16): Likewise.
190 * sim-n-core.h (sim_core_read_misaligned_N): Change
191 CURRENT_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
192 (sim_core_write_misaligned_N): Likewise.
193 * sim-n-endian.h (endian_t2h_N): Likewise.
194 (endian_h2t_N, endian_h2be_N, endian_be2h_N, endian_h2le_N,
195 endian_le2h_N): Likewise.
196 (offset_N): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
198 2016-01-02 Mike Frysinger <vapier@gentoo.org>
200 * acinclude.m4 (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to
201 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
203 (SIM_AC_OPTION_HOSTENDIAN): Likewise.
204 * cgen-ops.h (SUBWORDXFSI): Change BIG_ENDIAN to BFD_ENDIAN_BIG.
205 (SUBWORDTFSI, JOINSIDF, JOINSIXF, JOINSITF): Likewise.
206 * nrun.c (main): Likewise.
207 * sim-config.c (current_host_byte_order): Change type to enum
208 bfd_endian. Initialize to BFD_ENDIAN_UNKNOWN.
209 (current_target_byte_order): Likewise.
210 (config_byte_order_to_a): Likewise. Change BIG_ENDIAN to
211 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
213 (sim_config): Change prefered_target_byte_order type to enum
214 bfd_endian. Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
215 to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
216 * sim-config.h: Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
217 to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
218 Delete all the various arch/OS endian includes & defines.
219 (current_host_byte_order): Change type to enum bfd_endian.
220 (current_target_byte_order): Likewise.
221 (CURRENT_HOST_BYTE_ORDER): Compare to BFD_ENDIAN_UNKNOWN, not 0.
222 (CURRENT_TARGET_BYTE_ORDER): Likewise.
223 * sim-endian.c: Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
224 * sim-events.c (sim_events_watch_sim): Change BIG_ENDIAN to
225 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
227 (sim_events_watch_core): Likewise.
228 * sim-events.h: Likewise.
229 * sim-n-core.h (sim_core_read_misaligned_N): Change BIG_ENDIAN to
231 (sim_core_write_misaligned_N): Likewise.
232 * sim-n-endian.h (endian_h2be_N): Likewise.
233 (endian_be2h_N): Likewise.
234 (endian_h2le_N): Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
235 (offset_N): Likewise.
236 * sim-options.c (standard_option_handler): Change LITTLE_ENDIAN to
237 BFD_ENDIAN_LITTLE and BIG_ENDIAN to BFD_ENDIAN_BIG.
239 2016-01-02 Mike Frysinger <vapier@gentoo.org>
241 * cgen-defs.h (current_state): Delete.
242 * sim-base.h (CURRENT_STATE_REG, CURRENT_STATE): Delete.
243 * sim-utils.c (current_state): Delete.
245 2015-12-30 Mike Frysinger <vapier@gentoo.org>
247 * sim-module.c (sim_pre_argv_init): Change STATE_MY_NAME assignment
250 2015-12-27 Mike Frysinger <vapier@gentoo.org>
252 * Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-hload.o.
254 2015-12-26 Mike Frysinger <vapier@gentoo.org>
256 * acinclude.m4 (AH_BOTTOM): Delete tconfig.h appending.
257 * config.in, configure: Regenerate.
258 * Make-common.in (sim-basics_h): Delete tconfig.h.
259 (distclean): Likewise.
260 * sim-core.c (device_io_read_buffer, device_io_write_buffer): Delete.
261 (new_sim_core_mapping): Delete WITH_HW and device *device.
262 (sim_core_map_attach, sim_core_attach): Likewise.
263 (sim_core_read_buffer): Delete WITH_DEVICES logic.
264 (sim_core_write_buffer): Likewise.
265 * sim-core.h (struct _sim_core_mapping): Delete WITH_HW and device
267 (sim_core_attach): Likewise.
268 (device_io_read_buffer, device_io_write_buffer): Delete.
269 * sim-n-core.h (sim_core_read_aligned_N): Delete WITH_DEVICES logic.
270 (sim_core_write_aligned_N): Likewise.
271 * tconfig.h: Delete file.
273 2015-12-26 Mike Frysinger <vapier@gentoo.org>
275 * sim-core.c (sim_core_read_buffer): Move cia decl to top of func.
276 Call sim_cpu_hw_io_read_buffer if cpu is valid.
277 (sim_core_write_buffer): Move cia decl to top of func. Call
278 sim_cpu_hw_io_write_buffer if cpu is valid.
280 2015-12-25 Mike Frysinger <vapier@gentoo.org>
282 * hw-properties.c (hw_find_ihandle_runtime_property): Delete
284 (hw_find_integer_property): Likewise.
285 (hw_find_integer_array_property): Likewise.
286 (hw_add_duplicate_property): Likewise.
288 2015-12-25 Mike Frysinger <vapier@gentoo.org>
290 * sim-config.h (WITH_ENGINE): Delete.
291 * sim-module.c (modules): Always include sim_engine_install.
293 2015-12-25 Mike Frysinger <vapier@gentoo.org>
295 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-model.o.
296 * cgen-types.h (SIM_HAVE_MODEL): Delete.
297 * sim-base.h: Always include sim-model.h.
298 * sim-config.h (WITH_DEFAULT_MODEL): Delete.
299 * sim-cpu.h (sim_cpu_base): Always declare mach/model members.
300 * sim-model.c (sim_model_init): Return when !WITH_MODEL_P.
301 [!WITH_MODEL_P] (sim_machs): Define.
302 * sim-model.h: Add some developer docs.
303 [!WITH_DEFAULT_MODEL] (mach_attr, WITH_DEFAULT_MODEL): Define.
304 (WITH_MODEL_P): Define.
305 * sim-module.c (modules): Always include sim_model_install.
306 * sim-profile.h (WITH_PROFILE_MODEL_P): Delete.
308 2015-12-25 Mike Frysinger <vapier@gentoo.org>
310 * sim-cpu.h: Rename MACH to SIM_MACH and MODEL to SIM_MODEL.
311 * sim-model.c: Likewise.
312 * sim-model.h: Likewise. Rename MACH_IMP_PROPERTIES to
313 SIM_MACH_IMP_PROPERTIES
315 2015-12-25 Mike Frysinger <vapier@gentoo.org>
317 * sim-core.c (device_error): Delete.
318 (sim_core_map_attach): Delete calls to device_error.
319 (sim_core_attach): Likewise.
320 * sim-core.h (device_error): Delete.
321 * sim-n-core.h (sim_core_read_aligned_N): Change device_error call
323 (sim_core_write_aligned_N): Likewise.
325 2015-12-25 Mike Frysinger <vapier@gentoo.org>
327 * sim-config.h (WITH_CALLBACK_MEMORY): Delete.
328 * sim-core.c (sim_core_write_buffer): Likewise.
329 * sim-n-core.h (sim_core_read_aligned_N): Likewise.
330 (sim_core_write_aligned_N): Likewise.
332 2015-12-25 Mike Frysinger <vapier@gentoo.org>
334 * dv-pal.c: Include config.h and sim-main.h.
335 (hw_pal_io_read_buffer): Always call CPU_INDEX.
337 2015-12-24 Mike Frysinger <vapier@gentoo.org>
339 * sim-options.c (standard_options): Always enable load-lma and
341 (standard_install): Always set STATE_LOAD_AT_LMA_P(sd) to 1.
343 2015-12-24 Mike Frysinger <vapier@gentoo.org>
345 * sim-module.c (MODULE_LIST): Delete.
347 2015-12-24 Mike Frysinger <vapier@gentoo.org>
349 * sim-options.c (OPTION_H8300H, OPTION_H8300S, OPTION_H8300SX):
350 Move to h8300/compile.c.
351 [SIM_H8300] (standard_options): Likewise.
352 (standard_option_handler): Likewise.
354 2015-12-24 Mike Frysinger <vapier@gentoo.org>
356 * sim-module.c [WITH_WATCHPOINTS] (modules): Always call
357 sim_watchpoint_install.
359 2015-12-24 Mike Frysinger <vapier@gentoo.org>
361 * sim-base.h [SIM_HAVE_FLATMEM] (sim_state_base): Delete flatmem code.
362 * sim-module.c [SIM_HAVE_FLATMEM] (modules): Always call
364 * sim-options.c (OPTION_MEM_SIZE): Delete.
365 [SIM_HAVE_FLATMEM] (standard_options): Delete flatmem code.
366 (standard_option_handler): Likewise.
368 2015-12-24 Mike Frysinger <vapier@gentoo.org>
370 * tconfig.h (SIM_HAVE_SIMCACHE): Delete.
372 2015-11-21 Mike Frysinger <vapier@gentoo.org>
375 * Makefile.in (CPPFLAGS, CXXFLAGS, LDFLAGS): Define.
377 2015-11-21 Mike Frysinger <vapier@gentoo.org>
380 * sim-utils.c (sim_do_commandf): Declare ret. Call va_start,
381 vasprintf, and va_end together. Check ret after va_end call.
383 2015-11-21 Mike Frysinger <vapier@gentoo.org>
385 * sim-types.h (SIM_PRI_TB): Define.
386 (PRI_TW, PRIiTW, PRIxTW): New PRI target word defines.
387 (PRI_TA, PRIiTA, PRIxTA): New PRI target address defines.
388 (PRI_TC, PRIiTC, PRIxTC): New PRI target cell defines.
389 (PRI_TF, PRIiTF, PRIxTF): New PRI target floating point defines.
391 2015-11-17 Mike Frysinger <vapier@gentoo.org>
393 * sim-main.h (WITH_MODULO_MEMORY): Delete.
394 * sim-core.c (new_sim_core_mapping): Always assign mask to modulo-1.
395 (sim_core_attach): Delete WITH_MODULO_MEMORY == 0 logic.
396 (sim_core_translate): Likewise.
397 * sim-core.h: Delete mention of WITH_MODULO_MEMORY.
399 2015-11-16 Mike Frysinger <vapier@gentoo.org>
401 * sim-close.c (__cgen_cpu_close, _cgen_cpu_close): Delete.
402 (cgen_cpu_close): Change to XCONCAT2.
404 2015-11-15 Mike Frysinger <vapier@gentoo.org>
406 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-reason.o, sim-reg.o,
409 2015-11-14 Mike Frysinger <vapier@gentoo.org>
411 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-close.o
412 * sim-close.c: New file.
414 2015-09-25 Andrew Bennett <andrew.bennett@imgtec.com>
415 Ali Lown <ali.lown@imgtec.com>
417 * sim-bits.h (EXTEND6): New macro.
418 (EXTEND12): New macro.
419 (EXTEND25): New macro.
421 2015-06-24 Mike Frysinger <vapier@gentoo.org>
423 * sim-trace.c (trace_one_insn): Delete.
424 * sim-trace.h (trace_one_insn): Delete.
426 2015-06-24 Mike Frysinger <vapier@gentoo.org>
428 * sim-trace.c (debug_printf): Rename to ...
429 (sim_debug_printf): ... this.
430 * sim-trace.h (debug_printf): Delete define.
431 (debug_printf): Rename to ...
432 (sim_debug_printf): ... this.
434 2015-06-24 Mike Frysinger <vapier@gentoo.org>
436 * sim-trace.c (OPTION_TRACE_REGISTER): New enum.
437 (trace_options): Add trace-register option.
438 (trace_option_handler): Handle OPTION_TRACE_REGISTER case.
439 (trace_idx_to_str): Handle TRACE_REGISTER_IDX case and re-indent.
440 * sim-trace.h (TRACE_REGISTER_IDX): New enum.
441 (TRACE_register, WITH_TRACE_REGISTER_P, STRACE_REGISTER_P,
442 TRACE_REGISTER_P, TRACE_REGISTER): Define.
444 2015-06-24 Mike Frysinger <vapier@gentoo.org>
446 * sim-trace.h (STRACE, STRACE_INSN, STRACE_DECODE, STRACE_EXTRACT,
447 STRACE_LINENUM, STRACE_MEMORY, STRACE_MODEL, STRACE_ALU, STRACE_CORE,
448 STRACE_EVENTS, STRACE_FPU, STRACE_VPU, STRACE_BRANCH, STRACE_SYSCALL,
449 STRACE_DEBUG): Define.
451 2015-06-24 Mike Frysinger <vapier@gentoo.org>
453 * sim-trace.c (trace_options): Update help text for trace-alu,
454 trace-fpu, trace-vpu, and trace-semantics.
455 * sim-trace.h (TRACE_ALU_IDX): Update comment text.
456 (TRACE_FPU_IDX, TRACE_VPU_IDX): Likewise.
458 2015-06-24 Mike Frysinger <vapier@gentoo.org>
460 * sim-assert.h (SIM_FILTER_PATH): Delete.
461 [!SIM_ASSERT, WITH_ASSERT]: Include libiberty.h.
462 (SIM_ASSERT): Replace SIM_FILTER_PATH with lbasename.
463 [!ASSERT, WITH_ASSERT]: Include libiberty.h.
464 (ASSERT): Replace SIM_FILTER_PATH with lbasename.
465 * sim-events.c: Include libiberty.h.
466 (ETRACE): Replace SIM_FILTER_PATH with lbasename.
468 2015-06-23 Mike Frysinger <vapier@gentoo.org>
470 * acinclude.m4 (AC_ARG_ENABLE(sim-bswap)): Call AS_HELP_STRING.
471 (AC_ARG_ENABLE(sim-cflags)): Likewise.
472 (AC_ARG_ENABLE(sim-debug)): Likewise.
473 (AC_ARG_ENABLE(sim-stdio)): Likewise.
474 (AC_ARG_ENABLE(sim-trace)): Likewise.
475 (AC_ARG_ENABLE(sim-profile)): Likewise.
476 (AC_ARG_ENABLE(sim-environment)): Likewise.
477 (AC_ARG_ENABLE(sim-alignment)): Likewise.
478 (AC_ARG_ENABLE(sim-assert)): Likewise.
479 (AC_ARG_ENABLE(sim-bitsize)): Likewise.
480 (AC_ARG_ENABLE(sim-endian)): Likewise.
481 (AC_ARG_ENABLE(sim-hostendian)): Likewise.
482 (AC_ARG_ENABLE(sim-float)): Likewise.
483 (AC_ARG_ENABLE(sim-scache)): Likewise.
484 (AC_ARG_ENABLE(sim-default-model)): Likewise.
485 (AC_ARG_ENABLE(sim-inline)): Likewise.
486 (AC_ARG_ENABLE(sim-packages)): Likewise.
487 (AC_ARG_ENABLE(sim-regparm)): Likewise.
488 (AC_ARG_ENABLE(sim-reserved-bits)): Likewise.
489 (AC_ARG_ENABLE(sim-smp)): Likewise.
490 (AC_ARG_ENABLE(sim-stdcall)): Likewise.
491 (AC_ARG_ENABLE(sim-xor-endian)): Likewise.
492 (AC_ARG_ENABLE(cgen-maint)): Likewise.
493 * configure: Regenerate.
495 2015-06-23 Mike Frysinger <vapier@gentoo.org>
497 * sim-config.h (WITH_TRACE): Define to ~TRACE_debug.
499 2015-06-23 Mike Frysinger <vapier@gentoo.org>
501 * cgen-trace.c [!__STDC__]: Delete.
502 * sim-trace.h [!__STDC__]: Likewise.
504 2015-06-21 Mike Frysinger <vapier@gentoo.org>
506 * sim-model.c (sim_model_init): Assert model is not NULL.
508 2015-06-21 Mike Frysinger <vapier@gentoo.org>
510 * sim-types.h: Move SIM_TYPES_H define to top of file. Include
511 stdint.h. Replace all signed/unsigned typedefs with int#_t and
514 2015-06-21 Mike Frysinger <vapier@gentoo.org>
516 * sim-alu.h (_SIM_ALU_H_): Rename to ...
517 (SIM_ALU_H): ... this.
518 * sim-assert.h (_SIM_ASSERT_H_): Rename to ...
519 (SIM_ASSERT_H): ... this.
520 * sim-basics.h (_SIM_BASICS_H_): Rename to ...
521 (SIM_BASICS_H): ... this.
522 * sim-bits.h (_SIM_BITS_H_): Rename to ...
523 (SIM_BITS_H): ... this.
524 * sim-endian.h (_SIM_ENDIAN_H_): Rename to ...
525 (SIM_ENDIAN_H): ... this.
527 2015-06-18 Mike Frysinger <vapier@gentoo.org>
529 * sim-syscall.c (sim_syscall_multi): Change unknown_syscall to a
532 2015-06-18 Mike Frysinger <vapier@gentoo.org>
534 * callback.c (cb_target_map_entry, cb_host_map_entry): Change map to
535 m for sentinel testing.
537 2015-06-17 Mike Frysinger <vapier@gentoo.org>
539 * sim-syscall.c: Include errno.h and targ-vals.h.
540 (sim_syscall_multi, sim_syscall): Define.
541 * sim-syscall.h (sim_syscall_multi, sim_syscall): Declare.
542 * syscall.c (cb_syscall): Extend comment.
544 2015-06-17 Mike Frysinger <vapier@gentoo.org>
546 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-syscall.o.
547 * sim-syscall.c: New file.
548 * sim-syscall.h: New file.
550 2015-06-17 Mike Frysinger <vapier@gentoo.org>
552 * callback.c (cb_target_map_entry, cb_host_map_entry): Define.
553 (cb_target_to_host_syscall): Rewrite to use cb_target_map_entry.
554 (cb_host_to_target_errno): Rewrite to use cb_host_map_entry.
555 (cb_host_str_syscall, cb_host_str_errno, cb_host_str_signal,
556 cb_target_str_syscall, cb_target_str_errno, cb_target_str_signal):
558 * gentmap.c (gen_targ_map_c): Output name field.
560 2015-06-12 Mike Frysinger <vapier@gentoo.org>
562 * acinclude.m4: Change configure.in to configure.ac.
563 * sim-config.h: Likewise.
565 2015-06-12 Mike Frysinger <vapier@gentoo.org>
567 * acinclude.m4 (sim-trace): Delete -DTRACE flags.
568 * configure: Regenerate.
570 2015-06-12 Mike Frysinger <vapier@gentoo.org>
572 * sim-trace.h (TRACE, TRACE_INSN, TRACE_DECODE, TRACE_EXTRACT,
573 TRACE_LINENUM, TRACE_MEMORY, TRACE_MODEL, TRACE_ALU, TRACE_CORE,
574 TRACE_EVENTS, TRACE_FPU, TRACE_VPU, TRACE_BRANCH, TRACE_SYSCALL,
575 TRACE_DEBUG): Define.
577 2015-06-12 Mike Frysinger <vapier@gentoo.org>
579 * sim-module.c (modules): Change WITH_TRACE to WITH_TRACE_ANY_P.
580 * sim-trace.c (trace_option_handler): Likewise.
581 * sim-trace.h (WITH_TRACE_ANY_P): Define.
582 (STRACE_ANY_P): Use WITH_TRACE_ANY_P.
583 (TRACE_ANY_P): Likewise.
585 2015-06-12 Mike Frysinger <vapier@gentoo.org>
587 * cgen-run.c (sim_resume): Rename TRACE_INSN_FINI to
588 CGEN_TRACE_INSN_FINI.
589 * cgen-trace.c: Rename trace_insn to cgen_trace_insn,
590 trace_result to cgen_trace_result, trace_insn_fini to
591 cgen_trace_insn_fini, trace_insn_init to cgen_trace_insn_init,
592 and trace_extract to cgen_trace_extract.
593 * cgen-trace.h (trace_insn_init): Rename to ...
594 (cgen_trace_insn_init): ... this.
595 (trace_insn_fini): Rename to ...
596 (cgen_trace_insn_fini): ... this.
597 (trace_insn): Rename to ...
598 (cgen_trace_insn): ... this.
599 (trace_extract): Rename to ...
600 (cgen_trace_extract): ... this.
601 (trace_result): Rename to ...
602 (cgen_trace_result): ... this.
603 (TRACE_RESULT_P): Rename to ...
604 (CGEN_TRACE_RESULT_P): ... this.
605 (TRACE_INSN_INIT): Rename to ...
606 (CGEN_TRACE_INSN_INIT): ... this. Change trace_insn_init to
607 cgen_trace_insn_init.
608 (TRACE_INSN_FINI): Rename to ...
609 (CGEN_TRACE_INSN_FINI): ... this. Change trace_insn_fini to
610 cgen_trace_insn_fini.
611 (TRACE_PRINTF): Rename to ...
612 (CGEN_TRACE_PRINTF): ... this.
613 (TRACE_INSN): Rename to ...
614 (CGEN_TRACE_INSN): ... this. Change trace_insn to cgen_trace_insn.
615 (TRACE_EXTRACT): Rename to ...
616 (CGEN_TRACE_EXTRACT): ... this. Change trace_extract to
618 (TRACE_RESULT): Rename to ...
619 (CGEN_TRACE_RESULT): ... this. Change TRACE_RESULT_P to
620 CGEN_TRACE_RESULT_P and trace_result to cgen_trace_result.
621 * genmloop.sh (@prefix@_pbb_before): Change TRACE_INSN_FINI to
622 CGEN_TRACE_INSN_FINI, TRACE_INSN_INIT to CGEN_TRACE_INSN_INIT, and
623 TRACE_INSN to CGEN_TRACE_INSN.
624 (@prefix@_pbb_after): Change TRACE_INSN_FINI to CGEN_TRACE_INSN_FINI.
626 2015-06-11 Mike Frysinger <vapier@gentoo.org>
628 * sim-events.c (ETRACE_P): Delete.
629 (ETRACE): Change ETRACE_P to STRACE_EVENTS_P(sd).
630 (update_time_from_event, sim_events_schedule_vtracef): Likewise.
631 * sim-events.h (struct _sim_events): Delete trace member.
632 * sim-trace.c (set_trace_option_mask): Delete trace_nr check and
633 always set STATE_TRACE_FLAGS(sd)[trace_nr] element.
635 2015-06-11 Mike Frysinger <vapier@gentoo.org>
637 * sim-trace.h (STRACE_ANY_P, STRACE_INSN_P, STRACE_DECODE_P,
638 STRACE_EXTRACT_P, STRACE_LINENUM_P, STRACE_MEMORY_P, STRACE_MODEL_P,
639 STRACE_ALU_P, STRACE_CORE_P, STRACE_EVENTS_P, STRACE_FPU_P,
640 STRACE_VPU_P, STRACE_BRANCH_P, STRACE_SYSCALL_P): Define.
642 2015-06-11 Mike Frysinger <vapier@gentoo.org>
644 * sim-trace.h (TRACE_USEFUL_MASK): Change to TRACE_xxx defines.
646 2015-06-11 Mike Frysinger <vapier@gentoo.org>
648 * sim-trace.h (WITH_TRACE_P): New define.
649 (WITH_TRACE_INSN_P, WITH_TRACE_DECODE_P, WITH_TRACE_EXTRACT_P,
650 WITH_TRACE_LINENUM_P, WITH_TRACE_MEMORY_P, WITH_TRACE_MODEL_P,
651 WITH_TRACE_ALU_P, WITH_TRACE_CORE_P, WITH_TRACE_EVENTS_P,
652 WITH_TRACE_FPU_P, WITH_TRACE_VPU_P, WITH_TRACE_BRANCH_P,
653 WITH_TRACE_SYSCALL_P, WITH_TRACE_DEBUG_P, STRACE_P, TRACE_P):
654 Redefine to use WITH_TRACE_P.
656 2015-06-09 Mike Stump <mrs@mrs.kithrup.com>
658 * sim-events.c (sim_events_schedule_after_signal): Fix spelling
659 mistake in call to sim_engine_abort.
661 2015-04-29 Nick Clifton <nickc@redhat.com>
664 * sim-fpu.c (INLINE_SIM_FPU): Fix static analysis warning by
665 increasing parenthesis around casts to signed values.
667 2015-04-21 Mike Frysinger <vapier@gentoo.org>
669 * gennltvals.sh: Add mcore support.
670 * nltvals.def: Regenerate.
672 2015-04-21 Mike Frysinger <vapier@gentoo.org>
674 * cgen.sh: Add +x permissions.
675 * genmloop.sh: Likewise.
676 * gentvals.sh: Likewise.
677 * gennltvals.sh (newlibroot): New variable to hold the path to newlib.
678 Change all uses of srcroot for newlib to newlibroot.
680 2015-04-18 Mike Frysinger <vapier@gentoo.org>
682 * sim-base.h (SIM_CPU): New typedef.
684 2015-04-18 Mike Frysinger <vapier@gentoo.org>
686 * cgen-engine.h (CIA_ADDR): Delete.
687 * sim-base.h: Update sim_cia example.
688 [!CIA_ADDR] (sim_cia): New typedef.
690 2015-04-17 Mike Frysinger <vapier@gentoo.org>
692 * cgen-utils.c (cgen_rtx_error): Change CIA_GET to CPU_PC_GET.
693 * sim-core.c (sim_core_read_buffer, sim_core_write_buffer): Likewise.
694 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Change CIA_SET to CPU_PC_SET.
695 * sim-run.c (sim_engine_run): Change CIA_GET to CPU_PC_GET and
696 CIA_SET to CPU_PC_SET.
698 2015-04-15 Mike Frysinger <vapier@gentoo.org>
700 * Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-cpu.o.
701 * sim-main.h (STATE_CPU): Remove from comment and define.
703 2015-04-13 Mike Frysinger <vapier@gentoo.org>
705 * acinclude.m4 (ACX_PKGVERSION): Change GDB to SIM.
706 * configure: Regenerate.
708 2015-04-13 Mike Frysinger <vapier@gentoo.org>
710 * sim-options.c: Include version.h.
711 (OPTIONS_VERSION): New enum.
712 (standard_options): Add "version".
713 (standard_option_handler): Handle OPTIONS_VERSION.
715 2015-04-13 Mike Frysinger <vapier@gentoo.org>
717 * Makefile.in (version.o): Change to using create-version.sh from gdb.
718 (create-version.sh): Delete.
720 2015-04-06 Mike Frysinger <vapier@gentoo.org>
722 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-engine.o and sim-hrw.o.
724 2015-04-01 Mike Frysinger <vapier@gentoo.org>
726 * run-sim.h, run.c: Delete.
727 * tconfig.h (SIM_HAVE_PROFILE, SIM_HAVE_BIENDIAN): Delete.
729 2015-03-31 Mike Frysinger <vapier@gentoo.org>
731 * config.in, configure: Regenerate.
732 * Make-common.in (CSEARCH): Add $(ZLIBINC).
733 (ZLIB, ZLIBINC): Define.
734 (BFD_LIB): Add $(ZLIB).
736 2015-03-31 Mike Frysinger <vapier@gentoo.org>
738 * cgen-mem.h (MEMOPS_INLINE): Change to EXTERN_INLINE.
739 * cgen-ops.h (SEMOPS_INLINE): Likewise.
741 2015-03-29 Mike Frysinger <vapier@gentoo.org>
743 * sim-arange.h (SIM_ARANGE_INLINE): Move above sim_addr_range_hit_p.
744 (sim_addr_range_hit_p): Change INLINE to SIM_ARANGE_INLINE.
745 * sim-inline.h (INLINE2): Define to gnu_inline when available.
747 2015-03-24 Mike Frysinger <vapier@gentoo.org>
749 * sim-profile.c (profile_pc_event): Get pc via sim_pc_get. Delete
750 usage of STATE_WATCHPOINTS.
751 (profile_pc_init): Delete STATE_WATCHPOINTS (sd)->pc check. Change
752 STATE_WATCHPOINTS (sd)->sizeof_pc to sizeof (sim_cia).
754 2015-03-24 Mike Frysinger <vapier@gentoo.org>
756 * tconfig.h: Note SIM_HAVE_PROFILE is deprecated.
758 2015-03-24 Mike Frysinger <vapier@gentoo.org>
760 * tconfig.h: Note SIM_HAVE_BIENDIAN is deprecated.
762 2015-03-24 Mike Frysinger <vapier@gentoo.org>
764 * acinclude.m4 (SIM_AC_OPTION_HARDWARE): Move default option setting
765 of enable_sim_hardware to AC_ARG_ENABLE.
767 2015-03-23 Mike Frysinger <vapier@gentoo.org>
769 * acinclude.m4 (SIM_AC_OPTION_HARDWARE): Delete SIM_DV_SOCKSER_O.
770 Add dv-sockser.o to sim_hw_objs.
772 2015-03-23 Mike Frysinger <vapier@gentoo.org>
774 * dv-sockser.c: Include config.h.
775 * dv-sockser.h: Include sim-inline.h.
776 [HAVE_DV_SOCKSER]: Move all prototypes here.
777 [!HAVE_DV_SOCKSER] (dv_sockser_status, dv_sockser_write,
778 dv_sockser_write_buffer, dv_sockser_read): New stub functions.
780 2015-03-16 Mike Frysinger <vapier@gentoo.org>
782 * gentmap.c, run.c: Convert old style prototypes.
784 2015-03-16 Mike Frysinger <vapier@gentoo.org>
786 * acinclude.m4 (SIM_AC_COMMON): Call AH_BOTTOM. Delete logic for
787 symlinking tconfig.h to tconfig.in.
788 * config.in, configure: Regenerate.
789 * nrun.c, run.c, sim-basics.h: Delete tconfig.h include.
790 * tconfig.in: Rename file ...
791 * tconfig.h: ... here.
793 2015-03-15 Mike Frysinger <vapier@gentoo.org>
795 * dv-socker.h (dv_sockser_install): Declare.
796 * sim-module.c: Include config.h.
797 [HAVE_DV_SOCKSER]: Include dv-sockser.h.
798 (modules) [HAVE_DV_SOCKSER]: Add dv_sockser_install.
799 * sim-module.h: Include gdb/remote-sim.h.
801 2015-03-14 Mike Frysinger <vapier@gentoo.org>
803 * Make-common.in (BUILT_SRC_FROM_COMMON): Delete.
804 (sim-inline.c): Delete rule.
806 2015-03-14 Mike Frysinger <vapier@gentoo.org>
808 * Make-common.in (SIM_RUN_OBJS): Change to nrun.o.
809 * run.c [SIM_USE_DEPRECATED_RUN_FRONTEND]: Issue a warning.
810 [!SIM_USE_DEPRECATED_RUN_FRONTEND]: Throw an error.
812 2015-03-14 Mike Frysinger <vapier@gentoo.org>
814 * sim-assert.h [!SIM_ASSERT, WITH_ASSERT]: Include sim-io.h.
815 [!ASSERT, WITH_ASSERT]: Likewise.
816 * sim-endian.c: Delete sim-io.h include.
818 2015-02-19 Mike Frysinger <vapier@gentoo.org>
820 * run-sim.h (sim_kill): Delete unused prototype.
822 2015-02-13 Chen Gang <gang.chen.5i5j@gmail.com>
824 * gentmap.c: Include "string.h".
826 2015-02-02 Chen Gang <gang.chen.5i5j@gmail.com>
828 * sim-options.c (sim_args_command): Call freeargv() when failure
831 2015-01-07 Joel Brobecker <brobecker@adacore.com>
833 * aclocal.m4, configure: Regenerate using automake 1.11.1.
835 2014-12-03 Joel Brobecker <brobecker@adacore.com>
837 * sim-io.c (sim_io_stat, sim_io_fstat): Adjust calls to "stat"
838 and "fstat" callbacks by calls to "to_stat" and "to_fstat" (resp)
839 callbacks following renaming in callback.h.
840 * syscall.c (cb_syscall): Likewise. Adjust calls to "lstat"
841 callback by call to "to_lstat" callback
843 2014-08-28 Gary Benson <gbenson@redhat.com>
845 * sim-trace.h (debug_printf): New define.
847 2014-08-19 Alan Modra <amodra@gmail.com>
849 * configure: Regenerate.
851 2014-08-15 Roland McGrath <mcgrathr@google.com>
853 * configure: Regenerate.
854 * config.in: Regenerate.
856 2014-03-10 Mike Frysinger <vapier@gentoo.org>
858 * sim-command.c (sim_do_command): Add const to cmd.
859 * sim-options.c (sim_args_command): Add const to cmd.
860 * sim-options.h (sim_args_command): Add const to cmd.
862 2014-03-05 Mike Frysinger <vapier@gentoo.org>
864 * sim-hload.c (sim_load): Add const to prog.
865 * sim-load.c (sim_load_file): Likewise.
866 * sim-utils.c (sim_analyze_program): Likewise.
867 * sim-utils.h (sim_analyze_program): Likewise.
868 (sim_load_file): Likewise.
870 2014-03-04 Mike Frysinger <vapier@gentoo.org>
872 * acinclude.m4 (build_warnings): Copy from gdb/configure.ac.
873 * callback.c (system): Delete unused prototype.
875 (os_shutdown): Likewise.
876 (os_unlink): Likewise.
878 (os_system): Likewise.
879 (os_rename): Likewise.
880 (os_write_stdout): Likewise.
881 (os_flush_stdout): Likewise.
882 (os_write_stderr): Likewise.
883 (os_flush_stderr): Likewise.
884 (os_write): Likewise.
885 (os_read_stdin): Likewise.
888 (os_lseek): Likewise.
889 (os_isatty): Likewise.
890 (os_get_errno): Likewise.
891 (os_close): Likewise.
892 (os_vprintf_filtered): Likewise.
893 (os_evprintf_filtered): Likewise.
894 (os_error): Likewise.
898 (wrap): Change to new style prototype.
901 (os_close): Likewise.
902 (os_poll_quit): Likewise.
903 (os_get_errno): Likewise.
904 (os_isatty): Likewise.
905 (os_lseek): Likewise.
908 (os_read_stdin): Likewise.
909 (os_write): Likewise.
910 (os_write_stdout): Likewise.
911 (os_flush_stdout): Likewise.
912 (os_write_stderr): Likewise.
913 (os_flush_stderr): Likewise.
914 (os_rename): Likewise.
915 (os_system): Likewise.
917 (os_unlink): Likewise.
919 (os_fstat): Likewise.
920 (os_lstat): Likewise.
921 (os_ftruncate): Likewise.
922 (os_truncate): Likewise.
924 (os_pipe_empty): Likewise.
925 (os_pipe_nonempty): Likewise.
926 (os_shutdown): Likewise.
928 (cb_read_target_syscall_maps): Likewise.
929 (cb_target_to_host_syscall): Likewise.
930 (cb_host_to_target_errno): Likewise.
931 (cb_target_to_host_open): Likewise.
932 (cb_store_target_endian): Likewise.
933 (cb_host_to_target_stat): Likewise.
934 * sim-hload.c (sim_load): Change to new style prototype.
935 * sim-load.c (sim_load_file): Change to new style prototype.
936 (report_transfer_performance): Likewise.
937 (xprintf_bfd_vma): Likewise.
938 * syscall.c (cb_get_string): Change to new style prototype.
939 (get_path): Likewise.
940 (cb_syscall): Likewise.
942 2013-10-15 Hans-Peter Nilsson <hp@axis.com>
944 * create-version.sh: Align parameters to match those of
945 ../../gdb/common/create-version.sh.
946 * Make-common.in (srcsim): New variable.
947 (version.c): Adjust call to create-version.sh as per above.
949 2013-09-23 Alan Modra <amodra@gmail.com>
951 * configure: Regenerate.
953 2013-09-03 Mike Stump <mikestump@comcast.net>
955 * sim-options.c (complete_option_list): Mark text and word const.
957 2013-06-28 Tom Tromey <tromey@redhat.com>
959 * Make-common.in (version.c): Use version.in, not
961 * create-version.sh: Likewise.
963 2013-06-24 Joel Brobecker <brobecker@adacore.com>
965 * create-version.sh: New script. Adapted from
966 gdb/commong/create-version.sh.
967 * Make-common.in (version.c): Update rule dependencies,
968 and re-implement using create-version.sh.
970 2013-06-21 Nick Clifton <nickc@redhat.com>
972 * gennltvals.sh: Add msp430 support.
973 * nltvals.def: Regenerate.
975 2013-06-03 Mike Frysinger <vapier@gentoo.org>
977 * acinclude.m4: Replace maintainer-mode code with AM_MAINTAINER_MODE.
978 * aclocal.m4, configure: Regenerate.
980 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
983 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Do not use
984 -Wformat-nonliteral with -Wno-format.
986 2013-03-26 Mike Frysinger <vapier@gentoo.org>
988 * acinclude.m4: Regenerate.
990 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
992 * acinclude.m4: Add SIM_DV_SOCKSER_O which is empty on hosts
993 which do not support dv-sockser.o. Add always as option to
994 first argument to SIM_AC_OPTION_HARDWARE. Fail if hardware
995 is always required to be enabled by simulator.
997 2012-08-28 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
999 * gennltvals.sh: Use libgloss/syscall.h for cr16.
1000 * nltvals.def: Regenerate.
1002 2012-06-16 Joel Brobecker <brobecker@adacore.com>
1004 * acinclude.m4 (SIM_AC_COMMON): Define PACKAGE.
1005 * config.in, configure: Regenerate.
1007 2012-05-24 Pedro Alves <palves@redhat.com>
1009 * sim-signal.h (sim_signal_to_target): Rename to ...
1010 (sim_signal_to_gdb_signal): ... this.
1011 * sim-signal.c (sim_signal_to_target): Rename to ...
1012 (sim_signal_to_gdb_signal): ... this.
1013 * sim-reason.c (sim_stop_reason): Adjust to rename.
1015 2012-05-24 Pedro Alves <palves@redhat.com>
1019 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
1021 2012-05-24 Pedro Alves <palves@redhat.com>
1025 Replace target_signal with gdb_signal throughout.
1027 2012-05-18 Nick Clifton <nickc@redhat.com>
1030 * callback.c: Include config.h before system header files.
1031 * cgen-trace.c: Likewise.
1032 * cgen-utils.c: Likewise.
1033 * gentmap.c: Likewise.
1035 2012-04-02 Mike Frysinger <vapier@gentoo.org>
1037 * hw-ports.c (hw_port_decode): Change "Unreconized" to "Unrecognized".
1039 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
1041 * sim-trace.c: Update the function prototype of save_data_size.
1042 Move the enum data_fmt from here...
1043 * sim-trace.h: ...to here.
1044 Add function prototype of save_data.
1046 2012-03-25 Mike Frysinger <vapier@gentoo.org>
1048 * sim-core.h (sim_core_trans_addr): Add prototype.
1050 2012-03-24 Hans-Peter Nilsson <hp@axis.com>
1052 * nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza
1053 missing in last change.
1055 2012-03-24 Mike Frysinger <vapier@gentoo.org>
1057 * acinclude.m4 (SIM_AC_COMMON): Call AC_USE_SYSTEM_EXTENSIONS.
1058 * nrun.c: Include string.h/strings.h.
1059 * aclocal.m4, config.in, configure: Regenerate.
1061 2012-03-22 Mike Frysinger <vapier@gentoo.org>
1063 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Copy AC_ARG_ENABLE(werror),
1064 WERROR_CFLAGS, and build_warnings from gdb/configure.ac. Comment
1065 out -Werror initialization.
1067 2012-03-19 Mike Frysinger <vapier@gentoo.org>
1069 * Make-common.in (TAGS): Change a-z to [:lower:].
1070 * acinclude.m4 (sim-trace): Likewise.
1071 * gennltvals.sh: Change A-Z0-9 to [:upper:][:digit:].
1072 Change A-Za-z0-9 to [:alnum:].
1074 2012-03-18 Mike Frysinger <vapier@gentoo.org>
1076 * nrun.c (main): Display strsignal of sigrc.
1078 2012-01-06 Mike Frysinger <vapier@gentoo.org>
1080 * Makefile.in (abs_srcdir): Declare.
1081 (srcroot): Define in terms of abs_srcdir.
1082 (headers): Change srcdir to abs_srcdir.
1084 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1086 * dv-sockser.h, sim-assert.h, sim-fpu.c: Reformat the copyright
1089 2011-12-19 Joel Brobecker <brobecker@adacore.com>
1091 * Make-common.in (hw-config.h): Work around bug in Solaris 2.8
1092 system bourne shell.
1094 2011-12-03 Mike Frysinger <vapier@gentoo.org>
1096 * syscall.c (cb_get_string): Rename from "get_string".
1097 (get_path): Rename get_string call to cb_get_string.
1099 2011-12-03 Mike Frysinger <vapier@gentoo.org>
1101 * Make-common.in (VPATH): Add $(srccom).
1103 (DEPMODE, DEPDIR, depcomp, COMPILE.pre, COMPILE.post, COMPILE,
1104 POSTCOMPILE): New variables.
1105 (.c.o): Replace recipe with call to $(COMPILE) and $(POSTCOMPILE).
1106 Include dependency files, when using GNU Make. Delete all
1107 dependency-only rules.
1108 * aclocal.m4: Include ../../config/depstand.m4. Call
1109 ZW_CREATE_DEPDIR and ZW_PROG_COMPILER_DEPENDENCIES.
1110 (MAKE, GMAKE): New substs.
1112 2011-11-07 Mike Frysinger <vapier@gentoo.org>
1115 * configure.ac (AC_CHECK_FUNCS): Add posix_fallocate.
1116 * configure, config.in: Regenerate.
1117 * dv-cfi.c (attach_cfi_regs): Check for HAVE_POSIX_FALLOCATE.
1119 2011-10-19 Mike Frysinger <vapier@gentoo.org>
1121 * acinclude.m4: Call AC_CHECK_LIB when $hardware contains cfi.
1123 2011-10-18 John Wehle <john@feith.com> (tiny patch)
1125 * sim-profile.c (profile_info): Only print the title once.
1127 2011-10-17 Mike Frysinger <vapier@gentoo.org>
1129 * acinclude.m4: Rename from aclocal.m4.
1130 * aclocal.m4: Regenerate.
1132 2011-10-17 Mike Frysinger <vapier@gentoo.org>
1134 * aclocal.m4: Change AC_PREREQ comment to 2.64.
1135 * common.m4: Delete.
1136 * configure.ac: Change AC_PREREQ to 2.64. Replace AC_CONFIG_HEADER
1137 call and common.m4 include with SIM_AC_COMMON(cconfig.h).
1138 * configure: Regenerate.
1140 2011-10-14 Alexey Makhalov <makhaloff@gmail.com>
1142 * sim-alu.h (ALU32_AND): Clear carry flag.
1143 (ALU32_AND): Clear carry flag.
1145 2011-10-09 Mike Frysinger <vapier@gentoo.org>
1147 * dv-cfi.c: Include stdbool.h.
1149 2011-10-09 Mike Frysinger <vapier@gentoo.org>
1151 * dv-cfi.c: Replace devices.h include with hw-base.h and hw-main.h.
1153 2011-10-04 Mike Frysinger <vapier@gentoo.org>
1155 * aclocal.m4 (SIM_AC_COMMON): Call AM_ZLIB, ACX_PKGVERSION, and
1156 ACX_BUGURL. Define PKGVERSION and REPORT_BUGS_TO.
1158 2011-07-12 Mike Frysinger <vapier@gentoo.org>
1160 * sim-command.c: Include sim-options.h.
1162 2011-07-12 Mike Frysinger <vapier@gentoo.org>
1164 * aclocal.m4: Move sinclude comment after AC_INIT comment.
1166 2011-07-12 Mike Frysinger <vapier@gentoo.org>
1168 * aclocal.m4 (SIM_AC_COMMON): Call AC_REQUIRE on AC_PROG_CC.
1169 Delete direct call to AC_PROG_CC.
1171 2011-07-05 Mike Frysinger <vapier@gentoo.org>
1173 * sim-command.c: New file.
1174 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-command.o.
1175 (sim-command.o): New rule.
1177 2011-05-27 Mike Frysinger <vapier@gentoo.org>
1179 * sim-options.c (standard_option_handler): Remove arg[0] check
1180 when freeing simulator_sysroot. Only strdup arg when arg[0] is
1181 not an empty string, otherwise assign "" back to it.
1183 2011-05-26 Mike Frysinger <vapier@gentoo.org>
1185 * nltvals.def: Regenerate to include Blackfin syscalls again.
1187 2011-05-25 Mike Frysinger <vapier@gentoo.org>
1189 * sim-trace.c (OPTION_TRACE_SYSCALL): New enum.
1190 (trace_options): Handle "trace-syscall" with OPTION_TRACE_SYSCALL.
1191 (trace_option_handler): Handle OPTION_TRACE_SYSCALL.
1192 (trace_idx_to_str): Likewise.
1193 * sim-trace.h (TRACE_SYSCALL_IDX): New enum.
1194 (TRACE_syscall): Define.
1195 (WITH_TRACE_SYSCALL_P): Likewise.
1196 (TRACE_SYSCALL_P): Likewise.
1198 2011-05-23 Mike Frysinger <vapier@gentoo.org>
1200 * dv-glue.c (hw_glue_finish): Move "name" to function scope and
1201 remove now-unnecessary sub-scope for glue->type setting.
1202 Check to see if the "reg" property exists before we use it, and
1203 if it doesn't exist, error out for "glue" devices.
1205 2011-05-23 Mike Frysinger <vapier@gentoo.org>
1207 * dv-glue.c (hw_glue_finish): Set type to glue_or when name is
1208 glue-or, and set type to glue_xor when name is glue-xor.
1209 (hw_glue_port_event): Return immediately when type is glue_io
1210 or unmatched. Handle glue_or and glue_xor types. Move HW_TRACE
1211 and hw_port_event calls from glue_and to end of function.
1213 2011-05-11 Mike Frysinger <vapier@gentoo.org>
1215 * callback.c, dv-pal.c, dv-sockser.c, hw-base.c, hw-device.c,
1216 hw-instances.c, hw-ports.c, hw-properties.c, hw-tree.c, sim-abort.c,
1217 sim-arange.c, sim-config.c, sim-core.c, sim-engine.c, sim-events.c,
1218 sim-hw.c, sim-io.c, sim-memopt.c, sim-options.c, sim-profile.c,
1219 sim-resume.c, sim-stop.c, syscall.c: Add space before parenthesis
1220 around function arguments.
1222 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1224 * sim-options.c (complete_option_list, sim_complete_command):
1227 2011-04-02 Mike Frysinger <vapier@gentoo.org>
1229 * dv-glue.c: Fix up style.
1231 2011-04-02 Mike Frysinger <vapier@gentoo.org>
1233 * hw-alloc.c (hw_alloc_data): Adjust brace.
1234 * hw-base.c (hw_base_data): Likewise.
1235 (generic_hw_unit_decode): Fix indentation.
1236 * hw-device.h (_hw_unit, enum, hw): Adjust braces.
1237 * hw-events.c (hw_event, hw_event_data): Likewise.
1238 * hw-handles.c (hw_handle_mapping, hw_handle_data): Likewise.
1239 * hw-instances.c (hw_instance_data): Likewise.
1240 * hw-instances.h (hw_instance): Likewise.
1241 * hw-main.h (hw_descriptor, enum): Likewise.
1242 * hw-ports.c (hw_port_edge, hw_port_data, empty_hw_ports): Likewise.
1243 * hw-ports.h (hw_port_descriptor): Likewise.
1244 * hw-properties.c (hw_property_data): Likewise.
1245 * hw-properties.h (enum, hw_property, _ihandle_runtime_property_spec,
1246 _range_property_spec, _reg_property_spec): Likewise.
1247 * hw-tree.c (_name_specifier, printer): Likewise.
1248 (split_device_specifier, parse_string_property, hw_tree_traverse,
1249 print_size, print_reg_property, print_string, print_properties):
1252 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1254 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add cfi to default list.
1255 * Make-common.in (dv-cfi.o): New rule.
1256 * dv-cfi.c, dv-cfi.h: New files.
1258 2011-03-21 Kevin Buettner <kevinb@redhat.com>
1260 * gennltvals.sh: Search sys/_default_fcntl.h, in addition to
1261 fcntl.h and sys/fcntl.h, for constants.
1262 * nltvals.def: Regenerate.
1263 * sim-io.c (sim_io_stat, sim_io_fstat): New functions.
1264 * sim-io.h (sys/types.h, sys/stat.h): Include.
1265 (sim_io_stat, sim_io_fstat): Declare.
1267 2011-03-14 Mike Frysinger <vapier@gentoo.org>
1269 * callback.c, cgen-engine.h, dv-core.c, dv-glue.c, dv-pal.c,
1270 hw-base.c, hw-device.c, hw-device.h, hw-handles.c, hw-instances.c,
1271 hw-ports.c, hw-ports.h, hw-properties.c, hw-tree.c, nrun.c,
1272 run-sim.h, run.c, sim-alu.h, sim-assert.h, sim-base.h, sim-basics.h,
1273 sim-config.c, sim-core.c, sim-core.h, sim-engine.h, sim-events.c,
1274 sim-events.h, sim-fpu.c, sim-hw.c, sim-inline.h, sim-load.c,
1275 sim-memopt.c, sim-n-core.h, sim-options.c, sim-profile.c,
1276 sim-signal.c, sim-trace.c, sim-trace.h, sim-utils.c, sim-watch.c,
1277 syscall.c: Trim trailing whitespace.
1279 2011-03-05 Mike Frysinger <vapier@gentoo.org>
1281 * gennltvals.sh: Handle bfin targets.
1282 * nltvals.def: Regenerate.
1284 2011-02-25 Kevin Buettner <kevinb@redhat.com>
1286 * callback.c (fdbad): Return EBADF rather than EINVAL for bad
1289 2011-02-14 Mike Frysinger <vapier@gentoo.org>
1291 * hw-alloc.c (hw_alloc_data): Delete zalloc_p.
1292 (hw_zalloc, hw_malloc): Delete zalloc_p reference.
1293 (hw_free): Drop zfree logic and always call free.
1294 * hw-base.c (hw_delete): Change zfree to free.
1295 * hw-handles.c (hw_handle_remove_ihandle): Likewise.
1296 (hw_handle_remove_phandle): Likewise.
1297 * hw-instances.c (hw_instance_delete): Likewise.
1298 * hw-tree.c (parse_reg_property): Likewise.
1299 (parse_ranges_property): Likewise.
1300 (parse_string_property): Likewise.
1301 * sim-core.c (sim_core_uninstall): Likewise.
1302 * sim-cpu.c (sim_cpu_free_all): Likewise.
1303 * sim-hw.c (sim_hw_uninstall): Likewise.
1304 * sim-memopt.c (do_memopt_delete): Likewise.
1305 (sim_memory_uninstall): Likewise.
1306 * sim-module.c (sim_module_uninstall): Likewise.
1307 * sim-options.c (sim_parse_args): Likewise.
1308 * sim-profile.c (profile_pc_cleanup): Likewise.
1309 (profile_uninstall): Likewise.
1310 * sim-watch.c (do_watchpoint_delete): Likewise.
1311 * sim-utils.c (zfree): Delete.
1312 (sim_state_free): Change zfree to free.
1313 * sim-utils.h (zfree): Delete.
1315 2011-02-13 Mike Frysinger <vapier@gentoo.org>
1317 * sim-events.h (_sim_events.time_from_event): Change type to signed64.
1319 2011-01-12 Mike Frysinger <vapier@gentoo.org>
1321 * sim-hw.c (sim_hw_uninstall): Uncomment hw_tree_delete.
1323 2011-01-12 Mike Frysinger <vapier@gentoo.org>
1325 * sim-module.c (sim_pre_argv_init): Return SIM_RC_FAIL when asprintf
1327 * sim-options.c (sim_parse_args): Issue an error and return SIM_RC_FAIL
1328 when asprintf fails.
1329 * sim-utils.c (sim_do_commandf): Issue an error and return when
1331 * sim-watch.c (sim_watchpoint_install): Return SIM_RC_FAIL when
1334 2011-01-11 Mike Frysinger <vapier@gentoo.org>
1336 * sim-memopt.c (do_memopt_add): Set nr_bytes to s.st_size before
1337 bytes has been calculated and when mmap_next_fd is valid and
1339 (memory_option_handler): Allow missing size when mmap_next_fd is
1342 2011-01-10 Mike Frysinger <vapier@gentoo.org>
1344 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set $hardware to $2 when $2 is
1345 not empty, and always append $3 to $hardware.
1347 2011-01-10 Mike Frysinger <vapier@gentoo.org>
1349 * hw-device.h (hw_abort, hw_vabort, hw_halt): Add noreturn attribute.
1350 * sim-hw.h (sim_hw_abort): Likewise.
1352 2011-01-05 Mike Frysinger <vapier@gentoo.org>
1354 * sim-load.c (sim_load_file): Change buffer type to unsigned char *.
1356 2011-01-05 Joel Brobecker <brobecker@adacore.com>
1358 * run.1: Copyright year update.
1360 2010-12-28 Mike Frysinger <vapier@gentoo.org>
1362 * hw-alloc.h (HW_NALLOC): Define.
1364 010-12-28 Mike Frysinger <vapier@gentoo.org>
1366 * hw-alloc.h (HW_NZALLOC): Change ME,TYPE,N to me,type,n.
1368 2010-12-15 Mike Frysinger <vapier@gentoo.org>
1370 * sim-memopt.c (OPTION_MAP_INFO): Define.
1371 (memory_options): Handle --map-info.
1372 (memory_option_handler): Handle OPTION_MAP_INFO.
1374 2010-11-22 Mike Frysinger <vapier@gentoo.org>
1376 * sim-profile.c (PROFILE_PC_FREQ, PROFILE_PC_NR_BUCKETS,
1377 PROFILE_PC_SHIFT, PROFILE_PC_START, PROFILE_PC_END,
1378 PROFILE_INSN_COUNT): Add stubs when profile is disabled.
1380 2010-11-22 Mike Frysinger <vapier@gentoo.org>
1382 * sim-core.c (WITH_HW): Add device casts to device_error,
1383 device_io_read_buffer, and device_io_write_buffer.
1385 2010-11-16 Mike Frysinger <vapier@gentoo.org>
1387 * dv-sockser.c (dv_sockser_write_buffer): New function.
1388 (dv_sockser_write): Rewrite to use dv_sockser_write_buffer.
1389 * dv-sockser.h (dv_sockser_write_buffer): New prototype.
1391 2010-10-07 Hans-Peter Nilsson <hp@axis.com>
1393 * callback.c (os_lseek): Call wrap on lseek result.
1395 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
1397 * dv-sockser.c (dv_sockser_init): Check error return from socket()
1398 call by its equality to -1 not by it being negative.
1399 (connected_p): Likewise for accept() call.
1401 2010-04-23 Mike Frysinger <vapier@gentoo.org>
1403 * sim-fpu.c (sim_fpu_zero, sim_fpu_qnan): Add 0 initializers.
1405 2010-04-21 Mike Frysinger <vapier@gentoo.org>
1407 * profile.c (sim_profile_print_bar): Add cpu argument.
1409 2010-04-21 Mike Frysinger <vapier@gentoo.org>
1411 * sim-profile.h (sim_profile_print_bar): Use sim_cpu, not SIM_CPU.
1413 2010-04-21 Mike Frysinger <vapier@gentoo.org>
1415 * sim-profile.c (profile_vprintf, profile_printf): New functions.
1416 (profile_print_pc): Convert sim_io_printf to profile_printf.
1417 (profile_print_insn): Likewise.
1418 (profile_print_memory): Likewise.
1419 (profile_print_core): Likewise.
1420 (profile_print_model): Likewise.
1421 (sim_profile_print_bar): Likewise.
1422 (profile_print_speed): Likewise.
1423 (profile_print_addr_ranges): Likewise.
1424 (profile_info): Likewise.
1425 * sim-profile.h (sim_profile_print_bar): Add cpu argument.
1427 2010-04-19 Mike Frysinger <vapier@gentoo.org>
1429 * sim-model.c (OPTION_MODEL): Convert to enum.
1430 (OPTION_MODEL_INFO): New enum.
1431 (model_options): Add model-info/info-model entries.
1432 (model_option_handler): Handle OPTION_MODEL_INFO.
1434 2010-04-13 Mike Frysinger <vapier@gentoo.org>
1436 * dv-sockser.h (DV_SOCKSER_DISCONNECTED): Define.
1437 * dv-sockser.c (dv_sockser_status): Set DV_SOCKSER_DISCONNECTED
1440 2010-04-13 Mike Frysinger <vapier@gentoo.org>
1442 * sim-hrw.c (sim_write): Add const to buf arg.
1443 * sim-utils.h (sim_write_fn): Likewise.
1445 2010-04-12 Mike Frysinger <vapier@gentoo.org>
1447 * sim-profile.h (PROFILE_BRANCH_TAKEN, PROFILE_BRANCH_UNTAKEN): New
1450 2010-04-12 Mike Frysinger <vapier@gentoo.org>
1452 * dv-core.c (dv_core_descriptor): Add NULL initializer.
1453 * dv-glue.c (hw_glue_ports, dv_glue_descriptor): Likewise.
1454 * dv-pal.c (hw_pal_ports, dv_pal_descriptor): Likewise.
1455 * dv-sockser.c (sockser_options): Likewise.
1456 * hw-ports.c (empty_hw_ports): Likewise.
1457 * sim-hw.c (hw_options): Likewise.
1458 * sim-model.c (model_options): Likewise.
1459 * sim-options.c (standard_options): Likewise.
1460 * sim-profile.c (profile_options): Likewise.
1461 * sim-trace.c (trace_options): Likewise.
1462 * sim-watch.c (watchpoint_options): Likewise.
1464 2010-04-12 Mike Frysinger <vapier@gentoo.org>
1466 * sim-options.c (dup_arg_p): Add "const" to the "arg" argument,
1467 the local "arg_table" variable, and the xmalloc cast.
1469 2010-04-10 Mike Frysinger <vapier@gentoo.org>
1471 * sim-fpu.c (sim_fpu_print_status): Add const markings to local
1473 (sim_fpu_print_func): Add const markings to format buffer.
1475 2010-04-10 Mike Frysinger <vapier@gentoo.org>
1477 * sim-fpu.c (sim_fpu_print_status): Remove duplicate break statements.
1479 2010-04-10 Mike Frysinger <vapier@gentoo.org>
1481 * sim-trace.c (save_data): Add const markings to "buf" argument.
1483 2010-04-10 Mike Frysinger <vapier@gentoo.org>
1485 * sim-options.c (standard_option_handler): Add const markings to
1488 2010-04-02 Mike Frysinger <vapier@gentoo.org>
1490 * hw-ports.h: Fix spelling typos.
1492 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1494 * configure.ac: Check for socklen_t.
1495 * configure, config.in: Regenerated.
1496 * dv-sockser.c (connected_p): Change addrlen type to socklen_t.
1498 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1500 * sim-utils.c (sim_io_eprintf_cpu): Use %s with printf string.
1501 * sim-hw.c (hw_option_handler): Likewise.
1503 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1505 * sim-watch.c (watchpoint_type_to_str): Add const to return.
1506 (interrupt_nr_to_str): Likewise.
1507 (default_interrupt_names): Add const to pointer type.
1508 (sim_watchpoint_install): Add const to prefix.
1509 * sim-watch.h (struct _sim_watchpoints): Add const to interrupt_names.
1511 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1513 * sim-core.c (sim_core_read_buffer): Change raddr to address_word.
1514 (sim_core_write_buffer): Likewise.
1516 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1518 * sim-trace.c (trace_option_handler): Move cpu_nr decl behind
1519 the SIM_HAVE_ADDR_RANGE define.
1521 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1523 * sim-core.h (device_error): Add const to message, and add printf
1526 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1528 * sim-profile.c (profile_print_addr_ranges): Wrap with the
1529 SIM_HAVE_ADDR_RANGE define.
1531 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1533 * dv-glue.c (hw_glue_ports): Swap static and const.
1535 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1537 * nrun.c (usage): Use void in definition.
1538 * sim-options.c (dup_arg_p): Convert old-style function definition.
1539 (sim_parse_args): Likewise.
1540 (sim_print_help): Likewise.
1541 * sim-trace.c (set_trace_option_mask): Likewise.
1542 (set_trace_option): Likewise.
1543 * sim-utils.c (sim_analyze_program): Likewise.
1544 (sim_elapsed_time_get): Likewise.
1545 (sim_elapsed_time_since): Likewise.
1547 2010-03-22 Mike Frysinger <vapier@gentoo.org>
1549 * sim/common/sim-options.c (enum): Remove SIM_HAVE_BIENDIAN ifdef.
1550 (standard_options): Likewise.
1551 (standard_option_handler): Likewise.
1553 2010-03-16 Mike Frysinger <vapier@gentoo.org>
1555 * hw-ports.c (TRACE): Delete.
1556 * hw-properties.c (TRACE): Delete.
1557 (hw_find_ihandle_runtime_property): Change TRACE to HW_TRACE.
1558 (hw_find_integer_property): Likewise.
1559 (hw_find_integer_array_property): Likewise.
1560 (hw_add_duplicate_property): Likewise.
1562 2010-03-15 Mike Frysinger <vapier@gentoo.org>
1564 * hw-properties.h (hw_add_boolean_property): Rename "bool" to
1567 2010-02-04 Mike Frysinger <vapier@gentoo.org>
1569 * sim-model.c: Include sim-model.h
1571 2010-02-04 Mike Frysinger <vapier@gentoo.org>
1573 * sim-base.h: Declare sim_state.cpu as a pointer in the comment. Drop
1574 & from the STATE_CPU() examples.
1576 2010-01-24 Doug Evans <dje@sebabeach.org>
1578 * cgen-accfp.c (fextsfdf): New arg how. All callers updated.
1579 (ftruncdfsf, floatsisf, flostsidf, ufloatsisf, fixsfsi, fixdfsi,
1581 * cgen-fpu.h (CGEN_FPCONV_KIND): New enum.
1582 (struct cgen_fp_ops): Update signatures of floating point conversion
1585 * Make-common.in (CGEN_SIM_DEPS): Define.
1586 (CGEN_INCLUDE_DEPS): Use it.
1587 (CGEN_MAIN_CPU_DEPS): Simplify.
1589 2010-01-22 Doug Evans <dje@sebabeach.org>
1591 * cgen-ops.h (SUBWORDXFSI): Fix word ordering.
1592 (SUBWORDTFSI, JOINSIDI): Ditto.
1594 2010-01-05 Doug Evans <dje@sebabeach.org>
1596 * cgen-types.h (SETDI): Delete, unused.
1598 2009-12-02 Doug Evans <dje@sebabeach.org>
1600 * cgen-engine.h: Remove duplicated comment.
1602 2009-11-23 Doug Evans <dje@sebabeach.org>
1604 * cgen-engine.h (EXTRACT_MSB0_SINT): Renamed from EXTRACT_MSB0_INT.
1605 (EXTRACT_LSB0_SINT): Renamed from EXTRACT_LSB0_INT.
1607 2009-11-22 Doug Evans <dje@sebabeach.org>
1609 * cgen-engine.h (EXTRACT_MSB0_LGSINT, EXTRACT_MSB0_LGUINT): Define.
1610 (EXTRACT_LSB0_LGSINT, EXTRACT_LSB0_LGUINT): Define.
1611 (EXTRACT_FN, SEMANTIC_FN): Use CGEN_INSN_WORD in prototype
1612 instead of CGEN_INSN_INT.
1614 * cgen-trace.h (trace_extract): Add cast to fix warning.
1616 2009-11-05 Doug Evans <dje@sebabeach.org>
1618 * cgen-mem.h (DECLARE_GETT): Don't inline.
1619 (DECLARE_SETT): Ditto.
1621 2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
1623 * sim-inline.h: Fix spelling error.
1625 2009-10-02 Ralf Corsepius <ralf.corsepius@rtems.org>
1627 * Make-common.in: Add datarootdir.
1629 2009-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1631 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS)
1632 (SIM_CHECK_MEMBERS_1): Remove.
1633 * configure.ac: Replace SIM_CHECK_MEMBERS call with equivalent
1634 AC_CHECK_MEMBERS one.
1635 * configure: Regenerate.
1637 * aclocal.m4 (SIM_CHECK_MEMBER): Use AU_ALIAS to define, not defn.
1638 * configure: Regenerate.
1640 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1642 * config.in: Regenerate.
1643 * configure: Likewise.
1645 * aclocal.m4 (SIM_CHECK_MEMBER): Replace definition with
1646 definition of AC_CHECK_MEMBER.
1648 * aclocal.m4: m4_include toplevel config/override.m4.
1649 * configure: Regenerate.
1651 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1653 * Makefile.in (datarootdir): New variable.
1655 2009-07-07 Doug Evans <dje@sebabeach.org>
1657 * Make-common.in (CPU_DIR): Define.
1659 2009-07-06 Doug Evans <dje@sebabeach.org>
1661 * Make-common.in (CGEN_CPU_EXTR,CGEN_CPU_READ): Pass canonical
1662 identifiers for file types rather than encoding internal
1663 implementation details of cgen.sh.
1664 (CGEN_CPU_WRITE,CGEN_CPU_SEM,CGEN_CPU_SEMSW): Ditto.
1665 * cgen.sh: Add support for parallel makes.
1666 Rewrite cpu/decode handling to avoid generating "extrafiles" twice.
1668 2009-05-18 Jon Beniston <jon@beniston.com>
1670 * gennltvals.sh: Add lm32 target.
1671 * nltvals.def: Add lm32 syscall definitions.
1673 2009-03-19 J"orn Rennecke <joern.rennecke@arc.com> (tiny change)
1675 Speed up simulator startup:
1676 * sim-utils.c (zalloc): Use xcalloc.
1678 2009-01-07 Hans-Peter Nilsson <hp@axis.com>
1680 * cgen-ops.h (ADDQI, SUBQI, MULQI, NEGQI, ABSQI, ADDHI, SUBHI)
1681 (MULHI, NEGHI, ABSHI, ADDSI, SUBSI, MULSI, NEGSI, ABSSI, ADDDI)
1682 (SUBDI, MULDI, NEGDI, ABSDI): Cast arguments to the unsigned type
1683 variant; UQI, UHI, USI, UDI, and cast the result to the signed
1684 type, QI, HI, SI, DI.
1686 * callback.c (os_error): Mark as being a noreturn function.
1687 * sim-io.h (sim_io_error): Similar for sim_io_error.
1689 2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
1691 * aclocal.m4: Fix underquoting of function names.
1693 2008-10-21 Julian Brown <julian@codesourcery.com>
1695 * Make-common.in (run$(EXEEXT)): Add LDFLAGS.
1697 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
1699 * common.m4: Add test for libz and zlib.h.
1700 * configure: Regenerate to track ../common/common.m4 changes.
1703 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
1704 Daniel Jacobowitz <dan@codesourcery.com>
1705 Joseph Myers <joseph@codesourcery.com>
1707 * aclocal.m4: Include ../../config/acx.m4.
1708 * common.m4: Use ACX_PKGVERSION and ACX_BUGURL.
1709 * configure, config.in: Regenerate.
1710 * Make-common.in (LIB_OBJS): Add version.o.
1711 (version.c, version.o): New rules.
1712 * run.c: Include version.h.
1713 (usage): Add help parameter. Print output either to stdout or
1714 stderr depending on that parameter.
1715 (print_version): New.
1716 (main): Check for --help and --version.
1717 * run-sim.h (sim_target_display_usage): Add help parameter.
1720 2008-04-14 Hans Kester <kester.hans@gmail.com>
1722 * sim-signal.c: Define missing signals for _WIN32.
1724 2008-02-12 M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
1726 * gennltvals.sh: Add cr16.
1727 * nltvals.def: Rebuild.
1729 2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
1731 * callback.c (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add functions.
1732 * syscall.c (cb_syscall): Test for stdin/out/err, not just fd 0/1/2.
1734 2007-08-10 Nick Clifton <nickc@redhat.com>
1736 * sim-memopt.c (memory_options): Mention that the
1737 --memory-size switch accepts suffixes.
1738 (parse_size): Handle a suffix on the size value.
1739 * sim-options.c (standard_options): Mention that the mem-size
1740 switch accepts suffixes.
1741 (standard_option_handler): Handle a suffix on the size value.
1743 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
1745 * acconfig.h: Remove.
1746 * config.in: Regenerate.
1748 2006-11-07 Thiemo Seufer <ths@mips.com>
1750 * gentmap.c: Fix compile time warning.
1752 2006-11-07 Thiemo Seufer <ths@mips.com>
1754 * sim-base.h (text_start, text_end, start_addr): Use bfd_vma type
1755 for bfd text addresses.
1757 2006-08-29 Thiemo Seufer <ths@mips.com>
1758 Nigel Stephens <nigel@mips.com>
1760 * sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for
1761 SIM_QUIET_NAN_NEGATED.
1763 2006-08-29 Nigel Stephens <nigel@mips.com>
1765 * sim-profile.c (profile_pc_init): Initialise default profiling
1766 frequency to a prime number.
1767 (profile_print_pc): Convert gmon.out sample data into target
1770 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
1772 * aclocal.m4: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
1773 * common.m4: Likewise.
1774 * configure: Regenerated.
1776 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
1778 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR.
1779 * configure: Regenerated.
1781 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
1783 * Make-common.in: Replace INTLLIBS and INTLDEPS with LIBINTL
1784 and LIBINTL_DEP everywhere.
1785 (CSEARCH): Use INCINTL.
1786 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR. Include new
1788 * configure: Regenerated.
1790 2006-03-29 Hans-Peter Nilsson <hp@axis.com>
1792 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
1793 option-contents test.
1795 2005-11-28 Mark Mitchell <mark@codesourcery.com>
1797 * sim-signal.c (sim_signal_to_target): Fix typos.
1799 * sim-reason.c (sim_stop_reason): Use
1800 sim_signal_to_target, not sim_signal_to_host.
1801 * sim-signal.c (sim_signal_to_host): Fix typo.
1802 (sim_signal_to_target): New function.
1804 2005-07-10 Hans-Peter Nilsson <hp@bitrange.com>
1806 * sim-load.c (xprintf, eprintf): Remove fallout from ANSI_PROTOTYPES
1809 2005-07-08 Ian Lance Taylor <ian@airs.com>
1811 * sim-fpu.c (sim_fpu_abs): Always clear the sign bit.
1813 * sim-fpu.c (pack_fpu): If SIM_QUIET_NAN_NEGATED is defined, use a
1814 different fraction for a quiet NaN.
1815 (unpack_fpu): Likewise.
1817 2005-07-08 Ben Elliston <bje@au.ibm.com>
1819 * callback.c: Remove ANSI_PROTOTYPES conditional code.
1820 * sim-load.c: Likewise.
1821 * syscall.c: Likewise.
1823 2005-05-24 Corinna Vinschen <vinschen@redhat.com>
1825 * Make-common.in (LIBDEPS): Correctly use INTLDEPS for dependency
1828 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1830 * Make-common.in (install-common, installdirs): Honor $DESTDIR.
1832 2005-04-20 Manoj Iyer <manjo@austin.ibm.com>
1834 * sim-types.h: Changed unsigned32 and unsigned64 to signed32
1835 and signed64 for __ALPHA__.
1837 2005-03-23 Mark Kettenis <kettenis@gnu.org>
1839 * aclocal.m4 Include ../../gettext.m4.
1840 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST)
1841 (AM_LC_MESSAGES): Remove.
1842 * configure: Regenerate.
1844 2005-02-28 Jim Blandy <jimb@redhat.com>
1846 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Don't include
1847 -Wuninitialized in the default list of build warnings if CFLAGS is
1848 set, and doesn't include -O. (Using -Wuninitialized without
1849 optimization produces a warning, which interferes with compilation
1852 2005-02-21 Jim Blandy <jimb@redhat.com>
1854 * callback.c (os_fstat): Don't declare 't' unless it's used.
1856 2005-02-09 Jim Blandy <jimb@redhat.com>
1858 * Make-common.in (CGEN): Load guile.scm, and include a trailing
1860 (CGEN_FLAGS_TO_PASS): Include single quotes around the reference
1861 to $(CGEN), to ensure that the command substitution happens where
1862 the variable is referenced in the submake, not when the submake's
1863 arguments are expanded.
1864 (cgen.sh): Be prepared for the 'cgen' argument to contain spaces.
1865 (arch, cpu, decode, cpu-decode, defs, desc): Place the name of the
1866 application Scheme script directly after ${cgen}; don't precede it
1869 2005-01-28 Hans-Peter Nilsson <hp@axis.com>
1871 * syscall.c (cb_syscall) <case CB_SYS_pipe>: New case.
1872 * callback.c [HAVE_LIMITS_H]: Include limits.h.
1873 Include libiberty.h.
1874 (os_close, os_read, os_write, os_fstat, os_ftruncate): Support fd
1875 being either end of a pipe.
1876 (os_pipe, os_pipe_empty, os_pipe_nonempty): New functions.
1877 (os_shutdown): Clear pipe state.
1878 (default_callback): Initialize new members.
1880 * callback.c (default_callback): Initialize target_endian.
1881 (cb_store_target_endian): Renamed from store, new first parameter
1882 host_callback *cb, drop last parameter big_p. Take endianness
1884 (cb_host_to_target_stat): Change to use cb_store_target_endian.
1885 Remove variable big_p.
1886 * nrun.c (main): Initialize default_callback.target_endian.
1888 2005-01-14 Andrew Cagney <cagney@gnu.org>
1890 * configure.ac: Replace SIM_AC_COMMON with sinclude of common.m4.
1891 Add explicit call to AC_CONFIG_HEADER.
1892 * common.m4: Delete call to AC_CONFIG_HEADER, update usage.
1893 * configure: Re-generate.
1895 2005-01-12 Andrew Cagney <cagney@gnu.org>
1897 * common.m4: New file, based on of aclocal.m4.
1899 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
1901 * aclocal.m4 (SIM_AC_OUTPUT): Rewrite to use 2.59 macros.
1902 * configure: Regenerated to track ../common/aclocal.m4 changes.
1904 2005-01-07 Andrew Cagney <cagney@gnu.org>
1906 * configure.ac: Rename configure.in, require autoconf 2.59.
1907 * aclocal.m4 (SIM_AC_COMMON): Delete call to AC_CONFIG_AUX_DIR.
1908 * configure: Re-generate.
1910 2004-12-15 Hans-Peter Nilsson <hp@axis.com>
1912 * syscall.c (cb_syscall) <case CB_SYS_truncate>
1913 <case CB_SYS_ftruncate>: New cases.
1915 2004-12-13 Hans-Peter Nilsson <hp@axis.com>
1917 * syscall.c (cb_syscall) <case CB_SYS_lstat>: New case.
1918 (cb_syscall) <case CB_SYS_rename>: New case.
1919 * callback.c (os_lstat): New function.
1921 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
1923 * run.1: Document --sysroot=filepath.
1924 * sim-options.c (STANDARD_OPTIONS): New member OPTION_SYSROOT.
1925 (standard_options): Support --sysroot=<path>.
1926 (standard_option_handler): Handle OPTION_SYSROOT.
1927 * syscall.c (simulator_sysroot): Define, initialized empty.
1928 (get_path): Prepend simulator_sysroot to absolute file path.
1929 [HAVE_STRING_H]: Include string.h.
1930 [!HAVE_STRING_H && HAVE_STRINGS_H]: Include strings.h.
1931 * nrun.c [HAVE_UNISTD_H]: Include unistd.h.
1932 (main): If simulator_sysroot is not empty, chdir there.
1933 * sim-config.h (simulator_sysroot): Declare.
1935 * aclocal.m4 (SIM_AC_OUTPUT): Substitute @cgen_breaks@ for "break
1936 cgen_rtx_error" in a CGEN-generated simulator.
1937 * gdbinit.in: Break on sim_core_signal too. Have autoconf
1938 replacement for CGEN-related breakpoints.
1940 2004-12-07 Hans-Peter Nilsson <hp@axis.com>
1942 * Make-common.in (sim-basics_h): Add $(callback_h).
1944 2004-12-03 Hans-Peter Nilsson <hp@axis.com>
1946 * configure.in (SIM_CHECK_MEMBERS): Call for struct stat members
1947 st_dev, st_ino, st_mode, st_nlink, st_uid, st_gid, st_rdev,
1948 st_size, st_blksize, st_blocks, st_atime, st_mtime and st_ctime.
1949 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS_1)
1950 (SIM_CHECK_MEMBERS): New macros.
1951 * callback.c (cb_host_to_target_stat): Use temporary macro ST_x
1952 for struct stat member test and write. Add ST_x calls for each
1953 struct stat member tested in configure.in. Wrap each ST_x call in
1954 #ifdef of configure macro for that member.
1955 * configure, config.in: Regenerate.
1957 2004-12-01 Hans-Peter Nilsson <hp@axis.com>
1959 * cgen.sh: New thirteenth parameter opcfile, defaulting to
1961 <case desc>: Pass -OPC opcfile.
1962 * Make-common.in (cgen-desc): Pass $(opcfile) as thirteenth
1963 parameter to cgen.sh.
1965 2004-11-30 Richard Earnshaw <rearnsha@arm.com>
1967 * Make-common.in (sim-basics_h): Correct dependencies on
1968 cconfig.h and tconfig.h
1969 (sim-load.o): Correct typo in sim-basics_h dependency.
1971 2004-11-18 Richard Earnshaw <rearnsha@arm.com>
1973 * Make-common.in (sim-*_h): Add macros for all sim headers listing
1974 sub-dependencies for other sim files that they include.
1975 (sim_main_headers): Use sim-*_h macros.
1976 (sim-load.o): Depend on sim-basics_h, not sim_main_headers.
1978 2004-11-16 Hans-Peter Nilsson <hp@axis.com>
1980 * sim-config.c (sim_config): Recognize when a bfd has unspecified
1983 * Make-common.in (sim-load.o): Depend on $(sim_main_headers) and
1984 $(remote_sim_h) too.
1985 (sim_main_headers): Add sim-utils.h.
1987 2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1989 * cgen-defs.h (ENDSWITCH): Changed to compile with gcc-3.4.2.
1991 2004-07-26 Andrew Cagney <cagney@gnu.org>
1993 Problem from Olaf Hering <olh@suse.de>.
1994 * Makefile.in (install-man, installdirs): Add DESTDIR prefix.
1996 2004-07-10 Ben Elliston <bje@au.ibm.com>
1998 * hw-tree.c (parse_integer_property): Typo fix in comments.
1999 * sim-options.c (sim_args_command): Likewise.
2001 2004-06-28 Andrew Cagney <cagney@gnu.org>
2003 * run.c: Rename ui_loop_hook to deprecated_ui_loop_hook.
2005 2004-06-27 J"orn Rennecke <joern.rennecke@superh.com>
2007 * callback.c (os_shutdown): Fix bug in last change: actually
2008 mark file descriptors as available on startup.
2010 2004-06-25 J"orn Rennecke <joern.rennecke@superh.com>
2012 [ include/gdb: * callback.h (host_callback_struct): Replace
2013 members fdopen and alwaysopen with fd_buddy. ]
2014 * callback.c: Changed all users.
2016 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2018 * sim-load.c (sim_load_file): Use bfd_get_section_size
2019 instead of bfd_get_section_size_before_reloc.
2021 2004-05-18 Daniel Jacobowitz <dan@debian.org>
2023 * dv-glue.c (hw_glue_finish): Cast result of sizeof to long before
2024 passing it to printf.
2026 2004-05-10 Daniel Jacobowitz <dan@debian.org>
2028 * callback.c: Update copyright dates.
2030 * sim-basics.h: Likewise.
2031 * sim-load.c: Likewise.
2032 * syscall.c: Likewise.
2034 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2036 * callback.c: Include cconfig.h instead of config.h.
2038 * sim-basics.h: Likewise.
2039 * sim-load.c: Likewise.
2040 * syscall.c: Likewise.
2042 2004-01-16 Ben Elliston <bje@wasabisystems.com>
2044 * Makefile.in (clean): Remove rm -f $(ALL), as $(ALL) is empty.
2046 2003-12-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2048 * sim-core.c (sim_core_trans_addr): Added for m32r-linux-run.
2050 2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
2052 * sim-options.c (standard_options): Fix the names of H8
2055 2003-10-30 Andrew Cagney <cagney@redhat.com>
2057 * sim-trace.c, sim-base.h: Replace "struct symbol_cache_entry"
2058 with "struct bfd_symbol".
2060 2003-10-21 Andrew Cagney <cagney@redhat.com>
2062 * callback.c (os_truncate): Call "truncate", and not "stat".
2064 2003-10-20 Andrew Cagney <cagney@redhat.com>
2066 * sim-base.h: Replace "struct sec" with "struct bfd_section".
2068 2003-10-15 J"orn Rennecke <joern.rennecke@superh.com>
2070 * callback.c (os_ftruncate, os_truncate): New functions.
2071 (default_callback): Initialize ftruncate and truncate members.
2073 2003-09-08 Dave Brolley <brolley@redhat.com>
2075 On behalf of Doug Evans <dje@sebabeach.org>
2076 * cgen.sh: New arg archfile.
2077 * Make-common.in (cgen-arch,cgen-cpu,cgen-defs,cgen-decode,
2078 cgen-cpu-decode,cgen-desc): Update call to cgen.sh.
2080 2003-08-28 Andrew Cagney <cagney@redhat.com>
2082 * dv-glue.c (hw_glue_finish): Change %d to %ld to match sizeof.
2083 * sim-options.c (print_help): Cast the format with specifier to
2086 2003-08-20 Michael Snyder <msnyder@redhat.com>
2087 Dave Brolley <brolley@redhat.com>
2089 * cgen-par.h (flags, word1): New target-specific
2090 fields of CGEN_WRITE_QUEUE_ELEMENT.
2091 (CGEN_WRITE_QUEUE_ELEMENT_FLAGS): New accessor macro.
2092 (CGEN_WRITE_QUEUE_ELEMENT_WORD1): New accessor macro.
2093 * gennltvals.sh: Add frv target.
2094 * nltvals.def: Add frv target.
2096 2003-06-23 Michael Snyder <msnyder@redhat.com>
2098 * nrun.c (main): Delete h8/300 ifdef (sim now handles signals).
2099 * sim-reg.c: Fix cut-and-paste bug in comment.
2101 2003-06-22 Andrew Cagney <cagney@redhat.com>
2103 From matthew green <mrg@redhat.com>:
2104 * sim-fpu.h: Update copyright.
2105 (sim_fpu_fraction, sim_fpu_guard): New prototypes.
2106 * sim-fpu.c: Update copyright.
2107 (sim_fpu_fraction, sim_fpu_guard): New inline functions.
2109 2003-06-17 Frank Ch. Eigler <fche@redhat.com>
2111 From Doug Evans <dje@sebabeach.org>:
2112 * cgen-trace.h (sim_disasm_read_memory): Update args to be compatible
2113 with disassemble_info:read_memory_func.
2114 * cgen-trace.c (sim_disasm_read_memory): Ditto.
2116 2003-06-04 Michael Snyder <msnyder@redhat.com>
2118 * common/run.c (main): Remove SIM_H8300 ifdef.
2120 * common/sim-options.c (STANDARD_OPTIONS): Add SIM_H8300SX.
2121 (standard_options): Add '-x' for h8/300sx.
2122 (standard_option_handler): Add case for SIM_H8300SX.
2124 2003-04-13 Michael Snyder <msnyder@redhat.com>
2126 * Make-common.in (sim-events.o, sim-config.o): Depend on sim-main.h.
2128 2003-03-01 Andrew Cagney <cagney@redhat.com>
2130 * sim-engine.c (sim_engine_halt): If jmpbuf is invalid, abort.
2131 (sim_engine_vabort): Ditto.
2133 2003-02-27 Andrew Cagney <cagney@redhat.com>
2135 * sim-utils.h (sim_analyze_program, sim_load_file): Rename _bfd to bfd.
2136 * sim-hload.c (sim_load), sim-base.h (sim_state_base): Ditto.
2137 * nrun.c (main): Ditto.
2139 2003-02-26 Andrew Cagney <cagney@redhat.com>
2141 * sim-engine.h (sim_engine_abort): Add noreturn attribute.
2142 (sim_engine_vabort): Ditto.
2143 (sim_engine_halt, sim_engine_restart): Ditto.
2145 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2147 * Make-common.in (SIM_NEW_COMMON_OBJS): Remove sim-break.o
2148 (sim-break_h): Delete macro.
2149 (sim-break.o): Delete rule.
2150 * sim-break.c: Delete file.
2151 * sim-break.h: Delete file.
2152 * sim-base.h [SIM_HAVE_BREAKPOINTS]: Don't include "sim-break.h".
2153 (STATE_BREAKPOINTS): Delete macro.
2154 (sim_state_base): Delete field breakpoints.
2155 * sim-module.c (modules) [SIM_HAVE_BREAKPOINTS]: Don't add
2156 sim_break_install to array.
2158 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
2160 * run.c (usage): Fix typos.
2162 2002-11-27 Richard Sandiford <rsandifo@redhat.com>
2164 * sim-fpu.c (sim_fpu_inv): Use sim_fpu_div.
2166 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2168 * dv-core.c: Update copyright. sim/common contributed to the FSF.
2169 * dv-glue.c, dv-pal.c, hw-base.c, hw-base.h, hw-device.c: Ditto.
2170 * hw-device.h, hw-handles.c, hw-handles.h: Ditto.
2171 * hw-instances.c, hw-instances.h, hw-properties.c: Ditto.
2172 * hw-properties.h, hw-tree.c, hw-tree.h, sim-alu.h: Ditto.
2173 * sim-basics.h, sim-bits.c, sim-bits.h, sim-config.c: Ditto.
2174 * sim-config.h, sim-core.c, sim-core.h, sim-endian.c: Ditto.
2175 * sim-endian.h, sim-events.c, sim-events.h, sim-inline.c: Ditto.
2176 * sim-inline.h, sim-io.c, sim-io.h, sim-n-bits.h: Ditto.
2177 * sim-n-core.h, sim-n-endian.h, sim-types.h: Ditto.
2179 2002-11-13 Andrew Cagney <cagney@redhat.com>
2181 * run.c (main): Remove SIM_HAVE_ENVIRONMENT from #endif.
2183 2002-11-06 Richard Sandiford <rsandifo@redhat.com>
2185 * Make-common.in (SIM_EXTRA_DISTCLEAN): New macro.
2186 (distclean): Depend on it.
2188 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2190 * cgen-trace.h: Test __BFD_H_SEEN__ rather than BFD_VERSION.
2192 2002-08-29 Dave Brolley <brolley@redhat.com>
2194 * Make-common.in (CGEN_READ_SCM): Remove ../../cgen/stamp-cgen.
2196 2002-07-17 Andrew Cagney <cagney@redhat.com>
2198 * run-sim.h: Add #ifdef RUN_SIM_H wrapper.
2199 (sim_set_callbacks, sim_size, sim_trace)
2200 (sim_set_trace, sim_set_profile_size, sim_kill): Declare. Moved
2201 to here from "gdb/remote-sim.h".
2203 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2205 * sim-resume.c (sim_resume): Add local variable sig_to_deliver to
2206 avoid possible longjmp problems with automatic variable siggnal.
2208 2002-07-14 Andrew Cagney <ac131313@redhat.com>
2210 From 2002-07-11 Momchil Velikov <velco@fadata.bg>:
2211 * Make-common.in (installdirs): Make $(libdir) too, needed when
2212 installing libsim.a.
2214 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2216 * gennltvals.sh (dir): Mark d30v as obsolete.
2217 * nltvals.def: Remove d30v.
2219 2002-06-17 Andrew Cagney <cagney@redhat.com>
2221 * hw-events.c (hw_event_queue_schedule): Initialize `dummy'.
2223 * sim-memopt.c: Include <unistd.h>.
2224 (do_memopt_add): Fix printf format.
2225 * sim-events.c (sim_events_schedule): Initialize ``dummy''.
2227 2002-06-16 Andrew Cagney <ac131313@redhat.com>
2229 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Update to match GDB's
2230 --enable-gdb-build-warnings.
2231 * configure: Regenerated to track ../common/aclocal.m4 changes.
2233 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
2235 * sim-fpu.c (unpack_fpu): Initialize exponent for
2238 (sim_fpu_sqrt): Same.
2240 2002-06-08 Andrew Cagney <cagney@redhat.com>
2242 * gentmap.c (gen_targ_map_c): Generate "gdb/callback.h".
2243 * sim-basics.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
2245 * sim-load.c: Ditto.
2246 * callback.c: Ditto.
2248 * Make-common.in (callback_h): Define.
2249 (remote_sim_h): Define.
2251 (callback.o): Update.
2252 (syscall.o): Update.
2255 (sim-hload.o): Update.
2257 (sim-reason.o): Update.
2258 (sim-reg.o): Update.
2259 (sim-resume.o): Update.
2261 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
2263 * run.c: Fix formatting.
2265 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
2267 * run-sim.h: New header. Provide prototypes for functions used
2268 between run() and libsim.a which are not used by GDB.
2269 * run.c: Include run-sim.h.
2270 (main): If SIM_TARGET_SWITCHES is defined call
2271 sim_target_parse_command_line.
2272 (usage): If SIM_TARGET_SWITCHES is defined call
2273 sim_target_display_usage.
2275 2002-05-17 Andrey Volkov <avolkov@transas.com>
2277 * run.c: Made h8300s as new target, not h8300h alias.
2278 Added new option -S (h8300s target)
2279 * sim-options.c: Ditto.
2281 2002-05-01 Chris Demetriou <cgd@broadcom.com>
2283 * callback.c: Use 'deprecated' rather than 'depreciated.'
2285 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2287 From wiz at danbala:
2288 * sim-fpu.h: Fix grammar and typos.
2291 2002-02-10 Chris Demetriou <cgd@broadcom.com>
2293 * callback.c: Fix some spelling errors.
2294 * hw-device.h: Likewise.
2295 * hw-tree.c: Likewise.
2296 * sim-abort.c: Likewise.
2297 * sim-alu.h: Likewise.
2298 * sim-core.h: Likewise.
2299 * sim-events.c: Likewise.
2300 * sim-events.h: Likewise.
2301 * sim-fpu.h: Likewise.
2302 * sim-profile.h: Likewise.
2303 * sim-utils.c: Likewise.
2305 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
2307 * cgen-ops.h (ADDCQI, ADDCFQI, ADDOFQI, SUBCQI, SUBCFQI, SUBOFQI):
2310 2002-01-20 Ben Elliston <bje@redhat.com>
2312 * sim-fpu.h (SIM_FPU_IS_QNAN): Replace "Quite" with "Quiet" in
2313 the comment for this enumerator.
2315 2002-01-14 Ben Elliston <bje@redhat.com>
2317 * sim-fpu.h: Fix comment about sim_fpu_* constants.
2319 2001-12-20 Kazu Hirata <kazu@hxi.com>
2321 * run.c (usage): Fix a typo.
2323 2001-07-05 Ben Elliston <bje@redhat.com>
2325 * Make-common.in (srccgen): Remove.
2326 (CGEN_CPU_DIR): Define.
2327 (CGEN_READ_SCM): Redefine without $(srccgen).
2328 (CGEN_ARCH_SCM): Ditto.
2329 (CGEN_CPU_SCM): Ditto.
2330 (CGEN_DECODE_SCM): Ditto.
2331 (CGEN_DESC_SCM): Ditto.
2333 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
2335 * sim-load.c (sim_load_file): Put it back: external now.
2336 * sim-utils.c (sim_analyze_program): Ditto. Nyuk nyuk nyuk.
2338 2001-04-21 Andrew Cagney <ac131313@redhat.com>
2340 * sim-load.c (sim_load_file): Delete call bfd_cache_close. BFD
2342 * sim-utils.c (sim_analyze_program): Ditto.
2344 2001-04-19 Frank Ch. Eigler <fche@redhat.com>
2346 * sim-utils.c (sim_analyze_program): Call bfd_cache_close after
2347 we're finished with its immediate use.
2348 * sim-load.c (sim_load_file): Ditto.
2350 2001-03-16 Frank Ch. Eigler <fche@redhat.com>
2352 Add support for mmap-based memory regions.
2353 * sim-memopt.c (mmap_next_fd): New global.
2354 (sim_memory_init): Reinitialize it.
2355 (OPTION_MEMORY_MAPFILE, memory_option_handler): Support new
2356 "--memory-mapfile FILE" option. Check for some errors.
2357 (do_memopt_add): Conditionally do mmap instead of malloc for
2358 backing store of simulated memory. Check for more errors.
2359 (do_simopt_delete, sim_memory_uninstall): Corresponding cleanup.
2360 * sim-memopt.h (munmap_length): New member of _sim_memopt.
2361 * configure.in: Look for mmap/fstat related functions and headers.
2362 * config.in, configure: Regenerated.
2364 2001-03-15 Frank Ch. Eigler <fche@redhat.com>
2366 * sim-core.c (sim_core_map_attach): Correct overlap-related
2369 2001-03-07 Michael Meissner <meissner@redhat.com>
2371 * run.c (alloca-conf.h): Delete, no longer provided.
2373 2001-02-22 Ben Elliston <bje@redhat.com>
2375 * sim-trace.h (TRACE_VPU_IDX): Add.
2376 (TRACE_vpu): Define.
2377 (WITH_TRACE_VPU_P): Likewise.
2378 (TRACE_VPU_P): Likewise.
2379 * sim-trace.c (OPTION_TRACE_VPU): Define.
2380 (trace_options): Add --trace-vpu.
2381 (trace_option_handler): Handle OPTION_TRACE_VPU.
2382 (trace_option_handler): Include VPU tracing in --trace-semantics.
2383 (trace_idx_to_str): Handle TRACE_VPU_IDX.
2385 2001-02-21 Ben Elliston <bje@redhat.com>
2387 * sim-trace.h (TRACE_BRANCH_INPUT1): New macro.
2388 (TRACE_BRANCH_INPUT2): Likewise.
2390 2001-02-09 Ben Elliston <bje@redhat.com>
2392 * (profile_print_pc): Write header out in target byte order.
2394 2001-02-09 Ben Elliston <bje@redhat.com>
2396 * sim-profile.c (profile_pc_init): Correct bug in loop logic when
2397 adjusting the pc shift value.
2399 2001-01-12 Chris Demetriou <cgd@sibyte.com>
2401 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Properly handle the case
2402 where a numeric value is supplied.
2404 2001-01-06 Ben Elliston <bje@redhat.com>
2406 * cgen.sh: Allow extrafiles to include the semantics files when
2407 generating an ISA-specific decoder.
2409 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
2411 * Make-common.in (sim-io.o): Depend on targ-vals.h.
2413 2000-12-23 Ben Elliston <bje@redhat.com>
2415 * cgen-trace.c (trace_result): Handle 'f' type operands; output
2416 them to the trace stream using sim_fpu_printn_fpu. Include
2419 2000-12-15 Ben Elliston <bje@redhat.com>
2421 * sim-fpu.h (sim_fpu_printn_fpu): Declare.
2422 * sim-fpu.c (print_bits): Add digits parameter. Print only as many
2423 trailing digits as specified (-1 to print all digits).
2424 (sim_fpu_print_fpu): New wrapper around sim_fpu_printn_fpu.
2425 (sim_fpu_printn_fpu): Rename from sim_fpu_print_fpu; update calls
2428 2000-12-13 Ben Elliston <bje@redhat.com>
2430 * cgen.sh: Set prefix/PREFIX (append ISA if applicable). Factor
2431 sed expressions into $sedscript, substituting @prefix@/@PREFIX@.
2434 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2436 * sim-endian.h: Don't have parameters on macro definitions which
2437 are simply renaming functions, to permit use of XCONCAT2 in both
2438 the macro name and the arguments in a use of such a definition.
2440 2000-12-11 Ben Elliston <bje@redhat.com>
2442 * cgen-ops.h (SUBWORDDFDI): New function.
2444 2000-12-05 Ben Elliston <bje@redhat.com>
2446 * Make-common.in (cgen-defs): New target.
2447 (cgen-decode): Pass $(EXTRAFILES).
2449 * genmloop.sh: Use @prefix@, not @cpu@ throughout. Add -prefix and
2450 -outfile-suffix options.
2452 2000-12-04 Ben Elliston <bje@redhat.com>
2454 * cgen-ops.h (SUBWORDSIQI): Mask off top bits.
2455 (SUBWORDSIUQI): Likewise.
2456 (SUBWORDDIHI): Likewise.
2457 (SUBWORDDIQI): New function.
2459 * cgen-trace.c (disassemble_insn): Remove unused declaration.
2460 * cgen-scache.c (scache_option_handler): Remove unused local var.
2462 2000-12-03 Ben Elliston <bje@redhat.com>
2464 * sim-profile.c (profile_option_handler): Remove unused prof_nr.
2466 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2468 * hw-events.c (delete_hw_event_data): Remove the scheduled events.
2470 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2472 * dv-core.c (dv_core_attach_address_callback): Don't abort if
2475 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2477 * hw-base.c (hw_delete): Don't free base_of_hw since it's freed.
2478 (set_hw_delete): Moved the macro as a function.
2479 * hw-base.h (set_hw_delete): Declare as external function.
2480 * hw-alloc.c (delete_hw_alloc_data): Allow to free the memory
2481 allocated using hw_malloc.
2483 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2485 * sim-options.c (sim_parse_args): Free the memory used for
2486 long_options, short_options, handlers, opt_cpu, orig_val.
2488 2000-11-20 Ben Elliston <bje@redhat.com>
2490 * cgen-ops.h (SUBBI): New macro.
2491 (SUBWORDSIQI, SUBWORDSIHI, SUBWORDSIUQI): New functions.
2492 (SUBWORDDIHI, SUBWORDDIUQI, SUBWORDDIDF): Likewise.
2494 2000-11-16 Ben Elliston <bje@redhat.com>
2496 * cgen-types.h (VOID): New type.
2498 2000-11-09 Ben Elliston <bje@redhat.com>
2500 * sim-fpu.c (sim_fpu_one): Set exponent to 0.
2501 (sim_fpu_two): Set exponent to 1.
2503 2000-10-26 Ben Elliston <bje@redhat.com>
2505 * cgen.sh: Handle an isa argument between cpu and mach. Default to
2506 `all'. Pass `-i' options to cgen applications.
2507 * Make-common.in (cgen-arch, cgen-cpu, cgen-decode, cgen-cpu-decode,
2508 cgen-desc): Pass $(isa) to cgen.sh.
2510 2000-10-08 Ben Elliston <bje@redhat.com>
2512 * cgen-utils.c (cgen_rtx_error): New function.
2514 2000-10-07 Ben Elliston <bje@redhat.com>
2516 * cgen-trace.c (sim_cgen_disassemble_insn): Handle failure
2517 conditions for sim_core_read_buffer().
2519 2000-09-26 Dave Brolley <brolley@redhat.com>
2521 * cgen-utils.c (RORQI): New function.
2522 (ROLQI): New function.
2523 (RORHI): New function.
2524 (ROLHI): New function.
2526 2000-08-28 Dave Brolley <brolley@redhat.com>
2528 * cgen-trace.c (sim_cgen_disassemble_insn): Make sure entire insn is
2529 in insn_value if it will fit.
2531 2000-08-21 Frank Ch. Eigler <fche@redhat.com>
2533 * Make-common.in, cgen.sh: Contribute CGEN-related build targets/rules.
2535 2000-08-15 Dave Brolley <brolley@redhat.com>
2537 * sim-profile.c (profile_print_speed): Print cpu frequency if not zero.
2539 2000-08-15 Dave Brolley <brolley@redhat.com>
2541 * sim-profile.h (PROFILE_DATA): Add cpu_freq.
2542 (PROFILE_CPU_FREQ): New macro.
2543 * sim-profile.c (OPTION_PROFILE_CPU_FREQUENCY): New enumerator.
2544 (profile-options): Add profile-cpu-frequency.
2545 (parse_frequency): New function.
2546 (profile_option_handler): Handle OPTION_PROFILE_CPU_FREQUENCY.
2547 (profile_print_speed): Print cpu frequency and simulated execution time.
2548 Re-indent other items to match.
2550 2000-08-09 Andrew Cagney <cagney@lulu.cygnus.com>
2552 * dv-sockser.c (dv_sockser_init): Eliminate MIN macro.
2554 2000-07-27 Frank Ch. Eigler <fche@redhat.com>
2556 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2557 * Makefile.in (install): Install run.1 man page.
2559 Thu Jul 27 21:56:08 2000 Andrew Cagney <cagney@b1.cygnus.com>
2561 From 2000-06-23 Doug Evans <dje@casey.transmeta.com>:
2562 * Makefile.in (headers,nltvals.def): Merge.
2564 Thu Jul 27 20:37:47 2000 Andrew Cagney <cagney@b1.cygnus.com>
2566 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2567 * nrun.c (main): Print the simulator statistics only in
2569 * hw-properties.h (hw_find_integer_array_property): Fix
2570 prototype (use signed_cell).
2572 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2573 * sim-events.c (sim_events_remain_time): New function returning
2574 the time that remains before the event is raised.
2575 * hw-events.c (hw_event_remain_time): Likewise.
2576 * sim-events.h (sim_events_remain_time): Declare.
2577 * hw-events.h (hw_event_remain_time): Declare.
2579 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2580 * sim-hw.c: Use <errno.h> instead of <sys/errno.h>
2581 (OPTION_HW_LIST): New option --hw-list to list the devices.
2582 (hw_option_handler): List the device tree with 'sim_hw_print'.
2584 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2585 * sim-bits.h (_MSB_16, _LSB_16): Define for 16-bit targets.
2586 (MASK, LSBIT, MSBIT): Likewise and use _MSB_16 and _LSB_16.
2587 (EXTENDED): Define for 16-bit word size.
2588 * sim-bits.c (LSEXTRACTED, MSEXTRACTED, LSINSERTED,
2589 MSINSERTED, LSSEXT, MSSEXT): Implement for 16-bit word size.
2590 * sim-types.h: Added support for 16-bit targets.
2592 2000-06-23 Frank Ch. Eigler <fche@redhat.com>
2594 * cgen-trace.h (TRACE_USEFUL_MASK): Remove TRACE_EVENTS_IDX.
2596 2000-06-24 Frank Ch. Eigler <fche@redhat.com>
2598 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
2599 * Makefile.in (distclean): Clean cconfig.h also.
2601 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
2603 * configure: Regenerated to track ../common/aclocal.m4 changes.
2605 Tue May 23 21:35:53 2000 Andrew Cagney <cagney@b1.cygnus.com>
2607 * aclocal.m4 (sim-profile): Enable the profiler by default.
2609 Tue May 23 20:30:12 2000 Andrew Cagney <cagney@amy.cygnus.com>
2611 * run.c (main): Initialize sigrc.
2613 Wed Apr 26 16:18:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
2615 * sim-events.c (update_time_from_event): Add more detailed event
2618 2000-03-30 Dave Brolley <brolley@redhat.com>
2620 * aclocal.m4 (cgen): Use guile to run cgen.
2622 2000-03-23 Dave Brolley <brolley@redhat.com>
2624 * cgen-fpu.h: Rename extsfdf to fextsfdf. Rename truncdfsf to
2626 * cgen-accfp.c (fextsfdf): New function.
2627 (ftruncdfsf): New function.
2628 (cgen_init_accurate_fpu): Initialize fextsfdf and ftruncdfsf.
2630 2000-03-13 Jeff Johnston <jjohnstn@cygnus.com>
2632 * cgen-ops.h: Added TRUNCSISI.
2634 2000-03-08 Dave Brolley <brolley@redhat.com>
2636 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_SF_WRITE.
2637 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_sf_write.
2638 (sim_queue_fn_si_write): Last argument is has type USI.
2639 (sim_queue_fn_sf_write): New function.
2640 * cgen-par.c (sim_queue_fn_si_write): Declare 'value' as USI.
2641 (sim_queue_fn_sf_write): New function.
2642 (cgen_write_queue_element_execute): Handle CGEN_FN_SF_WRITE.
2644 Tue Feb 22 16:45:09 2000 Andrew Cagney <cagney@b1.cygnus.com>
2646 * run.c (main): When SIM_HAVE_ENVIRONMENT enable tracing with
2647 sim_set_trace and run simulator using sim_resume.
2648 (main): Add option ``-o'' - operating environment. Only continue
2649 after a signal when operating environment.
2650 (main): Always set REASON and SIGRC using sim_stop_reason.
2651 (sim_trace): Delete extern declaration.
2653 2000-02-08 Nick Clifton <nickc@cygnus.com>
2655 * callback.c: Fix compile time warning messages.
2656 * run.c: Fix compile time warning messages.
2658 1999-12-17 Dave Brolley <brolley@cygnus.com>
2660 * sim-profile.h: (set_profile_option_mask): Add prototype.
2661 * sim-profile.c (set_profile_option_mask): No longer static.
2663 Wed Dec 8 21:47:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
2665 * sim-arange.c: Include <string.h>
2667 1999-12-07 Dave Brolley <brolley@cygnus.com>
2669 * sim-options.c (print_help): '=' required before optional argument.
2670 * cgen-par.h (CGEN_FN_MEM_QI_WRITE): New enumerator.
2671 (CGEN_FN_MEM_HI_WRITE): New enumerator.
2672 (CGEN_FN_MEM_SI_WRITE): New enumerator.
2673 (CGEN_FN_MEM_DI_WRITE): New enumerator.
2674 (CGEN_FN_MEM_DF_WRITE): New enumerator.
2675 (CGEN_FN_MEM_XI_WRITE): New enumerator.
2676 (fn_mem_qi_write): New union members.
2677 (fn_mem_hi_write): New union members.
2678 (fn_mem_si_write): New union members.
2679 (fn_mem_di_write): New union members.
2680 (fn_mem_df_write): New union members.
2681 (fn_mem_xi_write): New union members.
2682 (sim_queue_fn_mem_qi_write): New function.
2683 (sim_queue_fn_mem_hi_write): New function.
2684 (sim_queue_fn_mem_si_write): New function.
2685 (sim_queue_fn_mem_di_write): New function.
2686 (sim_queue_fn_mem_df_write): New function.
2687 (sim_queue_fn_mem_xi_write): New function.
2688 * cgen-par.c (sim_queue_fn_mem_qi_write): New function.
2689 (sim_queue_fn_mem_hi_write): New function.
2690 (sim_queue_fn_mem_si_write): New function.
2691 (sim_queue_fn_mem_di_write): New function.
2692 (sim_queue_fn_mem_df_write): New function.
2693 (sim_queue_fn_mem_xi_write): New function.
2694 (cgen_write_queue_element_execute): Handle CGEN_FN_MEM_QI_WRITE,
2695 CGEN_FN_MEM_HI_WRITE, CGEN_FN_MEM_SI_WRITE, CGEN_FN_MEM_DI_WRITE,
2696 CGEN_FN_MEM_DF_WRITE, CGEN_FN_MEM_XI_WRITE.
2698 1999-12-01 Dave Brolley <brolley@cygnus.com>
2700 * cgen-accfp.c (subsf): Check status code.
2718 1999-11-26 Dave Brolley <brolley@cygnus.com>
2720 * cgen-par.h (fn_df_write): Mode of data is DF.
2721 (sim_queue_fn_df_write): Mode of data is DF.
2722 * cgen-par.c (sim_queue_fn_df_write): Mode of data is DF.
2724 1999-11-22 Dave Brolley <brolley@cygnus.com>
2726 * cgen-trace.c (SIZE_TRACE_BUF): Inxrease size of trace buffer.
2727 * cgen-par.h (CGEN_WRITE_QUEUE_SIZE): Increase size of queue.
2729 1999-11-04 Dave Brolley <brolley@cygnus.com>
2731 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_XI_WRITE and
2732 CGEN_MEM_XI_WRITE members.
2733 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_xi_write and mem_xi_write members.
2734 (sim_queue_fn_xi_write): New function.
2735 (sim_queue_mem_xi_write): New function.
2737 * cgen-par.c (sim_queue_fn_xi_write): New function.
2738 (sim_queue_mem_xi_write): New function.
2739 (cgen_write_queue_element_execute): Handle CGEN_FN_XI_WRITE and
2742 1999-10-22 Dave Brolley <brolley@cygnus.com>
2744 * cgen-par.h (insn_address): New field in CGEN_WRITE_QUEUE_ELEMENT.
2745 (CGEN_WRITE_QUEUE_ELEMENT_IADDR): New macro.
2746 * cgen-par.c: Set insn_address for each queued write. Get pc from
2747 cpu when executing queued writes.
2749 1999-10-19 Dave Brolley <brolley@cygnus.com>
2751 * cgen-par.h (sim_queue_fn_pc_write): New function.
2752 (CGEN_FN_PC_WRITE): New enumerator.
2753 (fn_pc_write): New union member.
2754 * cgen-par.c (sim_queue_fn_pc_write): New function.
2755 (cgen_write_queue_element_execute): Handle CGEN_FN_PC_WRITE.
2757 1999-10-18 Dave Brolley <brolley@cygnus.com>
2759 * cgen-par.h (CGEN_MEM_DI_WRITE): New enumerator.
2760 (CGEN_MEM_DF_WRITE): New enumerator.
2761 (mem_di_write): New union member.
2762 (mem_df_write): New union member.
2763 * cgen-par.c (sim_queue_mem_di_write): New function.
2764 (sim_queue_mem_df_write): New function.
2765 (cgen_write_queue_element_execute): Handle CGEN_MEM_DI_WRITE and
2767 * cgen-accfp.c (divsf): Check for division errors.
2769 1999-10-14 Doug Evans <devans@casey.cygnus.com>
2771 * cgen-engine.h (EXTRACT_INT,EXTRACT_UINT): Delete.
2773 1999-10-07 Dave Brolley <brolley@cygnus.com>
2775 * cgen-par.h (CGEN_FN_HI_WRITE): New enumerator.
2776 (fn_hi_write): New union member.
2777 (sim_queue_fn_hi_write): New function.
2778 * cgen-par.c (sim_queue_fn_hi_write): New function.
2779 (cgen_write_queue_element_execute): Handle CGEN_FN_HI_WRITE.
2781 1999-09-29 Doug Evans <devans@casey.cygnus.com>
2783 * cgen-defs.h (sim_engine_invalid_insn): New arg `vpc'.
2784 Change type of result to SEM_PC.
2786 Wed Sep 29 14:43:57 1999 Dave Brolley <brolley@cygnus.com>
2788 * cgen-defs.h (sim_engine_invalid_insn): Now returns PC.
2790 1999-09-25 Doug Evans <devans@casey.cygnus.com>
2792 * cgen-ops.h (SUBWORD*): Delete cpu arg.
2793 (JOIN*): Delete cpu arg.
2795 Tue Sep 21 17:14:16 1999 Dave Brolley <brolley@cygnus.com>
2797 * genmloop.sh (@cpu@_scache_lookup): No longer takes last_insn_p
2799 (SET_LAST_INSN_P): Set last_insn_p flag in the scache element.
2801 Mon Sep 20 21:44:06 1999 Geoffrey Keating <geoffk@cygnus.com>
2803 * sim-fpu.c (i2fpu): Keep the guard bits sticky when converting
2806 Tue Feb 8 16:33:48 2000 Andrew Cagney <cagney@b1.cygnus.com>
2808 * run.c (main): Check the sim_stop_reason and only halt simulation
2809 when a valid stop condition is identified.
2811 Wed Sep 15 14:12:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
2813 * hw-tree.c, hw-properties.c, hw-instances.c: Include "sim-io.h".
2815 Tue Sep 14 14:15:47 1999 Dave Brolley <brolley@cygnus.com>
2817 * cgen-par.h (CGEN_BI_WRITE): New enumerator.
2818 (bi_write): New union element.
2819 (sim_queue_bi_write): New function.
2820 * cgen-par.c (sim_queue_bi_write): New function.
2821 (cgen_write_queue_element_execute): Handle CGEN_BI_WRITE.
2823 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
2825 * configure: Regenerated to track ../common/aclocal.m4 changes.
2827 * aclocal.m4 (WERROR_CFLAGS, WARN_CFLAGS): Merge from
2828 ../gdb/configure.in.
2829 * Make-common.in (WERROR_CFLAGS, WARN_CFLAGS): Define.
2830 (SIM_WERROR_CFLAGS, SIM_WARN_CFLAGS): Define.
2831 (SIM_WARNINGS): Delete
2832 (CONFIG_CFLAGS): Update.
2834 Tue Aug 31 16:01:42 1999 Dave Brolley <brolley@cygnus.com>
2836 * cgen-par.c: New file.
2837 * cgen-par.h: New file.
2838 * cgen-sim.h (cgen-par.h): #include it.
2839 * cgen-cpu.h (write_queue): New field.
2840 (CPU_WRITE_QUEUE): New access macro.
2841 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-par.h.
2842 (cgen-par.o): New target.
2844 1999-08-28 Doug Evans <devans@casey.cygnus.com>
2846 * cgen-types.h (mode_type,MODE_VOID): Renamed from MODE_VM.
2847 * cgen-utils.c (mode_names): Update.
2849 1999-08-20 Doug Evans <devans@casey.cygnus.com>
2851 * genmloop.sh: New args -parallel-generic-write, -parallel-only.
2852 * cgen-engine.h (SEMANTIC_FN): Don't use version with PAREXEC
2853 buffer arg if WITH_PARALLEL_GENWRITE.
2854 (struct insn_sem): Handle WITH_PARALLEL_GENWRITE.
2855 (struct idesc): Ditto.
2857 Wed Aug 18 18:17:28 1999 Doug Evans <devans@canuck.cygnus.com>
2859 * sim-model.c (model_option_handler): Add \n to error message.
2861 1999-08-08 Doug Evans <devans@casey.cygnus.com>
2863 * cgen-engine.h (SEM_FN_NAME,SEMF_FN_NAME): Delete.
2864 (insn_sem): Rewrite.
2865 (sem_fn_desc): New struct.
2867 * genmloop.sh (scache case,@cpu@_scache_lookup): Profile scache hit,
2869 (scache case): Split into non-parallel/parallel versions.
2870 (@cpu@_engine_run_{full,fast}): Call @cpu@_{sem,semf}_init_idesc_table
2871 if not use semantic switch version.
2873 1999-08-04 Doug Evans <devans@casey.cygnus.com>
2875 * cgen-defs.h (SEM_BRANCH_TYPE): New enum.
2876 * cgen-engine.h (SEM_BRANCH_UNTAKEN,SEM_BRANCH_UNCACHEABLE): Delete.
2877 (SEM_BRANCH_INIT_EXTRACT): Delete.
2878 (SEM_BRANCH_INIT): Replace npc_ptr with br_type.
2879 (SEM_BRANCH_FINI): Ditto.
2880 (SEM_BRANCH_VIA_ADDR): Ditto.
2881 (SEM_BRANCH_VIA_CACHE): Ditto. Delete cachvarptr arg.
2882 (SEM_BRANCH_ADDR_CACHE): Delete.
2883 (SEM_SKIP_COMPILE,SEM_SKIP_INSN): New macros.
2884 * cgen-scache.h (cpu_scache): Replace member pbb_pr_npc_ptr with
2886 * genmloop.sh (eng.hin): Update prototype of ${cpu}_pbb_cti_chain.
2887 (@cpu@_pbb_begin): Initialize branch_target.
2888 (@cpu@_pbb_cti_chain): Replace arg new_vpc_ptr with br_type.
2889 (@cpu@_engine_run_full): Replace local pbb_br_npc_ptr with
2891 (@cpu@_engine_run_fast): Ditto.
2893 Fri Jul 16 14:47:53 1999 Dave Brolley <brolley@cygnus.com>
2895 * cgen-utils.c (RORSI): New function.
2896 (ROLSI): New function.
2898 1999-07-14 Doug Evans <devans@casey.cygnus.com>
2900 * Makefile.in (TAGS): Tweak TAGS regex.
2901 * cgen-mem.h (*): Add TAGS markers.
2903 Sun Jul 11 23:47:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
2905 * sim-resume.c (sim_resume): Ensure that the siggnal [sic] is only
2906 passed in when sim_resume is first entered - don't re-pass it
2909 Sun Jul 11 23:34:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
2911 * sim-options.c (standard_option_handler): Add OPTION_LOAD_VMA and
2912 OPTION_LOAD_LMA but only when is defined.
2913 (standard_options): When SIM_HANDLES_LMA is defined include
2914 options --load-lma and --load-vma.
2915 (standard_install): Initialize STATE_LOAD_AT_LMA_P.
2917 * sim-base.h (STATE_LOAD_AT_LMA_P): Define.
2918 (struct sim_state_base): Add load_at_lma_p.
2919 * sim-hload.c (sim_load): Replace SIM_HANDLES_LMA with
2920 STATE_LOAD_AT_LMA_P.
2922 Sun Jul 11 12:03:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
2924 * nrun.c (main): Re-format loop gnu style.
2926 Wed Jul 7 19:56:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
2928 * dv-sockser.c (connected_p): Initialize addrlen.
2930 1999-07-06 Dave Brolley <brolley@cygnus.com>
2932 * cgen-accfp.c (floatsidf): New function.
2933 (fixdfsi): New function.
2935 1999-07-06 Doug Evans <devans@casey.cygnus.com>
2937 * sim-model.c (sim_model_init): Issue error if machine is unsupported.
2939 1999-07-05 Doug Evans <devans@casey.cygnus.com>
2941 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-fpu.h.
2942 (cgen-fpu.o,cgen-accfp.o): Add rules for.
2943 * cgen-fpu.c: New file.
2944 * cgen-fpu.h: New file.
2945 * cgen-accfp.c: New file.
2946 * cgen-cpu.h (CGEN_CPU): New member fpu.
2947 * cgen-mem.h: Redo fp support.
2948 * cgen-ops.h: Delete k&r support. Redo fp support.
2949 * cgen-sim.h: Include cgen-fpu.h.
2950 * cgen-types.h (SF,DF,XF,TF): Moved to cgen-fpu.h.
2952 1999-06-23 Doug Evans <devans@casey.cygnus.com>
2954 * cgen-engine.h (TARGET_SEM_BRANCH_FINI): Remove cruft at end of
2956 * genmloop.sh (@cpu@_scache_lookup): Delete unused local var.
2957 (@cpu@_pbb_cti_chain): Minor clean up.
2959 1999-05-08 Felix Lee <flee@cygnus.com>
2961 * aclocal.m4: Use AC_EXEEXT instead of AM_EXEEXT. Delete defn of
2962 AM_CYGWIN32 and AM_EXEEXT.
2963 * configure: Regenerate.
2965 Fri Apr 16 16:43:22 1999 Doug Evans <devans@charmed.cygnus.com>
2967 * sim-core.c (device_error,device_io_read_buffer,
2968 device_io_write_buffer): Delete decls.
2969 * sim-core.h: Put them here.
2971 * sim-core.c (sim_core_read_buffer): Pass sd to device_io_read_buffer.
2972 (sim_core_write_buffer): Pass sd to device_io_write_buffer.
2973 * sim-n-core.h (sim_core_read_aligned_N): Ditto.
2974 (sim_core_write_aligned_N): Ditto.
2976 1999-04-14 Stephane Carrez <stcarrez@worldnet.fr>
2978 * sim-memopt.c (sim_memory_uninstall): Don't look into
2981 1999-04-14 Doug Evans <devans@casey.cygnus.com>
2983 * cgen-utils.scm (virtual_insn_entries): Update attribute definition.
2985 1999-04-13 Doug Evans <devans@casey.cygnus.com>
2987 * sim-core.c (sim_core_read_buffer): Handle NULL cpu when WITH_DEVICES.
2988 (sim_core_write_buffer): Ditto.
2990 1999-04-02 Keith Seitz <keiths@cygnus.com>
2992 * sim-io.c (sim_io_poll_quit): Only call the poll_quit callback
2993 after the interval counter has expired.
2994 (POLL_QUIT_INTERVAL): Define. Used to tweak the frequency of
2995 poll_quit callbacks. May be overridden by Makefile.
2996 (poll_quit_counter): New global.
2997 * sim-events.c: Remove all mentions of ui_loop_hook. The
2998 host callback "poll_quit" will serve the purpose.
2999 * run.c: Add definition of ui_loop_hook when NEED_UI_LOOP_HOOK
3001 * nrun.c: Remove declaration of ui_loop_hook.
3003 Wed Mar 31 18:55:41 1999 Doug Evans <devans@canuck.cygnus.com>
3005 * cgen-run.c (sim_resume): Don't tell main loop to run "forever"
3006 if being used by gdb.
3008 1999-03-22 Doug Evans <devans@casey.cygnus.com>
3010 * cgen-types.h (XF,TF): Tweak.
3011 * cgen-ops.h: Redo inline support. Delete DI_FN_SUPPORT,
3013 (SUBWORD*,JOIN*): Define.
3014 * cgen-trace.c (sim_cgen_disassemble_insn): Update, base_insn_bitsize
3015 moved into cpu descriptor.
3016 * sim-model.h (MACH): New member `num'.
3018 1999-02-09 Doug Evans <devans@casey.cygnus.com>
3020 * cgen-cpu.h (CGEN_DISASSEMBLER): New type.
3021 (CGEN_CPU): Member opcode renamed to cpu_desc.
3022 New members get_idata,disassembler.
3023 * cgen-defs.h (CGEN_INSN_VIRTUAL_P): CGEN_INSN_ATTR renamed to
3024 CGEN_INSN_ATTR_VALUE.
3025 (CGEN_STATE): Delete member opcode_table.
3026 (sim_disassemble_insn): Delete decl.
3027 * cgen-engine.h (struct insn_sem): Moved to here from <cpu>-decode.c.
3028 (struct idesc): Moved to here from <cpu>-decode.h.
3029 * cgen-run.c (prime_cpu): Call prepare_run callback.
3030 * cgen-trace.h (SFILE): New type.
3031 (sim_disasm_sprintf): Declare.
3032 (sim_disasm_read_memory,sim_disasm_perror_memory): Declare.
3033 (sim_cgen_disassemble_insn): Declare.
3034 * cgen-trace.c: Include errno.h,dis-asm.h. Don't include cpu-opc.h.
3035 (insn_fields): Delete.
3036 (trace_insn_fini): STATE_OPCODE_TABLE (sd) replaced with
3038 (trace_insn): Call CPU_DISASSEMBLER hook.
3039 (sim_disasm_sprintf): New function.
3040 (sim_disasm_read_memory): New function.
3041 (sim_disasm_perror_memory): New function.
3042 (sim_cgen_disassemble_insn): New function.
3043 * cgen-utils.c: Don't include cpu-opc.h.
3044 (virtual_insn_entries): New static local.
3045 (cgen_virtual_insn_table): Renamed from cgen_virtual_opcode_table.
3046 (cgen_insn_name): Rewrite.
3047 (disasm_sprintf,sim_disassemble_insn): Moved to cgen-trace.c.
3048 * cgen.sh (desc): New file generator handler.
3049 * genmloop.sh: -parallel changed to -parallel-read/-parallel-write.
3050 Define WITH_PARALLEL_READ/WITH_PARALLEL_WRITE appropriately.
3051 Don't include cpu-opc.h,cpu-sim.h.
3052 * sim-model.c (model_set): Delete SIM_DESC arg.
3053 (sim_model_set): Update.
3054 * sim-model.h (MACH): New member prepare_run.
3056 1999-01-28 Frank Ch. Eigler <fche@cygnus.com>
3058 * sim-memopt.c (memory_option_handler): Avoid memset() calls
3059 if redundant with allocator functions.
3061 Wed Jan 27 17:19:09 1999 Doug Evans <devans@canuck.cygnus.com>
3063 * cgen-engine.h (EXTRACT_LSB0_{INT,UINT}): Fix.
3065 * sim-profile.h: Make like sim-trace.h.
3066 (PROFILE_USEFUL_MASK): New macro.
3067 * sim-profile.c (profile_options): Make like trace_options, allow
3068 optional on|off arg where applicable.
3069 (set_profile_option_mask): New function.
3070 (sim_profile_set_option): New function.
3071 (profile_option_handler): Simplify.
3072 Have -p only enable selected things, not everything.
3073 Add missing break to OPTION_PROFILE_PC_RANGE.
3074 * cgen-scache.c (scache_options): Allow optional on|off arg to
3076 (scache_option_handler): Use sim_profile_set_option.
3078 1999-01-26 Frank Ch. Eigler <fche@cygnus.com>
3080 * sim-memopt.c (memory_options): Add MEMORY_FILL option.
3081 (memory_option_handler): Implement MEMORY_FILL option. Make
3082 MEMORY_CLEAR an alias for MEMORY_FILL=0.
3083 (parse_ulong_value): New function.
3084 (do_memopt_add): Allocate all buffers. Optionally fill them.
3086 1999-01-15 Richard Henderson <rth@cygnus.com>
3088 * hw-events.c (hw_event_queue_schedule): _vtracef takes a
3089 va_list, not an integer.
3090 * sim-events.c (sim_events_schedule): Likewise.
3092 * sim-types.h (UNSIGNED32, UNSIGNED64): Properly cast to
3093 the appropriate type.
3095 1999-01-14 Doug Evans <devans@casey.cygnus.com>
3097 * cgen-defs.h (PCADDR,CIA): Define in terms of IADDR.
3098 (sim_disassemble_insn): Update prototype.
3099 (sim_engine_invalid_insn): Ditto.
3100 * cgen-engine.h (SEMANTIC_FN): Add !WITH_SCACHE version.
3101 (SEM_BRANCH_INIT): PCADDR->IADDR.
3102 (SEM_NBRANCH_FINI): New macro for !WITH_SCACHE case.
3103 * cgen-scache.c (scache_lookup,scache_lookup_or_alloc): PCADDR->IADDR.
3104 * cgen-scache.h (*): Ditto.
3105 * cgen-trace.c (*): Ditto.
3106 * cgen-trace.h (*): Ditto.
3107 * cgen-utils.c (*): Ditto.
3108 * cgen-types.h (integer modes): Use signedNN/unsignedNN types.
3110 * genmloop.sh (@cpu@_fill_argbuf): Add !WITH_SCACHE support.
3111 (simple engine framework): Rewrite.
3112 * sim-module.c (modules): Install model module sooner (and in
3113 particular before the profile module).
3115 1999-01-12 Doug Evans <devans@casey.cygnus.com>
3117 * sim-model.h (sim_mach_lookup_bfd_name): Add prototype.
3118 * sim-model.c (sim_mach_lookup_bfd_name): New function.
3119 (sim_model_init): Call it.
3121 * cgen-trace.c (trace_insn): Pass pc to trace_prefix for virtual insns.
3123 1999-01-05 Doug Evans <devans@casey.cygnus.com>
3125 * Make-common.in (CGEN_INCLUDE_DEPS): Add cgen-defs.h, cgen-engine.h.
3126 * cgen-engine.h (SEM_BRANCH_FINI): New arg pcvar, all uses updated.
3127 (SEM_BRANCH_INIT_EXTRACT): New macro.
3128 (SEM_BRANCH_INIT): Add taken_p.
3129 (TARGET_SEM_BRANCH_FINI): Provide default definition.
3130 (SEM_BRANCH_FINI): Use it.
3132 * cgen-run.c (sim_resume): Handle tracing of last insn.
3133 * cgen-scache.h (WITH_SCACHE): Define as 0 if not defined.
3134 * cgen-trace.c (current_abuf): New static global.
3135 (trace_insn_init): Initialize it.
3136 (trace_insn_fini): Use it.
3137 (trace_insn): Set it.
3138 * cgen.sh (arch case): Pass -m ${mach} to cgen.
3139 * genmloop.sh (@cpu@_emit_before): Only define if WITH_SCACHE_PBB.
3140 (@cpu@_emit_after): Ditto.
3141 (simple @cpu@_engine_run_full): New local `pc'. Initialize semantic
3142 labels if WITH_SEM_SWITCH_FULL.
3143 * sim-model.c: Include bfd.h.
3144 (sim_model_init): New function.
3145 (sim_model_install): Record init fn.
3146 * sim-model.h (MACH): New member bfd_name.
3147 * sim-module.c (modules): Initialize model before scache.
3149 1998-12-24 Frank Ch. Eigler <fche@cygnus.com>
3151 * dv-sockser.c (DEFAULT_TIMEOUT): Increase to 1 ms.
3153 * nrun.c (main): Remain in simulation loop for traps and
3154 exceptions when in operating environment mode.
3155 (ui_loop_hook): New stub hook for standalone use.
3156 * sim-events.c (sim_events_process): Call ui_loop_hook
3157 periodically on CYGWIN host.
3159 * sim-reason.c (sim_stop_reason): Return host signal numbers
3160 to gdb on sim_stopped and sim_signalled cases.
3161 * sim-engine.c (sim_engine_halt): Call SIM_CPU_EXCEPTION_SUSPEND
3162 hook just before longjmp.
3163 * sim-resume.c (sim_resume): Call SIM_CPU_EXCEPTION_RESUME
3164 hook just before sim_engine_run.
3166 * sim-n-core.h (sim_core_trace_M): Allay const warning.
3167 * sim-trace.h (trace_generic): Ditto.
3168 * sim-trace.c (trace_generic): Ditto.
3170 1998-12-14 Doug Evans <devans@casey.cygnus.com>
3172 * Make-common.in (SIM_MAIN_DEPS): New var.
3173 (CGEN_MAIN_CPU_DEPS): New var.
3174 * aclocal.m4: Add --enable-cgen-maint option.
3175 * cgen-mem.h (GETMEM*): New arg `pc'. Pass to sim_core routine.
3177 (GETIMEM*): Pass pc value to sim_core routine.
3179 Fri Dec 11 16:58:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
3181 * hw-handles.c (hw_handle_add_ihandle, hw_handle_add_phandle):
3182 Compare with ZERO not NULL.
3184 Thu Dec 10 14:14:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
3186 * hw-properties.c, hw-instances.c, hw-tree.c: Include
3189 1998-12-09 Doug Evans <devans@casey.cygnus.com>
3191 * sim-arange.c: Include libiberty.h, and stdlib.h if present.
3192 * sim-trace.c: Include stdlib.h if present.
3193 * dv-sockser.c: Include unistd.h if present.
3194 (dv_sockser_init): Add missing arg to call to sim_io_eprintf.
3195 * cgen-scache.c (scache_flush): Delete unused locals i,sc.
3197 1998-12-08 James E Wilson <wilson@wilson-pc.cygnus.com>
3199 * gennltvals.sh: Add i960.
3200 * nltvals.def: Rebuild.
3202 1998-12-04 Doug Evans <devans@casey.cygnus.com>
3204 * cgen-defs.h: New file, old cgen-sim.h.
3205 * cgen-sim.h: Simple header that includes others.
3206 * sim-arange.c: New file.
3207 * sim-arange.h: New file.
3208 * sim-basics.h: Include it.
3209 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-arange.o.
3210 (sim-arange.o): Add rule for.
3211 * sim-cpu.h (sim_cpu_msg_prefix): Add prototype.
3212 (sim_io_eprintf_cpu): Add prototype.
3213 * sim-inline.h (HAVE_INLINE): Define if GNUC.
3214 (INLINE2): New macro.
3215 (EXTERN_INLINE): New macro.
3216 * sim-module.c (sim_post_argv_init): Initialize cpu backlink
3217 before calling module init fns.
3218 * sim-profile.c (OPTION_PROFILE_*): Move into enum.
3219 (profile_init): New function.
3220 (profile_options): New option --profile-range.
3221 (profile_option_handler): Handle --profile-range.
3222 (profile_print_insn): Qualify address range specific section titles.
3223 (profile_print_addr_ranges): New function.
3224 (profile_info): Print address ranges if specified.
3225 (profile_install): Set profile_init init fn.
3226 * sim-profile.h (PROFILE_DATA): New member `range'.
3227 * sim-trace.c (trace_init): New function.
3228 (trace_options): New option --trace-range.
3229 (trace_option_handler): Handle --trace-range.
3230 (trace_install): Set trace_init init fn.
3231 * sim-trace.h (TRACE_DATA): New member `range'.
3232 * sim-utils.c (sim_cpu_msg_prefix): New function.
3233 (sim_io_eprintf_cpu): New function.
3234 * cgen-engine.h (PC_IN_TRACE_RANGE_P): New macro.
3235 (PC_IN_PROFILE_RANGE_P): New macro.
3236 * cgen-trace.c (trace_insn_init): Set current_insn to NULL.
3237 (trace_insn_fini): New arg abuf. All callers updated.
3238 Exit early if trace_insn not called. Check ARGBUF_PROFILE_P before
3239 printing cycle counts.
3240 * cgen-trace.h (trace_insn_fini): Update prototype.
3241 (TRACE_RESULT_P): New macro.
3242 (TRACE_INSN_INIT,TRACE_INSN_FINI): New arg abuf. All callers updated.
3243 (TRACE_INSN): Check ARGBUF_TRACE_P.
3244 (TRACE_EXTRACT,TRACE_RESULT): New arg abuf. All callers updated.
3245 * cgen-types.h (SIM_INLINE): Delete.
3246 (SIM_HAVE_MODEL,SIM_HAVE_ADDR_RANGE): Define.
3247 * cgen-utils.c: Don't include cgen-engine.h
3248 * genmloop.sh (@cpu@_fill_argbuf): New function.
3249 (@cpu@_fill_argbuf_tp): New function.
3250 (@cpu@_emit_before,@cpu@_emit_after): New functions.
3251 (@cpu@_pbb_begin): Prefix cti_sc,insn_count with '_'.
3252 (SET_CTI_VPC,SET_INSN_COUNT): Update.
3253 (@cpu@_pbb_before): Check ARGBUF_PROFILE_P before calling
3254 doing profiling. Update call to TRACE_INSN_INIT,TRACE_INSN_FINI.
3255 (@cpu@_pbb_after): Check ARGBUF_PROFILE_P before calling
3256 doing profiling. Update call to TRACE_INSN_FINI.
3258 * sim-memopt.c (sim_memory_uninstall): Result type is `void'.
3260 1998-12-03 Frank Ch. Eigler <fche@cygnus.com>
3262 * sim-memopt.c (sim_memory_uninstall): Deallocate all memory
3265 1998-12-01 Doug Evans <devans@casey.cygnus.com>
3267 * sim-inline.c (SIM_INLINE_P): Fix typo.
3269 1998-11-30 Doug Evans <devans@casey.cygnus.com>
3271 * cgen-utils.c (cgen_virtual_opcode_table): Update.
3273 Tue Nov 24 18:40:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
3275 * gennltvals.sh: Add v850 and d10v. Sort alphabetically.
3276 * nltvals.def: Re-generate.
3278 Mon Nov 23 13:28:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
3280 * sim-core.c (reverse_n, sim_core_uninstall, sim_core_init,
3281 sim_core_map_attach, sim_core_map_detach, next_event_queue,
3282 new_sim_core_mapping): Only define when EXTERN_SIM_CORE_P, pacify
3284 * sim-events.c (sim_events_uninstall, sim_events_suspend,
3285 sim_events_resume, sim_events_zalloc, insert_sim_event): Ditto.
3287 1998-11-22 Doug Evans <devans@tobor.to.cygnus.com>
3289 * genmloop.sh (${cpu}_pbb_chain): Watch for Ctrl-C's.
3290 (${cpu}_pbb_cti_chain): Ditto.
3292 1998-11-18 Doug Evans <devans@casey.cygnus.com>
3294 * Make-common.in (cgen-utils.o): Depend on cgen-engine.h.
3295 * cgen-engine.h (EXTRACT_[ML]SB0_{INT,UINT}): New macros.
3296 (EXTRACT_INT,EXTRACT_UINT): New macros.
3297 (SEM_SEM_ARG): New macro.
3298 (SEM_NEXT_VPC): New arg `pc'.
3299 * cgen-sim.h (EXTRACT_SIGNED,EXTRACT_UNSIGNED): Delete.
3300 (sim_disassemble_insn): Update prototype.
3301 * cgen-trace.c (current_insn,insn_fields): New static locals.
3302 (trace_insn): Set them.
3303 * cgen-utils.c: #include cgen-engine.h.
3304 (sim_disassemble_insn): New arg insn_fields.
3305 Handle variable length insns.
3306 * genmloop.sh: Only emit pbb decls if -pbb.
3307 (${cpu}_scache_lookup): New arg `vpc'.
3308 (scache support): Fetch pc before entering loop.
3310 * gennltvals.sh: Add fr30 support.
3311 * nltvals.def: Rebuild.
3313 Wed Nov 18 10:22:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
3315 * sim-types.h: Re-do type system so that GCC's attribute and mode
3316 are used to specify types. Handle case of ALPHA.
3318 1998-11-13 Frank Ch. Eigler <fche@elastic.org>
3320 * aclocal.m4: Add tests for dlopen family.
3321 * config.in: Regenerated.
3323 Wed Nov 11 14:02:25 1998 Doug Evans <devans@canuck.cygnus.com>
3325 * sim-hload.c (sim_load): Pass `prog_name' to sim_load_file, not NULL.
3327 Wed Nov 4 23:51:19 1998 Doug Evans <devans@seba.cygnus.com>
3329 * genmloop.sh (eng.hin): Rename HAVE_PARALLEL_EXEC to
3330 HAVE_PARALLEL_INSNS, define as 0 or 1. Emit decls of fns in mloop.cin.
3331 * cgen-engine.h: Typedefs of IADDR,CIA,SEM_ARG,SEM_PC moved ...
3332 * cgen-sim.h: ... to here.
3334 Wed Oct 28 12:00:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
3336 * aclocal.m4 (enable-build-warnings): Replace
3337 enable-sim-warnings. Extend =LIST syntax so that prepend and
3338 append of options is possible. Drop -Werror, add
3339 -Wstrict-prototypes for GDB compatibility.
3340 * Make-common.in (SIM_WARNINGS): Update.
3342 Mon Oct 19 13:56:32 1998 Doug Evans <devans@seba.cygnus.com>
3344 * Make-common.in (CGEN_INCLUDE_DEPS): Define.
3345 (sim-core.o): Delete duplicate dependence on $(SIM_EXTRA_DEPS).
3346 (sim-cpu.o,sim-endian.o,sim-hw.o): Ditto.
3347 (cgen-run.o,cgen-scache.o,cgen-trace.o,cgen-utils.o): Delete
3348 explicit cgen header dependencies, require SIM_EXTRA_DEPS to include
3350 * cgen-cpu.h: New file.
3351 * cgen-engine.h: New file.
3352 * cgen-scache.h: New file.
3353 * cgen-sim.h: Delete portions moved to new files.
3354 * genmloop.sh: Generate two files eng.hin,mloop.cin explicitly,
3355 rather than sending result to stdout.
3357 Fri Oct 9 14:20:22 1998 Doug Evans <devans@seba.cygnus.com>
3359 * Make-common.in (sim-reg.o): New rule.
3360 (cgen-run.o): New rule.
3361 * cgen-ops.h: Delete many BI macros. Change all UBI -> BI.
3362 * cgen-run.c (prime_cpu): New function.
3363 * cgen-scache.c: Add pseudo-basic-block (pbb) scaching support.
3364 (scache_option_handler, case OPTION_PROFILE_SCACHE): Handle explicitly
3366 (scache_flush_cpu,scache_lookup,scache_lookup_or_alloc): New fns.
3367 * cgen-sim.h (CGEN_INSN_VIRTUAL_TYPE): New enum.
3368 (CGEN_INSN_VIRTUAL_P): New macro.
3369 (SEM_PC): New typedef.
3370 (SEMANTIC_FN): Change type of result to SEM_PC.
3371 (SEM_SET_FULL_CODE,SEM_SET_FAST_CODE,SEM_SET_CODE): New macros.
3372 (IDESC_CTI_P,IDESC_SKIP_P): New macros.
3373 (SCACHE_MAP): New typedef.
3374 (CPU_SCACHE): Add pbb support.
3375 (scace_lookup,scache_lookup_or_alloc,scache_flush_cpu): Declare.
3376 (SEM_BRANCH_INIT_EXTRACT,SEM_BRANCH_INIT,SEM_BRANCH_FINI): New macros.
3377 (CGEN_CPU): New members running_p,insn_count,{fast,full}_engine_fn,
3379 (INSN_NAME): Delete.
3380 (cgen_insn_name): Declare.
3381 (sim_engine_invalid_insn): Renamed from sim_engine_illegal_insn.
3382 * cgen-trace.c (trace_buf): Shrink from 1024 to 256 bytes.
3383 (first_insn_p): Make static.
3384 (trace_insn): Handle virtual insns specially.
3385 (cgen_trace_printf): Ensure we haven't overflowed the buffer.
3386 * cgen-types.h (UBI): Delete.
3387 (MODE_TYPE): New enum.
3388 (HOSTINT,HOSTUINT,HOSTPTR): Delete.
3389 * cgen-utils.c (mode_names): Delete UBI. Add INT,UINT,PTR.
3390 (cgen_virtual_opcode_table): New global.
3391 (cgen_insn_name): New function.
3392 (sim_disassemble_insn): Ignore virtual insns.
3393 * genmloop.sh: Delete top level loop generation. Add pbb support.
3394 * sim-cpu.h (CPU_INSN_NAME_FN): New typedef.
3395 (sim_cpu_base): New members max_insns,insn_name,model_data.
3396 (CPU_PC_GET,CPU_PC_SET): New macros.
3397 (sim_pc_get,sim_pc_set): Declare.
3398 * sim-model.c (model_set): Call model init fn.
3399 * sim-model.h (MODEL_FN): New typedef.
3400 (INSN_TIMING): New member model_fn.
3401 (MODEL): New members num,init.
3402 * sim-profile.c (sim_profile_print_bar): Renamed from print_bar.
3403 All callers updated.
3404 (profile_insn_init): New fn.
3405 (profile_print_insn): Update, INSN_NAME -> CPU_INSN_NAME.
3406 Exit early if insn profiling not supported.
3407 (profile_print_memory): Update, MAX_MODES -> MODE_TARGET_MAX.
3408 (profile_install): Record profile_insn_init as init fn.
3409 (profile_uninstall): Free PROFILE_INSN_COUNT if non-null.
3410 * sim-profile.h: Update, MAX_MODES -> MODE_TARGET_MAX.
3411 (PROFILE_DATA): Delete member exec_time.
3412 Change insn_count to pointer to array, rather than the array.
3413 (sim_profile_print_bar): Declare.
3415 Wed Oct 7 16:56:42 1998 Doug Evans <devans@seba.cygnus.com>
3417 * cgen-run.c: New file.
3418 * sim-reg.c: New file.
3420 Mon Sep 14 10:58:19 1998 Frank Ch. Eigler <fche@cygnus.com>
3422 * aclocal.m4: Add checks for -lsocket and -lnsl.
3424 * dv-sockser.c (dv_sockser_init): Use SO_REUSEADDR to
3425 allow local port reuse on listening socket.
3427 Tue Sep 1 15:36:52 1998 Frank Ch. Eigler <fche@cygnus.com>
3429 * sim-config.h: Remove reference to linux kernel header.
3431 Tue Aug 25 12:45:27 1998 Frank Ch. Eigler <fche@cygnus.com>
3433 * dv-sockser.c (sockser_addr): Make variable non-static.
3435 Mon Aug 24 11:47:37 1998 Joyce Janczyn <janczyn@cygnus.com>
3437 * sim-hw.{c,h} (sim_hw_parse): Return struct hw pointer.
3439 Tue Aug 11 18:12:19 1998 Doug Evans <devans@canuck.cygnus.com>
3441 * sim-events.c (sim_events_elapsed_time): Fix calculation.
3443 Tue Aug 4 20:36:46 1998 Jeff Holcomb <jeffh@cygnus.com>
3445 * Make-common.in (install-common): Add $(EXEEXT) when installing
3448 Mon Aug 3 11:46:01 1998 Doug Evans <devans@seba.cygnus.com>
3450 * cgen-sim.h (cgen_state): New member opcode_table.
3451 * cgen-utils.c (sim_disassemble_insn): Use it.
3453 Fri Jul 24 10:14:18 1998 Doug Evans <devans@canuck.cygnus.com>
3455 * cgen-mem.h (DECLARE_SETT): Fix return type.
3456 * cgen-sim.h (sim_engine_illegal_insn): Declare.
3457 * cgen-scache.c: Include stdlib.h.
3458 * cgen-trace.c (trace_extract): Use %lx for PCADDR.
3459 * sim-model.c (model_option_handler): Remove unused variable `n'.
3461 Tue Jul 21 16:27:43 1998 Doug Evans <devans@seba.cygnus.com>
3463 * cgen-utils.c: Include bfd.h.
3464 (sim_disassemble_insn): Update call to CGEN_EXTRACT_FN.
3466 Wed Jul 8 18:24:10 1998 Jeffrey A Law (law@cygnus.com)
3468 * sim-bits.h (EXTEND24): Fix typo.
3470 Wed Jul 8 17:41:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
3472 * sim-events.c (ETRACE_P): New macro.
3473 (struct _sim_event): Add member trace.
3474 (sim_events_free): Reclaim trace message.
3476 * sim-events.c, sim-events.h (sim_events_schedule_vtracef,
3477 sim_events_schedule_tracef): New functions, include printf trace
3478 information in argument list. If tracing, store asprintf'd trace
3479 message in sim_event.
3481 * hw-events.c, hw-events.h (hw_event_queue_schedule_tracef,
3482 hw_event_queue_schedule_vtracef): New functions, mimic
3485 Mon Jul 6 15:51:14 1998 Jeffrey A Law (law@cygnus.com)
3487 * sim-bits.h (EXTEND24): Define.
3489 Thu Jul 2 17:13:25 1998 Doug Evans <devans@seba.cygnus.com>
3491 * cgen-sim.h (CPU_SCACHE): Make size unsigned.
3492 (CPU_SCACHE_HASH_MASK): New macro.
3493 (SCACHE_HASH_PC): Rewrite.
3494 * genmloop.sh (engine_resume_{full,fast}): Move some of hash
3495 computation out of main loop.
3497 Wed Jul 1 16:44:12 1998 Doug Evans <devans@seba.cygnus.com>
3499 * cgen-sim.h (RECORD_IADDR): Delete.
3500 * cgen-types.h (HOSTINT,HOSTUINT,HOSTPTR): New types.
3501 * genmloop.sh (engine_resume_{full,fast}): Delete icount.
3503 Wed Jun 17 12:25:08 1998 Mark Alexander <marka@cygnus.com>
3505 * gennltvals.def (mn10200): Add entry.
3506 * nltvals.def: Regenerate with MN10200 additions.
3508 Wed Jun 17 13:18:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
3510 * sim-inline.h (EXTERN_*): Replace with EXTERN_*_P. Correct
3511 documentation on how it works.
3513 * sim-core.h, sim-core.c (sim_core_install, sim_core_attach,
3514 sim_core_detach, sim_core_read_buffer, sim_core_write_buffer,
3515 sim_core_set_xor, sim_core_xor_read_buffer,
3516 sim_core_xor_write_buffer): Update.
3518 * sim-events.h, sim-events.c (sim_events_install,
3519 sim_events_watch_clock, sim_events_schedule_after_signal,
3520 sim_events_schedule, sim_events_watch_sim, sim_events_watch_core,
3521 sim_events_deschedule): Update.
3523 * sim-fpu.h, sim-fpu.c (sim_fpu_zero, sim_fpu_one, sim_fpu_two,
3524 sim_fpu_max32, sim_fpu_max64): Update.
3526 Sat Jun 13 07:45:38 1998 Doug Evans <devans@fallis.cygnus.com>
3528 * cgen-trace.c (trace_insn_fini): Redo cycle handling.
3529 * sim-profile.h (PROFILE_DATA): Rename cycle handling members.
3530 * sim-profile.c (profile_print_model): Update.
3532 Fri Jun 12 18:35:07 1998 Doug Evans <devans@seba.cygnus.com>
3534 * gennltvals.def (m32r): Use common syscall.h now.
3535 (mn10300): Add entry.
3536 * nltvals.def: Regenerate.
3538 * sim-engine.c (sim_engine_get_run_state): New function.
3539 * sim-engine.h (sim_engine_get_run_state): Declare it.
3541 Thu Jun 11 00:50:03 1998 Doug Evans <devans@seba.cygnus.com>
3543 * sim-core.h (SIM_CORE_SIGNAL_FN): New typedef.
3544 * sim-core.c (sim_core_signal): Make extern, always define.
3546 Wed Jun 10 16:02:29 1998 Doug Evans <devans@seba.cygnus.com>
3548 * Make-common.in (CGEN_FLAGS_TO_PASS): New variable.
3549 * cgen-ops.h (ANDIF): New macro.
3550 (ANDIF[BQHSD]I): Delete.
3552 Thu Jun 4 13:53:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
3554 * hw-events.c (create_hw_event, delete_hw_event): Delete.
3555 (hw_event_queue_schedule, hw_event_queue_deschedule,
3556 bounce_hw_event): Fix hw-event memory corruptions found by Joyce
3559 * hw-alloc.h (HW_NZALLOC): Define.
3561 * Make-common.in (test-hw-events): Add target for testing the
3564 Mon May 25 21:11:26 1998 Andrew Cagney <cagney@b1.cygnus.com>
3566 * Make-common.in (SIM_COMMON_HW_OBJS): Add hw-handles.o and
3568 hw-handles.c, hw-instances.c, hw-handles.h, hw-instances.h: New
3570 * hw-main.h: Include hw-handles.h, hw-instances.h.
3571 * hw-base.h ({create,delete}_hw_{handles,instances}_data): Declare
3572 * hw-base.c (hw_create, hw_delete): Call same.
3574 Mon May 25 18:55:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
3576 * dv-core.c: Include hw-main.h and sim-main.h.
3577 * dv-pal.c: Include hw-main.h and sim-io.h.
3578 * dv-glue.c: Include hw-main.h.
3580 * hw-main.h: New file. Move list of includes to here.
3581 * hw-base.h: From here.
3582 * Make-common.in (hw_base_headers): Rename to hw_main_headers.
3583 (hw-*.o, dv-*.o): Update.
3584 * hw-tree.c, hw-base.c, hw-properties.c, hw-ports.c, hw-device.c,
3585 hw-events.c, hw-alloc.c, sim-hw.c: Include hw-main.h instead of
3588 * hw-base.h (do_hw_attach_regs, do_hw_poll_read_method,
3589 do_hw_poll_read): Move declarations from here.
3590 * hw-main.h: To here.
3592 * hw-base.h (struct hw_device_descriptor, hw_finish_callback):
3594 * hw-main.h (struct hw_descriptor, hw_finish_method): To here,
3596 * Make-common.in (hw-config.h): Update
3597 * hw-base.c, dv-pal.c, dv-glue.c: Update
3599 * dv-glue.c, hw-device.h, hw-base.h, hw-ports.c: Rename
3600 `*_callback' to `*_method.
3602 Mon May 25 18:41:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
3604 * hw-base.h (set_*): Move set method macros from here.
3605 * hw-device.h: To here.
3607 Mon May 25 18:21:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
3609 * hw-base.h (create_hw_property_data, delete_hw_property_data):
3612 * hw-base.c (hw_create, hw_delete): Call
3613 * hw-properties.c (create_hw_property_data,
3614 delete_hw_property_data): Define.
3616 Mon May 25 17:40:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
3618 * hw-device.c, hw-properties.c: Include hw-base.h
3620 * hw-alloc.h, hw-alloc.c: New files. Move alloc code to here.
3621 * hw-device.c: From here.
3622 * hw-base.h: Include "hw-events.h".
3624 * hw-base.h (create_hw_alloc_data, delete_hw_alloc_data): Declare.
3625 * hw-base.c (hw_create, hw_delete): Call.
3626 * hw-alloc.c (create_hw_alloc_data, delete_hw_alloc_data): Define.
3628 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-alloc.o.
3629 (hw-alloc.o): New target.
3631 Mon May 25 17:14:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
3633 * hw-events.h, hw-events.c: New files. Move event code to here.
3634 * sim-hw.c: From here.
3635 * hw-base.h: Include "hw-events.h".
3636 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-events.o.
3637 (hw-events.o): New target.
3639 * hw-device.h (struct hw): Add struct hw_event_data events_of_hw.
3640 * hw-events.h (struct hw_event): Replace typedef hw_event.
3642 * hw-base.h (create_hw_event_data, delete_hw_event_data): Declare.
3643 * hw-base.c (hw_create, hw_delete): Call.
3644 * hw-events.c (create_hw_event_data, delete_hw_event_data): Define.
3648 Mon May 25 16:55:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
3650 * hw-base.c (panic_hw_port_event, empty_hw_ports): Move from here.
3651 * hw-ports.c: To here.
3653 * hw-base.h, hw-ports.c (create_hw_port_data,
3654 delete_hw_port_data): New functions.
3655 * hw-base.c (hw_delete, hw_create): Call same.
3657 * hw-base.h (set_hw_ports, set_hw_port_event): Move set functions
3659 * hw-ports.h: To here.
3661 Mon May 25 16:42:48 1998 Andrew Cagney <cagney@b1.cygnus.com>
3663 * hw-device.c (hw_ioctl), hw-device.h (hw_ioctl_callback): Drop
3664 PROCESSOR and CIA arguments.
3666 Fri May 22 12:16:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
3668 * aclocal.m4 (SIM_AC_OPTION_HW): Add enable / disable argument.
3669 Move common object files from here.
3670 * Make-common.in (SIM_COMMON_HW_OBJS): To here.
3672 Thu May 21 17:57:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
3674 * sim-hw.c: Include ctype.h.
3675 (do_hw_poll_read): Do not assume EAGAIN.
3677 Wed May 20 04:37:57 1998 Doug Evans <devans@seba.cygnus.com>
3679 * cgen-trace.c (first_insn_p): New static local.
3680 (trace_insn_init): Set it.
3681 (trace_insn_fini): Use TRACE_PREFIX.
3682 (trace_insn): Rewrite to use trace_prefix.
3683 * sim-trace.c (trace_prefix): Don't print filename arg if NULL.
3684 Adjust width accordingly.
3686 * sim-profile.h (PROFILE_DATA): New member profile_any_p.
3687 (PROFILE_ANY_P,PROFILE_INSN_P,PROFILE_MEMORY): New macros.
3688 (PROFILE_SCACHE_P,PROFILE_PC_P,PROFILE_CORE_P): New macros.
3689 (PROFILE_COUNT_INSN,PROFILE_COUNT_READ,PROFILE_COUNT_WRITE): Simplify.
3690 (PROFILE_COUNT_CORE): Simplify.
3691 * sim-profile.c (profile_option_handler): Compute profile_any_p.
3693 Tue May 19 23:55:30 1998 Doug Evans <devans@seba.cygnus.com>
3695 * cgen-ops.h (ADDCFSI): Fix typo.
3697 Sat May 16 12:44:52 1998 Doug Evans <devans@seba.cygnus.com>
3699 * cgen-sim.h (CGEN_CPU): New members idesc_{read,sem}_init_p.
3700 * genmloop.sh: Use them rather than static locals.
3702 * sim-engine.c (sim_engine_set_run_state): New function.
3703 * sim-engine.h (sim_engine_set_run_state): Declare.
3704 * genmloop.sh (pending_reason,pending_sigrc): New static locals.
3705 (@cpu@_engine_stop): New args reason,sigrc. All callers updated.
3706 (engine_resume): Reorganize. Allow synchronous exit from main loop.
3708 Fri May 15 16:06:05 1998 Doug Evans <devans@seba.cygnus.com>
3710 * cgen-trace.c (trace_insn_init): New arg first_p.
3711 All callers updated.
3712 (trace_insn_fini): New arg last_p. All callers updated.
3713 * cgen-trace.h (trace_insn_init,trace_insn_fini): Update.
3714 (TRACE_INSN_INIT,TRACE_INSN_FINI): Update.
3715 * genmloop.sh (engine_resume): Update.
3717 Fri May 15 15:59:00 1998 Joyce Janczyn <janczyn@cygnus.com>
3719 * Make-common.in (install-common): Run ranlib on installed copy of
3722 Fri May 15 15:03:00 1998 Joyce Janczyn <janczyn@cygnus.com>
3724 * Make-common.in (install-common): Rename and install libsim.a.
3726 Tue May 12 15:23:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
3728 * sim-io.c (unistd.h): Include.
3730 Wed May 6 16:04:18 1998 Doug Evans <devans@seba.cygnus.com>
3732 * Make-common (sim_main_headers): Sort.
3733 (cgen-*.o): Add cgen-sim.h dependency.
3735 * cgen-scache.c (scache_init): Only allocate space if scache element
3737 (scache_flush,scache_print_profile): Check if scache in use first.
3739 * cgen-sim.h (IDESC): Provide forward declaration.
3741 (CGEN_CPU): Always define scache member. New members idesc,opcode.
3742 (cgen_cpu_max_extra_bytes): Declare.
3743 * cgen-utils.c (cgen_cpu_max_extra_bytes): New function.
3745 * sim-cpu.h: New file. sim_cpu_base moved here.
3746 Move sim_cpu_lookup decl here.
3747 * sim-base.h: #include "sim-cpu.h".
3748 * sim-cpu.c: New file.
3749 * Make-common (sim_main_headers): Add sim-cpu.h.
3750 (sim-cpu.o): Add rule for.
3752 * sim-model.c (set_model): Delete.
3753 (sim_model_set,model_set): New functions.
3754 (sim_model_install): Renamed from model_install.
3755 Don't set default model here.
3756 (model_option_handler): Rewrite --model processing.
3757 (sim_model_lookup,sim_mach_lookup): New functions.
3758 * sim-model.h (MAX_MODELS,MAX_INSNS): Delete.
3759 (insn_timing): Delete.
3760 (INSN_TIMING): New member `num'.
3761 (IMP_PROPERTIES): Always define scache_elm_size member.
3762 (MACH): New member init_cpu.
3763 (sim_machs): Renamed from machs.
3764 (sim_model_install): Renamed from model_install.
3765 (sim_model_set,sim_model_lookup,sim_mach_lookup): Declare.
3766 * sim-module.c (modules): Update.
3768 * sim-profile.c (profile_print_insn): Add cpu arg to INSN_NAME macro.
3770 * sim-io.c: #include <errno.h>.
3772 Wed May 6 12:39:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
3774 * dv-pal.c (struct hw_pal_device): Add reader.
3775 (hw_pal_finish): Initialize reader.
3776 (scan_hw_pal): Use reader.
3778 * hw-base.h, sim-hw.c (do_hw_poll_read): New function.
3779 (HW_IO_EOF, HW_IO_NOT_READY): Define.
3782 * sim-io.h, sim-io.c (sim_io_poll_read): New function. Copy from
3783 ../ppc/main.c sim_io_read_stdin.
3785 Fri May 1 12:11:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
3787 * hw-tree.h (hw_tree_print): Paramaterize with print and file
3789 * hw-tree.c: Update.
3791 * hw-base.h (hw_port_event_callback): Delete CPU/CIA args.
3792 * hw-device.h (hw_io_read_buffer, hw_io_write_buffer): Delete
3794 * hw-ports.h (hw_port_event): Ditto.
3795 * hw-ports.c (hw_port_event): Update.
3796 * hw-base.c (panic_hw_io_read_buffer, panic_hw_io_write_buffer):
3798 * dv-pal.c (hw_pal_io_read_buffer, hw_pal_io_write_buffer):
3800 (hw_pal_io_write_buffer): Call hw_halt not sim_engine_halt.
3801 (do_counter_event): Update.
3802 * dv-glue.c (hw_glue_io_read_buffer): Update.
3803 (hw_glue_port_event): Update.
3805 * hw-device.h (SIM_DESC): Replace with struct sim_state.
3806 * hw-base.h (hw_create): Ditto.
3807 * hw-base.c (hw_create): Ditto.
3809 * hw-device.c (hw_abort, hw_trace, hw_hw_event_queue_schedule,
3810 hw_event_queue_deschedule, hw_event_queue_time): Delete, moved
3813 * hw-device.h (hw_system_cpu): Declare.
3814 * sim-hw.c (hw_system_cpu): New function.
3816 * sim-core.c (sim_core_map_attach, sim_core_attach): Call
3817 sim_hw_abort not hw_abort.
3818 (sim-hw.h): Include.
3819 (sim_core_read_buffer, sim_core_write_buffer): Call
3820 sim_hw_io_read_buffer and sim_hw_io_write_buffer. Do not pass CPU
3822 (sim_core_set_xor): Do not pass CPU when aborting.
3824 * sim-n-core.h (sim_core_read_aligned_N,
3825 sim_core_write_aligned_N): Call sim_hw_abort not hw_abort.
3826 (sim_core_read_aligned_N, sim_core_write_aligned_N): Call
3827 sim_cpu_hw_io_read_buffer and sim_cpu_hw_io_write_buffer. Does not
3830 * sim-hw.h: Declare sim_hw_io_{read,write}_buffer. Declare
3832 * sim-hw.c (sim_hw_io_read_buffer, sim_hw_io_write_buffer,
3833 sim_cpu_hw_io_read_buffer, sim_cpu_hw_io_write_buffer): New
3835 (sim_hw_print): New function.
3837 * sim-engine.h (sim_engine_vabort): Declare.
3838 * sim-engine.c (sim_engine_vabort): New function.
3840 Wed Apr 29 23:58:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
3842 * sim-trace.c (print_data): For floating-point numbers trace raw
3844 (trace_result_fp2): New function.
3845 * sim-trace.h (trace_result_fp2): New declaration.
3846 (TRACE_FP_RESULT2): New macro.
3848 Tue Apr 28 18:28:58 1998 Geoffrey Noer <noer@cygnus.com>
3850 * common/aclocal.m4: call AM_EXEEXT in SIM_AC_COMMON, define
3851 AM_CYGWIN32 and AM_EXEEXT.
3852 * common/Make-common.in: set EXEEXT, add missing EXEEXTs
3853 to run and install-common rules.
3854 * common/configure: regenerate
3856 Sat Apr 25 17:45:01 1998 Andrew Cagney <cagney@b1.cygnus.com>
3858 * sim-types.h (cell_word): New type.
3859 (natural_cell): Delete type.
3861 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
3863 * configure: Regenerated to track ../common/aclocal.m4 changes.
3866 Sun Apr 26 15:25:07 1998 Tom Tromey <tromey@cygnus.com>
3868 * acconfig.h (NEED_DECLARATION_PRINTF): Removed.
3870 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
3872 * configure: Regenerated to track ../common/aclocal.m4 changes.
3875 Fri Apr 24 11:38:08 1998 Tom Tromey <tromey@cygnus.com>
3877 * acconfig.h: New file.
3878 * Make-common.in (top_builddir): New macro.
3879 (INTL_LIB): Removed.
3880 (INTLLIBS): New macro.
3881 (INTLDEPS): Likewise.
3882 (LIBDEPS): Use INTLDEPS.
3883 (EXTRA_LIBS): Use INTLLIBS.
3884 * aclocal.m4 (SIM_AC_COMMON): Call CY_GNU_GETTEXT.
3885 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST,
3886 AM_LC_MESSAGES): New macros from GNU gettext.
3888 Fri Apr 24 19:57:59 1998 Andrew Cagney <cagney@b1.cygnus.com>
3890 * sim-config.h: Discard leading _ from macros.
3891 * sim-types.h: Ditto.
3893 Wed Apr 22 14:14:19 1998 Michael Meissner <meissner@cygnus.com>
3895 * Make-common.in (CSEARCH): Add -I to intl directories.
3896 (INTL_LIB): Point to libintl.a.
3897 (LIBDEPS): Add $(INTL_LIB).
3898 (EXTRA_LIBS): Ditto.
3900 Tue Apr 21 12:44:27 1998 Doug Evans <devans@canuck.cygnus.com>
3902 * cgen-types.h (GETHIDI,MAKEDI): Tweak.
3904 * cgen-ops.h (ADDCFSI): Fix.
3907 Tue Apr 21 13:18:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
3909 * sim-types.h (signed_address, unsigned_address): Define.
3911 Mon Apr 20 21:47:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
3913 * sim-fpu.c (sim_fpu_2d): Don't return an SNaN, convert it into a
3916 Thu Apr 16 10:30:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
3918 * sim-fpu.c, sim-fpu.h (sim_fpu_fractionto, sim_fpu_tofraction):
3919 New functions, pack / unpack sim_fpu struct using raw values.
3920 (sim_fpu_is): Differentiate between negative and positive
3923 Tue Apr 14 18:49:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
3925 * sim-bits.h (EXTEND4): Define.
3926 (EXTEND4, EXTEND15, EXTEND11): Ditto.
3928 Tue Apr 14 16:31:35 1998 John Metzler <jmetzler@cygnus.com>
3930 * sim-memopt.c (parse_addr): Sunos 4.5 does not have strtol
3931 declared so we need this cast to prevent long long addresses
3932 from being misconfigures. Results in access to unmapped memory.
3934 Tue Apr 14 13:19:14 1998 Doug Evans <devans@canuck.cygnus.com>
3936 * Make-common.in (RUNTESTFLAGS): Define.
3937 (check): Pass RUNTESTFLAGS to recursive make.
3939 Tue Apr 14 15:09:19 1998 Andrew Cagney <cagney@b1.cygnus.com>
3941 * sim-info.c (sim_info): Be verbose when either VERBOSE or
3944 Sat Apr 4 23:24:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
3946 * aclocal.m4 (sim-inline): By default, disable sim-inline when
3949 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
3951 * aclocal.m4 (sim-cflags): Add -fomit-frame-pointer to defaults.
3952 (sim-inline): Update to match sim-inline.[hc]
3953 * configure: Regenerated to track ../common/aclocal.m4 changes.
3955 * Make-common.in (sim_main_headers): Add sim-inline.h
3957 * sim-bits.h (sim-bits.c): Include when H_REVEALS_MODULE_P.
3959 * sim-endian.h (sim-endian.c): Ditto.
3961 * sim-events.h (_SIM_EVENTS_H_): Replace with SIM_EVENTS_H.
3962 (sim_events_set_trace): Delete unused prototype.
3964 * sim-core.h (_SIM_CORE_H_): Replace with SIM_CORE_H.
3965 * sim-core.c (_SIM_CORE_C_): Ditto for SIM_CORE_C.
3967 * sim-fpu.h (sim-fpu.c): Include when H_REVEALS_MODULE_P.
3968 (sim_fpu_to232i, sim_fpu_to232u, sim_fpu_i232to, sim_fpu_u232to):
3969 Comment out, not yet implemented in sim-fpu.c.
3970 (sim_fpu_zero, sim_fpu_one, sim_fpu_two, sim_fpu_qnan,
3971 sim_fpu_max32, sim_fpu_max64): Mark as EXTERN_SIM_FPU.
3973 * sim-inline.h: Rewrite description.
3974 (H_REVEALS_MODULE_P, C_REVEALS_MODULE_P): Define.
3975 (SIM_MAIN_INLINE): Add inline option.
3977 * sim-inline.c (semantics.c, idecode.c, engine.c, ...): Do not
3978 include generated files. Handled by generator directly.
3980 Sat Apr 4 01:07:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
3982 * sim-trace.c (set_trace_option_mask): Keep TRACE_ANY_P
3985 * sim-trace.h (TRACE_ANY_P): Define.
3986 (struct _trace_data): Add trace_any_p.
3988 Mon Mar 30 17:11:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
3990 * run.c (main): Handle all alternatives of enum sim_stop.
3991 (main): Delete unused `asection *s'.
3993 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
3995 * hw-tree.h, hw-tree.c (hw_tree_vparse): New function
3997 * configure: Regenerated to track ../common/aclocal.m4 changes.
3999 * sim-hw.c: New file.
4000 * sim-hw.h (sim_hw_parse): Declare function.
4001 (hw-tree.h): Do not include.
4003 * sim-base.h (STATE_HW): Define.
4004 (struct sim_state_base): Add member struct *hw.
4006 * sim-module.c (sim-hw.h): Include.
4007 (modules): Add sim_hw_install.
4009 * aclocal.m4 (sim_hw_obj): Add sim-hw.o
4011 Fri Mar 27 14:55:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
4013 * sim-base.h (CPU_INDEX): Define.
4015 * sim-utils.c (sim_state_alloc): Initialize.
4016 * sim-module.c (sim_post_argv_init): Ditto.
4018 Thu Mar 26 10:07:57 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
4020 * aclocal.m4 (sim_hw_obj): Fix sed expression to generate
4021 properly formatted lists.
4023 Thu Mar 26 10:37:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
4025 * dv-pal.c (enum hw_pal_address_mask): From Stu Grossman, was
4026 0x2f needs to be 0x3f.
4028 Thu Mar 26 09:10:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
4030 * hw-tree.c (hw_tree_find_property): Return NULL when device is
4032 (hw_tree_find_*_property): Clean up error message when property is
4035 * dv-pal.c (hw_pal_io_read_buffer): Check the smp property is
4036 present before looking for it.
4038 Wed Mar 25 16:17:38 1998 Ian Carmichael <iancarm@cygnus.com>
4040 * aclocal.m4 (AC_CHECK_HEADERS): Add check for fpu_control.h.
4041 (AC_CHECK_FUNCS): Add check for __setfpucw.
4042 * configure: Regenerated.
4044 Wed Mar 25 09:18:34 1998 Andrew Cagney <cagney@b1.cygnus.com>
4046 * dv-pal.c (hw_pal_countdown, hw_pal_countdown_value,
4047 hw_pal_timer, hw_pal_timer_value): Define.
4048 (hw_pal_io_read_buffer, hw_pal_io_write_buffer): Add timer support
4049 (do_counter_event, do_counter_read, do_counter_value,
4050 do_counter_write): new functions.
4052 Tue Mar 24 12:24:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
4054 * hw-tree.c (hw_printf): Send tree dump to stderr, same as other
4057 * hw-base.c (hw_create): Stop searching for a device when one is
4060 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
4062 * configure: Regenerated to track ../common/aclocal.m4 changes.
4064 Mon Mar 23 10:25:08 1998 Andrew Cagney <cagney@b1.cygnus.com>
4066 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add second argument,
4067 appends extra devices.
4068 (SIM_AC_OPTION_HARDWARE): Substute sim_hw, a non-duplicate list of
4071 * Make-common.in (hw-config.h): New target, create hw-config.h
4073 (SIM_HW): Definition from @sim_hw@.
4074 (hw-base.o): Depend on hw-config.h
4076 Tue Mar 24 17:41:35 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
4078 * Make-common.in: Get SHELL from configure.
4079 * (stamp-tvals sim-inline.c): Use $(SHELL) when invoking
4080 move-if-change. Fixes NT native build problem.
4081 * Makefile.in (nltvals.def): Use $(SHELL) when invoking
4082 move-if-change. Fixes NT native build problem.
4083 * configure: Regenerate with autoconf 2.12.1 to fix shell issues for
4086 Sun Mar 22 16:54:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
4088 * hw-device.h, hw-device.c (hw_strdup): New function.
4090 * hw-base.c (hw_create): Use hw_strdup when saving a copy of the
4091 strings name, family and args.
4092 (full_name_of_hw): Use hw_strdup when returning the full path.
4094 * hw-properties.c: Clean up property not found / wrong type error
4097 * hw-tree.c (hw_tree_parse): Finish a devices initialization
4098 before attaching any ports.
4100 * hw-base.c (hw-config.): Include. Replace hardwired table.
4102 * dv-glue.c: Copy over ../ppc/hw_glue.c. Update to new framework.
4104 * Make-common.in: Add rule for dv-glue.o.
4106 Sun Mar 22 16:45:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4108 * hw-base.c (hw_finish): Move setting of trace level to here.
4109 (hw_create): From here.
4111 * hw-base.h, hw-base.c (do_hw_attach_regs): Copy function from
4112 ../ppc/device_table.c.
4114 * dv-pal.c (hw_pal_finish): Attach PAL device to parent bus.
4116 * hw-tree.c (print_properties): Supress path when printing
4117 properties of root node.
4119 Sun Mar 22 16:21:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
4121 * hw-device.h (HW_TRACE): Define.
4122 (hw_trace): Declare.
4123 * hw-device.c (hw_trace): Implement function.
4125 * hw-base.c (hw_create): Set hw trace level from "trace?"
4128 * dv-core.c (dv_core_attach_address_callback): Add trace.
4130 * dv-pal.c: Replace DTRACE with HW_TRACE.
4132 Sun Mar 22 15:23:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
4134 * hw-device.h (HW_ZALLOC, HW_MALLOC): New macros.
4135 (hw_alloc_data): Delcare.
4136 (struct hw): Add member alloc_of_hw.
4138 * hw-device.c (hw_zalloc, hw_malloc, hw_free, hw_free_all): New
4139 functions. Assocate memory with a device.
4140 (stdlib.h): Include.
4142 * hw-base.h (set_hw_delete): Define.
4143 (hw_delete_callback): Declare.
4144 (hw_delete): Declare.
4146 * hw-base.c (hw_delete): Implement function.
4147 (struct hw_base_data): Add member to_delete.
4148 (ignore_hw_delete): New function, does nothing.
4149 (hw_create): Set the hw_delete method.
4150 (hw_create): Allocate the base type using HW_ZALLOC before setting
4153 * hw-tree.h, hw-tree.c (hw_tree_delete): New function.
4155 * hw-properties.c: Replace zalloc/zfree with hw_zalloc/hw_free.
4157 * hw-ports.c: Replace zalloc/zfree with hw_zalloc/hw_free.
4158 (attach_hw_port_edge): Add struct hw argument
4160 * dv-pal.c (hw_pal_finish): Replace zalloc/zfree with
4163 Sun Mar 22 15:09:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
4165 * hw-device.h (hw_attach_address_callback,
4166 hw_detach_address_callback): Attach to a single space not a space
4167 mask. Clarify interpretation of SPACE:ADDR parameters.
4169 * hw-base.c (passthrough_hw_attach_address,
4170 passthrough_hw_detach_address): Update.
4171 * dv-core.c (dv_core_attach_address_callback): Ditto.
4172 * dv-pal.c (hw_pal_attach_address): Ditto.
4174 Thu Mar 19 00:41:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
4176 * sim-options.h: Document additional CPU arg to OPTION_HANDLER.
4178 Wed Mar 18 14:13:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
4180 * Make-common.in (SIM_HW_OBJS, SIM_HW_SRC, SIM_DV_OBJS): Define.
4181 (hw-base_h, hw-device_h, hw-handles_h, hw-instances_h, hw_ports_h,
4182 hw-properties_h, hw-tree_h): Define, point at corresponding
4184 (hw_base_headers): Define list of headers included by hw-base.h
4185 (hw-base.o, hw-device.o, hw-instances.o, hw-handles.o, hw-ports.o,
4186 hw-properties.o, hw-tree.o): Specify dependencies.
4187 (dv-core.o, dv-pal.o): Ditto.
4189 * sim-hw.h: New file.
4191 * hw-device.h, hw-device.c, hw-properties.h, hw-properties.c,
4192 hw-ports.h, hw-ports.c: New files. Copied from ../ppc/device.[ch].
4194 * hw-tree.h, hw-tree.c: New files. Copied from ../ppc/tree.[hc].
4196 * hw-base.h, hw-base.c: new files. Copied from
4197 ../ppc/device_table.[hc].
4199 * dv-core.c, dv-pal.c: New files. Copied from
4200 ../ppc/hw_{core,pal}.c
4202 * sim-basics.h (struct hw): Declare.
4203 (enum port_direction, enum object_disposition): Declare.
4205 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
4207 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set sim_hw_obj, sim_dv_obj,
4208 sim_dv_src in Makefile. Take list of devices as parameter to m4
4211 * configure: Regenerated to track ../common/aclocal.m4 changes.
4213 Mon Mar 16 12:37:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
4215 * sim-trace.h, sim-trace.c (trace_prefix): Pass in sim_cia so that
4216 trace_prefix can abort cleanly.
4218 Sat Mar 14 18:36:12 1998 Doug Evans <devans@seba.cygnus.com>
4220 * dv-sockser.c, dv-sockser.h: New files.
4221 * Make-common.in (dv-sockser.o): Add rule for.
4222 * aclocal.m4: Check for fcntl.h.
4223 * config.h: Add HAVE_FCNTL_H.
4225 * sim-break.c (remove_breakpoint): Fix thinko.
4227 * sim-hload.c (sim_load): Provide default value of SIM_HANDLES_LMA.
4228 Use SIM_HANDLES_LMA for lma_p arg to sim_load_file.
4230 1998-03-13 Fred Fish <fnf@cygnus.com>
4232 * sim-base.h (struct sim_state_base): Add prog_syms and
4233 define macro STATE_PROG_SYMS.
4234 * sim-trace.c (trace_prefix): Add variables abfd, symsize,
4235 symbol_count, and asymbols. Call bfd_get_symtab_upper_bound
4236 and bfd_canonicalize_symtab, to get symbol table on first use
4237 and preserve it via STATE_PROG_SYMS for future calls to
4238 bfd_find_nearest_line.
4240 Wed Mar 11 14:02:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
4242 * sim-core.h, sim-core.c (sim_core_map_to_str): Delete.
4244 * sim-core.c (sim_core_attach): Handle a generic number of maps -
4245 up to nr_maps, not just access_* maps.
4247 * sim-profile.h (struct PROFILE_DATA): Track nr_maps different
4250 * sim-profile.c (profile_print_core): Make map unsigned. Iterate
4251 over nr_maps not sim_core_nr_maps.
4253 * sim-events.h, sim-events.c (sim_events_watch_core): Change
4254 core_map argument to unsigned.
4255 (struct _sim_core): Ditto for struct member core_map.
4257 * sim-core.h (nr_sim_core_maps, sim_core_*_map): Delete
4259 * sim-basics.h (access_io, access_*_io): Define.
4260 (map_read, map_write, map_exec, map_io): Define.
4262 * sim-core.c, sim-core.h (sim_core_attach): Replace argument
4263 attach with more generic mapmask.
4264 (sim_core_{read,write}_*): Change map argument to unsigned.
4266 * sim-core.c (sim_core_uninstall, sim_core_attach,
4267 sim_core_detach): Iterate over nr_maps instead of
4270 * sim-break.c (insert_breakpoint): Write breakpoints to exec_map
4271 instead of the write_map.
4272 (remove_breakpoint): Ditto.
4274 * genmloop.sh (engine_resume_full): Replace sim_core_*_map
4275 with read_map, write_map, exec_map resp.
4277 * cgen-mem.h (DECLARE_GETMEM, DECLARE_SETMEM, DECLARE_GETIMEM):
4280 * cgen-utils.c (sim_disassemble_insn): Ditto.
4282 * sim-hrw.c (sim_write, sim_write): Ditto.
4284 * sim-utils.h, sim-utils.c (access_to_str, map_to_str,
4285 transfer_to_str): New functions.
4287 Mon Mar 9 12:50:59 1998 Doug Evans <devans@seba.cygnus.com>
4289 * sim-base.h (sim_state_base): New member environment.
4290 (STATE_ENVIRONMENT): New macro.
4291 * sim-config.c (current_environment): Delete.
4292 (sim_config_default): New function.
4293 (sim_config): Set STATE_ENVIRONMENT, not current_environment.
4294 * sim-config.h (current_environment,CURRENT_ENVIRONMENT): Delete.
4295 (sim_config_default): Add prototype.
4296 * sim-module.c (sim_pre_argv_init): Call sim_config_default.
4297 * sim-options.c (standard_option_handler, case OPTION_ENVIRONMENT):
4298 Set STATE_ENVIRONMENT, not current_environment.
4300 Mon Mar 9 11:59:03 1998 Jim Wilson <wilson@cygnus.com>
4302 * sim-fpu.c (NR_GUARDS64): Change NR_PAD32 to NR_PAD64.
4304 Tue Mar 3 10:53:05 1998 Andrew Cagney <cagney@b1.cygnus.com>
4306 * sim-types.h (SIGNED32, SIGNED64): Pacify GCC.
4308 * sim-alu.h (ALU64_BEGIN): Make alu64_r unsigned.
4310 Mon Mar 2 10:20:06 1998 Doug Evans <devans@seba.cygnus.com>
4312 * Make-common.in (TAGS): Make smarter.
4313 * Makefile.in (TAGS): Ditto.
4315 Fri Feb 27 19:09:57 1998 Doug Evans <devans@canuck.cygnus.com>
4317 * sim-module.c (*): Fix typos in assertion tests.
4319 Sat Feb 28 13:54:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
4321 * sim-module.c (sim_pre_argv_init): String passed to asprintf
4324 * sim-options.c (sim_parse_args): Ditto.
4325 (sim_args_command): Return OK, instead of nothing, for an empty
4328 Fri Feb 27 13:29:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
4330 * sim-profile.c (profile_info): Rename from profile_print. Drop
4331 misc and misc_cpu callback arguments. Use
4332 PROFILE_INFO_CPU_CALLBACK and STATE_PROFILE_INFO_CALLBACK instead.
4333 (profile_install): Install profile_info function.
4335 * sim-profile.h (PROFILE_INFO_CPU_CALLBACK,
4336 STATE_PROFILE_INFO_CALLBACK): Define.
4337 (struct PROFILE_DATA): Add field info_cpu_callback.
4338 (profile_print): Delete function.
4340 * sim-base.h (STATE_MODULES): Define. Replace individual
4341 STATE_*_LIST with single struct module_list.
4343 * sim-module.h (MODULE_INFO_FN, MODULE_INFO_LIST): Declare.
4344 (struct module_list): Declare.
4346 * sim-module.h, sim-module.c (sim_module_add_info_fn,
4347 sim_module_info): New functions.
4348 (sim_module_install): Clean up module data structures.
4350 * sim-info.c (sim_info): New file. New function. Call
4353 * Make-common.in (sim-info.o): Define rule.
4354 (SIM_NEW_COMMON_OBJS): Add sim-info.o.
4357 Fri Feb 27 18:26:16 1998 Doug Evans <devans@canuck.cygnus.com>
4359 * sim-base.h (sim_cpu_base): New members name, options.
4360 (sim_cpu_lookup): Add prototype.
4361 * sim-module.c (sim_pre_argv_init): Provide default names for cpus.
4362 * sim-options.h (DECLARE_OPTION_HANDLER): New argument `cpu'.
4363 (sim_add_option_table): Update prototype.
4364 * sim-options.c (sim_add_option_table): New argument `cpu'.
4365 (standard_option_handler,standard_install): Update.
4366 (sim_parse_args): Handle cpu specific options.
4367 (print_help): New static function.
4368 (sim_print_help): Call it. Print cpu specific options.
4369 (find_match): New static function.
4370 (sim_args_command): Call it. Handle cpu specific options.
4371 * sim-utils.c (sim_cpu_lookup): New function.
4372 * sim-memopt.c (memory_option_handler): Update.
4373 (sim_memopt_install): Update.
4374 * sim-model.c (model_option_handler): Update.
4375 (model_install): Update.
4376 * sim-profile.c (profile_option_handler): Update.
4377 (profile_install): Update.
4378 * sim-trace.c (trace_option_handler): Update.
4379 (trace_install): Update.
4380 * sim-watch.c (watchpoint_option_handler): Update.
4381 (sim_watchpoint_install): Update.
4382 * cgen-scache.c (scache_option_handler): Update.
4383 (scache_install): Update.
4385 Wed Feb 25 11:00:26 1998 Doug Evans <devans@canuck.cygnus.com>
4387 * Make-common.in (check): Run `make check' in testsuite dir.
4389 Wed Feb 25 14:40:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
4391 * sim-trace.c (trace_result0): New function.
4393 * sim-trace.h (TRACE_FP_*, TRACE_FPU_*): Rename TRACE_FPU_*
4394 macro's to TRACE_FP_*. TRACE_FPU_* should be defined and used when
4395 tracing sim_fpu variables.
4396 (TRACE_ALU_RESULT0): Define.
4397 (TRACE_FP_RESULT_WORD): Define.
4398 (TRACE_FP_INPUT_WORD1): Define.
4400 * sim-fpu.c, sim-fpu.h (sim_fpu_max32, sim_fpu_max64, sim_fpu_one,
4401 sim_fpu_two): New constants.
4402 (sim_fpu_op1, sim_fpu_op2): New types.
4403 (struct _sim_fpu): Delete member result. Re-order other members.
4404 (sim_fpu_sign, sim_fpu_exp): New functions.
4405 (sim_fpu_max, sim_fpu_min): new functions.
4406 (EXPMAX32, EXPMAX64, NR_PAD32, NR_PAD64, NR_GUARDS32, NR_GUARDS64,
4407 NORMAL_EXPMAX32, NORMAL_EXPMAX64): Define.
4409 Tue Feb 24 22:45:39 1998 Doug Evans <devans@seba.cygnus.com>
4411 * sim-profile.c (profile_print): Delete duplicate test of
4413 (profile_print_pc): Exit early if data collection not set up.
4414 (profile_print_core): Simplify by calling sim_core_map_to_str.
4415 * sim-core.h (sim_core_map_to_str): Declare.
4416 * sim-core.c (sim_core_map_to_str): Make non-static.
4418 * genmloop.sh (engine_resume): Update insn_count before exiting.
4419 (engine_resume_full): Keep accurate core profile data.
4421 * cgen-utils.c (sim_disassemble_insn): Don't use
4422 sim_core_read_aligned_N, it messes up profiling results.
4424 Mon Feb 23 20:45:57 1998 Mark Alexander <marka@cygnus.com>
4426 * nltvals.def: Regenerate with MN10300 additions.
4428 Tue Feb 24 13:18:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
4430 * sim-trace.h (TRACE_ALU_RESULT2): Define.
4432 * sim-trace.h, sim-trace.c (trace_result_word2,
4433 trace_input_word4, trace_result_word4): New function.
4435 Mon Feb 23 13:08:35 1998 Doug Evans <devans@canuck.cygnus.com>
4437 * cgen-sim.h (SEM_NEXT_PC): New arg `len'.
4439 * sim-xcat.h: Delete.
4440 * cgen-mem.h: Delete inclusion of sim-xcat.h.
4441 * cgen-sim.h: Ditto.
4442 * sim-alu.h: Replace sim-xcat.h with symcat.h.
4443 * sim-n-bits.h: Ditto.
4444 * sim-n-core.h: Ditto.
4445 * sim-n-endian.h: Ditto.
4447 Mon Feb 23 13:19:58 1998 Michael Meissner <meissner@cygnus.com>
4449 * syscall.c (cb_syscall): Handle short reads, and EOF.
4451 Tue Feb 24 00:29:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
4453 * sim-trace.c (print_data): case trace_fmt_fp missing break. Use
4454 sim_fpu to safely print fp_word values.
4455 (print_data): Add trace_fmt_bool and trace_fmt_addr.
4456 (trace_result_bool1, trace_result_addr1): New functions.
4457 (trace_input_bool1, trace_input_addr1): New functions.
4459 * sim-trace.h (TRACE_FPU_*): Define.
4461 Mon Feb 23 13:24:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4463 * sim-fpu.h (enum sim_fpu_class): Add sim_fpu_class_denorm.
4464 (sim_fpu_fpto, sim_fpu_tofp): Define.
4466 Fri Feb 20 18:08:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
4468 * sim-fpu.c (sim_fpu_cmp): New function.
4470 Wed Feb 18 16:29:21 1998 Doug Evans <devans@canuck.cygnus.com>
4472 * cgen-utils.h (sim_disassemble_insn): Use CGEN_INSN_BITSIZE
4473 instead of abuf->length.
4474 * sim-trace.c (trace_options): Have -t only trace a few useful things.
4475 (set_trace_option_mask): Renamed from set_trace_options.
4476 (set_trace_option): New function.
4477 (trace_option_handler): Update calls to set_trace_option{,_mask}.
4478 * sim-trace.h (TRACE_USEFUL_MASK): New macro.
4480 Wed Feb 18 12:42:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
4482 * sim-basics.h: Declare struct _sim_fpu.
4484 Tue Feb 17 16:27:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
4486 * sim-trace.h (TRACE_ALU_INPUT*, TRACE_ALU_RESULT): Define.
4487 (trace_prefix, trace_input*, trace_result*): Declare.
4488 (trace_one_insn): Change declaration, assume trace_prefix called.
4489 (trace_generic): Like trace_one_insn.
4490 (TRACE_ALU_IDX, TRACE_*_IDX): Change #define's to enum.
4491 (TRACE_alu, TRACE_[a-z]*): Update.
4493 * sim-trace.c (trace_prefix, trace_input*, trace_result*,
4494 trace_insn, save_data, trace_idx_to_str, print_data): New
4496 (trace_one_insn): Rewrite.
4497 (trace_generic): New function.
4499 Tue Feb 17 17:27:30 1998 Doug Evans <devans@seba.cygnus.com>
4501 * aclocal.m4 (USE_MAINTAINER_MODE): New variable.
4503 * cgen-sim.h (SEMANTIC_CACHE_FN): Delete.
4504 (SEMANTIC_FN): Rewrite declaration.
4505 (DECODE): Update type of semantic_fast member.
4506 ({EX,SEM}_FN_NAME): Have only one version.
4507 * sim-base.h (sim_state_base): Delete conditionals surrounding
4510 Tue Feb 10 18:31:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
4512 * sim-load.c (sim_load_file): Print LMA/VMA according to value
4515 Tue Feb 10 14:56:23 1998 Ian Carmichael <iancarm@cygnus.com>
4517 * sim-core.c: Add missing prototypes for WITH_DEVICES.
4518 Add missing parameters to device_io calls.
4519 * sim-core.h: Add missing parameters to device_io calls.
4521 Mon Feb 9 14:48:37 1998 Doug Evans <devans@canuck.cygnus.com>
4523 * cgen-sim.h (DECODE): Always use switch for `read' for now.
4524 (PAREXEC): Renamed from PARALLEL_EXEC. All uses updated.
4525 (SEMANTIC{,_CACHE}_FN): Fix return type.
4526 * genmloop.sh (@cpu@_engine_run): Delete `current_state'.
4527 (engine_resume): Likewise. Make `engine' volatile. Save copy
4528 of cpu pointer in volatile object. Initialize read switch if
4531 Thu Feb 5 13:27:04 1998 Doug Evans <devans@seba.cygnus.com>
4533 * cgen-sim.h (EX_FN_NAME): _exc_ -> _ex_.
4534 (SEM_INSN): New macro.
4536 Tue Feb 3 16:31:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
4538 * sim-run.c (sim_engine_run): Assume IMEM is 32 bit.
4540 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
4542 * configure: Regenerated to track ../common/aclocal.m4 changes.
4544 Sun Feb 1 16:16:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
4546 * sim-types.h (fp_word): New type, define according to
4547 WITH_TARGET_FLOATING_POINT_BITSIZE.
4549 * aclocal.m4 (default_sim_floating_point_bitsize): Add
4550 configuration of size of floating point registers.
4552 Sun Feb 1 14:02:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
4554 * sim-profile.c (profile_print): Only print CPU <N> if other
4555 output is going to appear.
4557 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
4559 * configure: Regenerated to track ../common/aclocal.m4 changes.
4561 Sat Jan 31 18:03:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
4563 * sim-types.h (address_word): Typedef according to
4564 WITH_TARGET_ADDRESS_BITSIZE.
4565 (signed_cell, unsigned_cell, natural_cell): Ditto using
4566 WITH_TARGET_CELL_BITSIZE.
4568 * sim-config.h (WITH_TARGET_ADDRESS_BITSIZE): Define.
4569 (WITH_TARGET_CELL_BITSIZE): Define.
4570 (WITH_HOST_WORD_BITSIZE): Delete.
4572 * sim-config.c (print_sim_config): Update.
4574 * aclocal.m4 (SIM_AC_OPTION_BITSIZE): Add support for
4575 configuration of address and OpenFirmware cell sizes.
4577 Fri Jan 30 09:36:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
4579 * sim-engine.h (sim_engine_run): Add argument nr_cpus.
4580 * sim-run.c (sim_engine_run): Update.
4582 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use SET_CPU_CIA instead of
4584 * sim-run.c (sim_engine_run): Ditto.
4586 * sim-resume.c (sim_resume): Obtain nr_cpus from sim_engine.
4587 (sim_resume): Pass nr_cpus to sim_engine_run.
4589 * sim-engine.h (struct _sim_engine): Add member nr_cpus.
4591 * sim-engine.c (sim_engine_init): Hardwire nr_cpus to
4593 (sim_engine_nr_cpus) sim-engine.c, sim-engine.h: New function
4595 Fri Jan 23 14:20:54 1998 Doug Evans <devans@seba.cygnus.com>
4597 * Make-common.in (stamp-tvals): New rule.
4598 (targ-vals.h,targ-map.c): Depend on it.
4599 (clean): Remove stamp-tvals.
4601 Tue Jan 20 21:35:13 1998 Michael Meissner <meissner@cygnus.com>
4603 * sim-utils.c (sim_state_alloc): #if 0 variable that is only used
4604 in code also #if 0'ed.
4606 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
4608 * configure: Regenerated to track ../common/aclocal.m4 changes.
4609 * aclocal.m4: Recognize --enable-maintainer-mode.
4611 Mon Jan 19 12:45:45 1998 Doug Evans <devans@seba.cygnus.com>
4613 * cgen-scache.h: Deleted.
4614 * Make-common.in (cgen-run.o,cgen-scache.o): Delete cgen-scache.h dep.
4615 * cgen-scache.c: Only compile contents if WITH_SCACHE.
4616 (scache_init): Use runtime computed size of SCACHE.
4617 (scache_flush): Likewise.
4618 * cgen-mem.h (GETIMEMU[QHSD]I): Declare.
4619 ([GS]ETT{QI,UQI,HI,UHI,SI,USI,DI,UDI}): Declare.
4620 * cgen-sim.h: Scache support moved here.
4621 (PC): Redo definition.
4622 (ARGBUF,SCACHE,PARALLEL_EXEC): Provide forward decls.
4623 (DECODE): Add parallel execution support.
4624 Only include semantic label members if using switch.
4625 (SWITCH,CASE,BREAK,DEFAULT,ENDSWITCH): Portable computed goto support.
4626 (CGEN_CPU): Delete members exec_state, halt_sigrc, halt_jmp_buf.
4627 (IADDR,CIA,SEM_ARG,EX_FN_NAME,SEM_FN_NAME,RECORD_IADDR,SEM_ARGBUF,
4628 SEM_NEXT_PC,SEM_BRANCH_VIA_{CACHE,ADDR},SEM_NEW_PC_ADDR): Moved here
4630 (engine_{stop,run,resume,halt,signal}): Delete decls.
4631 * cgen-types.h (CGEN_{XCAT3,CAT3}): Delete.
4632 (argbuf,scache): Delete forward decls.
4633 (STATE): Delete decl.
4634 * cgen-utils.c: Don't include decode.h, mem-ops.h, sem-ops.h.
4635 Include cgen-mem.h, cgen-ops.h.
4636 (engine_halt,engine_signal): Delete.
4637 ({ex,exc,sem,semc}_illegal): Delete.
4638 (sim_disassemble_insn): Result of extract fn is in bits.
4639 * genmloop.sh: Rewrite.
4641 * cgen-trace.c (trace_insn): Set printed_result_p=0 if not tracing
4644 * sim-base.h (sim_state_base): Delete member `model'.
4645 (sim_cpu_base): Add member `model'.
4646 * sim-model.h (IMP_PROPERTIES): New type.
4647 (MACH): New members imp_props, models.
4648 (models): Delete decl.
4649 * sim-model.c (set_model): Update.
4650 * sim-profile.c (profile_print_model): Update.
4652 * sim-utils.c (sim_state_alloc): Delete setting of cpu backlink here.
4654 Fri Jan 16 12:33:09 1998 Nick Clifton <nickc@cygnus.com>
4656 * cgen-trace.c (trace_insn): Call CGEN_INSN_MNEMONIC() rather than
4659 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
4661 * configure: Regenerated to track ../common/aclocal.m4 changes.
4664 Mon Dec 15 23:16:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
4666 * aclocal.m4 (AR): Check for sigaction.
4668 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
4670 * Make-common.in (sim-core.o): Depend on $(sim_main_headers).
4672 * sim-config.h (WITH_TREE_PROPERTIES): Define as 0.
4673 * sim-config.c (sim_config): Replace WITH_DEVICES with
4674 WITH_TREE_PROPERTIES.
4676 * configure: Regenerated to track ../common/aclocal.m4 changes.
4678 Wed Dec 3 17:56:02 1997 Doug Evans <devans@canuck.cygnus.com>
4680 * Make-common.in (SIM_ENVIRONMENT): New variable.
4681 (CONFIG_CFLAGS): Add it.
4682 * aclocal.m4 (SIM_AC_OPTION_ENVIRONMENT): Handle
4683 --enable-sim-environment option.
4684 * configure: Regenerated.
4685 * sim-config.h (environment support): Rewrite.
4686 * sim-config.c (current_environment): Define as enum, unconditionally.
4687 (current_alignment): Define unconditionally.
4688 (config_environment_to_a): Update.
4689 (config_alignment_to_a): Fix type of argument. Define unconditionally.
4690 (sim_config): Handle environment and alignment determination
4691 unconditionally. Delete sanity checks of current_environment,
4693 (print_sim_config): Update.
4694 * sim-options.c (STANDARD_OPTIONS enum): Add OPTION_ENVIRONMENT.
4695 (standard_options): Add --environment.
4696 (standard_option_handler): Likewise.
4698 Fri Nov 28 12:21:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
4700 * sim-alu.h: Add notes on carry vs borrow for subtraction.
4701 (ALU{,8,16,32,64}ADD): Redefine ADD macro as add overflowing.
4702 (ALU{,8,16,32,64}ADDC): Define - add carrying.
4703 (ALU{,8,16,32,64}SUB): Redefine SUB macro as subtract overflowing.
4704 (ALU{,8,16,32,64}SUBB): Define - subtract borrowing.
4705 (ALU{,8,16,32,64}SUBC): Define - tract carrying.
4706 (ALU{,8,16,32,64}ADD_CA, ALU{,8,16,32,64}ADDC_C): Replace single
4707 argument ADD_CA macro with two argument ADDC_C - add carrying with
4709 (ALU{,8,16,32,64}SUB_CA, ALU{,8,16,32,64}SUBC_X): Replace single
4710 argument SUB_CA macro with two argument SUBC_X - subtract
4712 (ALU{,8,16,32,64}SUBB_B): Define - subtract borrowing with
4714 (ALU{,8,16,32,64}NEGC, ALU{,8,16,32,64}NEGB): Define.
4716 Sun Nov 30 17:40:57 1997 Michael Meissner <meissner@cygnus.com>
4718 * sim-io.c (sim_io_{syscalls,getstring}): Delete. No longer used.
4719 * sim-io.h (sim_io_syscalls): Delete.
4721 Fri Nov 28 20:10:09 1997 Michael Meissner <meissner@cygnus.com>
4723 * syscall.c (cb_syscall): Add missing else, so write to stdout
4726 * sim-alu.h (ALU{,8,16,32,64}_SET_CARRY): Provide macros to import
4727 the carry bit from the CPU's psw.
4729 Fri Nov 28 11:15:05 1997 Doug Evans <devans@canuck.cygnus.com>
4731 * gennltvals.sh: Redo syscall support.
4732 * nltvals.def: Regenerated.
4734 Wed Nov 26 16:49:38 1997 Michael Meissner <meissner@cygnus.com>
4736 * syscall.c (cb_syscall): If writing to stdout or stderr, flush
4737 the stream immediately.
4739 Wed Nov 26 12:32:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
4741 * sim-io.c (sim_io_getstring): Delete unused len2.
4742 (sim_io_syscalls): Ditto for sys_errno.
4744 Wed Nov 26 11:18:40 1997 Doug Evans <devans@canuck.cygnus.com>
4746 * syscall.c (cb_syscall): Test CB_SYSCALL struct magic number.
4748 * Make-common.in (run.o): Depend on remote-sim.h.
4749 (nrun.o,sim-hload.o,sim-hrw.o): Likewise.
4750 (sim-io.o,sim-reason.o,sim-resume.o): Likewise.
4752 Tue Nov 25 20:12:46 1997 Michael Meissner <meissner@cygnus.com>
4754 * sim-io.c (sim_io_syscalls): Disable lseek.
4756 Tue Nov 25 00:12:38 1997 Doug Evans <devans@seba.cygnus.com>
4758 * gennltvals.sh: Generate syscall values for d30v.
4760 * gennltvals.sh: Use libgloss/syscall.h for sparc.
4761 * nltvals.def: Regenerate.
4763 * callback.c (os_stat): Make 3rd arg a host struct stat ptr.
4764 (os_fstat): Likewise. Validate fd argument.
4765 (cb_host_to_target_stat): Delete big_p arg. If HS arg is NULL,
4766 just compute target stat struct length.
4767 * syscall.c: #include "libiberty.h", <sys/types.h>, <sys/stat.h>.
4768 (ENOSYS,ENAMETOOLONG): Provide definitions if missing.
4769 (get_string): Return host errno values so they can be properly
4771 (cb_syscall): Likewise.
4772 (cb_syscall, cases open,unlink): Use get_path instead of get_string.
4773 (cb_syscall, case read): Use read_stdin for file descriptor 0.
4774 (cb_syscall, case write): Use write_stderr for file descriptor 2.
4775 (cb_syscall): Add cases for lseek, unlink, stat, fstat, time.
4776 (get_path): New function.
4778 Mon Nov 24 18:56:07 1997 Michael Meissner <meissner@cygnus.com>
4780 * sim-io.c (sim_io_syscalls): New function to provide system call
4781 emulation. Provide exit, open, close, read, write, lseek, and
4783 (sim_io_getstring): New function to return a string from a
4784 simulated memory location.
4786 * sim-io.h (sim_io_syscalls): Add declaration.
4788 Mon Nov 24 12:09:59 1997 Doug Evans <devans@seba.cygnus.com>
4790 * sim-core.c (sim_core_signal): Fix spelling error in message.
4792 * sim-hrw.c (sim_read): Use read map, not write map.
4794 * Make-common.in (all): Add .gdbinit.
4795 * gdbinit.in: Add dump command.
4797 * sim-model.c (model_options): Use '\0' for `shortopt'.
4799 * sim-trace.c (trace_option_handler): Set state trace file
4800 for --trace-file in addition to cpu's values.
4801 (trace_vprintf): If cpu == NULL, try state's trace file.
4802 (trace_options): Reorganize table, reword some descriptions.
4804 Sun Nov 23 10:57:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
4806 * sim-fpu.c (sim_fpu_abs, sim_fpu_neg, sim_fpu_inv), sim-fpu.h:
4809 Sat Nov 22 19:16:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
4811 * sim-reason.c (sim_stop_reason): For sim_signalled, return the
4812 signal untranslated, document problem with this.
4814 * nrun.c (main): Check for a prog name of `*step'. If present,
4815 step the simulator instead of allowing it to run free.
4817 * sim-signal.c (SIGQUIT): Define on _MSC_VER hosts.
4819 * Make-common.in (sim_main_headers): Add sim-signal.h.
4821 Fri Nov 21 09:32:32 1997 Andrew Cagney <cagney@b1.cygnus.com>
4823 * sim-signal.c (sim_signal_to_host): Return 0 for SIM_SIGNONE.
4825 Thu Nov 20 20:35:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
4827 * sim-signal.h: Start simulator signals at 64 so that host signal
4828 numbers can be detected and reported.
4830 * sim-signal.h (SIM_SIGFPE), sim-signal.h: Add signal.
4832 Wed Nov 19 12:02:41 1997 Doug Evans <devans@seba.cygnus.com>
4834 * callback.c (cb_host_to_target_stat): Fix return values.
4836 * cgen-sim.h (enum_signal_type): Delete.
4837 (engine_signal): Update prototype.
4838 * cgen-utils.c: Don't include <signal.h>.
4839 (sim_signal_to_host): Delete, lives in sim-signal.c now.
4840 (engine_signal): Update.
4842 * sim-utils.c (sim_state_alloc): Call SIM_STATE_ALLOC if defined.
4843 (sim_state_free): Call SIM_STATE_FREE if defined.
4845 * sim-module.c (sim_module_install): Don't leave any modules
4846 installed if one fails to install.
4848 Wed Nov 19 13:25:48 1997 Michael Meissner <meissner@cygnus.com>
4850 * sim-options.c: Don't include ../libiberty/alloca-conf.h any
4851 more, since alloca is not used in this file.
4853 * sim-alu.h (ALU{32,64}_*): Rewrite 32 and 64 bit ALU support to
4854 correctly set the carry and overflow bits for those types.
4855 (ALU{8,16,32,64}_{ADD,SUB}_CA): Take VAL argument to add along
4856 with carry, so carry is correct after doing both adds.
4857 (ALU*): Space out '\' to make it easier to read.
4859 Tue Nov 18 15:53:45 1997 Doug Evans <devans@canuck.cygnus.com>
4861 * sim-core.c (sim_core_signal): Use sim_stopped instead of
4864 * sim-signal.c, sim-signal.h: New files.
4865 * Make-common.in (sim-signal.o): Add rule for.
4866 (SIM_NEW_COMMON_OBJS): Add sim-signal.o.
4867 * sim-abort.c: Don't include <signal.h>.
4868 * sim-basics.h: #include "sim-signal.h".
4869 * sim-break.c: Don't include <signal.h>.
4870 (sim_handle_breakpoint): Replace SIGTRAP with SIM_SIGTRAP.
4871 * sim-core.c: Don't include <signal.h>.
4872 (SIGBUS): Delete definition.
4873 (sim_core_signal): Replace SIGSEGV,SIGBUS with SIM_SIGSEGV,SIM_SIGBUS.
4874 * sim-engine.c: Don't include <signal.h>.
4875 (sim_engine_abort): Replace SIGABRT with SIM_SIGABRT.
4876 * sim-reason.c (sim_stop_reason): Call sim_signal_to_host.
4877 * sim-resume.c: Don't include <signal.h>.
4878 (SIGTRAP): Delete definition.
4879 (has_stepped): Replace SIGTRAP with SIM_SIGTRAP.
4880 * sim-stop.c: Don't include <signal.h>.
4881 (control_c_simulation): Replace SIGINT with SIM_SIGINT.
4882 * sim-watch.c: Don't include <signal.h>.
4883 (handle_watchpoint): Replace SIGINT with SIM_SIGINT.
4885 * Make-common.in (SIM_NEW_COMMON_OBJS): New variable.
4887 * sim-base.h (CIA_ADDR): Provide default definition.
4888 * sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
4889 * sim-break.c (sim_handle_breakpoint): Likewise.
4891 Mon Nov 17 14:15:31 1997 Doug Evans <devans@seba.cygnus.com>
4893 * Make-common.in (srccom): New variable.
4895 * Make-common.in (DEP, COMMON_DEP_CFLAGS): Define.
4896 (LIB_OBJS): Add syscall.o.
4897 (gentmap): Pass $(NL_TARGET) to $(CC).
4898 (syscall.o): Add rule for.
4899 (sim_main_headers): Add $(SIM_EXTRA_DEPS).
4900 (sim-bits.o): Depend on $(sim-n-bits_h).
4901 (sim-load.o): Depend on callback.h.
4903 * Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to
4904 cgen-mem.h, sem-ops.h renamed to cgen-ops.h.
4905 * cgen-mem.h, cgen-ops.h: New files.
4907 * aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no".
4909 * Makefile.in (nltvals.def): Depend on gennltvals.sh.
4911 * callback.c: #include string.h or strings.h.
4912 #include sys/types.h and sys/stat.h.
4913 (cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare.
4914 (os_get_errno,os_open): Update.
4915 (os_stat,os_fstat): New functions.
4916 (os_init): Initialize syscall_map, errno_map, open_map.
4917 (default_callback): Add entries for os_stat, os_fstat, syscall_map,
4918 errno_map, open_map, signal_map, stat_map.
4919 (cb_read_target_syscall_maps): New function.
4920 (cb_target_to_host_syscall): New function.
4921 (cb_host_to_target_errno): Renamed from host_to_target_errno.
4922 (cb_target_to_host_open): Renamed from target_to_host_open.
4923 (store): New function.
4924 (cb_host_to_target_stat): New function.
4925 * syscall.c: New file.
4926 * gentmap.c (sys_tdefs): New global.
4927 (gen_targ_vals_h): Output target syscall numbers.
4928 (gen_targ_map_c): Update. Output target syscall translation map.
4929 * gentvals.sh: New first argument `target'. Preface table with
4930 #ifdef NL_TARGET_$target if non-null target passed.
4931 * gennltvals.sh: New file.
4932 * nltvals.def: Regenerated.
4934 Fri Nov 14 11:33:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
4936 * sim-n-core.h (sim_core_read_unaligned_N): Return static
4938 (sim_core_dummy_M): Declare.
4940 Wed Nov 12 18:16:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
4942 * sim-core.c (sim_core_signal): Print the address of the
4945 Thu Nov 13 11:49:41 1997 Doug Evans <devans@seba.cygnus.com>
4947 * sim-base.h (sim_state_base): Move `magic' to end of struct.
4949 * sim-base.h (sim_state_base): Add member trace_data.
4950 (STATE_TRACE_DATA): New macro.
4951 * sim-trace.h (TRACE_DEBUG_IDX,TRACE_debug): New macros.
4952 ({WITH_,}TRACE_DEBUG_P): New macros.
4953 (STATE_TRACE_FLAGS,STRACE_P,STRACE_DEBUG_P): New macros.
4954 (_sim_cpu): Delete forward reference.
4955 (debug_printf): Update.
4956 * sim-trace.c (OPTION_TRACE_DEBUG): Define.
4957 (trace_options): Add --trace-debug.
4958 (set_trace_options): Handle it.
4959 (trace_option_handler): Likewise.
4960 (trace_install): Init state trace_data struct.
4961 (trace_uninstall): Close state trace file.
4962 * sim-events.c (ETRACE): Only print source file and line number if
4964 * sim-n-core.h (sim_core_trace_M): Likewise.
4966 * sim-core.c (sim_core_signal): Add missing "\n" in message.
4968 1997-11-13 Felix Lee <flee@cygnus.com>
4970 * sim-n-core.h (sim_core_read_unaligned_N): illegal empty
4972 * sim-types.h (unsigned128,signed128): fix typo for MSVC.
4974 Wed Nov 12 12:18:08 1997 Doug Evans <devans@canuck.cygnus.com>
4976 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Fix typo.
4978 * Make-common.in (BUILT_SRC_FROM_COMMON): Remove files no longer
4980 (sim-config.o): Remove non-existent $(sim-nconfig_h) dependency.
4981 (clean): Don't delete $(BUILT_SRC_FROM_COMMON) if building in
4984 Tue Nov 11 13:28:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
4986 * sim-events.c (sim_events_process): Re-compute the time -
4987 update_time_from_event - as each event is processed. Reverses
4990 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
4992 * callback.c (os_poll_quit): Replace _WIN32 with _MSC_VER.
4994 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
4996 * sim-events.c (sim_events_process): Delete redundant call to
4997 update_time_from_event.
4998 (sim_events_slip): Always decrement time_from_event.
4999 (sim_events_tick, sim_events_deschedule, update_time_from_event):
5000 Delete assertion that time_from_event >=0 when work in queue, no
5003 Thu Nov 6 12:06:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
5005 * sim-options.c (STANDARD_OPTIONS): Change OPTION_* to an enum.
5006 (standard_option_handler): Update.
5008 * sim-options.h: Clarify documentation.
5009 (OPTION_LONG_ONLY_P): Delete definition.
5010 (OPTION_VALID_P): Define.
5012 * sim-options.c (sim_print_help): Allow short only options.
5013 (sim_parse_args): Ditto.
5014 (sim_args_command): Skip short only options.
5015 (sim_parse_args): Allocate space for NUM_OPTS not just 256. Make
5016 separate entries for short and long options in the HANDLERS and
5018 (sim_parse_args): Disable argument permutation.
5020 Wed Nov 5 13:40:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
5022 * sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N):
5023 Add argument M, size of data type.
5024 (sim_core_read_misaligned_3, sim_core_write_misaligned_3):
5025 Declare, ditto for 5, 6 & 7 byte transfers.
5026 (sim_core_write_unaligned_1, sim_core_write_unaligned_1): Define
5029 * sim-n-core.h (sim_core_trace_M): Rename from
5030 sim_core_trace_N. Add nr_bytes argument. Replace transfer argument
5031 with transfer type. Print transfer direction. Handle 1 and 2 byte
5033 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Trace
5035 (unsigned_M, T2H_M, H2T_M): Rename from unsigned_N, T2H_N, H2T_N.
5036 Update all functions.
5038 * sim-core.c: Generate functions starting with 16 not 1.
5039 (sim_core_read_unaligned_3): Generate. Ditto for 3 byte write and
5040 all 5, 6 & 7 byte transfers.
5042 * sim-n-core.h (sim_core_read_misaligned_N,
5043 sim_core_write_misaligned_N): Implement.
5045 Mon Nov 3 15:03:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
5047 * sim-endian.h (U16_8): Implement
5049 * sim-endian.c (sim_endian_split_16, sim_endian_join_16): New functions
5051 * sim-endian.h (VL8_16, VH8_16): Implement.
5053 * sim-memopt.c (memory_option_handler): Typecast 64bit value to
5055 (memory_option_handler): Only zalloc modulo bytes when non-zero.
5056 (memory_option_handler): Skip comma in alias address list
5058 Fri Oct 31 13:03:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
5060 * sim-memopt.c (do_memopt_add, do_memopt_delete): Add level and
5062 (parse_size, parse_addr): New functions
5063 (memory_option_handler, memory_options): Parse address & size
5064 using new functions. Pass level, space, modulo to do_memopt_add &
5067 * sim-memopt.h (struct _sim_memopt): Add level & space fields.
5069 * sim-core.h (sim_core_arrach, sim_core_detach): Replace
5070 `attach_type attach' argument with `unsigned level' argument.
5073 * sim-core.c (new_sim_core_mapping, sim_core_map_attach,
5074 sim_core_attach): Replace argument attach with level. Update
5075 verification of arguments.
5076 (sim_core_map_detach, sim_core_detach): Replace argument attach
5079 * sim-basics.h (enum _attach_type): Delete.
5081 Thu Oct 30 13:45:00 1997 Doug Evans <devans@seba.cygnus.com>
5083 * sim-core.h (sim_core_write_8): Define.
5085 Tue Oct 28 12:29:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5087 * sim-bits.h: Document ROTn macro.
5089 * sim-endian.h (H2T): Handle 16 byte variables.
5091 * sim-n-core.h (sim_core_read_unaligned_N): Return a dummy when an
5094 * sim-core.c: Do not generate sim_core_*_word.
5096 * sim-n-core.h (sim_core_trace_N): Add line_nr argument.
5097 (sim_core_write_aligned_N, sim_core_read_aligned_N): Update.
5099 * sim-core.h (sim_core_read_unaligned_word,
5100 sim_core_read_aligned_word, sim_core_read_word,
5101 sim_core_write_unaligned_word, sim_core_write_aligned_word,
5102 sim_core_write_word): Change to macros that map onto sim_core_*_N.
5104 Mon Oct 27 11:25:10 1997 Doug Evans <devans@canuck.cygnus.com>
5106 * sim-n-endian.h: Add TAGS entrys for 16 byte versions.
5108 * sim-endian.h: Disable 16 byte support.
5110 Mon Oct 27 12:00:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
5112 * sim-endian.c (_SWAP_16): Define. Generate 126 bit swap code.
5114 * sim-n-core.h (sim_core_trace_N): New function.
5115 (sim_core_read_aligned_N, sim_core_write_aligned_N): Use,
5116 (sim_core_read_unaligned_N): Do not retyrn bogus value wden error.
5118 * sim-endian.h: Add 128 bit variant.
5120 * sim-core.h, sim-core.c: Add 128 bit variant.
5122 * sim-types.h: Add signed128 and unsigned128 types using a struct.
5124 Fri Oct 24 11:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
5126 * sim-events.c (sim_events_process): Clear events->work_pending.
5127 (sim_events_tickn, sim_events_tick): Accumulate, instead of
5128 setting, nr_ticks_to_process.
5129 (sim_events_preprocess): Allow nr_ticks_to_process to be non-zero
5130 when the event queue isn't next.
5132 * sim-events.h, sim-events.c (sim_events_slip): New function.
5134 Wed Oct 22 14:18:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5136 * sim-hload.c (sim_load): Pass lma_p==0 and do_load=sim_load.
5138 * sim-utils.h, sim-load.c (sim_load_file): Add lma_p and do_load
5141 Tue Oct 21 18:37:57 1997 Doug Evans <devans@canuck.cygnus.com>
5143 * nrun.c (main): Remove useless test of name != NULL.
5144 Exit if bfd_openr fails. Call bfd_check_format after bfd_openr.
5146 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5148 * sim-fpu.c (EXPMAX): Type is unsigned.
5149 (MIN_INT, MAX_INT): Type is signed64.
5150 (i2fpu): Type of val is signed64.
5152 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5154 * sim-profile.h (PROFILE_PC_BUCKET_SIZE): Treat a shift of zero as
5155 a bucket size of zero.
5157 * sim-profile.c (OPTION_PROFILE_PC_GRANULARITY,
5158 OPTION_PROFILE_PC): Define.
5159 (profile_option_handler): Add support for --profile-pc and
5160 --profile-pc-granularity options.
5161 (profile_pc_init): When possible, compute nr buckets from bucket
5164 * sim-profile.c (profile_pc_init): Align the profile-pc end
5165 address with the profile-pc bucket size.
5167 * sim-profile.h (PROFILE_PC_NR_BUCKETS): Rename PROFILE_PC_SIZE to
5168 something less ambiguous.
5169 (PROFILE_PC_BUCKET_SIZE): Ditto for PROFILE_PC_SAMPLE_SIZE.
5171 * sim-profile.c (profile_pc_cleanup): New function. Move
5172 profile_pc_uninstall code to here.
5173 (profile_pc_uninstall): Call.
5174 (profile_pc_init): Call.
5176 Mon Oct 20 17:23:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
5178 * sim-profile.c (profile_print_pc): Dump pc profile to dmon.out
5179 file using BSD gprof format.
5181 * sim-bits.h (LSBIT, MSBIT, BIT): Force result to type
5183 (LSBIT8, LSBIT16, LSBIT32, LSBIT64, MSBIT8, MSBIT16, MSBIT32,
5184 MSBIT64): Force result to unsignedN.
5186 Thu Oct 16 11:38:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
5188 * sim-alu.h (ALU16_BEGIN, ALU32_BEGIN, ALU64_BEGIN): Drop opening
5190 (ALU8_BEGIN, ALU8_SET, ALU8_ADD, ALU8_SUB, ALU8_NEGATE): Define.
5191 (ALU16_ADD, ALU16_SUB, ALU16_NEGATE): Simplify arrithmetic.
5192 (ALU32_ADD, ALU32_SUB, ALU32_NEGATE): Simplify arrithmetic.
5193 (ALU64_ADD, ALU64_SUB, ALU64_NEGATE): Simplify arrithmetic.
5195 Wed Oct 15 09:24:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
5197 * sim-core.h (struct _sim_core_mapping): Change free_buffer to
5200 * sim-core.c (sim_core_uninstall, new_sim_core_mapping,
5201 sim_core_map_attach, sim_core_map_detach): Change free_buffer to
5203 (sim_core_attach): Rename buffer_freed to free_buffer, type
5204 void*. Ensure that allocated buffer is alligned according to
5207 Mon Oct 13 11:34:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
5209 * sim-alu.h (ALU64_HAD_OVERFLOW): Define.
5210 (ALU64_SUB): Define.
5212 * Make-common.in (all): Build SIM_EXTRA_ALL first.
5213 (.gdbinit): Remove dependencies, generate once per build.
5215 Tue Oct 14 19:20:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
5217 * sim-n-core.h (sim_core_read_aligned_N,
5218 sim_core_write_aligned_N): Make xaddr param type address_word not
5221 Fri Oct 3 09:49:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
5223 * sim-fpu.h, sim-fpu.c: Rewrite. Change sim_fpu object to an
5224 unpacked floating point struct. Pass sim_fpu object by reference.
5225 Add preliminary support for rounding modes.
5227 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5229 * configure: Regenerated to track ../common/aclocal.m4 changes.
5231 Thu Oct 2 19:43:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
5233 * aclocal.m4 (sim-bitsize): Fix typo, WITH_TARGET_WORD_BITSIZE not
5234 WITH_TARGET_BITSIZE.
5236 Thu Sep 25 23:20:20 1997 Felix Lee <flee@yin.cygnus.com>
5238 * sim-profile.c (profile_print_core): label needs empty statement.
5240 Thu Sep 25 11:20:47 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
5242 * sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC
5243 and zfree instead of xmalloc and free. Prevents warnings.
5245 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
5247 * configure: Regenerated to track ../common/aclocal.m4 changes.
5249 Wed Sep 24 17:23:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
5251 * Make-common.in (SIM_BITSIZE): Assign from configured value.
5252 (CONFIG_CFLAGS): Add SIM_BITSIZE.
5254 * aclocal.m4 (--enable-sim-bitsize): Developer option for
5255 controling the bitsize/msb of the target.
5257 Wed Sep 24 17:41:40 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
5259 * Make-common.in: New files sim-break.c, sim-break.h.
5260 * sim-base.h: Add point to breakpoint list to sim_state_base.
5261 * sim-break.c sim-break.h: New modules that implement intrinsic
5263 * sim-module.c: Add breakpoint module.
5265 Tue Sep 23 00:26:39 1997 Felix Lee <flee@yin.cygnus.com>
5267 * sim-events.c (SIM_EVENTS_POLL_RATE): poll more often than once
5269 * sim-n-core.h (WITH_XOR_ENDIAN): MSVC barfs on
5271 * sim-core.c (sim_core_xor_write_buffer): WITH_XOR_ENDIAN + 1.
5272 (SIGBUS) define for Windows.
5273 * sim-trace.c (trace_printf,debug_printf): added ALMOST_STDC.
5274 * sim-resume.c: define SIGTRAP for windows.
5275 * sim-xcat.h: use token pasting if ALMOST_STDC.
5277 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5279 * Make-common.in (SIM_SCACHE, SIM_DEFAULT_MODEL): Assign
5281 (CONFIG_CFLAGS): Add same.
5283 Mon Sep 22 17:20:27 1997 Felix Lee <flee@cygnus.com>
5285 * sim-types.h (SIGNED64): ##i64 when _MSC_VER, not _WIN32.
5286 (SIGNED32): use ##i32.
5288 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5290 * configure: Regenerated to track ../common/aclocal.m4 changes.
5292 Tue Sep 23 10:07:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
5294 * aclocal.m4 (sim-endian): Simplify logic determining [default]
5297 * Make-common.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
5298 SIM_HOSTENDIAN, SIM_RESERVED_BITS, SIM_ASSERT, SIM_FLOAT,
5299 SIM_HARDWARE, SIM_INLINE, SIM_PACKAGES, SIM_REGPARM, SIM_SMP,
5300 SIM_STDCALL, SIM_XOR_ENDIAN): Assign configured values.
5301 (CONFIG_CFLAGS): Add same.
5303 * aclocal.m4: Perform AC_SUBST on optional options.
5305 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5307 * sim-config.h (WITH_DEFAULT_ALIGNMENT): Don't hardwire any alignment.
5309 * sim-options.c (standard_option_handler): Typo in warning message.
5311 * sim-base.h (STATE_MODEL): Make conditional on SIM_HAVE_MODEL.
5313 * sim-profile.c (profile_print_insn): Check 0 .. MAX_INSN for any
5314 insn count. Make count conditional on there being a valid
5316 (profile_pc_init): Make default PC profile frequency an arbitrary
5319 * sim-base.h: Ditto.
5321 * sim-profile.h (WITH_PROFILE_MODEL_P): Only enable modeling when
5324 * sim-model.h (struct MACH): Depreciate, to be replaced by bfd
5327 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5329 * configure: Regenerated to track ../common/aclocal.m4 changes.
5331 Mon Sep 22 11:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5333 * aclocal.m4 (sim_alignment): Simplify logic for selecting the
5334 configured alignment.
5336 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
5338 * configure: Regenerated to track ../common/aclocal.m4 changes.
5340 Fri Sep 19 17:26:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
5342 * sim-config.c (sim_config): Check for default alignment.
5344 * sim-options.c (standard_option_handler): Add alignment option.
5346 * aclocal.m4 (sim_alignment): Allow configuration of hardwired and
5347 default alignment requirements on memory accesses.
5349 Fri Sep 19 11:51:35 1997 Jeffrey A Law (law@cygnus.com)
5351 * sim-load.c (sim_load_file): Return failure if the executable
5352 had no loadable sections.
5354 Wed Sep 17 13:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
5356 * sim-events.c (ETRACE): Use trace_printf not sim_io_printf for
5359 * sim-core.c (sim_core_signal): When bad access halt simulator
5360 SIGSEGV / SIGBUS instead of aborting.
5361 (signal.h): Include.
5363 * sim-watch.c (sim_watchpoint_install): Handler for watchpoint
5364 options was missing.
5366 * sim-bits.h (MOVED): Define
5368 Wed Sep 17 10:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
5370 * sim-alu.h (ALU32_HAD_OVERFLOW): Pacify GCC, Use MSBIT instead of
5373 * sim-bits.h (LSBIT, MSBIT): Check for overflow of shift value.
5375 * sim-bits.c: Add 8 bit versions of bit macros.
5377 * sim-bits.h: Ditto.
5379 Tue Sep 16 16:15:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
5381 * sim-bits.c (LSSEXT, MSSEXT): Replace SEXT.
5382 (LSINSERTED, MSINSERTED): Ditto for INSERTED.
5384 * sim-n-bits.h (MSSEXTn, LSSEXTn): Replace SEXTn.
5385 (LSINSERTDn, MSINSERTEDN): Ditto for INSERTEDn.
5387 * sim-bits.h (SEXT*): Define as MSEXT/LSEXT.
5388 (INSERTED*): Ditto for LSINSERTED/MSINSERTED.
5390 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
5392 * aclocal.m4 (SIM_AC_COMMON): Add optional config.h file argument.
5393 configure.in: Output to cconfig.h instead of config.h.
5395 * configure: Regenerated to track ../common/aclocal.m4 changes.
5397 Mon Sep 15 15:39:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
5399 * sim-utils.c (sim_analyze_program): Set STATE_ARCHITECTURE from
5402 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
5404 * callback.c (os_write): divert stdout and stderr to their
5407 Thu Sep 11 10:08:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
5409 * sim-profile.c (profile_print_speed): Call
5410 sim_events_elapsed_time instead of PROFILE_EXEC_TIME for moment.
5412 * sim-events.c (sim_events_elapsed_time): New function return nr
5413 host MS consumed by the simulator.
5414 (sim_watch_valid): Use.
5416 * sim-module.c (modules): Install sim_events very very early.
5418 * sim-profile.c (profile_print): Call profile_print_pc.
5420 (profile_pc_init): New function, set up processor for PC
5422 (profile_print_pc): New function, print a PC profile.
5423 (profile_pc_event): New function, sample PC.
5425 * sim-profile.h (PROFILE_PC_COUNT, PROFILE_PC_START,
5426 PROFILE_PC_END, PROFILE_PC_SHIFT, PROFILE_PC_SAMPLE_SIZE): Add to
5429 * sim-options.c (sim_print_help): Pacify GCC.
5431 * sim-n-core.h (sim_core_read_aligned_N,
5432 sim_core_write_aligned_N): Add un-conditional profile call.
5433 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Add
5434 profile call when aligned read/write isn't used.
5436 * sim-base.h: Include sim-profile, sim-model after sim-core &
5437 sim-events allow sim-core to define useful values.
5439 * sim-profile.c (OPTION_PROFILE_CORE): Define.
5440 (profile_option_handler, profile_options): Add support for
5441 --profile-core option.
5442 (print_bar): Include when core profiling.
5443 (profile_print_core): New function, print core profile.
5445 * sim-config.c (print_sim_config): Print profile status.
5447 * sim-profile.h (PROFILE_NEXT_IDX, PROFILE_core,
5448 WITH_PROFILE_PC_P): Define.
5449 (PROFILE_CORE_COUNT): Count each core-map/size separatly.
5450 (PROFILE_COUNT_CORE): Define.
5452 Thu Sep 11 08:44:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
5454 * sim-watch.c (handle_watchpoint): Pass a char** index into the
5455 interrupt_names array as the data.
5456 (sim-watch.h): Document.
5458 Wed Sep 10 16:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5460 * sim-options.c (sim_print_help): When the doc string is to long
5463 * sim-watch.c (sim_watchpoint_install): Use option.doc_name so
5464 that only the first few the watch options are listed. Generate
5465 meanginful usage messages.
5467 * sim-options.h (struct OPTION): Clarify use of doc_name field
5469 Wed Sep 10 13:23:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
5471 * sim-options.c (OPTION_ARCHITECTURE_INFO): New option.
5472 (standard_option_handler): Handle --architecture-info.
5474 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
5476 * sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid
5477 illegal zero-sized array.
5478 * sim-core.c (sim_core_xor_read_buffer): same.
5480 Tue Sep 9 11:20:35 1997 Doug Evans <dje@canuck.cygnus.com>
5482 * nltvals.def: Regenerate.
5484 Tue Sep 9 02:10:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
5486 * sim-fpu.c (DP_FRACHIGH2): Define LL using SIGNED64.
5488 Mon Sep 8 12:22:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5490 * sim-bits.c (MASKED): Delete.
5491 (EXTRACTED): Delete.
5492 (LSEXTRACTED, MSEXTRACTED): New functions.
5494 * sim-n-bits.h (MASKEDn): Delete, define as MSMASKED or LSMASKED.
5495 (MSMASKEDn, LSMASKEDn): Add last argument.
5498 * sim-bits.h (EXTEND8, EXTEND16): Define.
5499 (EXTRACTED64): Define as 64 bit extract, not 32 bit.
5501 * sim-run.c (sim_engine_run): Use CPU_CIA macro.
5503 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use CPU_CIA to get at
5504 current instruction address.
5506 * sim-inline.h (*_ENGINE): Define.
5508 Fri Sep 5 08:39:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
5510 * sim-core.c (sim_core_attach): Fix checks of modulo/mask.
5512 * sim-watch.c (delete_watchpoint): Delete by ident and type.
5513 (watch_option_handler): Call delete_watchpoint with ident or type.
5514 (sim_watchpoint_install): Create interrupt specific watchpoint
5515 commands on the fly.
5516 (do_watchpoint_create): New function, create a watch point using
5517 type/int-nr info encoded in the option nr.
5518 (do_watchpoint_info): New function. List active watchpoints.
5520 * sim-watch.h: Change data structure to a list.
5522 * sim-memopt.c (memory_option_handler): Require explicit "all"
5523 before deleting all memory regions.
5525 * sim-utils.c (sim_do_commandf): New function, printf version of
5528 * sim-basics.h (asprintf, vasprintf): Hack, define for CYGWIN32.
5530 * sim-alu.h (ALU64_ADD): Use explicit MSEXTRACTED64, do not assume
5532 (SIGNED64, UNSIGNED64): Delete.
5533 (ALU64_ADD): Don't rely on bit endianness.
5534 (ALU64_BEGIN): Define.
5536 * sim-n-bits.h (MSEXTRACTEDn, LSEXTRACTED): New functions.
5537 (EXTRACTEDn): Delete, define as either LSEXTRACTED or MSEXTRACTED.
5539 * sim-types.h (SIGNED64, UNSIGNED64): New macros, attach relevant
5540 suffix - u64, LL - to 64 bit constants.
5542 Thu Sep 4 09:27:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
5544 * sim-config.c (sim_config): Add assert for SIM_MAGIC_NUMBER.
5546 * sim-utils.h (NZALLOC): Define - zalloc * N.
5548 * sim-hrw.c (sim_read, sim_write): New file. Provide generic
5549 implementation of read/write functions.
5551 * Make-common.in (sim-hrw.o): New target.
5553 * sim-base.h (STATE_MEMOPT_P): Delete, simulators _always_ add
5556 * sim-memopt.c (memory_option_handler): Implement memory-size
5557 command. Implement memory-alias command. Let memory-delete delete
5559 (add_memopt): New function. Add a memory region.
5560 (do_memopt_delete): New function. Delete a memory region.
5562 * sim-utils.c (sim_elapsed_time_get): Never return zero.
5564 * sim-core.c (sim_core_detach): New function.
5565 (sim_core_map_detach): New function. Perform the actual detach.
5566 (sim_core_init): Move initialization code from here.
5567 (sim_core_install): To here.
5568 (sim_core_uninstall): And here.
5570 * sim-module.c: Add memopt module.
5572 * sim-base.h (STATE_MEMOPT, STATE_MEMOPT_P): Add memopt to
5573 simulator base type.
5575 * Make-common.in (sim_main_headers): Add sim-memopt.h
5576 (sim-memopt.o): New target.
5578 * sim-core.c (sim_core_install): Add core_options to the option
5581 * sim-watch.c (watch_options): Make --delete-watch a synonym for
5584 * sim-config.h (WITH_MODULO_MEMORY): Define as 0. Update
5587 * sim-core.h (struct _sim_core_mapping): Change nr_bytes to type
5588 address_word, add mask member.
5590 * sim-core.h, sim-core.c (sim_core_attach): Make nr_bytes of type
5591 address_word, allow for 64bit targets in 32bit host. Add modulo
5593 (sim_core_map_attach): Ditto.
5594 (new_sim_core_mapping): Ditto.
5595 (sim_core_translate): Mask address when modulo memory.
5597 Wed Sep 3 17:32:54 1997 Doug Evans <dje@seba.cygnus.com>
5599 * sim-hload.c (sim_load): Add assert for SIM_MAGIC_NUMBER.
5601 * gdbinit.in: New file.
5602 * aclocal.m4 (SIM_AC_OUTPUT): Build .gdbinit.
5603 * Make-common.in (distclean): Delete .gdbinit.
5604 (.gdbinit): Add rule for.
5605 * configure: Regenerated to track ../common/aclocal.m4 changes.
5607 * Make-common.in (cgen-run.o): Add rule for.
5609 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
5611 * sim-resume.c (sim_resume): Suspend/resume the simulator.
5613 * sim-events.c (sim_watch_valid): Compute total elapsed time from
5614 both resumed and previous elapsed time.
5615 (sim_events_init): Set initial_wallclock and current_wallclock to
5617 (sim_events_install): Install sim_events_suspend and
5619 (sim_events_watch_clock): Allow for suspended simulator when
5620 computing the time of the clock event.
5622 * sim-events.h (struct _sim_event): Add resume_wallclock, rename
5623 initial_wallclock to elapsed_wallclock, set both to zero.
5624 (sim_events_init, sim_events_uninstall): Delete prototypes.
5626 * sim-module.h (MODULE_SUSPEND_FN, MODULE_RESUME_FN): Define types.
5628 * sim-module.c(sim_module_resume, sim_module_suspend): New
5631 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
5633 * sim-core.c (sim_core_map_attach): Clarify memory overlap error
5636 Tue Sep 2 14:57:06 1997 Doug Evans <dje@canuck.cygnus.com>
5638 * Makefile.in (TAGS): Add support for "/* TAGS: foo */" marker.
5639 * Make-common.in (TAGS): Likewise.
5640 * sim-n-bits.h: Add TAGS comments for all functions.
5641 * sim-n-core.h: Likewise.
5642 * sim-n-endian.h: Likewise.
5644 Mon Sep 1 10:50:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
5646 * sim-utils.c (sim_state_alloc): Set CPU backlinks, callback and
5649 * sim-base.h (sim_state_alloc): Add callback and kind arguments.
5651 * sim-base.h (INVALID_INSTRUCTION_ADDRESS): Add default
5654 Sat Aug 30 09:47:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
5656 * sim-fpu.c (DP_GARDMSB, ...): Make unsigned.
5657 (DP_FRACHIGH, DP_FRACHIGH2, ..): Use MSMASK to avoid LL.
5659 Fri Aug 29 13:37:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
5661 * sim-core.c (sim_core_map_attach): Cast attach enum to int.
5662 (sim_core_xor_read_buffer, sim_core_xor_write_buffer): Make
5663 nr_transfered and nr_this_transfer unsigned.
5665 * sim-events.c (sim_events_tickn): N is signed, as limited to
5668 * sim-n-endian.h (offset_N): Change size to unsigned.
5670 * callback.c (os_poll_quit): Add prototypes for kbhit and getkey.
5672 Fri Aug 29 10:10:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
5674 * sim-utils.c (sim_copy_argv): Delete, replaced by dupargv.
5676 * sim-options.c (sim_parse_args): Use dupargv.
5678 Thu Aug 28 10:36:34 1997 Doug Evans <dje@canuck.cygnus.com>
5680 * sim-options.c (standard_option_handler): Use xstrdup, not strdup.
5682 Thu Aug 28 12:09:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
5684 * sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator
5687 * sim-options.c (standard_options): Add --architecture=MACHINE and
5688 --target=TARGET options.
5689 (OPTION_ARCHITECTURE, OPTION_TARGET): Define.
5690 (standard_option_handler): Handle architecture and target options.
5693 * sim-utils.c (sim_analyze_program): Pass STATE_TARGET to
5695 (sim_analyze_program): Set prog_bfd architecture from
5696 STATE_ARCHITECTURE if known.
5698 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5700 * configure: Regenerated to track ../common/aclocal.m4 changes.
5703 Wed Aug 27 18:11:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
5705 * aclocal.m4 (enable-sim-warnings): Remove comment stating
5706 that option does not apply to certain files.
5708 Wed Aug 27 15:13:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
5710 * sim-bits.h (LSBIT8, LSBIT16, LSBIT32, LSBIT64, LSBIT, MSBIT8,
5711 MSBIT16, MSBIT32, MSBIT64, MSBIT): New macros - single bit as
5712 offset from MSB/LSB.
5714 * sim-endian.h (A1_8, A2_8, A4_8, A1_4, A2_4, A1_2): New macro,
5715 access address of sub word quantity of a hosts 16, 32, 64 bit word
5717 (V1_2, V1_4, V2_4, V1_8, V2_8, V4_8): Ditto for values.
5718 (U8_1, U8_2, U8_4, U4_1, U4_2, U2_1): Ditto for set of values.
5719 (V2_H1, V2_L1, V4_H2, V4_L2, V8_L4, V8_H4): Given N byte argument,
5720 return N*2 byte value with argument in Hi/Lo word. Renamed from
5721 V1_H2, V1_L2, V2_H4, V2_L4, V4_H8, V4_L8.
5723 * sim-alu.h (ALU32_HAD_OVERFLOW): Use 64 bit mask not 32bit.
5724 (ALU16_HAD_CARRY, ALU32_HAD_CARRY, ALU16_HAD_OVERFLOW): Use MSBIT
5725 so that bit offset is explicit.
5727 Wed Aug 27 11:55:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
5729 * sim-utils.c (sim_analyze_program): Add prog_name argument.
5730 Update STATE_PROG_BFD when needed with a dup'd copy of the
5733 * sim-config.c (sim_config): Delete ABFD argument, use
5734 STATE_PROG_BFD directly.
5736 Tue Aug 26 12:55:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
5738 * run.c (main): Pass the open ABFD to sim_create_inferior.
5740 * nrun.c (main): Determine prog_bfd. Pass to sim_create_inferior
5744 * sim-hload.c (sim_load): New file. Implement generic sim_load for
5745 hardware only simulator targets.
5747 * Make-common.in (sim-hload.o): Add rule.
5749 Wed Aug 27 09:51:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
5751 * sim-utils.c (sim_copy_argv): Rewrite to match malloc strategy
5752 used by copyargv and freeargv.
5754 * sim-options.c (sim_parse_args): Save a copy of PROG-ARGS in
5755 STATE_PROG_ARGV, not just a pointer.
5757 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5759 * configure: Regenerated to track ../common/aclocal.m4 changes.
5762 Mon Aug 25 12:11:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
5764 * aclocal.m4 (sim-endian): Add second argument to
5765 SIM_AC_OPTION_ENDIAN. First is hardwired endian, second is
5766 default endian when not hardwired.
5768 * sim-config.h (WITH_DEFAULT_TARGET_BYTE_ORDER): New macro, if all
5769 else failes value for target byte order.
5771 * sim-config.c (sim_config): Add abfd arguments. Set
5772 STATE_PROG_BFD accordingly. Determine prefered_target_byte_order
5774 (sim_config): Return SIM_RC, don't abort.
5777 * run.c (main): Update call to sim_open - add ABFD argument.
5778 * nrun.c (main): Add NULL ABFD argument.
5780 Thu Aug 14 12:48:57 1997 Doug Evans <dje@canuck.cygnus.com>
5782 * callback.c (os_poll_quit): Make static.
5783 Call sim_cb_eprintf, not p->eprintf.
5784 (sim_cb_printf, sim_cb_eprintf): New functions.
5785 * sim-utils.h (sim_cb_printf, sim_cb_eprintf): Declare.
5787 * sim-basics.h (zalloc,zfree,sim_add_commas,SIM_ELAPSED_TIME,
5788 sim_elapsed_time_get,sim_elapsed_time_since): Move decls to
5789 sim-utils.h. #include sim-utils.h.
5790 * sim-utils.h: Above decls moved here.
5791 (sim_analyze_program,sim_load_file): Use `struct _bfd', not `bfd'.
5793 * sim-watch.c (action_watchpoint): Fix thinkos.
5795 Thu Jul 24 08:48:05 1997 Stu Grossman (grossman@critters.cygnus.com)
5797 * sim-types.h: Fix defs of 64 bit data types for MSVC.
5799 Tue Jul 22 10:35:37 1997 Doug Evans <dje@canuck.cygnus.com>
5801 * sim-n-core.h (sim_core_write_unaligned_N): Add missing break
5802 to FORCED_ALIGNMENT case.
5804 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
5806 * callback.c (target_to_host_open): Handle hosts with O_BINARY.
5808 Thu Jun 5 08:47:10 1997 Jeffrey A Law (law@cygnus.com)
5810 * Make-common.in (libsim.a): Fix typo.
5812 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
5814 * nrun.c (main): Verify the structure returned before using it.
5816 Wed Jun 4 11:44:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
5818 * sim-config.h (WITH_ENGINE): Enable the sim-engine module by
5821 * sim-engine.c (sim_engine_install): New function. Install the
5822 engine init functions.
5823 (sim_engine_init): [Re]initialize the simulator engine.
5825 * sim-module.c: Add sim_engine to list of modules that always
5828 Tue Jun 3 04:52:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
5830 * sim-watch.c (schedule_watchpoint): Use sim_unschedule_watchpoint
5831 to remove the old watchpoint, not delete_watchpoint.
5832 (watch_option_handler): Action the correct watchpoint, not just
5835 Wed May 28 14:47:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
5837 * sim-n-core.h (sim_core_write_aligned_N): For 8byte reads, output
5838 both low and high word.
5839 (sim_core_write_aligned_N): Ditto.
5841 * sim-trace.c (set_trace_options): Delete code explicitly setting
5844 * sim-options.c (sim_print_help): Call the list commands if not a
5845 standalone simulator.
5846 (sim_print_help): Advise that some options may not be applicable.
5848 * sim-trace.c (set_trace_options): Assume core present.
5850 * sim-events.c (sim_events_schedule_after_signal): Overflow signal
5851 buffer when full not almost full.
5853 Tue May 27 14:32:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5855 * sim-events.c (sim_events_process): Don't blat the event queue
5856 when processing watchpoints.
5858 * sim-watch.h: Make arg unsigned long - stop sign extension.
5860 * sim-events.c (sim_watch_valid): rewrite so debugable.
5862 * sim-config.h (WITH_XOR_ENDIAN): Default to zero.
5864 * sim-watch.c (schedule_watchpoint): Add is_within option so that
5865 inequality test is possible.
5866 (handle_watchpoint): Re-pass is_within arg.
5867 (watch_option_handler): When `!' prefix to pc-watchpoint arg pass
5868 0 to schedule_watchpoint's is_within arg.
5869 (sim_watchpoint_init): Re-pass is_within arg.
5871 * sim-options.c (sim_print_help): Add is_command argument. Don't
5872 include -- prefix when called from the command line interpreter.
5874 * sim-watch.c (schedule_watchpoint): Pass true is_within argument.
5876 * sim-events.c (sim_events_watch_sim): Add is_within argument,
5877 zero indicates that the test should be reversed.
5878 (sim_events_watch_core): Ditto.
5879 (WATCH_CORE): Compare range against is_within.
5882 Tue May 27 12:48:03 1997 Andrew Cagney <cagney@b2.cygnus.com>
5884 * sim-events.c (WATCH_CORE): Pass NULL cpu argument to
5885 sim_core_read_buffer. Check nr-bytes transfered.
5887 * sim-core.h (sim_core_common): Define a new struct that contains
5888 the common data. to sd and cpu structures.
5889 * sim-core.c (sim_core_attach): Update.
5890 (sim_core_init): Update. Remember to copy initialized data to each
5892 (sim_core_find_mapping): Ditto.
5894 * sim-core.c (sim_core_read_buffer): Add cpu argument.
5895 (sim_core_write_buffer): Ditto.
5897 * sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned
5898 transfer use xor version of read buffer.
5899 (sim_core_write_unaligned_N): Ditto for write.
5901 * sim-core.c (sim_core_xor_read_buffer): New function implement
5902 xor-endian data read breaking transfer up into xor-endian sized
5904 (sim_core_xor_write_buffer): Ditto for write.
5905 (reverse_n): Reverse order of arbitrary number of bytes in buffer
5906 - needed for xor-endian transfers.
5908 Fri May 23 14:24:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
5910 * sim-inline.h: Review description.
5912 * sim-core.h, sim-core.c: Reduce number of functions being inlined
5913 to just those involved in data transfers and configuration.
5915 * sim-xcat.h (XSTRING): New macro, map macro definition onto
5917 * sim-n-core.h (sim_core_read_aligned_N): Use.
5918 (sim_core_read_unaligned_N): Ditto.
5919 (sim_core_read_unaligned_N): Ditto..
5920 (sim_core_write_unaligned_N): Ditto.
5922 * sim-core.h: Add xor endian bitmap to main structure. *
5924 sim-n-core.h (sim_core_write_aligned_N): Add suport for xor
5926 (sim_core_read_aligned_N): Ditto.
5928 * sim-core.c (sim_core_set_xor_endian): New function.
5929 (sim_core_attach): Don't overwrite the per-cpu xor map when
5930 cloning the global core.
5932 Fri May 23 10:53:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
5934 * sim-engine.h: Update below so that it is using an enumerated
5937 Thu May 22 09:12:16 1997 Gavin Koch <gavin@cygnus.com>
5939 * sim-engine.c (sim_engine_restart):
5940 * sim-resume.c (sim_resume): Change longjmp param/setjmp
5941 return value used for simulator restart from 0 to 2.
5943 Wed May 21 08:47:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
5945 * cgen-scache.c (scache_option_handler): Add is_command arg.
5947 * sim-model.c (model_option_handler): Add is_command argument.
5949 * sim-profile.c (profile_option_handler): Add is_command arg.
5951 * sim-events.c (sim_watch_valid): Use ub64, lb64 when 64bit value
5954 * sim-module.c (sim_module_add_init_fn): Call init fn in the same
5955 order that they are registered.
5957 * sim-options.h (OPTION_HANDLER): Add argument to differentiate
5958 between option and command line processing.
5960 * sim-options.c: Include stdlib.h, ctype.h.
5962 * Make-common.in (sim-watch.o): Add rule.
5963 (sim_main_headers): Assume sim-assert.h included.
5964 (sim-*.o): Simplify make rule.
5966 * sim-module.c: Add sim_watch_install to module list.
5968 Tue May 20 14:15:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
5970 * sim-base.h (STATE_LOADED_P): New predicate. Set once everything
5973 * sim-trace.c (trace_install): Check magic. Include sim-assert.h.
5974 * sim-events.c (sim_events_install): Ditto.
5975 * sim-core.c (sim_core_install): Ditto.
5976 * sim-model.c (model_install): Ditto.
5977 * sim-options.c (standard_install): Ditto.
5978 * sim-profile.c (profile_install): Ditto.
5979 * sim-reason.c (sim_stop_reason): Ditto.
5980 * sim-run.c (sim_engine_run): Ditto.
5981 * sim-utils.c (sim_analyze_program): Ditto.
5983 * sim-module.c (modules): Make profile_install and trace_install
5986 * sim-base.h (STATE_MEM_BASE): Define for flat memory systems.
5988 * sim-options.c (standard_option_handler): Set the byte order.
5990 * sim-events.c (sim_events_process): Allow multi tick processing.
5991 (sim_events_tickn): New function - multi cycle tick.
5993 * sim-events.h (sim_events_tickn, sim_events_timewarp): Add
5994 prototypes. Under development.
5995 (sim_events): Replace processing with nr_ticks_to_process.
5997 Tue May 20 09:39:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5999 * nrun.c (main): Pass callbacks to sim_open instead of using
6002 * run.c (main): Ditto.
6004 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6006 * sim-events.c (sim_events_zalloc): Signal save memory allocator -
6007 stop tk interrupting malloc calls.
6008 (sim_events_zalloc): Converse.
6010 * Make-common.in (sim_main_headers): Add sim-events.h.
6012 * sim-events.c (sim_events_schedule_after_signal): Change return
6013 type to void - signal events are strictly internal.
6014 (sim_events_init): Allocate a finite buffer for signal events.
6015 (sim_events_schedule_after_signal): Enter signal events into the
6018 * sim-engine.c (sim_engine_halt): Check SIM_DESC magic.
6019 (sim_engine_restart): Ditto.
6020 (sim_engine_abort): Ditto.
6021 * sim-stop.c (sim_stop): Ditto.
6022 (control_c_simulation): Ditto.
6023 * sim-resume.c (sim_resume): Ditto.
6024 (has_stepped): Ditto.
6025 * sim-abort.c (sim_engine_abort): Ditto.
6027 * sim-basics.h (transfer_type): New type.
6029 * sim-core.c (sim_core_signal): New function. Print core signal
6031 (sim_core_find_mapping): Add transfer argument.
6033 * sim-n-core.h (sim_core_{write,write}_unaligned_N): Call
6034 SIM_CORE_SIGNAL if a recoverable abort.
6035 * sim-core.c (sim_core_find_mapping): Ditto.
6037 Fri May 16 15:13:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
6039 * sim-core.c (sim_core_find_mapping): Replace calls to
6040 sim_io_error to more resiliant sim_engine_abort.
6042 * sim-n-core.h (sim_core_read_unaligned_N): Ditto.
6043 (sim_core_write_unaligned_N): Ditto.
6045 Tue May 13 13:50:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
6047 * sim-module.c: Add sim_events_install to list.
6049 * sim-events.c (sim_events_install, sim_events_uninstall): Clonse
6051 (sim_events_init): Now returns SIG_RC.
6053 * sim-run.c: New file. Generic sim_engine_run.
6054 * sim-reason.c: New file. Generic sim_stop_reason.
6055 * sim-stop.c: New file. Generic sim_stop.
6056 * sim-resume.c: New file. Generic sim_resume.
6058 * Make-common.in (sim-engine.o): Add rule.
6059 (sim-run.o, sim-reason.o, sim-stop.o, sim-resume.o): Ditto.
6061 * sim-engine.h, sim-engine.c: New file. Provide generic
6062 implementation of sim_engine_halt, sim_engine_error. et.al.
6064 * sim-base.h (sim_state_base): Add member halt.
6065 (sim-engine.h): Include.
6067 * sim-events.h (sim_event_handler): Always pass SIM_DESC to event
6069 * sim-events.c (sim_events_poll): Update event handler.
6071 Tue May 13 09:57:49 1997 Andrew Cagney <cagney@b2.cygnus.com>
6073 * sim-events.h, sim-events.c (sim_events_watch_clock): New
6075 (sim_events_watch_sim): New function.
6076 (sim_events_watch_core): New function.
6077 (sim_watch_valid): New function.
6078 (sim_events_preprocess): New function.
6079 (sim_events_process): Process the watchpoints as well as the timer
6081 (sim_events_tick): Check WORK_PENDING instead of the hold queue.
6082 (sim_events_deschedule): Check all the queues when removing an
6084 (sim_events_init): Ditto for cleaning.
6086 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6088 * sim-fpu.c (is_ufpu_number): Comment out - currently unused.
6090 Mon May 19 11:23:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
6092 * callback.c (os_open): Type of arg flags is int.
6094 Fri May 16 22:26:43 1997 Michael Meissner <meissner@cygnus.com>
6096 * sim-fpu.c (sim_fpu_is_{eq,ne,lt,le,gt,ge}): Compare Infinities
6097 just like normal numbers as per IEEE rules.
6099 Wed May 14 21:20:38 1997 Bob Manson <manson@charmed.cygnus.com>
6101 * callback.c (os_close): Mark the descriptor as being
6102 available if the close succeeded.
6103 (os_open): Pass 0644 as the mode of the file being created.
6105 Thu May 15 10:58:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
6107 * sim-fpu.c (pack_fpu, unpack_fpu): New functions - decode a
6110 * sim-inline.c (SIM_INLINE_C): Rename from _SIM_INLINE_C_.
6111 * sim-lnline.h: Update.
6113 * sim-fpu.h, sim-fpu.c (sim_fpu_[iu]{32,64}to): New int2fp
6114 conversion functions.
6115 (sim_fpu_to{32,64}[iu]): New fp2int functions.
6117 * sim-fpu.h, sim-fpu.c (sim_fpu_is_{lt,le,eq,ne,ge,gt}): New fp
6118 compare functions. Replacing.
6119 (sim_fpu_cmp): This. Delete.
6121 Mon May 12 14:49:05 1997 Andrew Cagney <cagney@b1.cygnus.com>
6123 * sim-core.c (sim_core_find_mapping): Call engine_error not
6124 sim_io_error when possible.
6126 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b2.cygnus.com>
6128 * sim-endian.h (V1_H2): Add macro's to insert a word into a
6129 high/low double word.
6131 * sim-trace.h: Remove definition of attribute - defined in
6134 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
6136 * sim-options.h (struct OPTION): Add doc_opt as the documenting
6137 name of the option - or family of options.
6139 * sim-options.c (sim_args_command): Match command `a-b c' with
6140 option `--a-b-c' from option table.
6142 Thu May 8 12:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
6144 * sim-options.c (sim_print_help): For optional arguments, wrap
6147 * sim-trace.c (set_trace_options): New function, handle optional
6148 argument and multiple assignment.
6149 (trace_option_handler): Update.
6151 * sim-trace.c (trace_option_handler): Trace branch and not fpu
6152 when branch tracing selected.
6154 Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
6156 * sim-trace.c (trace_one_insn): Make a va-args function.
6158 * sim-trace.c (trace_vprintf): New function, va-arg version of
6161 Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com>
6163 * sim-trace.c (trace_uninstall): Don't close a file twice.
6164 * sim-profile.c (profile_uninstall): Likewise.
6166 Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com>
6168 * sim-trace.c (toplevel): Include bfd.h.
6169 (trace_options): Note that --trace-linenum also turns on
6170 --trace-insn. Add --trace-{branch,semantics}.
6171 (trace_option_handler): If --trace-linenum, also turn on
6172 --trace-insn. Add --trace-branch support. If --trace-semantics,
6173 turn on ALU, FPU, branch, and memory tracing.
6174 (trace_one_insn): New function to trace an instruction. Support
6176 (OPTION_TRACE_*): Use an enum, rather than lots of defines.
6178 * sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros.
6179 (MAX_TRACE_VALUES): Use 32, not 12 by default.
6180 (TRACE_branch): Add new mask.
6181 (TRACE_*_P): Define all possible trace_p macros.
6182 (trace_one_insn): Declare function.
6184 Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com>
6186 * sim-trace.h (__attribute__): Define as nothing if not GNU C or
6187 GNU C doesn't support __attributes__.
6188 ({trace,debug}_printf): Add attribute's so -Wformat can check the
6191 Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
6193 * sim-config.h (FORCED_ALIGNMENT): New alignment option -
6194 addresses are masked forcing them to be correctly aligned.
6195 (WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default.
6196 * sim-config.c (config_alignment_to_a): Update.
6198 * sim-core.h (sim_cpu_core): New data type contains cpu specific
6200 * sim-base.h (CPU_CORE): Add cpu specific core data to cpu base
6202 * sim-core.c (sim_core_attach): Add CPU argument. Ready for
6203 processor specific core maps.
6204 (sim_core_map_attach): Copy the core map data to each of the
6205 processor specific core data structures.
6206 * sim-core.c (sim_core_find_mapping): Update.
6208 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename.
6209 (sim_core_write_aligned_N, sim_core_write_aligned_N): New names.
6210 (sim_core_write_unaligned_N, sim_core_write_unaligned_N): New
6211 alternatives that handle unaligned addresses.
6212 (sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace
6214 * cgen-utils.c (sim_disassemble_insn): Update.
6216 Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
6218 * sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific
6221 * sim-fpu.h, sim-fpu.c: New files - prototype for generic target
6224 * sim-inline.h, sim-inline.c: Add support for SIM_FPU.
6226 Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
6228 * sim-core.c (sim_core_map_to_str): New function ascii equivalent
6231 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace
6234 Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com>
6236 * cgen-trace.c: Prepend additional trace_printf argument.
6238 * cgen-utils.c (sim_disassemble_insn): Add additional core
6241 Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
6243 * nrun.c (main): Catch/report errorenous simulator states.
6245 * sim-module.c: #include "libiberty.h" so that xmalloc is defined.
6246 * sim-trace.c: #include string.h/strings.h so that memset is
6248 * sim-utils.c: Ditto.
6249 * sim-profile.c: Ditto. And stdlib.h.
6250 (print_bar): Only define when used by instruction or memory profiler.
6252 * sim-options.c (standard_option_handler): Make ul more local.
6254 * sim-load.c (sim_load_file): Make the name constant.
6255 (sim_load_file): Passify gcc.
6257 * sim-utils.h: New file, pre-declare utilites in corresponding .c
6259 * sim-utils.c, sim-load.c: Include sim-utils.h.
6261 * sim-base.h (sim_cpu): Pre define here so available to all.
6263 * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N):
6264 Restore the sim_cpu and instruction_address arguments so that full
6265 information is available to the abort function.
6266 * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto.
6267 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
6269 * sim-trace.h, sim-trace.c (trace_option_handler): Add interim
6270 tracing support for sim-events and sim-core.
6271 (trace_option_handler): Convert #if to if where possible so always
6272 compiled/checked by C compiler.
6273 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
6275 * sim-base.h: Adjust comment documenting how to define the cpu
6277 (sim_state_base): Add sim_core and sim_events to simulator base
6280 * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument.
6281 * sim-core.c (sim_core_init, sim_core_attach,
6282 sim_core_find_mapping): Update.
6283 * sim-events.c (ETRACE, sim_events_init, sim_events_time,
6284 update_time_from_event, insert_sim_event,
6285 sim_events_schedule_after_signal, sim_events_deschedule,
6286 sim_events_tick): Ditto.
6288 * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h,
6289 sim-model.h): Move #includes from here.
6290 * sim-base.h: To here.
6291 (sim-core.h, sim-events.h, sim-io.h): Include also
6293 Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
6295 * callback.c (default_callback): Missing initialisers.
6297 Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com>
6299 * sim-utils.c (sim_add_commas): New function.
6300 * sim-basics.h (sim_add_commas): Add prototype.
6301 * cgen-scache.c (scache_print_profile): Print commas in numbers.
6302 * sim-profile.c (COMMAS): New macro.
6303 (print_*): Use it to print commas in numbers.
6305 * configure: Regenerated.
6307 * cgen-sim.h (sim_signal_type): Add SIM_SIGINT.
6308 (cgen_state): New member run_fast_p.
6309 (cgen_init): Add prototype.
6310 (sim_disassemble_insn): New arg `cpu'.
6311 * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn.
6312 * cgen-utils.c (cgen_init): New function.
6313 (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn.
6314 * genmloop.sh: Call engine_halt if loop exits.
6316 * Makefile.in (sim-options_h): Define.
6317 (sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
6318 (sim-model.o): Add new rule.
6319 (cgen-{scache,trace,utils}.o): Add new rules.
6320 * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
6321 * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
6322 Indent output by 2 spaces.
6323 * cgen-scache.h (scache_print_profile): Update.
6324 * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
6325 Use trace_printf, not fprintf.
6326 (trace_extract): Use trace_printf, not cgen_trace_printf.
6327 * genmloop.sh (!FAST case): Increment `insn_count'.
6328 * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
6329 (sim_cpu_base): Rename member `sd' to `state' to be consistent with
6330 access macro's name.
6331 * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
6332 Change return type to SIM_RC.
6333 (sim_core_{install,uninstall}): New functions.
6334 * sim-core.h (sim_core_{install,uninstall}): Declare.
6335 (sim_core_init): Use EXTERN_SIM_CORE to define it.
6336 Change return type to SIM_RC.
6337 * sim-model.h (models,machs,model_install): Declare.
6338 * sim-module.c (modules): Add scache_install, model_install.
6339 (sim_post_argv_init): Set cpu->state backlinks.
6340 * sim-options.c (standard_options): Delete --simcache-size,--max-insns.
6341 (standard_option_handler): Likewise.
6342 * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
6345 (profile_options): Delete --profile-simcache.
6346 (profile_option_handler): Likewise.
6347 (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
6349 (profile_print_{memory,model}): Likewise.
6350 (profile_print_simcache): Delete.
6351 (profile_print_speed): New function.
6352 (profile_print): Rewrite.
6353 * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
6354 (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
6355 (PROFILE_DATA): Delete members simcache_{hits,misses}.
6356 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
6357 (PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
6358 (profile_print): Update prototype.
6360 Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com>
6362 * cgen-scache.[ch], cgen-sim.h: New files.
6363 * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files.
6364 * sim-model.c: New file.
6366 * Make-common.in (clean targets): Undo patch of Apr. 22.
6368 Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com>
6370 * sim-n-bits.h (signed): If we have a standard compiler, undef
6371 signed, so that signedN is defined correctly.
6373 Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com>
6375 * sim-module.h, sim-model.h, sim-profile.h: New files.
6376 * sim-module.c, sim-profile.c: New files.
6377 * Make-common.in (SIM_PROFILE): Define
6378 (CONFIG_CFLAGS): Add $(SIM_PROFILE).
6379 (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
6380 (sim_module.o,sim-profile.o): Add rules for.
6381 * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
6382 (--enable-sim-profile): Add.
6383 * configure: Regenerated.
6384 * sim-base.h (sim_state_base): New members init_list, uninstall_list,
6385 model. Move trace and profile support to sim-{trace,profile}.h.
6386 New members trace_data, profile_data.
6387 * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
6388 * sim-config.h: Provide default definition of WITH_PROFILE.
6389 (WITH_TRACE): Change default to -1.
6390 (MAX_NR_PROCESSORS): Always define.
6391 * sim-options.c: Move trace and profile support to
6392 sim-{trace,profile}.h.
6393 (sim_pre_argv_init): Moved to sim-model.c.
6394 (standard_install): New function.
6395 * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
6396 (standard_install): Declare.
6397 * sim-trace.c: Tracing option handling moved here from sim-options.c.
6398 (trace_install, trace_uninstall): New functions.
6399 (trace_printf): Update reference to TRACE_FILE.
6400 * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
6401 (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
6402 (WITH_TRACE_FOO_P): Define.
6403 (trace_install): Declare.
6404 (TRACE_DATA): New struct.
6406 Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com>
6408 * run.c: Undo last exec_bfd patch.
6409 (main): Only pass -E ifdef SIM_HAVE_BIENDIAN.
6411 Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com>
6413 * run.c (exec_bfd): Add back in.
6414 (main): Set exec_bfd.
6416 Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com>
6418 * sim-load.c (sim_load_file): #include <stdio.h> for NULL.
6420 Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
6422 * sim-events.c (insert_sim_event): Call sim_io_error instead of
6423 less well defined engine_error.
6424 * sim-core.c: Ditto.
6426 Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com)
6428 * Make-common.in: Change clean targets to use :: so that other
6429 Makefiles can have their own clean targets.
6430 * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of
6431 __STDC__ to control use of stdarg vs. varargs syntax. Some
6432 systems can't use __STDC__, but require stdarg.
6434 Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com>
6436 * sim-options.c (standard_options): Add --endian.
6437 (standard_option_handler): Likewise.
6439 * nrun.c: #include <signal.h>.
6440 (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
6441 handler that calls sim_stop ().
6443 Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
6445 * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
6446 handler that calls sim_stop (). Simulators may still be
6447 establishing their own handler.
6449 * sim-events.c (sim_events_poll): Rename from
6450 sim_events_at_large_int. Poll IO.
6452 * sim-io.c (sim_io_poll_quit): New function - pass on a polling
6455 * callback.c (os_poll_quit): New function poll for quit signal
6457 (default_callback): Include magic number.
6459 Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
6461 * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
6462 Check for functions getrusage, time.
6463 * sim-basics.h (SIM_ELAPSED_TIME): New typedef.
6464 (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes.
6465 * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able.
6466 (sim_elapsed_time_get, sim_elapsed_time_since): New functions.
6468 * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.
6470 * sim-options.c, sim-options.h: New files.
6471 * sim-config.h (WITH_DEBUG): Provide default value of zero.
6472 * Make-common.in (nrun.o): Add rules for.
6475 * run.c (main): Check return value of sim_open.
6477 * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules.
6478 (sim_main_headers): Add sim-trace.h.
6479 * run.c (exec_bfd, target_byte_order): Delete.
6480 (main): Pass -E <endian> to sim_open. Delete code to load sections,
6481 call sim_load instead. Check return code of sim_create_inferior.
6482 * sim-base.h (CURRENT_STATE): Define.
6483 (sim_state_base): Make typedef. New members options, prog_argv,
6484 prog_bfd, text_{section,start,end}, start_addr, simcache_size,
6485 mem_size, memory [+ corresponding access macros].
6486 (sim_cpu_base): New typedef.
6487 * sim-trace.h: New file.
6488 * sim-trace.c: New file.
6489 * sim-basics.h: #include it.
6490 * sim-load.c: New file.
6492 Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com>
6494 * Make-common.in (INSTALL): Set to @INSTALL@.
6495 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
6496 (install-common): Depend upon installdirs. Use
6497 $(program_transform_name) directly, rather than using
6499 (installdirs): New target.
6500 * Makefile.in (INSTALL): Set to @INSTALL@.
6501 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
6502 (install-man): Depend upon installdirs. Use
6503 $(program_transform_name) directly, rather than using
6505 (installdirs): New target.
6507 Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
6509 * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
6512 Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6514 * sim-basics.h: Only bring in config.h and tconfig.h if
6517 Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6519 * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
6520 numbering convention of the target.
6521 * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
6522 and WITH_TARGET_WORD_MSB.
6523 (sim_config): When possible, check for consistency with bitsize
6526 * sim-bits.h: Allow MSB to be other than zero.
6527 * sim-bits.c: Ditto.
6528 * sim-n-bits.h: Ditto.
6530 * sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
6531 * sim-n-bits.h (MSMASKEDn): Ditto.
6533 Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com>
6535 * Makefile.in (INSTALL): Change install.sh to install-sh.
6537 Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com>
6539 * sim-base.h (sim_state_base): Move `magic' to end of struct.
6541 Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6543 * run.c (main): Check that a program to run was specified.
6545 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6547 * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
6549 * configure: Regenerated to track ../common/aclocal.m4 changes.
6552 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
6554 * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
6555 * sim-config.h: To here.
6557 * Make-common.in (SIM_EXTRA_DEPS): New config var.
6558 (sim_main_headers): Define.
6559 (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
6560 (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
6562 (sim-utils.o): Add rule for.
6563 * sim-utils.o: New file.
6564 * sim-basics.h: #include sim-base.h.
6565 (zalloc): Make argument unsigned long.
6566 * sim-base.h: New file.
6567 * sim-inline.h (SIM_IO support): Delete.
6568 * sim-io.h: Delete inline support.
6569 * sim-io.c: Likewise. sim-state.h renamed to sim-main.h.
6570 * sim-config.c: sim-state.h renamed to sim-main.h.
6571 * sim-core.c: Likewise.
6572 * sim-events.c: Likewise.
6574 * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
6576 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
6577 (sim-debug): Allow arguments. Define WITH_DEBUG in addition to
6579 * configure: Regenerated to track ../common/aclocal.m4 changes.
6581 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6583 * configure: Regenerated to track ../common/aclocal.m4 changes.
6585 Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6587 * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
6588 WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
6589 are defined by the configure.
6591 * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
6593 * aclocal.m4 (floating-point, xor-endian, alignment, smp,
6594 reserved-bits): Always define.
6596 * sim-config.h, sim-config.c (sim_config): New function - and new
6597 file - co-ordinate the setting/checking of the common simulator
6598 configuration options.
6600 * Make-common.in (sim-config.o): Add rule.
6602 Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com>
6604 * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
6605 va_list from void *, since va_list might not be a pointer type.
6607 Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6609 * sim-n-endian.h (offset_N): Correct assertion - word and sub word
6611 (offset_N): Correct computation of LE offset.
6613 * sim-io.c (sim_io_error): Include a new line when reporting
6616 * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
6619 Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com)
6621 * run.c: Include alloca-conf.h.
6623 * callback.c (os_evprintf_filtered): Fix typo.
6625 Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6627 * run.c (string.h, strings.h, stdlib.h): Include.
6629 * sim-events.c (sim_events_tick): Recent cleanup failed to return
6630 0 when nothing pending.
6632 * run.c (sim_size, sim_trace): Plicate GCC - these two functions
6633 will soon be going away.
6634 (getopt): Plicate GCC.
6636 * sim-endian.c (sim-io.h): Plicate GCC.
6637 * sim-bits.c (sim-io.h): Ditto.
6638 * sim-n-bits.h (ROTn): Ditto.
6640 * sim-io.c (sim_io_error): Correct check for NULL.
6642 * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
6644 * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
6647 Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6649 * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
6650 SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
6652 Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6654 * sim-alu.h: Include sim-xcat.h.
6656 Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6658 * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
6659 sim-events.c, sim-inline.c, sim-io.c): Define rules for building
6662 * sim-events.c (sim_events_at_large_int): New function. Just
6663 schedules an event every large-int ticks.
6664 (sim_events_init): Call.
6665 (sim_events_tick, sim_events_process): Move async handing to
6666 sim_events_process. Move timer decrement so that it occures after
6667 events have been processed.
6669 * sim-basics.h (struct _engine): Remove declaration.
6671 * sim-events.h, sim-events.c: Rename type to sim_events. Prefix
6672 everything with same. Rename global struct to SIM_DESC.
6673 * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
6674 * sim-io.h, sim-io.c: Ditto.
6676 * sim-assert.h: New file. Optional assertion checking macros.
6677 * sim-io.c (sim_io_error): Make just this function tolerant to
6680 * sim-xcat.h: New file. Define concatenate macros.
6681 * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
6682 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
6686 Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6688 * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
6690 Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6692 * sim-inline.h: Add definitions for sim-types.
6693 (ALL_BY_MODULE): New macro, encapsulate full inlining by the
6696 Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6698 * sim-events.h: Remove defunct reference to callback struct.
6700 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6702 * configure: Re-generate.
6704 Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6706 * Make-common.in (CSEARCH): Do not include the gdb directory in
6709 Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6711 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
6712 SIM_WARNING): Drop, requiring the simulator specific Makefile.in
6713 to explicitly incorporate these.
6715 * aclocal.m4 (--enable-sim-alignment); New option. Strongly
6716 specify the alignment restrictions of the target architecture -
6717 without this option all alignment restrictions are accomodated.
6718 (--enable-sim-assert): New option. Conditionally compile in
6719 assertion statements.
6720 (--enable-sim-float): New option. Strongly specify the target's
6721 floating point support.
6722 (--enable-sim-hardware): New option. Specify the hardware devices
6723 included in the simulation.
6724 (--enable-sim-packages): New option. Specify the hardware
6725 packages included in the simulation.
6726 (--enable-sim-regparm): New option. Specify that parameters be
6727 passed in registers instead of on the stack.
6728 (--enable-sim-reserved-bits): New option. Specify that reserved
6729 bits within an instruction are are correctly set.
6730 (--enable-sim-smp): New option. Specify the level of SMP support
6731 to be included in the simulator.
6732 (--enable-sim-stdcall): New option. Specify an alternative
6733 function call convention.
6734 (--enable-sim-xor-endian): New option. Configure xor-endian
6735 support used by some targets to implement bi-endian support.
6737 Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6739 * aclocal.m4 (--enable-sim-hostendian): New option. Allow the
6740 host endianness to be overridden.
6741 (--enable-sim-endian): Allow the target platform's byte order
6743 (--enable-sim-inline): Control the inlining of common components.
6744 (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
6745 (--enable-sim-warnings): Enable additional GCC compiler checks.
6746 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
6749 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
6750 sim-*-n.h so that the names are uniq on dos machines
6751 * sim-core.c, sim-bits.c, sim-endian.c: Update.
6753 Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
6755 * run.c: #include "libiberty.h".
6756 (main): New locals sd,no_args,sim_argv.
6757 Run buildargv on -a option. Pass argv to sim_open, argv[0]
6758 is program name. Update call to sim_set_callbacks.
6759 Record result of sim_open, pass to other sim_foo routines.
6761 Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
6763 * callback.c (os_printf_filtered): Do not call exit(1) or print a
6766 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6768 * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
6769 Route stdout through buffered IO.
6771 * callback.c: Add os_flush_stderr, os_write_stderr,
6772 os_evprintf_filtered functions to route error output through
6775 * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
6776 Correct return type - should be void.
6778 Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6780 * sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
6782 * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
6783 not provide a default value as undefined indicates disable code.
6785 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6787 * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
6789 * sim-events.h, sim-events.c: Ditto.
6790 * sim-io.h, sim-io.c: Ditto.
6792 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6794 * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
6796 * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
6797 extract the tail or least signifiant bits from an integer of the
6800 * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
6801 WITH_TARGET_BITSIZE so that the compilation will fail when an
6802 unsupported bitsize value is defined.
6804 (INSERTED*): Convert to functions.
6805 (EXTRACTED*): Ditto.
6807 (SIGN_EXTEND, SEXT): Change to more terse name.
6809 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6811 * sim-inline.h: Allow explicit control over which .c files will be
6812 included by their header.
6814 * sim-inline.h: Allow explicit control over which .c files use the
6815 alternative - REGPARM - parameter passing mechanism.
6817 * sim-inline.h, sim-inline.c: Don't attempt to include any of
6818 icache.c, idecode.c, semantics.c or support.c. Those names are
6819 not generally applicable.
6821 Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6823 * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
6824 in a fashion similar to sim-endian-n.
6826 * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
6827 both value and address macro's.
6829 Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6831 * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
6833 * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
6834 generic L_word, H_word macro's.
6836 Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
6838 * sim-basics.h: Borrow code from ppc directory.
6839 * sim-bits.c: Ditto.
6840 * sim-bits.h: Ditto.
6841 * sim-config.h: Ditto.
6842 * sim-endian-n.h: Ditto.
6843 * sim-endian.c: Ditto.
6844 * sim-endian.h: Ditto.
6845 * sim-inline.c: Ditto.
6846 * sim-inline.h: Ditto.
6847 * sim-types.h: Ditto.
6849 Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
6851 * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
6852 all the ALU size alternatives and then auto-configure a default.
6854 * sim-alu.h: Copy ppc/idecode_expression.h.
6856 Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
6858 * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
6859 sign extend a bit within a value.
6861 * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
6862 a pointer into the middle of a host word.
6863 * sim-endian.h (MS2W_4, LS2W_4): Use this function.
6865 Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
6867 * callback.c: If HAVE_CONFIG_H is defined, include config.h from
6868 autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
6869 appropriate definitions of read, write, etc. Add prototype for
6872 Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
6874 * Makefile.in (libcommon.a): Delete.
6875 (callback.o,targ-map.o): Delete, moved to Make-common.in.
6876 (gentmap,targ-vals.h,targ-map.c): Likewise.
6877 (run-autoconf): Delete.
6878 * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
6879 (common makefile fragment): Moved back into ...
6880 * Make-common.in: Resurrect.
6881 * configure.in (AC_LINK_FILES): Delete, unnecessary now.
6882 * configure: Regenerated.
6884 Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
6886 * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
6887 (SIM_AC_OUTPUT): To here.
6889 Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
6891 * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
6892 comments and single quotes. Fixes a problem found on hpux.
6894 Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
6896 * aclocal.m4: Remove Make-common.in from dependencies.
6897 * (distclean): Remove targ-vals.def.
6899 * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
6900 into here. Makes insertion into makefiles easier. Also, change
6901 the way that callback.o, gentmap, targ-vals.h, targ-map.c,
6902 targ-map.o, and run are built. They are now built in the
6903 individual simulator directories, taking sources from ../common as
6904 necessary. This replaces the merging of libcommon.a into
6905 linsim.a, which was problematic for the WinGDB build process.
6906 * run.c: Include config.h from . instead of ../common.
6907 * Make-common.in: Remove. It's no longer necessary.
6909 Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
6911 * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
6912 (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
6914 Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
6916 * run.c (main): Set target_byte_order before call to sim_open.
6918 Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
6920 * callback.c: #include <stdlib.h>
6921 (os_error): New function.
6922 (default_callback): Add os_error.
6924 Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
6926 * Make-common.in (Makefile): Set CONFIG_HEADERS="".
6927 * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
6929 (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
6931 Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
6933 * run.c: #include ../common/config.h, tconfig.h.
6934 (myname): New static global.
6935 (main): Recognize new options -a, -c. Also recognize -h if h8/300.
6936 Only process -c ifdef SIM_HAVE_SIMCACHE.
6937 Only process -p/-s ifdef SIM_HAVE_PROFILE.
6938 Parse program name from argv[0] and use in error messages.
6939 Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
6940 Add support for incomplete h8/300 termination indicators.
6941 (usage): Make more verbose.
6942 * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
6943 * Makefile.in,Make-common.in,callback.c: New files.
6944 * nltvals.def,gentmap.c,gentvals.sh: New files.
6946 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
6948 * run.c: Include stdarg.h if __STDC__.
6950 Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
6952 * run.c (main): Don't print out anything if the signal
6953 number is zero (ie no signal).
6955 Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6957 * run.c (main): Print out if the program raised a signal.
6959 Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6961 * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
6964 Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
6966 * run.c (main): Explicitly cast malloc() parameter.
6968 Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6970 * run.c (sim_bfd): New global to hold the bfd pointer for the
6972 (main): Initialize sim_bfd.
6974 Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
6976 * run.c (main): Use new bfd_big_endian macro.
6978 Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
6980 * run.c (main): Removed SH specific comments, so source is
6981 generic. Also updated to only load relevant sections. Moved
6982 sim_open() to after callback attach (to match GDB).
6984 * run.1: Removed SH specific comments.
6986 Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
6988 * run.c (main): Always return sigrc at end.
6990 Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
6992 * run.c (main): Print error diagnostic and exit if bfd_openr() or
6993 bfd_check_format() fails.
6995 Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
6997 * run.c, run.1: From sh directory.