1 2016-01-10 Mike Frysinger <vapier@gentoo.org>
3 * acinclude.m4: Delete --enable-sim-regparm and sim_regparm,
4 and --enable-sim-stdcall and sim_stdcall.
5 * configure: Regenerate.
6 * Make-common.in (SIM_REGPARM, SIM_STDCALL): Delete.
7 (CONFIG_CFLAGS): Delete $(SIM_REGPARM) and $(SIM_STDCALL).
8 * sim-config.h (WITH_REGPARM, WITH_STDCALL): Delete.
9 * sim-inline.h (REGPARM_MODULE, REGPARM): Delete.
10 (REGPARM_*): Delete all regparm defines and their use.
12 2016-01-10 Mike Frysinger <vapier@gentoo.org>
14 * acinclude.m4: Delete --enable-sim-cflags and sim_cflags.
15 * Make-common.in (SIM_CFLAGS): Delete.
16 (CONFIG_CFLAGS): Delete $(SIM_CFLAGS).
17 * Makefile.in: Likewise.
19 2016-01-09 Mike Frysinger <vapier@gentoo.org>
21 * configure.ac: Change SIM_AC_COMMON to AC_PROG_CC. Drop 2nd arg
22 to AC_OUTPUT. Move AC_CHECK_HEADERS, AC_CHECK_FUNCS,
23 AC_CHECK_MEMBERS, and -AC_CHECK_TYPES ...
24 * acinclude.m4 (SIM_AC_COMMON): ... here.
25 * aclocal.m4, configure: Regenerate.
26 * config.in: Delete file.
27 * callback.c: Change cconfig.h include to config.h.
28 * dv-cfi.c, nrun.c, sim-basics.h, sim-load.c, sim-memopt.c,
30 * Make-common.in (sim-basics_h): Delete ../common/cconfig.h.
31 * Makefile.in (distclean): Delete rm -f cconfig.h config.h stamp-h.
33 2016-01-06 Mike Frysinger <vapier@gentoo.org>
35 * sim-config.c (print_sim_config): Delete sim_io_printf of version,
36 date, and time information.
38 2016-01-06 Mike Frysinger <vapier@gentoo.org>
40 * sim-options.c (sim_parse_args): Mark argv array const.
41 * sim-options.h (sim_parse_args): Likewise.
43 2016-01-05 Mike Frysinger <vapier@gentoo.org>
45 * sim-trace.c: Include dis-asm.h.
46 (OPTION_TRACE_DISASM): New enum.
47 (trace_options): Add trace-disasm flag.
48 (trace_option_handler): Handle OPTION_TRACE_DISASM.
49 (trace_idx_to_str): Handle TRACE_DISASM_IDX.
50 (dis_read, dis_printf, trace_disasm): New functions.
51 * sim-trace.h: Include dis-asm.h.
52 (TRACE_INSN_IDX): Clarify comment.
53 (TRACE_DISASM_IDX): New enum.
54 (TRACE_disasm): New define.
55 (WITH_TRACE_DISASM_P): New define.
56 (struct _trace_data): Add dis_bfd, disassembler, and dis_info.
57 (STRACE_DISASM_P): New define.
58 (TRACE_DISASM_P): Likewise.
59 (TRACE_DISASM_P): Likewise.
60 (TRACE_DISASM): Likewise.
61 (trace_disasm): New function.
63 2016-01-04 Mike Frysinger <vapier@gentoo.org>
65 * sim-utils.c (sim_state_free): Change to STATE_MAGIC.
67 2016-01-04 Mike Frysinger <vapier@gentoo.org>
69 * cgen-scache.c (MAX): Delete.
70 (scache_init): Change MAX to max.
71 * cgen-trace.c (min): Delete.
72 * cgen-utils.c (min): Delete.
73 * sim-basics.h [!min] (min): Define.
76 2016-01-04 Mike Frysinger <vapier@gentoo.org>
78 * sim-options.c (sim_parse_args): Tweak getopt error message.
80 2016-01-04 Mike Frysinger <vapier@gentoo.org>
82 * acinclude.m4 (sim-bswap): Delete.
83 * configure: Regenerate.
84 * Make-common.in (SIM_BSWAP): Delete.
85 (CONFIG_CFLAGS): Delete $(SIM_BSWAP).
86 * sim-config.h (htonl, ntohl): Delete.
89 2016-01-03 Mike Frysinger <vapier@gentoo.org>
91 * sim-options.c (sim_parse_args): Declare local save_opterr. Save
92 opterr state to it before calling getopt_long and restore afterwards.
93 Set opterr to 0. When optc is '?', call sim_io_eprintf.
95 2016-01-03 Mike Frysinger <vapier@gentoo.org>
97 * hw-device.h (device): Delete commented typedef.
98 * sim-basics.h (device): Delete typedef.
100 2016-01-03 Mike Frysinger <vapier@gentoo.org>
102 * sim-options.c (sim_parse_args): Replace for loop with a call
105 2016-01-03 Mike Frysinger <vapier@gentoo.org>
107 * nrun.c (myname): Mark const.
108 (main): Mark name const. Replace myname parsing loop with a
111 2016-01-03 Mike Frysinger <vapier@gentoo.org>
113 (CONFIG_CFLAGS): Delte $(SIM_HOSTENDIAN).
114 * acinclude.m4 (SIM_AC_COMMON): Call AC_C_BIGENDIAN.
115 (SIM_AC_OPTION_HOSTENDIAN): Delete.
116 * config.in, configure: Regenerate.
117 * Make-common.in (SIM_HOSTENDIAN): Delete.
118 * sim-config.c (current_host_byte_order): Delete.
119 (sim_config): Delete current_host_byte_order assignments and
120 CURRENT_HOST_BYTE_ORDER checks.
121 (print_sim_config): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
122 * sim-config.h (WITH_HOST_BYTE_ORDER): Change to ...
123 (HOST_BYTE_ORDER): ... this. Define based on WORDS_BIGENDIAN.
124 (current_host_byte_order): Delete.
125 (CURRENT_HOST_BYTE_ORDER): Likewise.
126 * sim-endian.c (WITH_HOST_BYTE_ORDER): Rename to ...
127 (HOST_BYTE_ORDER): ... this.
128 (sim_endian_split_16): Change WITH_HOST_BYTE_ORDER to
130 (sim_endian_join_16): Likewise.
131 * sim-n-core.h (sim_core_read_misaligned_N): Change
132 CURRENT_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
133 (sim_core_write_misaligned_N): Likewise.
134 * sim-n-endian.h (endian_t2h_N): Likewise.
135 (endian_h2t_N, endian_h2be_N, endian_be2h_N, endian_h2le_N,
136 endian_le2h_N): Likewise.
137 (offset_N): Change WITH_HOST_BYTE_ORDER to HOST_BYTE_ORDER.
139 2016-01-02 Mike Frysinger <vapier@gentoo.org>
141 * acinclude.m4 (SIM_AC_OPTION_ENDIAN): Change BIG_ENDIAN to
142 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
144 (SIM_AC_OPTION_HOSTENDIAN): Likewise.
145 * cgen-ops.h (SUBWORDXFSI): Change BIG_ENDIAN to BFD_ENDIAN_BIG.
146 (SUBWORDTFSI, JOINSIDF, JOINSIXF, JOINSITF): Likewise.
147 * nrun.c (main): Likewise.
148 * sim-config.c (current_host_byte_order): Change type to enum
149 bfd_endian. Initialize to BFD_ENDIAN_UNKNOWN.
150 (current_target_byte_order): Likewise.
151 (config_byte_order_to_a): Likewise. Change BIG_ENDIAN to
152 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
154 (sim_config): Change prefered_target_byte_order type to enum
155 bfd_endian. Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
156 to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
157 * sim-config.h: Change BIG_ENDIAN to BFD_ENDIAN_BIG, LITTLE_ENDIAN
158 to BFD_ENDIAN_LITTLE, and 0 to BFD_ENDIAN_UNKNOWN.
159 Delete all the various arch/OS endian includes & defines.
160 (current_host_byte_order): Change type to enum bfd_endian.
161 (current_target_byte_order): Likewise.
162 (CURRENT_HOST_BYTE_ORDER): Compare to BFD_ENDIAN_UNKNOWN, not 0.
163 (CURRENT_TARGET_BYTE_ORDER): Likewise.
164 * sim-endian.c: Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
165 * sim-events.c (sim_events_watch_sim): Change BIG_ENDIAN to
166 BFD_ENDIAN_BIG, LITTLE_ENDIAN to BFD_ENDIAN_LITTLE, and 0 to
168 (sim_events_watch_core): Likewise.
169 * sim-events.h: Likewise.
170 * sim-n-core.h (sim_core_read_misaligned_N): Change BIG_ENDIAN to
172 (sim_core_write_misaligned_N): Likewise.
173 * sim-n-endian.h (endian_h2be_N): Likewise.
174 (endian_be2h_N): Likewise.
175 (endian_h2le_N): Change LITTLE_ENDIAN to BFD_ENDIAN_LITTLE.
176 (offset_N): Likewise.
177 * sim-options.c (standard_option_handler): Change LITTLE_ENDIAN to
178 BFD_ENDIAN_LITTLE and BIG_ENDIAN to BFD_ENDIAN_BIG.
180 2016-01-02 Mike Frysinger <vapier@gentoo.org>
182 * cgen-defs.h (current_state): Delete.
183 * sim-base.h (CURRENT_STATE_REG, CURRENT_STATE): Delete.
184 * sim-utils.c (current_state): Delete.
186 2015-12-30 Mike Frysinger <vapier@gentoo.org>
188 * sim-module.c (sim_pre_argv_init): Change STATE_MY_NAME assignment
191 2015-12-27 Mike Frysinger <vapier@gentoo.org>
193 * Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-hload.o.
195 2015-12-26 Mike Frysinger <vapier@gentoo.org>
197 * acinclude.m4 (AH_BOTTOM): Delete tconfig.h appending.
198 * config.in, configure: Regenerate.
199 * Make-common.in (sim-basics_h): Delete tconfig.h.
200 (distclean): Likewise.
201 * sim-core.c (device_io_read_buffer, device_io_write_buffer): Delete.
202 (new_sim_core_mapping): Delete WITH_HW and device *device.
203 (sim_core_map_attach, sim_core_attach): Likewise.
204 (sim_core_read_buffer): Delete WITH_DEVICES logic.
205 (sim_core_write_buffer): Likewise.
206 * sim-core.h (struct _sim_core_mapping): Delete WITH_HW and device
208 (sim_core_attach): Likewise.
209 (device_io_read_buffer, device_io_write_buffer): Delete.
210 * sim-n-core.h (sim_core_read_aligned_N): Delete WITH_DEVICES logic.
211 (sim_core_write_aligned_N): Likewise.
212 * tconfig.h: Delete file.
214 2015-12-26 Mike Frysinger <vapier@gentoo.org>
216 * sim-core.c (sim_core_read_buffer): Move cia decl to top of func.
217 Call sim_cpu_hw_io_read_buffer if cpu is valid.
218 (sim_core_write_buffer): Move cia decl to top of func. Call
219 sim_cpu_hw_io_write_buffer if cpu is valid.
221 2015-12-25 Mike Frysinger <vapier@gentoo.org>
223 * hw-properties.c (hw_find_ihandle_runtime_property): Delete
225 (hw_find_integer_property): Likewise.
226 (hw_find_integer_array_property): Likewise.
227 (hw_add_duplicate_property): Likewise.
229 2015-12-25 Mike Frysinger <vapier@gentoo.org>
231 * sim-config.h (WITH_ENGINE): Delete.
232 * sim-module.c (modules): Always include sim_engine_install.
234 2015-12-25 Mike Frysinger <vapier@gentoo.org>
236 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-model.o.
237 * cgen-types.h (SIM_HAVE_MODEL): Delete.
238 * sim-base.h: Always include sim-model.h.
239 * sim-config.h (WITH_DEFAULT_MODEL): Delete.
240 * sim-cpu.h (sim_cpu_base): Always declare mach/model members.
241 * sim-model.c (sim_model_init): Return when !WITH_MODEL_P.
242 [!WITH_MODEL_P] (sim_machs): Define.
243 * sim-model.h: Add some developer docs.
244 [!WITH_DEFAULT_MODEL] (mach_attr, WITH_DEFAULT_MODEL): Define.
245 (WITH_MODEL_P): Define.
246 * sim-module.c (modules): Always include sim_model_install.
247 * sim-profile.h (WITH_PROFILE_MODEL_P): Delete.
249 2015-12-25 Mike Frysinger <vapier@gentoo.org>
251 * sim-cpu.h: Rename MACH to SIM_MACH and MODEL to SIM_MODEL.
252 * sim-model.c: Likewise.
253 * sim-model.h: Likewise. Rename MACH_IMP_PROPERTIES to
254 SIM_MACH_IMP_PROPERTIES
256 2015-12-25 Mike Frysinger <vapier@gentoo.org>
258 * sim-core.c (device_error): Delete.
259 (sim_core_map_attach): Delete calls to device_error.
260 (sim_core_attach): Likewise.
261 * sim-core.h (device_error): Delete.
262 * sim-n-core.h (sim_core_read_aligned_N): Change device_error call
264 (sim_core_write_aligned_N): Likewise.
266 2015-12-25 Mike Frysinger <vapier@gentoo.org>
268 * sim-config.h (WITH_CALLBACK_MEMORY): Delete.
269 * sim-core.c (sim_core_write_buffer): Likewise.
270 * sim-n-core.h (sim_core_read_aligned_N): Likewise.
271 (sim_core_write_aligned_N): Likewise.
273 2015-12-25 Mike Frysinger <vapier@gentoo.org>
275 * dv-pal.c: Include config.h and sim-main.h.
276 (hw_pal_io_read_buffer): Always call CPU_INDEX.
278 2015-12-24 Mike Frysinger <vapier@gentoo.org>
280 * sim-options.c (standard_options): Always enable load-lma and
282 (standard_install): Always set STATE_LOAD_AT_LMA_P(sd) to 1.
284 2015-12-24 Mike Frysinger <vapier@gentoo.org>
286 * sim-module.c (MODULE_LIST): Delete.
288 2015-12-24 Mike Frysinger <vapier@gentoo.org>
290 * sim-options.c (OPTION_H8300H, OPTION_H8300S, OPTION_H8300SX):
291 Move to h8300/compile.c.
292 [SIM_H8300] (standard_options): Likewise.
293 (standard_option_handler): Likewise.
295 2015-12-24 Mike Frysinger <vapier@gentoo.org>
297 * sim-module.c [WITH_WATCHPOINTS] (modules): Always call
298 sim_watchpoint_install.
300 2015-12-24 Mike Frysinger <vapier@gentoo.org>
302 * sim-base.h [SIM_HAVE_FLATMEM] (sim_state_base): Delete flatmem code.
303 * sim-module.c [SIM_HAVE_FLATMEM] (modules): Always call
305 * sim-options.c (OPTION_MEM_SIZE): Delete.
306 [SIM_HAVE_FLATMEM] (standard_options): Delete flatmem code.
307 (standard_option_handler): Likewise.
309 2015-12-24 Mike Frysinger <vapier@gentoo.org>
311 * tconfig.h (SIM_HAVE_SIMCACHE): Delete.
313 2015-11-21 Mike Frysinger <vapier@gentoo.org>
316 * Makefile.in (CPPFLAGS, CXXFLAGS, LDFLAGS): Define.
318 2015-11-21 Mike Frysinger <vapier@gentoo.org>
321 * sim-utils.c (sim_do_commandf): Declare ret. Call va_start,
322 vasprintf, and va_end together. Check ret after va_end call.
324 2015-11-21 Mike Frysinger <vapier@gentoo.org>
326 * sim-types.h (SIM_PRI_TB): Define.
327 (PRI_TW, PRIiTW, PRIxTW): New PRI target word defines.
328 (PRI_TA, PRIiTA, PRIxTA): New PRI target address defines.
329 (PRI_TC, PRIiTC, PRIxTC): New PRI target cell defines.
330 (PRI_TF, PRIiTF, PRIxTF): New PRI target floating point defines.
332 2015-11-17 Mike Frysinger <vapier@gentoo.org>
334 * sim-main.h (WITH_MODULO_MEMORY): Delete.
335 * sim-core.c (new_sim_core_mapping): Always assign mask to modulo-1.
336 (sim_core_attach): Delete WITH_MODULO_MEMORY == 0 logic.
337 (sim_core_translate): Likewise.
338 * sim-core.h: Delete mention of WITH_MODULO_MEMORY.
340 2015-11-16 Mike Frysinger <vapier@gentoo.org>
342 * sim-close.c (__cgen_cpu_close, _cgen_cpu_close): Delete.
343 (cgen_cpu_close): Change to XCONCAT2.
345 2015-11-15 Mike Frysinger <vapier@gentoo.org>
347 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-reason.o, sim-reg.o,
350 2015-11-14 Mike Frysinger <vapier@gentoo.org>
352 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-close.o
353 * sim-close.c: New file.
355 2015-09-25 Andrew Bennett <andrew.bennett@imgtec.com>
356 Ali Lown <ali.lown@imgtec.com>
358 * sim-bits.h (EXTEND6): New macro.
359 (EXTEND12): New macro.
360 (EXTEND25): New macro.
362 2015-06-24 Mike Frysinger <vapier@gentoo.org>
364 * sim-trace.c (trace_one_insn): Delete.
365 * sim-trace.h (trace_one_insn): Delete.
367 2015-06-24 Mike Frysinger <vapier@gentoo.org>
369 * sim-trace.c (debug_printf): Rename to ...
370 (sim_debug_printf): ... this.
371 * sim-trace.h (debug_printf): Delete define.
372 (debug_printf): Rename to ...
373 (sim_debug_printf): ... this.
375 2015-06-24 Mike Frysinger <vapier@gentoo.org>
377 * sim-trace.c (OPTION_TRACE_REGISTER): New enum.
378 (trace_options): Add trace-register option.
379 (trace_option_handler): Handle OPTION_TRACE_REGISTER case.
380 (trace_idx_to_str): Handle TRACE_REGISTER_IDX case and re-indent.
381 * sim-trace.h (TRACE_REGISTER_IDX): New enum.
382 (TRACE_register, WITH_TRACE_REGISTER_P, STRACE_REGISTER_P,
383 TRACE_REGISTER_P, TRACE_REGISTER): Define.
385 2015-06-24 Mike Frysinger <vapier@gentoo.org>
387 * sim-trace.h (STRACE, STRACE_INSN, STRACE_DECODE, STRACE_EXTRACT,
388 STRACE_LINENUM, STRACE_MEMORY, STRACE_MODEL, STRACE_ALU, STRACE_CORE,
389 STRACE_EVENTS, STRACE_FPU, STRACE_VPU, STRACE_BRANCH, STRACE_SYSCALL,
390 STRACE_DEBUG): Define.
392 2015-06-24 Mike Frysinger <vapier@gentoo.org>
394 * sim-trace.c (trace_options): Update help text for trace-alu,
395 trace-fpu, trace-vpu, and trace-semantics.
396 * sim-trace.h (TRACE_ALU_IDX): Update comment text.
397 (TRACE_FPU_IDX, TRACE_VPU_IDX): Likewise.
399 2015-06-24 Mike Frysinger <vapier@gentoo.org>
401 * sim-assert.h (SIM_FILTER_PATH): Delete.
402 [!SIM_ASSERT, WITH_ASSERT]: Include libiberty.h.
403 (SIM_ASSERT): Replace SIM_FILTER_PATH with lbasename.
404 [!ASSERT, WITH_ASSERT]: Include libiberty.h.
405 (ASSERT): Replace SIM_FILTER_PATH with lbasename.
406 * sim-events.c: Include libiberty.h.
407 (ETRACE): Replace SIM_FILTER_PATH with lbasename.
409 2015-06-23 Mike Frysinger <vapier@gentoo.org>
411 * acinclude.m4 (AC_ARG_ENABLE(sim-bswap)): Call AS_HELP_STRING.
412 (AC_ARG_ENABLE(sim-cflags)): Likewise.
413 (AC_ARG_ENABLE(sim-debug)): Likewise.
414 (AC_ARG_ENABLE(sim-stdio)): Likewise.
415 (AC_ARG_ENABLE(sim-trace)): Likewise.
416 (AC_ARG_ENABLE(sim-profile)): Likewise.
417 (AC_ARG_ENABLE(sim-environment)): Likewise.
418 (AC_ARG_ENABLE(sim-alignment)): Likewise.
419 (AC_ARG_ENABLE(sim-assert)): Likewise.
420 (AC_ARG_ENABLE(sim-bitsize)): Likewise.
421 (AC_ARG_ENABLE(sim-endian)): Likewise.
422 (AC_ARG_ENABLE(sim-hostendian)): Likewise.
423 (AC_ARG_ENABLE(sim-float)): Likewise.
424 (AC_ARG_ENABLE(sim-scache)): Likewise.
425 (AC_ARG_ENABLE(sim-default-model)): Likewise.
426 (AC_ARG_ENABLE(sim-inline)): Likewise.
427 (AC_ARG_ENABLE(sim-packages)): Likewise.
428 (AC_ARG_ENABLE(sim-regparm)): Likewise.
429 (AC_ARG_ENABLE(sim-reserved-bits)): Likewise.
430 (AC_ARG_ENABLE(sim-smp)): Likewise.
431 (AC_ARG_ENABLE(sim-stdcall)): Likewise.
432 (AC_ARG_ENABLE(sim-xor-endian)): Likewise.
433 (AC_ARG_ENABLE(cgen-maint)): Likewise.
434 * configure: Regenerate.
436 2015-06-23 Mike Frysinger <vapier@gentoo.org>
438 * sim-config.h (WITH_TRACE): Define to ~TRACE_debug.
440 2015-06-23 Mike Frysinger <vapier@gentoo.org>
442 * cgen-trace.c [!__STDC__]: Delete.
443 * sim-trace.h [!__STDC__]: Likewise.
445 2015-06-21 Mike Frysinger <vapier@gentoo.org>
447 * sim-model.c (sim_model_init): Assert model is not NULL.
449 2015-06-21 Mike Frysinger <vapier@gentoo.org>
451 * sim-types.h: Move SIM_TYPES_H define to top of file. Include
452 stdint.h. Replace all signed/unsigned typedefs with int#_t and
455 2015-06-21 Mike Frysinger <vapier@gentoo.org>
457 * sim-alu.h (_SIM_ALU_H_): Rename to ...
458 (SIM_ALU_H): ... this.
459 * sim-assert.h (_SIM_ASSERT_H_): Rename to ...
460 (SIM_ASSERT_H): ... this.
461 * sim-basics.h (_SIM_BASICS_H_): Rename to ...
462 (SIM_BASICS_H): ... this.
463 * sim-bits.h (_SIM_BITS_H_): Rename to ...
464 (SIM_BITS_H): ... this.
465 * sim-endian.h (_SIM_ENDIAN_H_): Rename to ...
466 (SIM_ENDIAN_H): ... this.
468 2015-06-18 Mike Frysinger <vapier@gentoo.org>
470 * sim-syscall.c (sim_syscall_multi): Change unknown_syscall to a
473 2015-06-18 Mike Frysinger <vapier@gentoo.org>
475 * callback.c (cb_target_map_entry, cb_host_map_entry): Change map to
476 m for sentinel testing.
478 2015-06-17 Mike Frysinger <vapier@gentoo.org>
480 * sim-syscall.c: Include errno.h and targ-vals.h.
481 (sim_syscall_multi, sim_syscall): Define.
482 * sim-syscall.h (sim_syscall_multi, sim_syscall): Declare.
483 * syscall.c (cb_syscall): Extend comment.
485 2015-06-17 Mike Frysinger <vapier@gentoo.org>
487 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-syscall.o.
488 * sim-syscall.c: New file.
489 * sim-syscall.h: New file.
491 2015-06-17 Mike Frysinger <vapier@gentoo.org>
493 * callback.c (cb_target_map_entry, cb_host_map_entry): Define.
494 (cb_target_to_host_syscall): Rewrite to use cb_target_map_entry.
495 (cb_host_to_target_errno): Rewrite to use cb_host_map_entry.
496 (cb_host_str_syscall, cb_host_str_errno, cb_host_str_signal,
497 cb_target_str_syscall, cb_target_str_errno, cb_target_str_signal):
499 * gentmap.c (gen_targ_map_c): Output name field.
501 2015-06-12 Mike Frysinger <vapier@gentoo.org>
503 * acinclude.m4: Change configure.in to configure.ac.
504 * sim-config.h: Likewise.
506 2015-06-12 Mike Frysinger <vapier@gentoo.org>
508 * acinclude.m4 (sim-trace): Delete -DTRACE flags.
509 * configure: Regenerate.
511 2015-06-12 Mike Frysinger <vapier@gentoo.org>
513 * sim-trace.h (TRACE, TRACE_INSN, TRACE_DECODE, TRACE_EXTRACT,
514 TRACE_LINENUM, TRACE_MEMORY, TRACE_MODEL, TRACE_ALU, TRACE_CORE,
515 TRACE_EVENTS, TRACE_FPU, TRACE_VPU, TRACE_BRANCH, TRACE_SYSCALL,
516 TRACE_DEBUG): Define.
518 2015-06-12 Mike Frysinger <vapier@gentoo.org>
520 * sim-module.c (modules): Change WITH_TRACE to WITH_TRACE_ANY_P.
521 * sim-trace.c (trace_option_handler): Likewise.
522 * sim-trace.h (WITH_TRACE_ANY_P): Define.
523 (STRACE_ANY_P): Use WITH_TRACE_ANY_P.
524 (TRACE_ANY_P): Likewise.
526 2015-06-12 Mike Frysinger <vapier@gentoo.org>
528 * cgen-run.c (sim_resume): Rename TRACE_INSN_FINI to
529 CGEN_TRACE_INSN_FINI.
530 * cgen-trace.c: Rename trace_insn to cgen_trace_insn,
531 trace_result to cgen_trace_result, trace_insn_fini to
532 cgen_trace_insn_fini, trace_insn_init to cgen_trace_insn_init,
533 and trace_extract to cgen_trace_extract.
534 * cgen-trace.h (trace_insn_init): Rename to ...
535 (cgen_trace_insn_init): ... this.
536 (trace_insn_fini): Rename to ...
537 (cgen_trace_insn_fini): ... this.
538 (trace_insn): Rename to ...
539 (cgen_trace_insn): ... this.
540 (trace_extract): Rename to ...
541 (cgen_trace_extract): ... this.
542 (trace_result): Rename to ...
543 (cgen_trace_result): ... this.
544 (TRACE_RESULT_P): Rename to ...
545 (CGEN_TRACE_RESULT_P): ... this.
546 (TRACE_INSN_INIT): Rename to ...
547 (CGEN_TRACE_INSN_INIT): ... this. Change trace_insn_init to
548 cgen_trace_insn_init.
549 (TRACE_INSN_FINI): Rename to ...
550 (CGEN_TRACE_INSN_FINI): ... this. Change trace_insn_fini to
551 cgen_trace_insn_fini.
552 (TRACE_PRINTF): Rename to ...
553 (CGEN_TRACE_PRINTF): ... this.
554 (TRACE_INSN): Rename to ...
555 (CGEN_TRACE_INSN): ... this. Change trace_insn to cgen_trace_insn.
556 (TRACE_EXTRACT): Rename to ...
557 (CGEN_TRACE_EXTRACT): ... this. Change trace_extract to
559 (TRACE_RESULT): Rename to ...
560 (CGEN_TRACE_RESULT): ... this. Change TRACE_RESULT_P to
561 CGEN_TRACE_RESULT_P and trace_result to cgen_trace_result.
562 * genmloop.sh (@prefix@_pbb_before): Change TRACE_INSN_FINI to
563 CGEN_TRACE_INSN_FINI, TRACE_INSN_INIT to CGEN_TRACE_INSN_INIT, and
564 TRACE_INSN to CGEN_TRACE_INSN.
565 (@prefix@_pbb_after): Change TRACE_INSN_FINI to CGEN_TRACE_INSN_FINI.
567 2015-06-11 Mike Frysinger <vapier@gentoo.org>
569 * sim-events.c (ETRACE_P): Delete.
570 (ETRACE): Change ETRACE_P to STRACE_EVENTS_P(sd).
571 (update_time_from_event, sim_events_schedule_vtracef): Likewise.
572 * sim-events.h (struct _sim_events): Delete trace member.
573 * sim-trace.c (set_trace_option_mask): Delete trace_nr check and
574 always set STATE_TRACE_FLAGS(sd)[trace_nr] element.
576 2015-06-11 Mike Frysinger <vapier@gentoo.org>
578 * sim-trace.h (STRACE_ANY_P, STRACE_INSN_P, STRACE_DECODE_P,
579 STRACE_EXTRACT_P, STRACE_LINENUM_P, STRACE_MEMORY_P, STRACE_MODEL_P,
580 STRACE_ALU_P, STRACE_CORE_P, STRACE_EVENTS_P, STRACE_FPU_P,
581 STRACE_VPU_P, STRACE_BRANCH_P, STRACE_SYSCALL_P): Define.
583 2015-06-11 Mike Frysinger <vapier@gentoo.org>
585 * sim-trace.h (TRACE_USEFUL_MASK): Change to TRACE_xxx defines.
587 2015-06-11 Mike Frysinger <vapier@gentoo.org>
589 * sim-trace.h (WITH_TRACE_P): New define.
590 (WITH_TRACE_INSN_P, WITH_TRACE_DECODE_P, WITH_TRACE_EXTRACT_P,
591 WITH_TRACE_LINENUM_P, WITH_TRACE_MEMORY_P, WITH_TRACE_MODEL_P,
592 WITH_TRACE_ALU_P, WITH_TRACE_CORE_P, WITH_TRACE_EVENTS_P,
593 WITH_TRACE_FPU_P, WITH_TRACE_VPU_P, WITH_TRACE_BRANCH_P,
594 WITH_TRACE_SYSCALL_P, WITH_TRACE_DEBUG_P, STRACE_P, TRACE_P):
595 Redefine to use WITH_TRACE_P.
597 2015-06-09 Mike Stump <mrs@mrs.kithrup.com>
599 * sim-events.c (sim_events_schedule_after_signal): Fix spelling
600 mistake in call to sim_engine_abort.
602 2015-04-29 Nick Clifton <nickc@redhat.com>
605 * sim-fpu.c (INLINE_SIM_FPU): Fix static analysis warning by
606 increasing parenthesis around casts to signed values.
608 2015-04-21 Mike Frysinger <vapier@gentoo.org>
610 * gennltvals.sh: Add mcore support.
611 * nltvals.def: Regenerate.
613 2015-04-21 Mike Frysinger <vapier@gentoo.org>
615 * cgen.sh: Add +x permissions.
616 * genmloop.sh: Likewise.
617 * gentvals.sh: Likewise.
618 * gennltvals.sh (newlibroot): New variable to hold the path to newlib.
619 Change all uses of srcroot for newlib to newlibroot.
621 2015-04-18 Mike Frysinger <vapier@gentoo.org>
623 * sim-base.h (SIM_CPU): New typedef.
625 2015-04-18 Mike Frysinger <vapier@gentoo.org>
627 * cgen-engine.h (CIA_ADDR): Delete.
628 * sim-base.h: Update sim_cia example.
629 [!CIA_ADDR] (sim_cia): New typedef.
631 2015-04-17 Mike Frysinger <vapier@gentoo.org>
633 * cgen-utils.c (cgen_rtx_error): Change CIA_GET to CPU_PC_GET.
634 * sim-core.c (sim_core_read_buffer, sim_core_write_buffer): Likewise.
635 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Change CIA_SET to CPU_PC_SET.
636 * sim-run.c (sim_engine_run): Change CIA_GET to CPU_PC_GET and
637 CIA_SET to CPU_PC_SET.
639 2015-04-15 Mike Frysinger <vapier@gentoo.org>
641 * Makefile.in (SIM_NEW_COMMON_OBJS): Add sim-cpu.o.
642 * sim-main.h (STATE_CPU): Remove from comment and define.
644 2015-04-13 Mike Frysinger <vapier@gentoo.org>
646 * acinclude.m4 (ACX_PKGVERSION): Change GDB to SIM.
647 * configure: Regenerate.
649 2015-04-13 Mike Frysinger <vapier@gentoo.org>
651 * sim-options.c: Include version.h.
652 (OPTIONS_VERSION): New enum.
653 (standard_options): Add "version".
654 (standard_option_handler): Handle OPTIONS_VERSION.
656 2015-04-13 Mike Frysinger <vapier@gentoo.org>
658 * Makefile.in (version.o): Change to using create-version.sh from gdb.
659 (create-version.sh): Delete.
661 2015-04-06 Mike Frysinger <vapier@gentoo.org>
663 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-engine.o and sim-hrw.o.
665 2015-04-01 Mike Frysinger <vapier@gentoo.org>
667 * run-sim.h, run.c: Delete.
668 * tconfig.h (SIM_HAVE_PROFILE, SIM_HAVE_BIENDIAN): Delete.
670 2015-03-31 Mike Frysinger <vapier@gentoo.org>
672 * config.in, configure: Regenerate.
673 * Make-common.in (CSEARCH): Add $(ZLIBINC).
674 (ZLIB, ZLIBINC): Define.
675 (BFD_LIB): Add $(ZLIB).
677 2015-03-31 Mike Frysinger <vapier@gentoo.org>
679 * cgen-mem.h (MEMOPS_INLINE): Change to EXTERN_INLINE.
680 * cgen-ops.h (SEMOPS_INLINE): Likewise.
682 2015-03-29 Mike Frysinger <vapier@gentoo.org>
684 * sim-arange.h (SIM_ARANGE_INLINE): Move above sim_addr_range_hit_p.
685 (sim_addr_range_hit_p): Change INLINE to SIM_ARANGE_INLINE.
686 * sim-inline.h (INLINE2): Define to gnu_inline when available.
688 2015-03-24 Mike Frysinger <vapier@gentoo.org>
690 * sim-profile.c (profile_pc_event): Get pc via sim_pc_get. Delete
691 usage of STATE_WATCHPOINTS.
692 (profile_pc_init): Delete STATE_WATCHPOINTS (sd)->pc check. Change
693 STATE_WATCHPOINTS (sd)->sizeof_pc to sizeof (sim_cia).
695 2015-03-24 Mike Frysinger <vapier@gentoo.org>
697 * tconfig.h: Note SIM_HAVE_PROFILE is deprecated.
699 2015-03-24 Mike Frysinger <vapier@gentoo.org>
701 * tconfig.h: Note SIM_HAVE_BIENDIAN is deprecated.
703 2015-03-24 Mike Frysinger <vapier@gentoo.org>
705 * acinclude.m4 (SIM_AC_OPTION_HARDWARE): Move default option setting
706 of enable_sim_hardware to AC_ARG_ENABLE.
708 2015-03-23 Mike Frysinger <vapier@gentoo.org>
710 * acinclude.m4 (SIM_AC_OPTION_HARDWARE): Delete SIM_DV_SOCKSER_O.
711 Add dv-sockser.o to sim_hw_objs.
713 2015-03-23 Mike Frysinger <vapier@gentoo.org>
715 * dv-sockser.c: Include config.h.
716 * dv-sockser.h: Include sim-inline.h.
717 [HAVE_DV_SOCKSER]: Move all prototypes here.
718 [!HAVE_DV_SOCKSER] (dv_sockser_status, dv_sockser_write,
719 dv_sockser_write_buffer, dv_sockser_read): New stub functions.
721 2015-03-16 Mike Frysinger <vapier@gentoo.org>
723 * gentmap.c, run.c: Convert old style prototypes.
725 2015-03-16 Mike Frysinger <vapier@gentoo.org>
727 * acinclude.m4 (SIM_AC_COMMON): Call AH_BOTTOM. Delete logic for
728 symlinking tconfig.h to tconfig.in.
729 * config.in, configure: Regenerate.
730 * nrun.c, run.c, sim-basics.h: Delete tconfig.h include.
731 * tconfig.in: Rename file ...
732 * tconfig.h: ... here.
734 2015-03-15 Mike Frysinger <vapier@gentoo.org>
736 * dv-socker.h (dv_sockser_install): Declare.
737 * sim-module.c: Include config.h.
738 [HAVE_DV_SOCKSER]: Include dv-sockser.h.
739 (modules) [HAVE_DV_SOCKSER]: Add dv_sockser_install.
740 * sim-module.h: Include gdb/remote-sim.h.
742 2015-03-14 Mike Frysinger <vapier@gentoo.org>
744 * Make-common.in (BUILT_SRC_FROM_COMMON): Delete.
745 (sim-inline.c): Delete rule.
747 2015-03-14 Mike Frysinger <vapier@gentoo.org>
749 * Make-common.in (SIM_RUN_OBJS): Change to nrun.o.
750 * run.c [SIM_USE_DEPRECATED_RUN_FRONTEND]: Issue a warning.
751 [!SIM_USE_DEPRECATED_RUN_FRONTEND]: Throw an error.
753 2015-03-14 Mike Frysinger <vapier@gentoo.org>
755 * sim-assert.h [!SIM_ASSERT, WITH_ASSERT]: Include sim-io.h.
756 [!ASSERT, WITH_ASSERT]: Likewise.
757 * sim-endian.c: Delete sim-io.h include.
759 2015-02-19 Mike Frysinger <vapier@gentoo.org>
761 * run-sim.h (sim_kill): Delete unused prototype.
763 2015-02-13 Chen Gang <gang.chen.5i5j@gmail.com>
765 * gentmap.c: Include "string.h".
767 2015-02-02 Chen Gang <gang.chen.5i5j@gmail.com>
769 * sim-options.c (sim_args_command): Call freeargv() when failure
772 2015-01-07 Joel Brobecker <brobecker@adacore.com>
774 * aclocal.m4, configure: Regenerate using automake 1.11.1.
776 2014-12-03 Joel Brobecker <brobecker@adacore.com>
778 * sim-io.c (sim_io_stat, sim_io_fstat): Adjust calls to "stat"
779 and "fstat" callbacks by calls to "to_stat" and "to_fstat" (resp)
780 callbacks following renaming in callback.h.
781 * syscall.c (cb_syscall): Likewise. Adjust calls to "lstat"
782 callback by call to "to_lstat" callback
784 2014-08-28 Gary Benson <gbenson@redhat.com>
786 * sim-trace.h (debug_printf): New define.
788 2014-08-19 Alan Modra <amodra@gmail.com>
790 * configure: Regenerate.
792 2014-08-15 Roland McGrath <mcgrathr@google.com>
794 * configure: Regenerate.
795 * config.in: Regenerate.
797 2014-03-10 Mike Frysinger <vapier@gentoo.org>
799 * sim-command.c (sim_do_command): Add const to cmd.
800 * sim-options.c (sim_args_command): Add const to cmd.
801 * sim-options.h (sim_args_command): Add const to cmd.
803 2014-03-05 Mike Frysinger <vapier@gentoo.org>
805 * sim-hload.c (sim_load): Add const to prog.
806 * sim-load.c (sim_load_file): Likewise.
807 * sim-utils.c (sim_analyze_program): Likewise.
808 * sim-utils.h (sim_analyze_program): Likewise.
809 (sim_load_file): Likewise.
811 2014-03-04 Mike Frysinger <vapier@gentoo.org>
813 * acinclude.m4 (build_warnings): Copy from gdb/configure.ac.
814 * callback.c (system): Delete unused prototype.
816 (os_shutdown): Likewise.
817 (os_unlink): Likewise.
819 (os_system): Likewise.
820 (os_rename): Likewise.
821 (os_write_stdout): Likewise.
822 (os_flush_stdout): Likewise.
823 (os_write_stderr): Likewise.
824 (os_flush_stderr): Likewise.
825 (os_write): Likewise.
826 (os_read_stdin): Likewise.
829 (os_lseek): Likewise.
830 (os_isatty): Likewise.
831 (os_get_errno): Likewise.
832 (os_close): Likewise.
833 (os_vprintf_filtered): Likewise.
834 (os_evprintf_filtered): Likewise.
835 (os_error): Likewise.
839 (wrap): Change to new style prototype.
842 (os_close): Likewise.
843 (os_poll_quit): Likewise.
844 (os_get_errno): Likewise.
845 (os_isatty): Likewise.
846 (os_lseek): Likewise.
849 (os_read_stdin): Likewise.
850 (os_write): Likewise.
851 (os_write_stdout): Likewise.
852 (os_flush_stdout): Likewise.
853 (os_write_stderr): Likewise.
854 (os_flush_stderr): Likewise.
855 (os_rename): Likewise.
856 (os_system): Likewise.
858 (os_unlink): Likewise.
860 (os_fstat): Likewise.
861 (os_lstat): Likewise.
862 (os_ftruncate): Likewise.
863 (os_truncate): Likewise.
865 (os_pipe_empty): Likewise.
866 (os_pipe_nonempty): Likewise.
867 (os_shutdown): Likewise.
869 (cb_read_target_syscall_maps): Likewise.
870 (cb_target_to_host_syscall): Likewise.
871 (cb_host_to_target_errno): Likewise.
872 (cb_target_to_host_open): Likewise.
873 (cb_store_target_endian): Likewise.
874 (cb_host_to_target_stat): Likewise.
875 * sim-hload.c (sim_load): Change to new style prototype.
876 * sim-load.c (sim_load_file): Change to new style prototype.
877 (report_transfer_performance): Likewise.
878 (xprintf_bfd_vma): Likewise.
879 * syscall.c (cb_get_string): Change to new style prototype.
880 (get_path): Likewise.
881 (cb_syscall): Likewise.
883 2013-10-15 Hans-Peter Nilsson <hp@axis.com>
885 * create-version.sh: Align parameters to match those of
886 ../../gdb/common/create-version.sh.
887 * Make-common.in (srcsim): New variable.
888 (version.c): Adjust call to create-version.sh as per above.
890 2013-09-23 Alan Modra <amodra@gmail.com>
892 * configure: Regenerate.
894 2013-09-03 Mike Stump <mikestump@comcast.net>
896 * sim-options.c (complete_option_list): Mark text and word const.
898 2013-06-28 Tom Tromey <tromey@redhat.com>
900 * Make-common.in (version.c): Use version.in, not
902 * create-version.sh: Likewise.
904 2013-06-24 Joel Brobecker <brobecker@adacore.com>
906 * create-version.sh: New script. Adapted from
907 gdb/commong/create-version.sh.
908 * Make-common.in (version.c): Update rule dependencies,
909 and re-implement using create-version.sh.
911 2013-06-21 Nick Clifton <nickc@redhat.com>
913 * gennltvals.sh: Add msp430 support.
914 * nltvals.def: Regenerate.
916 2013-06-03 Mike Frysinger <vapier@gentoo.org>
918 * acinclude.m4: Replace maintainer-mode code with AM_MAINTAINER_MODE.
919 * aclocal.m4, configure: Regenerate.
921 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
924 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Do not use
925 -Wformat-nonliteral with -Wno-format.
927 2013-03-26 Mike Frysinger <vapier@gentoo.org>
929 * acinclude.m4: Regenerate.
931 2013-03-23 Joel Sherrill <joel.sherrill@oarcorp.com>
933 * acinclude.m4: Add SIM_DV_SOCKSER_O which is empty on hosts
934 which do not support dv-sockser.o. Add always as option to
935 first argument to SIM_AC_OPTION_HARDWARE. Fail if hardware
936 is always required to be enabled by simulator.
938 2012-08-28 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
940 * gennltvals.sh: Use libgloss/syscall.h for cr16.
941 * nltvals.def: Regenerate.
943 2012-06-16 Joel Brobecker <brobecker@adacore.com>
945 * acinclude.m4 (SIM_AC_COMMON): Define PACKAGE.
946 * config.in, configure: Regenerate.
948 2012-05-24 Pedro Alves <palves@redhat.com>
950 * sim-signal.h (sim_signal_to_target): Rename to ...
951 (sim_signal_to_gdb_signal): ... this.
952 * sim-signal.c (sim_signal_to_target): Rename to ...
953 (sim_signal_to_gdb_signal): ... this.
954 * sim-reason.c (sim_stop_reason): Adjust to rename.
956 2012-05-24 Pedro Alves <palves@redhat.com>
960 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
962 2012-05-24 Pedro Alves <palves@redhat.com>
966 Replace target_signal with gdb_signal throughout.
968 2012-05-18 Nick Clifton <nickc@redhat.com>
971 * callback.c: Include config.h before system header files.
972 * cgen-trace.c: Likewise.
973 * cgen-utils.c: Likewise.
974 * gentmap.c: Likewise.
976 2012-04-02 Mike Frysinger <vapier@gentoo.org>
978 * hw-ports.c (hw_port_decode): Change "Unreconized" to "Unrecognized".
980 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
982 * sim-trace.c: Update the function prototype of save_data_size.
983 Move the enum data_fmt from here...
984 * sim-trace.h: ...to here.
985 Add function prototype of save_data.
987 2012-03-25 Mike Frysinger <vapier@gentoo.org>
989 * sim-core.h (sim_core_trans_addr): Add prototype.
991 2012-03-24 Hans-Peter Nilsson <hp@axis.com>
993 * nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza
994 missing in last change.
996 2012-03-24 Mike Frysinger <vapier@gentoo.org>
998 * acinclude.m4 (SIM_AC_COMMON): Call AC_USE_SYSTEM_EXTENSIONS.
999 * nrun.c: Include string.h/strings.h.
1000 * aclocal.m4, config.in, configure: Regenerate.
1002 2012-03-22 Mike Frysinger <vapier@gentoo.org>
1004 * acinclude.m4 (SIM_AC_OPTION_WARNINGS): Copy AC_ARG_ENABLE(werror),
1005 WERROR_CFLAGS, and build_warnings from gdb/configure.ac. Comment
1006 out -Werror initialization.
1008 2012-03-19 Mike Frysinger <vapier@gentoo.org>
1010 * Make-common.in (TAGS): Change a-z to [:lower:].
1011 * acinclude.m4 (sim-trace): Likewise.
1012 * gennltvals.sh: Change A-Z0-9 to [:upper:][:digit:].
1013 Change A-Za-z0-9 to [:alnum:].
1015 2012-03-18 Mike Frysinger <vapier@gentoo.org>
1017 * nrun.c (main): Display strsignal of sigrc.
1019 2012-01-06 Mike Frysinger <vapier@gentoo.org>
1021 * Makefile.in (abs_srcdir): Declare.
1022 (srcroot): Define in terms of abs_srcdir.
1023 (headers): Change srcdir to abs_srcdir.
1025 2012-01-02 Joel Brobecker <brobecker@adacore.com>
1027 * dv-sockser.h, sim-assert.h, sim-fpu.c: Reformat the copyright
1030 2011-12-19 Joel Brobecker <brobecker@adacore.com>
1032 * Make-common.in (hw-config.h): Work around bug in Solaris 2.8
1033 system bourne shell.
1035 2011-12-03 Mike Frysinger <vapier@gentoo.org>
1037 * syscall.c (cb_get_string): Rename from "get_string".
1038 (get_path): Rename get_string call to cb_get_string.
1040 2011-12-03 Mike Frysinger <vapier@gentoo.org>
1042 * Make-common.in (VPATH): Add $(srccom).
1044 (DEPMODE, DEPDIR, depcomp, COMPILE.pre, COMPILE.post, COMPILE,
1045 POSTCOMPILE): New variables.
1046 (.c.o): Replace recipe with call to $(COMPILE) and $(POSTCOMPILE).
1047 Include dependency files, when using GNU Make. Delete all
1048 dependency-only rules.
1049 * aclocal.m4: Include ../../config/depstand.m4. Call
1050 ZW_CREATE_DEPDIR and ZW_PROG_COMPILER_DEPENDENCIES.
1051 (MAKE, GMAKE): New substs.
1053 2011-11-07 Mike Frysinger <vapier@gentoo.org>
1056 * configure.ac (AC_CHECK_FUNCS): Add posix_fallocate.
1057 * configure, config.in: Regenerate.
1058 * dv-cfi.c (attach_cfi_regs): Check for HAVE_POSIX_FALLOCATE.
1060 2011-10-19 Mike Frysinger <vapier@gentoo.org>
1062 * acinclude.m4: Call AC_CHECK_LIB when $hardware contains cfi.
1064 2011-10-18 John Wehle <john@feith.com> (tiny patch)
1066 * sim-profile.c (profile_info): Only print the title once.
1068 2011-10-17 Mike Frysinger <vapier@gentoo.org>
1070 * acinclude.m4: Rename from aclocal.m4.
1071 * aclocal.m4: Regenerate.
1073 2011-10-17 Mike Frysinger <vapier@gentoo.org>
1075 * aclocal.m4: Change AC_PREREQ comment to 2.64.
1076 * common.m4: Delete.
1077 * configure.ac: Change AC_PREREQ to 2.64. Replace AC_CONFIG_HEADER
1078 call and common.m4 include with SIM_AC_COMMON(cconfig.h).
1079 * configure: Regenerate.
1081 2011-10-14 Alexey Makhalov <makhaloff@gmail.com>
1083 * sim-alu.h (ALU32_AND): Clear carry flag.
1084 (ALU32_AND): Clear carry flag.
1086 2011-10-09 Mike Frysinger <vapier@gentoo.org>
1088 * dv-cfi.c: Include stdbool.h.
1090 2011-10-09 Mike Frysinger <vapier@gentoo.org>
1092 * dv-cfi.c: Replace devices.h include with hw-base.h and hw-main.h.
1094 2011-10-04 Mike Frysinger <vapier@gentoo.org>
1096 * aclocal.m4 (SIM_AC_COMMON): Call AM_ZLIB, ACX_PKGVERSION, and
1097 ACX_BUGURL. Define PKGVERSION and REPORT_BUGS_TO.
1099 2011-07-12 Mike Frysinger <vapier@gentoo.org>
1101 * sim-command.c: Include sim-options.h.
1103 2011-07-12 Mike Frysinger <vapier@gentoo.org>
1105 * aclocal.m4: Move sinclude comment after AC_INIT comment.
1107 2011-07-12 Mike Frysinger <vapier@gentoo.org>
1109 * aclocal.m4 (SIM_AC_COMMON): Call AC_REQUIRE on AC_PROG_CC.
1110 Delete direct call to AC_PROG_CC.
1112 2011-07-05 Mike Frysinger <vapier@gentoo.org>
1114 * sim-command.c: New file.
1115 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-command.o.
1116 (sim-command.o): New rule.
1118 2011-05-27 Mike Frysinger <vapier@gentoo.org>
1120 * sim-options.c (standard_option_handler): Remove arg[0] check
1121 when freeing simulator_sysroot. Only strdup arg when arg[0] is
1122 not an empty string, otherwise assign "" back to it.
1124 2011-05-26 Mike Frysinger <vapier@gentoo.org>
1126 * nltvals.def: Regenerate to include Blackfin syscalls again.
1128 2011-05-25 Mike Frysinger <vapier@gentoo.org>
1130 * sim-trace.c (OPTION_TRACE_SYSCALL): New enum.
1131 (trace_options): Handle "trace-syscall" with OPTION_TRACE_SYSCALL.
1132 (trace_option_handler): Handle OPTION_TRACE_SYSCALL.
1133 (trace_idx_to_str): Likewise.
1134 * sim-trace.h (TRACE_SYSCALL_IDX): New enum.
1135 (TRACE_syscall): Define.
1136 (WITH_TRACE_SYSCALL_P): Likewise.
1137 (TRACE_SYSCALL_P): Likewise.
1139 2011-05-23 Mike Frysinger <vapier@gentoo.org>
1141 * dv-glue.c (hw_glue_finish): Move "name" to function scope and
1142 remove now-unnecessary sub-scope for glue->type setting.
1143 Check to see if the "reg" property exists before we use it, and
1144 if it doesn't exist, error out for "glue" devices.
1146 2011-05-23 Mike Frysinger <vapier@gentoo.org>
1148 * dv-glue.c (hw_glue_finish): Set type to glue_or when name is
1149 glue-or, and set type to glue_xor when name is glue-xor.
1150 (hw_glue_port_event): Return immediately when type is glue_io
1151 or unmatched. Handle glue_or and glue_xor types. Move HW_TRACE
1152 and hw_port_event calls from glue_and to end of function.
1154 2011-05-11 Mike Frysinger <vapier@gentoo.org>
1156 * callback.c, dv-pal.c, dv-sockser.c, hw-base.c, hw-device.c,
1157 hw-instances.c, hw-ports.c, hw-properties.c, hw-tree.c, sim-abort.c,
1158 sim-arange.c, sim-config.c, sim-core.c, sim-engine.c, sim-events.c,
1159 sim-hw.c, sim-io.c, sim-memopt.c, sim-options.c, sim-profile.c,
1160 sim-resume.c, sim-stop.c, syscall.c: Add space before parenthesis
1161 around function arguments.
1163 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1165 * sim-options.c (complete_option_list, sim_complete_command):
1168 2011-04-02 Mike Frysinger <vapier@gentoo.org>
1170 * dv-glue.c: Fix up style.
1172 2011-04-02 Mike Frysinger <vapier@gentoo.org>
1174 * hw-alloc.c (hw_alloc_data): Adjust brace.
1175 * hw-base.c (hw_base_data): Likewise.
1176 (generic_hw_unit_decode): Fix indentation.
1177 * hw-device.h (_hw_unit, enum, hw): Adjust braces.
1178 * hw-events.c (hw_event, hw_event_data): Likewise.
1179 * hw-handles.c (hw_handle_mapping, hw_handle_data): Likewise.
1180 * hw-instances.c (hw_instance_data): Likewise.
1181 * hw-instances.h (hw_instance): Likewise.
1182 * hw-main.h (hw_descriptor, enum): Likewise.
1183 * hw-ports.c (hw_port_edge, hw_port_data, empty_hw_ports): Likewise.
1184 * hw-ports.h (hw_port_descriptor): Likewise.
1185 * hw-properties.c (hw_property_data): Likewise.
1186 * hw-properties.h (enum, hw_property, _ihandle_runtime_property_spec,
1187 _range_property_spec, _reg_property_spec): Likewise.
1188 * hw-tree.c (_name_specifier, printer): Likewise.
1189 (split_device_specifier, parse_string_property, hw_tree_traverse,
1190 print_size, print_reg_property, print_string, print_properties):
1193 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1195 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add cfi to default list.
1196 * Make-common.in (dv-cfi.o): New rule.
1197 * dv-cfi.c, dv-cfi.h: New files.
1199 2011-03-21 Kevin Buettner <kevinb@redhat.com>
1201 * gennltvals.sh: Search sys/_default_fcntl.h, in addition to
1202 fcntl.h and sys/fcntl.h, for constants.
1203 * nltvals.def: Regenerate.
1204 * sim-io.c (sim_io_stat, sim_io_fstat): New functions.
1205 * sim-io.h (sys/types.h, sys/stat.h): Include.
1206 (sim_io_stat, sim_io_fstat): Declare.
1208 2011-03-14 Mike Frysinger <vapier@gentoo.org>
1210 * callback.c, cgen-engine.h, dv-core.c, dv-glue.c, dv-pal.c,
1211 hw-base.c, hw-device.c, hw-device.h, hw-handles.c, hw-instances.c,
1212 hw-ports.c, hw-ports.h, hw-properties.c, hw-tree.c, nrun.c,
1213 run-sim.h, run.c, sim-alu.h, sim-assert.h, sim-base.h, sim-basics.h,
1214 sim-config.c, sim-core.c, sim-core.h, sim-engine.h, sim-events.c,
1215 sim-events.h, sim-fpu.c, sim-hw.c, sim-inline.h, sim-load.c,
1216 sim-memopt.c, sim-n-core.h, sim-options.c, sim-profile.c,
1217 sim-signal.c, sim-trace.c, sim-trace.h, sim-utils.c, sim-watch.c,
1218 syscall.c: Trim trailing whitespace.
1220 2011-03-05 Mike Frysinger <vapier@gentoo.org>
1222 * gennltvals.sh: Handle bfin targets.
1223 * nltvals.def: Regenerate.
1225 2011-02-25 Kevin Buettner <kevinb@redhat.com>
1227 * callback.c (fdbad): Return EBADF rather than EINVAL for bad
1230 2011-02-14 Mike Frysinger <vapier@gentoo.org>
1232 * hw-alloc.c (hw_alloc_data): Delete zalloc_p.
1233 (hw_zalloc, hw_malloc): Delete zalloc_p reference.
1234 (hw_free): Drop zfree logic and always call free.
1235 * hw-base.c (hw_delete): Change zfree to free.
1236 * hw-handles.c (hw_handle_remove_ihandle): Likewise.
1237 (hw_handle_remove_phandle): Likewise.
1238 * hw-instances.c (hw_instance_delete): Likewise.
1239 * hw-tree.c (parse_reg_property): Likewise.
1240 (parse_ranges_property): Likewise.
1241 (parse_string_property): Likewise.
1242 * sim-core.c (sim_core_uninstall): Likewise.
1243 * sim-cpu.c (sim_cpu_free_all): Likewise.
1244 * sim-hw.c (sim_hw_uninstall): Likewise.
1245 * sim-memopt.c (do_memopt_delete): Likewise.
1246 (sim_memory_uninstall): Likewise.
1247 * sim-module.c (sim_module_uninstall): Likewise.
1248 * sim-options.c (sim_parse_args): Likewise.
1249 * sim-profile.c (profile_pc_cleanup): Likewise.
1250 (profile_uninstall): Likewise.
1251 * sim-watch.c (do_watchpoint_delete): Likewise.
1252 * sim-utils.c (zfree): Delete.
1253 (sim_state_free): Change zfree to free.
1254 * sim-utils.h (zfree): Delete.
1256 2011-02-13 Mike Frysinger <vapier@gentoo.org>
1258 * sim-events.h (_sim_events.time_from_event): Change type to signed64.
1260 2011-01-12 Mike Frysinger <vapier@gentoo.org>
1262 * sim-hw.c (sim_hw_uninstall): Uncomment hw_tree_delete.
1264 2011-01-12 Mike Frysinger <vapier@gentoo.org>
1266 * sim-module.c (sim_pre_argv_init): Return SIM_RC_FAIL when asprintf
1268 * sim-options.c (sim_parse_args): Issue an error and return SIM_RC_FAIL
1269 when asprintf fails.
1270 * sim-utils.c (sim_do_commandf): Issue an error and return when
1272 * sim-watch.c (sim_watchpoint_install): Return SIM_RC_FAIL when
1275 2011-01-11 Mike Frysinger <vapier@gentoo.org>
1277 * sim-memopt.c (do_memopt_add): Set nr_bytes to s.st_size before
1278 bytes has been calculated and when mmap_next_fd is valid and
1280 (memory_option_handler): Allow missing size when mmap_next_fd is
1283 2011-01-10 Mike Frysinger <vapier@gentoo.org>
1285 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set $hardware to $2 when $2 is
1286 not empty, and always append $3 to $hardware.
1288 2011-01-10 Mike Frysinger <vapier@gentoo.org>
1290 * hw-device.h (hw_abort, hw_vabort, hw_halt): Add noreturn attribute.
1291 * sim-hw.h (sim_hw_abort): Likewise.
1293 2011-01-05 Mike Frysinger <vapier@gentoo.org>
1295 * sim-load.c (sim_load_file): Change buffer type to unsigned char *.
1297 2011-01-05 Joel Brobecker <brobecker@adacore.com>
1299 * run.1: Copyright year update.
1301 2010-12-28 Mike Frysinger <vapier@gentoo.org>
1303 * hw-alloc.h (HW_NALLOC): Define.
1305 010-12-28 Mike Frysinger <vapier@gentoo.org>
1307 * hw-alloc.h (HW_NZALLOC): Change ME,TYPE,N to me,type,n.
1309 2010-12-15 Mike Frysinger <vapier@gentoo.org>
1311 * sim-memopt.c (OPTION_MAP_INFO): Define.
1312 (memory_options): Handle --map-info.
1313 (memory_option_handler): Handle OPTION_MAP_INFO.
1315 2010-11-22 Mike Frysinger <vapier@gentoo.org>
1317 * sim-profile.c (PROFILE_PC_FREQ, PROFILE_PC_NR_BUCKETS,
1318 PROFILE_PC_SHIFT, PROFILE_PC_START, PROFILE_PC_END,
1319 PROFILE_INSN_COUNT): Add stubs when profile is disabled.
1321 2010-11-22 Mike Frysinger <vapier@gentoo.org>
1323 * sim-core.c (WITH_HW): Add device casts to device_error,
1324 device_io_read_buffer, and device_io_write_buffer.
1326 2010-11-16 Mike Frysinger <vapier@gentoo.org>
1328 * dv-sockser.c (dv_sockser_write_buffer): New function.
1329 (dv_sockser_write): Rewrite to use dv_sockser_write_buffer.
1330 * dv-sockser.h (dv_sockser_write_buffer): New prototype.
1332 2010-10-07 Hans-Peter Nilsson <hp@axis.com>
1334 * callback.c (os_lseek): Call wrap on lseek result.
1336 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
1338 * dv-sockser.c (dv_sockser_init): Check error return from socket()
1339 call by its equality to -1 not by it being negative.
1340 (connected_p): Likewise for accept() call.
1342 2010-04-23 Mike Frysinger <vapier@gentoo.org>
1344 * sim-fpu.c (sim_fpu_zero, sim_fpu_qnan): Add 0 initializers.
1346 2010-04-21 Mike Frysinger <vapier@gentoo.org>
1348 * profile.c (sim_profile_print_bar): Add cpu argument.
1350 2010-04-21 Mike Frysinger <vapier@gentoo.org>
1352 * sim-profile.h (sim_profile_print_bar): Use sim_cpu, not SIM_CPU.
1354 2010-04-21 Mike Frysinger <vapier@gentoo.org>
1356 * sim-profile.c (profile_vprintf, profile_printf): New functions.
1357 (profile_print_pc): Convert sim_io_printf to profile_printf.
1358 (profile_print_insn): Likewise.
1359 (profile_print_memory): Likewise.
1360 (profile_print_core): Likewise.
1361 (profile_print_model): Likewise.
1362 (sim_profile_print_bar): Likewise.
1363 (profile_print_speed): Likewise.
1364 (profile_print_addr_ranges): Likewise.
1365 (profile_info): Likewise.
1366 * sim-profile.h (sim_profile_print_bar): Add cpu argument.
1368 2010-04-19 Mike Frysinger <vapier@gentoo.org>
1370 * sim-model.c (OPTION_MODEL): Convert to enum.
1371 (OPTION_MODEL_INFO): New enum.
1372 (model_options): Add model-info/info-model entries.
1373 (model_option_handler): Handle OPTION_MODEL_INFO.
1375 2010-04-13 Mike Frysinger <vapier@gentoo.org>
1377 * dv-sockser.h (DV_SOCKSER_DISCONNECTED): Define.
1378 * dv-sockser.c (dv_sockser_status): Set DV_SOCKSER_DISCONNECTED
1381 2010-04-13 Mike Frysinger <vapier@gentoo.org>
1383 * sim-hrw.c (sim_write): Add const to buf arg.
1384 * sim-utils.h (sim_write_fn): Likewise.
1386 2010-04-12 Mike Frysinger <vapier@gentoo.org>
1388 * sim-profile.h (PROFILE_BRANCH_TAKEN, PROFILE_BRANCH_UNTAKEN): New
1391 2010-04-12 Mike Frysinger <vapier@gentoo.org>
1393 * dv-core.c (dv_core_descriptor): Add NULL initializer.
1394 * dv-glue.c (hw_glue_ports, dv_glue_descriptor): Likewise.
1395 * dv-pal.c (hw_pal_ports, dv_pal_descriptor): Likewise.
1396 * dv-sockser.c (sockser_options): Likewise.
1397 * hw-ports.c (empty_hw_ports): Likewise.
1398 * sim-hw.c (hw_options): Likewise.
1399 * sim-model.c (model_options): Likewise.
1400 * sim-options.c (standard_options): Likewise.
1401 * sim-profile.c (profile_options): Likewise.
1402 * sim-trace.c (trace_options): Likewise.
1403 * sim-watch.c (watchpoint_options): Likewise.
1405 2010-04-12 Mike Frysinger <vapier@gentoo.org>
1407 * sim-options.c (dup_arg_p): Add "const" to the "arg" argument,
1408 the local "arg_table" variable, and the xmalloc cast.
1410 2010-04-10 Mike Frysinger <vapier@gentoo.org>
1412 * sim-fpu.c (sim_fpu_print_status): Add const markings to local
1414 (sim_fpu_print_func): Add const markings to format buffer.
1416 2010-04-10 Mike Frysinger <vapier@gentoo.org>
1418 * sim-fpu.c (sim_fpu_print_status): Remove duplicate break statements.
1420 2010-04-10 Mike Frysinger <vapier@gentoo.org>
1422 * sim-trace.c (save_data): Add const markings to "buf" argument.
1424 2010-04-10 Mike Frysinger <vapier@gentoo.org>
1426 * sim-options.c (standard_option_handler): Add const markings to
1429 2010-04-02 Mike Frysinger <vapier@gentoo.org>
1431 * hw-ports.h: Fix spelling typos.
1433 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1435 * configure.ac: Check for socklen_t.
1436 * configure, config.in: Regenerated.
1437 * dv-sockser.c (connected_p): Change addrlen type to socklen_t.
1439 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1441 * sim-utils.c (sim_io_eprintf_cpu): Use %s with printf string.
1442 * sim-hw.c (hw_option_handler): Likewise.
1444 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1446 * sim-watch.c (watchpoint_type_to_str): Add const to return.
1447 (interrupt_nr_to_str): Likewise.
1448 (default_interrupt_names): Add const to pointer type.
1449 (sim_watchpoint_install): Add const to prefix.
1450 * sim-watch.h (struct _sim_watchpoints): Add const to interrupt_names.
1452 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1454 * sim-core.c (sim_core_read_buffer): Change raddr to address_word.
1455 (sim_core_write_buffer): Likewise.
1457 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1459 * sim-trace.c (trace_option_handler): Move cpu_nr decl behind
1460 the SIM_HAVE_ADDR_RANGE define.
1462 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1464 * sim-core.h (device_error): Add const to message, and add printf
1467 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1469 * sim-profile.c (profile_print_addr_ranges): Wrap with the
1470 SIM_HAVE_ADDR_RANGE define.
1472 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1474 * dv-glue.c (hw_glue_ports): Swap static and const.
1476 2010-03-30 Mike Frysinger <vapier@gentoo.org>
1478 * nrun.c (usage): Use void in definition.
1479 * sim-options.c (dup_arg_p): Convert old-style function definition.
1480 (sim_parse_args): Likewise.
1481 (sim_print_help): Likewise.
1482 * sim-trace.c (set_trace_option_mask): Likewise.
1483 (set_trace_option): Likewise.
1484 * sim-utils.c (sim_analyze_program): Likewise.
1485 (sim_elapsed_time_get): Likewise.
1486 (sim_elapsed_time_since): Likewise.
1488 2010-03-22 Mike Frysinger <vapier@gentoo.org>
1490 * sim/common/sim-options.c (enum): Remove SIM_HAVE_BIENDIAN ifdef.
1491 (standard_options): Likewise.
1492 (standard_option_handler): Likewise.
1494 2010-03-16 Mike Frysinger <vapier@gentoo.org>
1496 * hw-ports.c (TRACE): Delete.
1497 * hw-properties.c (TRACE): Delete.
1498 (hw_find_ihandle_runtime_property): Change TRACE to HW_TRACE.
1499 (hw_find_integer_property): Likewise.
1500 (hw_find_integer_array_property): Likewise.
1501 (hw_add_duplicate_property): Likewise.
1503 2010-03-15 Mike Frysinger <vapier@gentoo.org>
1505 * hw-properties.h (hw_add_boolean_property): Rename "bool" to
1508 2010-02-04 Mike Frysinger <vapier@gentoo.org>
1510 * sim-model.c: Include sim-model.h
1512 2010-02-04 Mike Frysinger <vapier@gentoo.org>
1514 * sim-base.h: Declare sim_state.cpu as a pointer in the comment. Drop
1515 & from the STATE_CPU() examples.
1517 2010-01-24 Doug Evans <dje@sebabeach.org>
1519 * cgen-accfp.c (fextsfdf): New arg how. All callers updated.
1520 (ftruncdfsf, floatsisf, flostsidf, ufloatsisf, fixsfsi, fixdfsi,
1522 * cgen-fpu.h (CGEN_FPCONV_KIND): New enum.
1523 (struct cgen_fp_ops): Update signatures of floating point conversion
1526 * Make-common.in (CGEN_SIM_DEPS): Define.
1527 (CGEN_INCLUDE_DEPS): Use it.
1528 (CGEN_MAIN_CPU_DEPS): Simplify.
1530 2010-01-22 Doug Evans <dje@sebabeach.org>
1532 * cgen-ops.h (SUBWORDXFSI): Fix word ordering.
1533 (SUBWORDTFSI, JOINSIDI): Ditto.
1535 2010-01-05 Doug Evans <dje@sebabeach.org>
1537 * cgen-types.h (SETDI): Delete, unused.
1539 2009-12-02 Doug Evans <dje@sebabeach.org>
1541 * cgen-engine.h: Remove duplicated comment.
1543 2009-11-23 Doug Evans <dje@sebabeach.org>
1545 * cgen-engine.h (EXTRACT_MSB0_SINT): Renamed from EXTRACT_MSB0_INT.
1546 (EXTRACT_LSB0_SINT): Renamed from EXTRACT_LSB0_INT.
1548 2009-11-22 Doug Evans <dje@sebabeach.org>
1550 * cgen-engine.h (EXTRACT_MSB0_LGSINT, EXTRACT_MSB0_LGUINT): Define.
1551 (EXTRACT_LSB0_LGSINT, EXTRACT_LSB0_LGUINT): Define.
1552 (EXTRACT_FN, SEMANTIC_FN): Use CGEN_INSN_WORD in prototype
1553 instead of CGEN_INSN_INT.
1555 * cgen-trace.h (trace_extract): Add cast to fix warning.
1557 2009-11-05 Doug Evans <dje@sebabeach.org>
1559 * cgen-mem.h (DECLARE_GETT): Don't inline.
1560 (DECLARE_SETT): Ditto.
1562 2009-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
1564 * sim-inline.h: Fix spelling error.
1566 2009-10-02 Ralf Corsepius <ralf.corsepius@rtems.org>
1568 * Make-common.in: Add datarootdir.
1570 2009-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1572 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS)
1573 (SIM_CHECK_MEMBERS_1): Remove.
1574 * configure.ac: Replace SIM_CHECK_MEMBERS call with equivalent
1575 AC_CHECK_MEMBERS one.
1576 * configure: Regenerate.
1578 * aclocal.m4 (SIM_CHECK_MEMBER): Use AU_ALIAS to define, not defn.
1579 * configure: Regenerate.
1581 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1583 * config.in: Regenerate.
1584 * configure: Likewise.
1586 * aclocal.m4 (SIM_CHECK_MEMBER): Replace definition with
1587 definition of AC_CHECK_MEMBER.
1589 * aclocal.m4: m4_include toplevel config/override.m4.
1590 * configure: Regenerate.
1592 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1594 * Makefile.in (datarootdir): New variable.
1596 2009-07-07 Doug Evans <dje@sebabeach.org>
1598 * Make-common.in (CPU_DIR): Define.
1600 2009-07-06 Doug Evans <dje@sebabeach.org>
1602 * Make-common.in (CGEN_CPU_EXTR,CGEN_CPU_READ): Pass canonical
1603 identifiers for file types rather than encoding internal
1604 implementation details of cgen.sh.
1605 (CGEN_CPU_WRITE,CGEN_CPU_SEM,CGEN_CPU_SEMSW): Ditto.
1606 * cgen.sh: Add support for parallel makes.
1607 Rewrite cpu/decode handling to avoid generating "extrafiles" twice.
1609 2009-05-18 Jon Beniston <jon@beniston.com>
1611 * gennltvals.sh: Add lm32 target.
1612 * nltvals.def: Add lm32 syscall definitions.
1614 2009-03-19 J"orn Rennecke <joern.rennecke@arc.com> (tiny change)
1616 Speed up simulator startup:
1617 * sim-utils.c (zalloc): Use xcalloc.
1619 2009-01-07 Hans-Peter Nilsson <hp@axis.com>
1621 * cgen-ops.h (ADDQI, SUBQI, MULQI, NEGQI, ABSQI, ADDHI, SUBHI)
1622 (MULHI, NEGHI, ABSHI, ADDSI, SUBSI, MULSI, NEGSI, ABSSI, ADDDI)
1623 (SUBDI, MULDI, NEGDI, ABSDI): Cast arguments to the unsigned type
1624 variant; UQI, UHI, USI, UDI, and cast the result to the signed
1625 type, QI, HI, SI, DI.
1627 * callback.c (os_error): Mark as being a noreturn function.
1628 * sim-io.h (sim_io_error): Similar for sim_io_error.
1630 2008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>
1632 * aclocal.m4: Fix underquoting of function names.
1634 2008-10-21 Julian Brown <julian@codesourcery.com>
1636 * Make-common.in (run$(EXEEXT)): Add LDFLAGS.
1638 2008-07-11 Hans-Peter Nilsson <hp@axis.com>
1640 * common.m4: Add test for libz and zlib.h.
1641 * configure: Regenerate to track ../common/common.m4 changes.
1644 2008-06-06 Vladimir Prus <vladimir@codesourcery.com>
1645 Daniel Jacobowitz <dan@codesourcery.com>
1646 Joseph Myers <joseph@codesourcery.com>
1648 * aclocal.m4: Include ../../config/acx.m4.
1649 * common.m4: Use ACX_PKGVERSION and ACX_BUGURL.
1650 * configure, config.in: Regenerate.
1651 * Make-common.in (LIB_OBJS): Add version.o.
1652 (version.c, version.o): New rules.
1653 * run.c: Include version.h.
1654 (usage): Add help parameter. Print output either to stdout or
1655 stderr depending on that parameter.
1656 (print_version): New.
1657 (main): Check for --help and --version.
1658 * run-sim.h (sim_target_display_usage): Add help parameter.
1661 2008-04-14 Hans Kester <kester.hans@gmail.com>
1663 * sim-signal.c: Define missing signals for _WIN32.
1665 2008-02-12 M Ranga Swami Reddy <MR.Swami.Reddy@nsc.com>
1667 * gennltvals.sh: Add cr16.
1668 * nltvals.def: Rebuild.
1670 2007-10-11 Jesper Nilsson <jesper.nilsson@axis.com>
1672 * callback.c (cb_is_stdin, cb_is_stdout, cb_is_stderr): Add functions.
1673 * syscall.c (cb_syscall): Test for stdin/out/err, not just fd 0/1/2.
1675 2007-08-10 Nick Clifton <nickc@redhat.com>
1677 * sim-memopt.c (memory_options): Mention that the
1678 --memory-size switch accepts suffixes.
1679 (parse_size): Handle a suffix on the size value.
1680 * sim-options.c (standard_options): Mention that the mem-size
1681 switch accepts suffixes.
1682 (standard_option_handler): Handle a suffix on the size value.
1684 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
1686 * acconfig.h: Remove.
1687 * config.in: Regenerate.
1689 2006-11-07 Thiemo Seufer <ths@mips.com>
1691 * gentmap.c: Fix compile time warning.
1693 2006-11-07 Thiemo Seufer <ths@mips.com>
1695 * sim-base.h (text_start, text_end, start_addr): Use bfd_vma type
1696 for bfd text addresses.
1698 2006-08-29 Thiemo Seufer <ths@mips.com>
1699 Nigel Stephens <nigel@mips.com>
1701 * sim-fpu.c (pack_fpu): Handle QUIET_NAN correctly for
1702 SIM_QUIET_NAN_NEGATED.
1704 2006-08-29 Nigel Stephens <nigel@mips.com>
1706 * sim-profile.c (profile_pc_init): Initialise default profiling
1707 frequency to a prime number.
1708 (profile_print_pc): Convert gmon.out sample data into target
1711 2006-06-13 Richard Earnshaw <rearnsha@arm.com>
1713 * aclocal.m4: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
1714 * common.m4: Likewise.
1715 * configure: Regenerated.
1717 2006-06-05 Daniel Jacobowitz <dan@codesourcery.com>
1719 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR.
1720 * configure: Regenerated.
1722 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
1724 * Make-common.in: Replace INTLLIBS and INTLDEPS with LIBINTL
1725 and LIBINTL_DEP everywhere.
1726 (CSEARCH): Use INCINTL.
1727 * aclocal.m4: Use ZW_GNU_GETTEXT_SISTER_DIR. Include new
1729 * configure: Regenerated.
1731 2006-03-29 Hans-Peter Nilsson <hp@axis.com>
1733 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
1734 option-contents test.
1736 2005-11-28 Mark Mitchell <mark@codesourcery.com>
1738 * sim-signal.c (sim_signal_to_target): Fix typos.
1740 * sim-reason.c (sim_stop_reason): Use
1741 sim_signal_to_target, not sim_signal_to_host.
1742 * sim-signal.c (sim_signal_to_host): Fix typo.
1743 (sim_signal_to_target): New function.
1745 2005-07-10 Hans-Peter Nilsson <hp@bitrange.com>
1747 * sim-load.c (xprintf, eprintf): Remove fallout from ANSI_PROTOTYPES
1750 2005-07-08 Ian Lance Taylor <ian@airs.com>
1752 * sim-fpu.c (sim_fpu_abs): Always clear the sign bit.
1754 * sim-fpu.c (pack_fpu): If SIM_QUIET_NAN_NEGATED is defined, use a
1755 different fraction for a quiet NaN.
1756 (unpack_fpu): Likewise.
1758 2005-07-08 Ben Elliston <bje@au.ibm.com>
1760 * callback.c: Remove ANSI_PROTOTYPES conditional code.
1761 * sim-load.c: Likewise.
1762 * syscall.c: Likewise.
1764 2005-05-24 Corinna Vinschen <vinschen@redhat.com>
1766 * Make-common.in (LIBDEPS): Correctly use INTLDEPS for dependency
1769 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1771 * Make-common.in (install-common, installdirs): Honor $DESTDIR.
1773 2005-04-20 Manoj Iyer <manjo@austin.ibm.com>
1775 * sim-types.h: Changed unsigned32 and unsigned64 to signed32
1776 and signed64 for __ALPHA__.
1778 2005-03-23 Mark Kettenis <kettenis@gnu.org>
1780 * aclocal.m4 Include ../../gettext.m4.
1781 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST)
1782 (AM_LC_MESSAGES): Remove.
1783 * configure: Regenerate.
1785 2005-02-28 Jim Blandy <jimb@redhat.com>
1787 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Don't include
1788 -Wuninitialized in the default list of build warnings if CFLAGS is
1789 set, and doesn't include -O. (Using -Wuninitialized without
1790 optimization produces a warning, which interferes with compilation
1793 2005-02-21 Jim Blandy <jimb@redhat.com>
1795 * callback.c (os_fstat): Don't declare 't' unless it's used.
1797 2005-02-09 Jim Blandy <jimb@redhat.com>
1799 * Make-common.in (CGEN): Load guile.scm, and include a trailing
1801 (CGEN_FLAGS_TO_PASS): Include single quotes around the reference
1802 to $(CGEN), to ensure that the command substitution happens where
1803 the variable is referenced in the submake, not when the submake's
1804 arguments are expanded.
1805 (cgen.sh): Be prepared for the 'cgen' argument to contain spaces.
1806 (arch, cpu, decode, cpu-decode, defs, desc): Place the name of the
1807 application Scheme script directly after ${cgen}; don't precede it
1810 2005-01-28 Hans-Peter Nilsson <hp@axis.com>
1812 * syscall.c (cb_syscall) <case CB_SYS_pipe>: New case.
1813 * callback.c [HAVE_LIMITS_H]: Include limits.h.
1814 Include libiberty.h.
1815 (os_close, os_read, os_write, os_fstat, os_ftruncate): Support fd
1816 being either end of a pipe.
1817 (os_pipe, os_pipe_empty, os_pipe_nonempty): New functions.
1818 (os_shutdown): Clear pipe state.
1819 (default_callback): Initialize new members.
1821 * callback.c (default_callback): Initialize target_endian.
1822 (cb_store_target_endian): Renamed from store, new first parameter
1823 host_callback *cb, drop last parameter big_p. Take endianness
1825 (cb_host_to_target_stat): Change to use cb_store_target_endian.
1826 Remove variable big_p.
1827 * nrun.c (main): Initialize default_callback.target_endian.
1829 2005-01-14 Andrew Cagney <cagney@gnu.org>
1831 * configure.ac: Replace SIM_AC_COMMON with sinclude of common.m4.
1832 Add explicit call to AC_CONFIG_HEADER.
1833 * common.m4: Delete call to AC_CONFIG_HEADER, update usage.
1834 * configure: Re-generate.
1836 2005-01-12 Andrew Cagney <cagney@gnu.org>
1838 * common.m4: New file, based on of aclocal.m4.
1840 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
1842 * aclocal.m4 (SIM_AC_OUTPUT): Rewrite to use 2.59 macros.
1843 * configure: Regenerated to track ../common/aclocal.m4 changes.
1845 2005-01-07 Andrew Cagney <cagney@gnu.org>
1847 * configure.ac: Rename configure.in, require autoconf 2.59.
1848 * aclocal.m4 (SIM_AC_COMMON): Delete call to AC_CONFIG_AUX_DIR.
1849 * configure: Re-generate.
1851 2004-12-15 Hans-Peter Nilsson <hp@axis.com>
1853 * syscall.c (cb_syscall) <case CB_SYS_truncate>
1854 <case CB_SYS_ftruncate>: New cases.
1856 2004-12-13 Hans-Peter Nilsson <hp@axis.com>
1858 * syscall.c (cb_syscall) <case CB_SYS_lstat>: New case.
1859 (cb_syscall) <case CB_SYS_rename>: New case.
1860 * callback.c (os_lstat): New function.
1862 2004-12-08 Hans-Peter Nilsson <hp@axis.com>
1864 * run.1: Document --sysroot=filepath.
1865 * sim-options.c (STANDARD_OPTIONS): New member OPTION_SYSROOT.
1866 (standard_options): Support --sysroot=<path>.
1867 (standard_option_handler): Handle OPTION_SYSROOT.
1868 * syscall.c (simulator_sysroot): Define, initialized empty.
1869 (get_path): Prepend simulator_sysroot to absolute file path.
1870 [HAVE_STRING_H]: Include string.h.
1871 [!HAVE_STRING_H && HAVE_STRINGS_H]: Include strings.h.
1872 * nrun.c [HAVE_UNISTD_H]: Include unistd.h.
1873 (main): If simulator_sysroot is not empty, chdir there.
1874 * sim-config.h (simulator_sysroot): Declare.
1876 * aclocal.m4 (SIM_AC_OUTPUT): Substitute @cgen_breaks@ for "break
1877 cgen_rtx_error" in a CGEN-generated simulator.
1878 * gdbinit.in: Break on sim_core_signal too. Have autoconf
1879 replacement for CGEN-related breakpoints.
1881 2004-12-07 Hans-Peter Nilsson <hp@axis.com>
1883 * Make-common.in (sim-basics_h): Add $(callback_h).
1885 2004-12-03 Hans-Peter Nilsson <hp@axis.com>
1887 * configure.in (SIM_CHECK_MEMBERS): Call for struct stat members
1888 st_dev, st_ino, st_mode, st_nlink, st_uid, st_gid, st_rdev,
1889 st_size, st_blksize, st_blocks, st_atime, st_mtime and st_ctime.
1890 * aclocal.m4 (SIM_CHECK_MEMBER, SIM_CHECK_MEMBERS_1)
1891 (SIM_CHECK_MEMBERS): New macros.
1892 * callback.c (cb_host_to_target_stat): Use temporary macro ST_x
1893 for struct stat member test and write. Add ST_x calls for each
1894 struct stat member tested in configure.in. Wrap each ST_x call in
1895 #ifdef of configure macro for that member.
1896 * configure, config.in: Regenerate.
1898 2004-12-01 Hans-Peter Nilsson <hp@axis.com>
1900 * cgen.sh: New thirteenth parameter opcfile, defaulting to
1902 <case desc>: Pass -OPC opcfile.
1903 * Make-common.in (cgen-desc): Pass $(opcfile) as thirteenth
1904 parameter to cgen.sh.
1906 2004-11-30 Richard Earnshaw <rearnsha@arm.com>
1908 * Make-common.in (sim-basics_h): Correct dependencies on
1909 cconfig.h and tconfig.h
1910 (sim-load.o): Correct typo in sim-basics_h dependency.
1912 2004-11-18 Richard Earnshaw <rearnsha@arm.com>
1914 * Make-common.in (sim-*_h): Add macros for all sim headers listing
1915 sub-dependencies for other sim files that they include.
1916 (sim_main_headers): Use sim-*_h macros.
1917 (sim-load.o): Depend on sim-basics_h, not sim_main_headers.
1919 2004-11-16 Hans-Peter Nilsson <hp@axis.com>
1921 * sim-config.c (sim_config): Recognize when a bfd has unspecified
1924 * Make-common.in (sim-load.o): Depend on $(sim_main_headers) and
1925 $(remote_sim_h) too.
1926 (sim_main_headers): Add sim-utils.h.
1928 2004-10-07 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1930 * cgen-defs.h (ENDSWITCH): Changed to compile with gcc-3.4.2.
1932 2004-07-26 Andrew Cagney <cagney@gnu.org>
1934 Problem from Olaf Hering <olh@suse.de>.
1935 * Makefile.in (install-man, installdirs): Add DESTDIR prefix.
1937 2004-07-10 Ben Elliston <bje@au.ibm.com>
1939 * hw-tree.c (parse_integer_property): Typo fix in comments.
1940 * sim-options.c (sim_args_command): Likewise.
1942 2004-06-28 Andrew Cagney <cagney@gnu.org>
1944 * run.c: Rename ui_loop_hook to deprecated_ui_loop_hook.
1946 2004-06-27 J"orn Rennecke <joern.rennecke@superh.com>
1948 * callback.c (os_shutdown): Fix bug in last change: actually
1949 mark file descriptors as available on startup.
1951 2004-06-25 J"orn Rennecke <joern.rennecke@superh.com>
1953 [ include/gdb: * callback.h (host_callback_struct): Replace
1954 members fdopen and alwaysopen with fd_buddy. ]
1955 * callback.c: Changed all users.
1957 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1959 * sim-load.c (sim_load_file): Use bfd_get_section_size
1960 instead of bfd_get_section_size_before_reloc.
1962 2004-05-18 Daniel Jacobowitz <dan@debian.org>
1964 * dv-glue.c (hw_glue_finish): Cast result of sizeof to long before
1965 passing it to printf.
1967 2004-05-10 Daniel Jacobowitz <dan@debian.org>
1969 * callback.c: Update copyright dates.
1971 * sim-basics.h: Likewise.
1972 * sim-load.c: Likewise.
1973 * syscall.c: Likewise.
1975 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1977 * callback.c: Include cconfig.h instead of config.h.
1979 * sim-basics.h: Likewise.
1980 * sim-load.c: Likewise.
1981 * syscall.c: Likewise.
1983 2004-01-16 Ben Elliston <bje@wasabisystems.com>
1985 * Makefile.in (clean): Remove rm -f $(ALL), as $(ALL) is empty.
1987 2003-12-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1989 * sim-core.c (sim_core_trans_addr): Added for m32r-linux-run.
1991 2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
1993 * sim-options.c (standard_options): Fix the names of H8
1996 2003-10-30 Andrew Cagney <cagney@redhat.com>
1998 * sim-trace.c, sim-base.h: Replace "struct symbol_cache_entry"
1999 with "struct bfd_symbol".
2001 2003-10-21 Andrew Cagney <cagney@redhat.com>
2003 * callback.c (os_truncate): Call "truncate", and not "stat".
2005 2003-10-20 Andrew Cagney <cagney@redhat.com>
2007 * sim-base.h: Replace "struct sec" with "struct bfd_section".
2009 2003-10-15 J"orn Rennecke <joern.rennecke@superh.com>
2011 * callback.c (os_ftruncate, os_truncate): New functions.
2012 (default_callback): Initialize ftruncate and truncate members.
2014 2003-09-08 Dave Brolley <brolley@redhat.com>
2016 On behalf of Doug Evans <dje@sebabeach.org>
2017 * cgen.sh: New arg archfile.
2018 * Make-common.in (cgen-arch,cgen-cpu,cgen-defs,cgen-decode,
2019 cgen-cpu-decode,cgen-desc): Update call to cgen.sh.
2021 2003-08-28 Andrew Cagney <cagney@redhat.com>
2023 * dv-glue.c (hw_glue_finish): Change %d to %ld to match sizeof.
2024 * sim-options.c (print_help): Cast the format with specifier to
2027 2003-08-20 Michael Snyder <msnyder@redhat.com>
2028 Dave Brolley <brolley@redhat.com>
2030 * cgen-par.h (flags, word1): New target-specific
2031 fields of CGEN_WRITE_QUEUE_ELEMENT.
2032 (CGEN_WRITE_QUEUE_ELEMENT_FLAGS): New accessor macro.
2033 (CGEN_WRITE_QUEUE_ELEMENT_WORD1): New accessor macro.
2034 * gennltvals.sh: Add frv target.
2035 * nltvals.def: Add frv target.
2037 2003-06-23 Michael Snyder <msnyder@redhat.com>
2039 * nrun.c (main): Delete h8/300 ifdef (sim now handles signals).
2040 * sim-reg.c: Fix cut-and-paste bug in comment.
2042 2003-06-22 Andrew Cagney <cagney@redhat.com>
2044 From matthew green <mrg@redhat.com>:
2045 * sim-fpu.h: Update copyright.
2046 (sim_fpu_fraction, sim_fpu_guard): New prototypes.
2047 * sim-fpu.c: Update copyright.
2048 (sim_fpu_fraction, sim_fpu_guard): New inline functions.
2050 2003-06-17 Frank Ch. Eigler <fche@redhat.com>
2052 From Doug Evans <dje@sebabeach.org>:
2053 * cgen-trace.h (sim_disasm_read_memory): Update args to be compatible
2054 with disassemble_info:read_memory_func.
2055 * cgen-trace.c (sim_disasm_read_memory): Ditto.
2057 2003-06-04 Michael Snyder <msnyder@redhat.com>
2059 * common/run.c (main): Remove SIM_H8300 ifdef.
2061 * common/sim-options.c (STANDARD_OPTIONS): Add SIM_H8300SX.
2062 (standard_options): Add '-x' for h8/300sx.
2063 (standard_option_handler): Add case for SIM_H8300SX.
2065 2003-04-13 Michael Snyder <msnyder@redhat.com>
2067 * Make-common.in (sim-events.o, sim-config.o): Depend on sim-main.h.
2069 2003-03-01 Andrew Cagney <cagney@redhat.com>
2071 * sim-engine.c (sim_engine_halt): If jmpbuf is invalid, abort.
2072 (sim_engine_vabort): Ditto.
2074 2003-02-27 Andrew Cagney <cagney@redhat.com>
2076 * sim-utils.h (sim_analyze_program, sim_load_file): Rename _bfd to bfd.
2077 * sim-hload.c (sim_load), sim-base.h (sim_state_base): Ditto.
2078 * nrun.c (main): Ditto.
2080 2003-02-26 Andrew Cagney <cagney@redhat.com>
2082 * sim-engine.h (sim_engine_abort): Add noreturn attribute.
2083 (sim_engine_vabort): Ditto.
2084 (sim_engine_halt, sim_engine_restart): Ditto.
2086 2003-02-20 Andrew Cagney <ac131313@redhat.com>
2088 * Make-common.in (SIM_NEW_COMMON_OBJS): Remove sim-break.o
2089 (sim-break_h): Delete macro.
2090 (sim-break.o): Delete rule.
2091 * sim-break.c: Delete file.
2092 * sim-break.h: Delete file.
2093 * sim-base.h [SIM_HAVE_BREAKPOINTS]: Don't include "sim-break.h".
2094 (STATE_BREAKPOINTS): Delete macro.
2095 (sim_state_base): Delete field breakpoints.
2096 * sim-module.c (modules) [SIM_HAVE_BREAKPOINTS]: Don't add
2097 sim_break_install to array.
2099 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
2101 * run.c (usage): Fix typos.
2103 2002-11-27 Richard Sandiford <rsandifo@redhat.com>
2105 * sim-fpu.c (sim_fpu_inv): Use sim_fpu_div.
2107 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2109 * dv-core.c: Update copyright. sim/common contributed to the FSF.
2110 * dv-glue.c, dv-pal.c, hw-base.c, hw-base.h, hw-device.c: Ditto.
2111 * hw-device.h, hw-handles.c, hw-handles.h: Ditto.
2112 * hw-instances.c, hw-instances.h, hw-properties.c: Ditto.
2113 * hw-properties.h, hw-tree.c, hw-tree.h, sim-alu.h: Ditto.
2114 * sim-basics.h, sim-bits.c, sim-bits.h, sim-config.c: Ditto.
2115 * sim-config.h, sim-core.c, sim-core.h, sim-endian.c: Ditto.
2116 * sim-endian.h, sim-events.c, sim-events.h, sim-inline.c: Ditto.
2117 * sim-inline.h, sim-io.c, sim-io.h, sim-n-bits.h: Ditto.
2118 * sim-n-core.h, sim-n-endian.h, sim-types.h: Ditto.
2120 2002-11-13 Andrew Cagney <cagney@redhat.com>
2122 * run.c (main): Remove SIM_HAVE_ENVIRONMENT from #endif.
2124 2002-11-06 Richard Sandiford <rsandifo@redhat.com>
2126 * Make-common.in (SIM_EXTRA_DISTCLEAN): New macro.
2127 (distclean): Depend on it.
2129 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2131 * cgen-trace.h: Test __BFD_H_SEEN__ rather than BFD_VERSION.
2133 2002-08-29 Dave Brolley <brolley@redhat.com>
2135 * Make-common.in (CGEN_READ_SCM): Remove ../../cgen/stamp-cgen.
2137 2002-07-17 Andrew Cagney <cagney@redhat.com>
2139 * run-sim.h: Add #ifdef RUN_SIM_H wrapper.
2140 (sim_set_callbacks, sim_size, sim_trace)
2141 (sim_set_trace, sim_set_profile_size, sim_kill): Declare. Moved
2142 to here from "gdb/remote-sim.h".
2144 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2146 * sim-resume.c (sim_resume): Add local variable sig_to_deliver to
2147 avoid possible longjmp problems with automatic variable siggnal.
2149 2002-07-14 Andrew Cagney <ac131313@redhat.com>
2151 From 2002-07-11 Momchil Velikov <velco@fadata.bg>:
2152 * Make-common.in (installdirs): Make $(libdir) too, needed when
2153 installing libsim.a.
2155 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2157 * gennltvals.sh (dir): Mark d30v as obsolete.
2158 * nltvals.def: Remove d30v.
2160 2002-06-17 Andrew Cagney <cagney@redhat.com>
2162 * hw-events.c (hw_event_queue_schedule): Initialize `dummy'.
2164 * sim-memopt.c: Include <unistd.h>.
2165 (do_memopt_add): Fix printf format.
2166 * sim-events.c (sim_events_schedule): Initialize ``dummy''.
2168 2002-06-16 Andrew Cagney <ac131313@redhat.com>
2170 * aclocal.m4 (SIM_AC_OPTION_WARNINGS): Update to match GDB's
2171 --enable-gdb-build-warnings.
2172 * configure: Regenerated to track ../common/aclocal.m4 changes.
2174 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
2176 * sim-fpu.c (unpack_fpu): Initialize exponent for
2179 (sim_fpu_sqrt): Same.
2181 2002-06-08 Andrew Cagney <cagney@redhat.com>
2183 * gentmap.c (gen_targ_map_c): Generate "gdb/callback.h".
2184 * sim-basics.h: Include "gdb/callback.h" and "gdb/remote-sim.h".
2186 * sim-load.c: Ditto.
2187 * callback.c: Ditto.
2189 * Make-common.in (callback_h): Define.
2190 (remote_sim_h): Define.
2192 (callback.o): Update.
2193 (syscall.o): Update.
2196 (sim-hload.o): Update.
2198 (sim-reason.o): Update.
2199 (sim-reg.o): Update.
2200 (sim-resume.o): Update.
2202 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
2204 * run.c: Fix formatting.
2206 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
2208 * run-sim.h: New header. Provide prototypes for functions used
2209 between run() and libsim.a which are not used by GDB.
2210 * run.c: Include run-sim.h.
2211 (main): If SIM_TARGET_SWITCHES is defined call
2212 sim_target_parse_command_line.
2213 (usage): If SIM_TARGET_SWITCHES is defined call
2214 sim_target_display_usage.
2216 2002-05-17 Andrey Volkov <avolkov@transas.com>
2218 * run.c: Made h8300s as new target, not h8300h alias.
2219 Added new option -S (h8300s target)
2220 * sim-options.c: Ditto.
2222 2002-05-01 Chris Demetriou <cgd@broadcom.com>
2224 * callback.c: Use 'deprecated' rather than 'depreciated.'
2226 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2228 From wiz at danbala:
2229 * sim-fpu.h: Fix grammar and typos.
2232 2002-02-10 Chris Demetriou <cgd@broadcom.com>
2234 * callback.c: Fix some spelling errors.
2235 * hw-device.h: Likewise.
2236 * hw-tree.c: Likewise.
2237 * sim-abort.c: Likewise.
2238 * sim-alu.h: Likewise.
2239 * sim-core.h: Likewise.
2240 * sim-events.c: Likewise.
2241 * sim-events.h: Likewise.
2242 * sim-fpu.h: Likewise.
2243 * sim-profile.h: Likewise.
2244 * sim-utils.c: Likewise.
2246 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
2248 * cgen-ops.h (ADDCQI, ADDCFQI, ADDOFQI, SUBCQI, SUBCFQI, SUBOFQI):
2251 2002-01-20 Ben Elliston <bje@redhat.com>
2253 * sim-fpu.h (SIM_FPU_IS_QNAN): Replace "Quite" with "Quiet" in
2254 the comment for this enumerator.
2256 2002-01-14 Ben Elliston <bje@redhat.com>
2258 * sim-fpu.h: Fix comment about sim_fpu_* constants.
2260 2001-12-20 Kazu Hirata <kazu@hxi.com>
2262 * run.c (usage): Fix a typo.
2264 2001-07-05 Ben Elliston <bje@redhat.com>
2266 * Make-common.in (srccgen): Remove.
2267 (CGEN_CPU_DIR): Define.
2268 (CGEN_READ_SCM): Redefine without $(srccgen).
2269 (CGEN_ARCH_SCM): Ditto.
2270 (CGEN_CPU_SCM): Ditto.
2271 (CGEN_DECODE_SCM): Ditto.
2272 (CGEN_DESC_SCM): Ditto.
2274 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
2276 * sim-load.c (sim_load_file): Put it back: external now.
2277 * sim-utils.c (sim_analyze_program): Ditto. Nyuk nyuk nyuk.
2279 2001-04-21 Andrew Cagney <ac131313@redhat.com>
2281 * sim-load.c (sim_load_file): Delete call bfd_cache_close. BFD
2283 * sim-utils.c (sim_analyze_program): Ditto.
2285 2001-04-19 Frank Ch. Eigler <fche@redhat.com>
2287 * sim-utils.c (sim_analyze_program): Call bfd_cache_close after
2288 we're finished with its immediate use.
2289 * sim-load.c (sim_load_file): Ditto.
2291 2001-03-16 Frank Ch. Eigler <fche@redhat.com>
2293 Add support for mmap-based memory regions.
2294 * sim-memopt.c (mmap_next_fd): New global.
2295 (sim_memory_init): Reinitialize it.
2296 (OPTION_MEMORY_MAPFILE, memory_option_handler): Support new
2297 "--memory-mapfile FILE" option. Check for some errors.
2298 (do_memopt_add): Conditionally do mmap instead of malloc for
2299 backing store of simulated memory. Check for more errors.
2300 (do_simopt_delete, sim_memory_uninstall): Corresponding cleanup.
2301 * sim-memopt.h (munmap_length): New member of _sim_memopt.
2302 * configure.in: Look for mmap/fstat related functions and headers.
2303 * config.in, configure: Regenerated.
2305 2001-03-15 Frank Ch. Eigler <fche@redhat.com>
2307 * sim-core.c (sim_core_map_attach): Correct overlap-related
2310 2001-03-07 Michael Meissner <meissner@redhat.com>
2312 * run.c (alloca-conf.h): Delete, no longer provided.
2314 2001-02-22 Ben Elliston <bje@redhat.com>
2316 * sim-trace.h (TRACE_VPU_IDX): Add.
2317 (TRACE_vpu): Define.
2318 (WITH_TRACE_VPU_P): Likewise.
2319 (TRACE_VPU_P): Likewise.
2320 * sim-trace.c (OPTION_TRACE_VPU): Define.
2321 (trace_options): Add --trace-vpu.
2322 (trace_option_handler): Handle OPTION_TRACE_VPU.
2323 (trace_option_handler): Include VPU tracing in --trace-semantics.
2324 (trace_idx_to_str): Handle TRACE_VPU_IDX.
2326 2001-02-21 Ben Elliston <bje@redhat.com>
2328 * sim-trace.h (TRACE_BRANCH_INPUT1): New macro.
2329 (TRACE_BRANCH_INPUT2): Likewise.
2331 2001-02-09 Ben Elliston <bje@redhat.com>
2333 * (profile_print_pc): Write header out in target byte order.
2335 2001-02-09 Ben Elliston <bje@redhat.com>
2337 * sim-profile.c (profile_pc_init): Correct bug in loop logic when
2338 adjusting the pc shift value.
2340 2001-01-12 Chris Demetriou <cgd@sibyte.com>
2342 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Properly handle the case
2343 where a numeric value is supplied.
2345 2001-01-06 Ben Elliston <bje@redhat.com>
2347 * cgen.sh: Allow extrafiles to include the semantics files when
2348 generating an ISA-specific decoder.
2350 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
2352 * Make-common.in (sim-io.o): Depend on targ-vals.h.
2354 2000-12-23 Ben Elliston <bje@redhat.com>
2356 * cgen-trace.c (trace_result): Handle 'f' type operands; output
2357 them to the trace stream using sim_fpu_printn_fpu. Include
2360 2000-12-15 Ben Elliston <bje@redhat.com>
2362 * sim-fpu.h (sim_fpu_printn_fpu): Declare.
2363 * sim-fpu.c (print_bits): Add digits parameter. Print only as many
2364 trailing digits as specified (-1 to print all digits).
2365 (sim_fpu_print_fpu): New wrapper around sim_fpu_printn_fpu.
2366 (sim_fpu_printn_fpu): Rename from sim_fpu_print_fpu; update calls
2369 2000-12-13 Ben Elliston <bje@redhat.com>
2371 * cgen.sh: Set prefix/PREFIX (append ISA if applicable). Factor
2372 sed expressions into $sedscript, substituting @prefix@/@PREFIX@.
2375 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2377 * sim-endian.h: Don't have parameters on macro definitions which
2378 are simply renaming functions, to permit use of XCONCAT2 in both
2379 the macro name and the arguments in a use of such a definition.
2381 2000-12-11 Ben Elliston <bje@redhat.com>
2383 * cgen-ops.h (SUBWORDDFDI): New function.
2385 2000-12-05 Ben Elliston <bje@redhat.com>
2387 * Make-common.in (cgen-defs): New target.
2388 (cgen-decode): Pass $(EXTRAFILES).
2390 * genmloop.sh: Use @prefix@, not @cpu@ throughout. Add -prefix and
2391 -outfile-suffix options.
2393 2000-12-04 Ben Elliston <bje@redhat.com>
2395 * cgen-ops.h (SUBWORDSIQI): Mask off top bits.
2396 (SUBWORDSIUQI): Likewise.
2397 (SUBWORDDIHI): Likewise.
2398 (SUBWORDDIQI): New function.
2400 * cgen-trace.c (disassemble_insn): Remove unused declaration.
2401 * cgen-scache.c (scache_option_handler): Remove unused local var.
2403 2000-12-03 Ben Elliston <bje@redhat.com>
2405 * sim-profile.c (profile_option_handler): Remove unused prof_nr.
2407 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2409 * hw-events.c (delete_hw_event_data): Remove the scheduled events.
2411 2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2413 * dv-core.c (dv_core_attach_address_callback): Don't abort if
2416 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2418 * hw-base.c (hw_delete): Don't free base_of_hw since it's freed.
2419 (set_hw_delete): Moved the macro as a function.
2420 * hw-base.h (set_hw_delete): Declare as external function.
2421 * hw-alloc.c (delete_hw_alloc_data): Allow to free the memory
2422 allocated using hw_malloc.
2424 2000-11-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2426 * sim-options.c (sim_parse_args): Free the memory used for
2427 long_options, short_options, handlers, opt_cpu, orig_val.
2429 2000-11-20 Ben Elliston <bje@redhat.com>
2431 * cgen-ops.h (SUBBI): New macro.
2432 (SUBWORDSIQI, SUBWORDSIHI, SUBWORDSIUQI): New functions.
2433 (SUBWORDDIHI, SUBWORDDIUQI, SUBWORDDIDF): Likewise.
2435 2000-11-16 Ben Elliston <bje@redhat.com>
2437 * cgen-types.h (VOID): New type.
2439 2000-11-09 Ben Elliston <bje@redhat.com>
2441 * sim-fpu.c (sim_fpu_one): Set exponent to 0.
2442 (sim_fpu_two): Set exponent to 1.
2444 2000-10-26 Ben Elliston <bje@redhat.com>
2446 * cgen.sh: Handle an isa argument between cpu and mach. Default to
2447 `all'. Pass `-i' options to cgen applications.
2448 * Make-common.in (cgen-arch, cgen-cpu, cgen-decode, cgen-cpu-decode,
2449 cgen-desc): Pass $(isa) to cgen.sh.
2451 2000-10-08 Ben Elliston <bje@redhat.com>
2453 * cgen-utils.c (cgen_rtx_error): New function.
2455 2000-10-07 Ben Elliston <bje@redhat.com>
2457 * cgen-trace.c (sim_cgen_disassemble_insn): Handle failure
2458 conditions for sim_core_read_buffer().
2460 2000-09-26 Dave Brolley <brolley@redhat.com>
2462 * cgen-utils.c (RORQI): New function.
2463 (ROLQI): New function.
2464 (RORHI): New function.
2465 (ROLHI): New function.
2467 2000-08-28 Dave Brolley <brolley@redhat.com>
2469 * cgen-trace.c (sim_cgen_disassemble_insn): Make sure entire insn is
2470 in insn_value if it will fit.
2472 2000-08-21 Frank Ch. Eigler <fche@redhat.com>
2474 * Make-common.in, cgen.sh: Contribute CGEN-related build targets/rules.
2476 2000-08-15 Dave Brolley <brolley@redhat.com>
2478 * sim-profile.c (profile_print_speed): Print cpu frequency if not zero.
2480 2000-08-15 Dave Brolley <brolley@redhat.com>
2482 * sim-profile.h (PROFILE_DATA): Add cpu_freq.
2483 (PROFILE_CPU_FREQ): New macro.
2484 * sim-profile.c (OPTION_PROFILE_CPU_FREQUENCY): New enumerator.
2485 (profile-options): Add profile-cpu-frequency.
2486 (parse_frequency): New function.
2487 (profile_option_handler): Handle OPTION_PROFILE_CPU_FREQUENCY.
2488 (profile_print_speed): Print cpu frequency and simulated execution time.
2489 Re-indent other items to match.
2491 2000-08-09 Andrew Cagney <cagney@lulu.cygnus.com>
2493 * dv-sockser.c (dv_sockser_init): Eliminate MIN macro.
2495 2000-07-27 Frank Ch. Eigler <fche@redhat.com>
2497 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2498 * Makefile.in (install): Install run.1 man page.
2500 Thu Jul 27 21:56:08 2000 Andrew Cagney <cagney@b1.cygnus.com>
2502 From 2000-06-23 Doug Evans <dje@casey.transmeta.com>:
2503 * Makefile.in (headers,nltvals.def): Merge.
2505 Thu Jul 27 20:37:47 2000 Andrew Cagney <cagney@b1.cygnus.com>
2507 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2508 * nrun.c (main): Print the simulator statistics only in
2510 * hw-properties.h (hw_find_integer_array_property): Fix
2511 prototype (use signed_cell).
2513 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2514 * sim-events.c (sim_events_remain_time): New function returning
2515 the time that remains before the event is raised.
2516 * hw-events.c (hw_event_remain_time): Likewise.
2517 * sim-events.h (sim_events_remain_time): Declare.
2518 * hw-events.h (hw_event_remain_time): Declare.
2520 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2521 * sim-hw.c: Use <errno.h> instead of <sys/errno.h>
2522 (OPTION_HW_LIST): New option --hw-list to list the devices.
2523 (hw_option_handler): List the device tree with 'sim_hw_print'.
2525 From 2000-06-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
2526 * sim-bits.h (_MSB_16, _LSB_16): Define for 16-bit targets.
2527 (MASK, LSBIT, MSBIT): Likewise and use _MSB_16 and _LSB_16.
2528 (EXTENDED): Define for 16-bit word size.
2529 * sim-bits.c (LSEXTRACTED, MSEXTRACTED, LSINSERTED,
2530 MSINSERTED, LSSEXT, MSSEXT): Implement for 16-bit word size.
2531 * sim-types.h: Added support for 16-bit targets.
2533 2000-06-23 Frank Ch. Eigler <fche@redhat.com>
2535 * cgen-trace.h (TRACE_USEFUL_MASK): Remove TRACE_EVENTS_IDX.
2537 2000-06-24 Frank Ch. Eigler <fche@redhat.com>
2539 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
2540 * Makefile.in (distclean): Clean cconfig.h also.
2542 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
2544 * configure: Regenerated to track ../common/aclocal.m4 changes.
2546 Tue May 23 21:35:53 2000 Andrew Cagney <cagney@b1.cygnus.com>
2548 * aclocal.m4 (sim-profile): Enable the profiler by default.
2550 Tue May 23 20:30:12 2000 Andrew Cagney <cagney@amy.cygnus.com>
2552 * run.c (main): Initialize sigrc.
2554 Wed Apr 26 16:18:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
2556 * sim-events.c (update_time_from_event): Add more detailed event
2559 2000-03-30 Dave Brolley <brolley@redhat.com>
2561 * aclocal.m4 (cgen): Use guile to run cgen.
2563 2000-03-23 Dave Brolley <brolley@redhat.com>
2565 * cgen-fpu.h: Rename extsfdf to fextsfdf. Rename truncdfsf to
2567 * cgen-accfp.c (fextsfdf): New function.
2568 (ftruncdfsf): New function.
2569 (cgen_init_accurate_fpu): Initialize fextsfdf and ftruncdfsf.
2571 2000-03-13 Jeff Johnston <jjohnstn@cygnus.com>
2573 * cgen-ops.h: Added TRUNCSISI.
2575 2000-03-08 Dave Brolley <brolley@redhat.com>
2577 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_SF_WRITE.
2578 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_sf_write.
2579 (sim_queue_fn_si_write): Last argument is has type USI.
2580 (sim_queue_fn_sf_write): New function.
2581 * cgen-par.c (sim_queue_fn_si_write): Declare 'value' as USI.
2582 (sim_queue_fn_sf_write): New function.
2583 (cgen_write_queue_element_execute): Handle CGEN_FN_SF_WRITE.
2585 Tue Feb 22 16:45:09 2000 Andrew Cagney <cagney@b1.cygnus.com>
2587 * run.c (main): When SIM_HAVE_ENVIRONMENT enable tracing with
2588 sim_set_trace and run simulator using sim_resume.
2589 (main): Add option ``-o'' - operating environment. Only continue
2590 after a signal when operating environment.
2591 (main): Always set REASON and SIGRC using sim_stop_reason.
2592 (sim_trace): Delete extern declaration.
2594 2000-02-08 Nick Clifton <nickc@cygnus.com>
2596 * callback.c: Fix compile time warning messages.
2597 * run.c: Fix compile time warning messages.
2599 1999-12-17 Dave Brolley <brolley@cygnus.com>
2601 * sim-profile.h: (set_profile_option_mask): Add prototype.
2602 * sim-profile.c (set_profile_option_mask): No longer static.
2604 Wed Dec 8 21:47:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
2606 * sim-arange.c: Include <string.h>
2608 1999-12-07 Dave Brolley <brolley@cygnus.com>
2610 * sim-options.c (print_help): '=' required before optional argument.
2611 * cgen-par.h (CGEN_FN_MEM_QI_WRITE): New enumerator.
2612 (CGEN_FN_MEM_HI_WRITE): New enumerator.
2613 (CGEN_FN_MEM_SI_WRITE): New enumerator.
2614 (CGEN_FN_MEM_DI_WRITE): New enumerator.
2615 (CGEN_FN_MEM_DF_WRITE): New enumerator.
2616 (CGEN_FN_MEM_XI_WRITE): New enumerator.
2617 (fn_mem_qi_write): New union members.
2618 (fn_mem_hi_write): New union members.
2619 (fn_mem_si_write): New union members.
2620 (fn_mem_di_write): New union members.
2621 (fn_mem_df_write): New union members.
2622 (fn_mem_xi_write): New union members.
2623 (sim_queue_fn_mem_qi_write): New function.
2624 (sim_queue_fn_mem_hi_write): New function.
2625 (sim_queue_fn_mem_si_write): New function.
2626 (sim_queue_fn_mem_di_write): New function.
2627 (sim_queue_fn_mem_df_write): New function.
2628 (sim_queue_fn_mem_xi_write): New function.
2629 * cgen-par.c (sim_queue_fn_mem_qi_write): New function.
2630 (sim_queue_fn_mem_hi_write): New function.
2631 (sim_queue_fn_mem_si_write): New function.
2632 (sim_queue_fn_mem_di_write): New function.
2633 (sim_queue_fn_mem_df_write): New function.
2634 (sim_queue_fn_mem_xi_write): New function.
2635 (cgen_write_queue_element_execute): Handle CGEN_FN_MEM_QI_WRITE,
2636 CGEN_FN_MEM_HI_WRITE, CGEN_FN_MEM_SI_WRITE, CGEN_FN_MEM_DI_WRITE,
2637 CGEN_FN_MEM_DF_WRITE, CGEN_FN_MEM_XI_WRITE.
2639 1999-12-01 Dave Brolley <brolley@cygnus.com>
2641 * cgen-accfp.c (subsf): Check status code.
2659 1999-11-26 Dave Brolley <brolley@cygnus.com>
2661 * cgen-par.h (fn_df_write): Mode of data is DF.
2662 (sim_queue_fn_df_write): Mode of data is DF.
2663 * cgen-par.c (sim_queue_fn_df_write): Mode of data is DF.
2665 1999-11-22 Dave Brolley <brolley@cygnus.com>
2667 * cgen-trace.c (SIZE_TRACE_BUF): Inxrease size of trace buffer.
2668 * cgen-par.h (CGEN_WRITE_QUEUE_SIZE): Increase size of queue.
2670 1999-11-04 Dave Brolley <brolley@cygnus.com>
2672 * cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_XI_WRITE and
2673 CGEN_MEM_XI_WRITE members.
2674 (CGEN_WRITE_QUEUE_ELEMENT): Add fn_xi_write and mem_xi_write members.
2675 (sim_queue_fn_xi_write): New function.
2676 (sim_queue_mem_xi_write): New function.
2678 * cgen-par.c (sim_queue_fn_xi_write): New function.
2679 (sim_queue_mem_xi_write): New function.
2680 (cgen_write_queue_element_execute): Handle CGEN_FN_XI_WRITE and
2683 1999-10-22 Dave Brolley <brolley@cygnus.com>
2685 * cgen-par.h (insn_address): New field in CGEN_WRITE_QUEUE_ELEMENT.
2686 (CGEN_WRITE_QUEUE_ELEMENT_IADDR): New macro.
2687 * cgen-par.c: Set insn_address for each queued write. Get pc from
2688 cpu when executing queued writes.
2690 1999-10-19 Dave Brolley <brolley@cygnus.com>
2692 * cgen-par.h (sim_queue_fn_pc_write): New function.
2693 (CGEN_FN_PC_WRITE): New enumerator.
2694 (fn_pc_write): New union member.
2695 * cgen-par.c (sim_queue_fn_pc_write): New function.
2696 (cgen_write_queue_element_execute): Handle CGEN_FN_PC_WRITE.
2698 1999-10-18 Dave Brolley <brolley@cygnus.com>
2700 * cgen-par.h (CGEN_MEM_DI_WRITE): New enumerator.
2701 (CGEN_MEM_DF_WRITE): New enumerator.
2702 (mem_di_write): New union member.
2703 (mem_df_write): New union member.
2704 * cgen-par.c (sim_queue_mem_di_write): New function.
2705 (sim_queue_mem_df_write): New function.
2706 (cgen_write_queue_element_execute): Handle CGEN_MEM_DI_WRITE and
2708 * cgen-accfp.c (divsf): Check for division errors.
2710 1999-10-14 Doug Evans <devans@casey.cygnus.com>
2712 * cgen-engine.h (EXTRACT_INT,EXTRACT_UINT): Delete.
2714 1999-10-07 Dave Brolley <brolley@cygnus.com>
2716 * cgen-par.h (CGEN_FN_HI_WRITE): New enumerator.
2717 (fn_hi_write): New union member.
2718 (sim_queue_fn_hi_write): New function.
2719 * cgen-par.c (sim_queue_fn_hi_write): New function.
2720 (cgen_write_queue_element_execute): Handle CGEN_FN_HI_WRITE.
2722 1999-09-29 Doug Evans <devans@casey.cygnus.com>
2724 * cgen-defs.h (sim_engine_invalid_insn): New arg `vpc'.
2725 Change type of result to SEM_PC.
2727 Wed Sep 29 14:43:57 1999 Dave Brolley <brolley@cygnus.com>
2729 * cgen-defs.h (sim_engine_invalid_insn): Now returns PC.
2731 1999-09-25 Doug Evans <devans@casey.cygnus.com>
2733 * cgen-ops.h (SUBWORD*): Delete cpu arg.
2734 (JOIN*): Delete cpu arg.
2736 Tue Sep 21 17:14:16 1999 Dave Brolley <brolley@cygnus.com>
2738 * genmloop.sh (@cpu@_scache_lookup): No longer takes last_insn_p
2740 (SET_LAST_INSN_P): Set last_insn_p flag in the scache element.
2742 Mon Sep 20 21:44:06 1999 Geoffrey Keating <geoffk@cygnus.com>
2744 * sim-fpu.c (i2fpu): Keep the guard bits sticky when converting
2747 Tue Feb 8 16:33:48 2000 Andrew Cagney <cagney@b1.cygnus.com>
2749 * run.c (main): Check the sim_stop_reason and only halt simulation
2750 when a valid stop condition is identified.
2752 Wed Sep 15 14:12:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
2754 * hw-tree.c, hw-properties.c, hw-instances.c: Include "sim-io.h".
2756 Tue Sep 14 14:15:47 1999 Dave Brolley <brolley@cygnus.com>
2758 * cgen-par.h (CGEN_BI_WRITE): New enumerator.
2759 (bi_write): New union element.
2760 (sim_queue_bi_write): New function.
2761 * cgen-par.c (sim_queue_bi_write): New function.
2762 (cgen_write_queue_element_execute): Handle CGEN_BI_WRITE.
2764 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
2766 * configure: Regenerated to track ../common/aclocal.m4 changes.
2768 * aclocal.m4 (WERROR_CFLAGS, WARN_CFLAGS): Merge from
2769 ../gdb/configure.in.
2770 * Make-common.in (WERROR_CFLAGS, WARN_CFLAGS): Define.
2771 (SIM_WERROR_CFLAGS, SIM_WARN_CFLAGS): Define.
2772 (SIM_WARNINGS): Delete
2773 (CONFIG_CFLAGS): Update.
2775 Tue Aug 31 16:01:42 1999 Dave Brolley <brolley@cygnus.com>
2777 * cgen-par.c: New file.
2778 * cgen-par.h: New file.
2779 * cgen-sim.h (cgen-par.h): #include it.
2780 * cgen-cpu.h (write_queue): New field.
2781 (CPU_WRITE_QUEUE): New access macro.
2782 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-par.h.
2783 (cgen-par.o): New target.
2785 1999-08-28 Doug Evans <devans@casey.cygnus.com>
2787 * cgen-types.h (mode_type,MODE_VOID): Renamed from MODE_VM.
2788 * cgen-utils.c (mode_names): Update.
2790 1999-08-20 Doug Evans <devans@casey.cygnus.com>
2792 * genmloop.sh: New args -parallel-generic-write, -parallel-only.
2793 * cgen-engine.h (SEMANTIC_FN): Don't use version with PAREXEC
2794 buffer arg if WITH_PARALLEL_GENWRITE.
2795 (struct insn_sem): Handle WITH_PARALLEL_GENWRITE.
2796 (struct idesc): Ditto.
2798 Wed Aug 18 18:17:28 1999 Doug Evans <devans@canuck.cygnus.com>
2800 * sim-model.c (model_option_handler): Add \n to error message.
2802 1999-08-08 Doug Evans <devans@casey.cygnus.com>
2804 * cgen-engine.h (SEM_FN_NAME,SEMF_FN_NAME): Delete.
2805 (insn_sem): Rewrite.
2806 (sem_fn_desc): New struct.
2808 * genmloop.sh (scache case,@cpu@_scache_lookup): Profile scache hit,
2810 (scache case): Split into non-parallel/parallel versions.
2811 (@cpu@_engine_run_{full,fast}): Call @cpu@_{sem,semf}_init_idesc_table
2812 if not use semantic switch version.
2814 1999-08-04 Doug Evans <devans@casey.cygnus.com>
2816 * cgen-defs.h (SEM_BRANCH_TYPE): New enum.
2817 * cgen-engine.h (SEM_BRANCH_UNTAKEN,SEM_BRANCH_UNCACHEABLE): Delete.
2818 (SEM_BRANCH_INIT_EXTRACT): Delete.
2819 (SEM_BRANCH_INIT): Replace npc_ptr with br_type.
2820 (SEM_BRANCH_FINI): Ditto.
2821 (SEM_BRANCH_VIA_ADDR): Ditto.
2822 (SEM_BRANCH_VIA_CACHE): Ditto. Delete cachvarptr arg.
2823 (SEM_BRANCH_ADDR_CACHE): Delete.
2824 (SEM_SKIP_COMPILE,SEM_SKIP_INSN): New macros.
2825 * cgen-scache.h (cpu_scache): Replace member pbb_pr_npc_ptr with
2827 * genmloop.sh (eng.hin): Update prototype of ${cpu}_pbb_cti_chain.
2828 (@cpu@_pbb_begin): Initialize branch_target.
2829 (@cpu@_pbb_cti_chain): Replace arg new_vpc_ptr with br_type.
2830 (@cpu@_engine_run_full): Replace local pbb_br_npc_ptr with
2832 (@cpu@_engine_run_fast): Ditto.
2834 Fri Jul 16 14:47:53 1999 Dave Brolley <brolley@cygnus.com>
2836 * cgen-utils.c (RORSI): New function.
2837 (ROLSI): New function.
2839 1999-07-14 Doug Evans <devans@casey.cygnus.com>
2841 * Makefile.in (TAGS): Tweak TAGS regex.
2842 * cgen-mem.h (*): Add TAGS markers.
2844 Sun Jul 11 23:47:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
2846 * sim-resume.c (sim_resume): Ensure that the siggnal [sic] is only
2847 passed in when sim_resume is first entered - don't re-pass it
2850 Sun Jul 11 23:34:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
2852 * sim-options.c (standard_option_handler): Add OPTION_LOAD_VMA and
2853 OPTION_LOAD_LMA but only when is defined.
2854 (standard_options): When SIM_HANDLES_LMA is defined include
2855 options --load-lma and --load-vma.
2856 (standard_install): Initialize STATE_LOAD_AT_LMA_P.
2858 * sim-base.h (STATE_LOAD_AT_LMA_P): Define.
2859 (struct sim_state_base): Add load_at_lma_p.
2860 * sim-hload.c (sim_load): Replace SIM_HANDLES_LMA with
2861 STATE_LOAD_AT_LMA_P.
2863 Sun Jul 11 12:03:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
2865 * nrun.c (main): Re-format loop gnu style.
2867 Wed Jul 7 19:56:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
2869 * dv-sockser.c (connected_p): Initialize addrlen.
2871 1999-07-06 Dave Brolley <brolley@cygnus.com>
2873 * cgen-accfp.c (floatsidf): New function.
2874 (fixdfsi): New function.
2876 1999-07-06 Doug Evans <devans@casey.cygnus.com>
2878 * sim-model.c (sim_model_init): Issue error if machine is unsupported.
2880 1999-07-05 Doug Evans <devans@casey.cygnus.com>
2882 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-fpu.h.
2883 (cgen-fpu.o,cgen-accfp.o): Add rules for.
2884 * cgen-fpu.c: New file.
2885 * cgen-fpu.h: New file.
2886 * cgen-accfp.c: New file.
2887 * cgen-cpu.h (CGEN_CPU): New member fpu.
2888 * cgen-mem.h: Redo fp support.
2889 * cgen-ops.h: Delete k&r support. Redo fp support.
2890 * cgen-sim.h: Include cgen-fpu.h.
2891 * cgen-types.h (SF,DF,XF,TF): Moved to cgen-fpu.h.
2893 1999-06-23 Doug Evans <devans@casey.cygnus.com>
2895 * cgen-engine.h (TARGET_SEM_BRANCH_FINI): Remove cruft at end of
2897 * genmloop.sh (@cpu@_scache_lookup): Delete unused local var.
2898 (@cpu@_pbb_cti_chain): Minor clean up.
2900 1999-05-08 Felix Lee <flee@cygnus.com>
2902 * aclocal.m4: Use AC_EXEEXT instead of AM_EXEEXT. Delete defn of
2903 AM_CYGWIN32 and AM_EXEEXT.
2904 * configure: Regenerate.
2906 Fri Apr 16 16:43:22 1999 Doug Evans <devans@charmed.cygnus.com>
2908 * sim-core.c (device_error,device_io_read_buffer,
2909 device_io_write_buffer): Delete decls.
2910 * sim-core.h: Put them here.
2912 * sim-core.c (sim_core_read_buffer): Pass sd to device_io_read_buffer.
2913 (sim_core_write_buffer): Pass sd to device_io_write_buffer.
2914 * sim-n-core.h (sim_core_read_aligned_N): Ditto.
2915 (sim_core_write_aligned_N): Ditto.
2917 1999-04-14 Stephane Carrez <stcarrez@worldnet.fr>
2919 * sim-memopt.c (sim_memory_uninstall): Don't look into
2922 1999-04-14 Doug Evans <devans@casey.cygnus.com>
2924 * cgen-utils.scm (virtual_insn_entries): Update attribute definition.
2926 1999-04-13 Doug Evans <devans@casey.cygnus.com>
2928 * sim-core.c (sim_core_read_buffer): Handle NULL cpu when WITH_DEVICES.
2929 (sim_core_write_buffer): Ditto.
2931 1999-04-02 Keith Seitz <keiths@cygnus.com>
2933 * sim-io.c (sim_io_poll_quit): Only call the poll_quit callback
2934 after the interval counter has expired.
2935 (POLL_QUIT_INTERVAL): Define. Used to tweak the frequency of
2936 poll_quit callbacks. May be overridden by Makefile.
2937 (poll_quit_counter): New global.
2938 * sim-events.c: Remove all mentions of ui_loop_hook. The
2939 host callback "poll_quit" will serve the purpose.
2940 * run.c: Add definition of ui_loop_hook when NEED_UI_LOOP_HOOK
2942 * nrun.c: Remove declaration of ui_loop_hook.
2944 Wed Mar 31 18:55:41 1999 Doug Evans <devans@canuck.cygnus.com>
2946 * cgen-run.c (sim_resume): Don't tell main loop to run "forever"
2947 if being used by gdb.
2949 1999-03-22 Doug Evans <devans@casey.cygnus.com>
2951 * cgen-types.h (XF,TF): Tweak.
2952 * cgen-ops.h: Redo inline support. Delete DI_FN_SUPPORT,
2954 (SUBWORD*,JOIN*): Define.
2955 * cgen-trace.c (sim_cgen_disassemble_insn): Update, base_insn_bitsize
2956 moved into cpu descriptor.
2957 * sim-model.h (MACH): New member `num'.
2959 1999-02-09 Doug Evans <devans@casey.cygnus.com>
2961 * cgen-cpu.h (CGEN_DISASSEMBLER): New type.
2962 (CGEN_CPU): Member opcode renamed to cpu_desc.
2963 New members get_idata,disassembler.
2964 * cgen-defs.h (CGEN_INSN_VIRTUAL_P): CGEN_INSN_ATTR renamed to
2965 CGEN_INSN_ATTR_VALUE.
2966 (CGEN_STATE): Delete member opcode_table.
2967 (sim_disassemble_insn): Delete decl.
2968 * cgen-engine.h (struct insn_sem): Moved to here from <cpu>-decode.c.
2969 (struct idesc): Moved to here from <cpu>-decode.h.
2970 * cgen-run.c (prime_cpu): Call prepare_run callback.
2971 * cgen-trace.h (SFILE): New type.
2972 (sim_disasm_sprintf): Declare.
2973 (sim_disasm_read_memory,sim_disasm_perror_memory): Declare.
2974 (sim_cgen_disassemble_insn): Declare.
2975 * cgen-trace.c: Include errno.h,dis-asm.h. Don't include cpu-opc.h.
2976 (insn_fields): Delete.
2977 (trace_insn_fini): STATE_OPCODE_TABLE (sd) replaced with
2979 (trace_insn): Call CPU_DISASSEMBLER hook.
2980 (sim_disasm_sprintf): New function.
2981 (sim_disasm_read_memory): New function.
2982 (sim_disasm_perror_memory): New function.
2983 (sim_cgen_disassemble_insn): New function.
2984 * cgen-utils.c: Don't include cpu-opc.h.
2985 (virtual_insn_entries): New static local.
2986 (cgen_virtual_insn_table): Renamed from cgen_virtual_opcode_table.
2987 (cgen_insn_name): Rewrite.
2988 (disasm_sprintf,sim_disassemble_insn): Moved to cgen-trace.c.
2989 * cgen.sh (desc): New file generator handler.
2990 * genmloop.sh: -parallel changed to -parallel-read/-parallel-write.
2991 Define WITH_PARALLEL_READ/WITH_PARALLEL_WRITE appropriately.
2992 Don't include cpu-opc.h,cpu-sim.h.
2993 * sim-model.c (model_set): Delete SIM_DESC arg.
2994 (sim_model_set): Update.
2995 * sim-model.h (MACH): New member prepare_run.
2997 1999-01-28 Frank Ch. Eigler <fche@cygnus.com>
2999 * sim-memopt.c (memory_option_handler): Avoid memset() calls
3000 if redundant with allocator functions.
3002 Wed Jan 27 17:19:09 1999 Doug Evans <devans@canuck.cygnus.com>
3004 * cgen-engine.h (EXTRACT_LSB0_{INT,UINT}): Fix.
3006 * sim-profile.h: Make like sim-trace.h.
3007 (PROFILE_USEFUL_MASK): New macro.
3008 * sim-profile.c (profile_options): Make like trace_options, allow
3009 optional on|off arg where applicable.
3010 (set_profile_option_mask): New function.
3011 (sim_profile_set_option): New function.
3012 (profile_option_handler): Simplify.
3013 Have -p only enable selected things, not everything.
3014 Add missing break to OPTION_PROFILE_PC_RANGE.
3015 * cgen-scache.c (scache_options): Allow optional on|off arg to
3017 (scache_option_handler): Use sim_profile_set_option.
3019 1999-01-26 Frank Ch. Eigler <fche@cygnus.com>
3021 * sim-memopt.c (memory_options): Add MEMORY_FILL option.
3022 (memory_option_handler): Implement MEMORY_FILL option. Make
3023 MEMORY_CLEAR an alias for MEMORY_FILL=0.
3024 (parse_ulong_value): New function.
3025 (do_memopt_add): Allocate all buffers. Optionally fill them.
3027 1999-01-15 Richard Henderson <rth@cygnus.com>
3029 * hw-events.c (hw_event_queue_schedule): _vtracef takes a
3030 va_list, not an integer.
3031 * sim-events.c (sim_events_schedule): Likewise.
3033 * sim-types.h (UNSIGNED32, UNSIGNED64): Properly cast to
3034 the appropriate type.
3036 1999-01-14 Doug Evans <devans@casey.cygnus.com>
3038 * cgen-defs.h (PCADDR,CIA): Define in terms of IADDR.
3039 (sim_disassemble_insn): Update prototype.
3040 (sim_engine_invalid_insn): Ditto.
3041 * cgen-engine.h (SEMANTIC_FN): Add !WITH_SCACHE version.
3042 (SEM_BRANCH_INIT): PCADDR->IADDR.
3043 (SEM_NBRANCH_FINI): New macro for !WITH_SCACHE case.
3044 * cgen-scache.c (scache_lookup,scache_lookup_or_alloc): PCADDR->IADDR.
3045 * cgen-scache.h (*): Ditto.
3046 * cgen-trace.c (*): Ditto.
3047 * cgen-trace.h (*): Ditto.
3048 * cgen-utils.c (*): Ditto.
3049 * cgen-types.h (integer modes): Use signedNN/unsignedNN types.
3051 * genmloop.sh (@cpu@_fill_argbuf): Add !WITH_SCACHE support.
3052 (simple engine framework): Rewrite.
3053 * sim-module.c (modules): Install model module sooner (and in
3054 particular before the profile module).
3056 1999-01-12 Doug Evans <devans@casey.cygnus.com>
3058 * sim-model.h (sim_mach_lookup_bfd_name): Add prototype.
3059 * sim-model.c (sim_mach_lookup_bfd_name): New function.
3060 (sim_model_init): Call it.
3062 * cgen-trace.c (trace_insn): Pass pc to trace_prefix for virtual insns.
3064 1999-01-05 Doug Evans <devans@casey.cygnus.com>
3066 * Make-common.in (CGEN_INCLUDE_DEPS): Add cgen-defs.h, cgen-engine.h.
3067 * cgen-engine.h (SEM_BRANCH_FINI): New arg pcvar, all uses updated.
3068 (SEM_BRANCH_INIT_EXTRACT): New macro.
3069 (SEM_BRANCH_INIT): Add taken_p.
3070 (TARGET_SEM_BRANCH_FINI): Provide default definition.
3071 (SEM_BRANCH_FINI): Use it.
3073 * cgen-run.c (sim_resume): Handle tracing of last insn.
3074 * cgen-scache.h (WITH_SCACHE): Define as 0 if not defined.
3075 * cgen-trace.c (current_abuf): New static global.
3076 (trace_insn_init): Initialize it.
3077 (trace_insn_fini): Use it.
3078 (trace_insn): Set it.
3079 * cgen.sh (arch case): Pass -m ${mach} to cgen.
3080 * genmloop.sh (@cpu@_emit_before): Only define if WITH_SCACHE_PBB.
3081 (@cpu@_emit_after): Ditto.
3082 (simple @cpu@_engine_run_full): New local `pc'. Initialize semantic
3083 labels if WITH_SEM_SWITCH_FULL.
3084 * sim-model.c: Include bfd.h.
3085 (sim_model_init): New function.
3086 (sim_model_install): Record init fn.
3087 * sim-model.h (MACH): New member bfd_name.
3088 * sim-module.c (modules): Initialize model before scache.
3090 1998-12-24 Frank Ch. Eigler <fche@cygnus.com>
3092 * dv-sockser.c (DEFAULT_TIMEOUT): Increase to 1 ms.
3094 * nrun.c (main): Remain in simulation loop for traps and
3095 exceptions when in operating environment mode.
3096 (ui_loop_hook): New stub hook for standalone use.
3097 * sim-events.c (sim_events_process): Call ui_loop_hook
3098 periodically on CYGWIN host.
3100 * sim-reason.c (sim_stop_reason): Return host signal numbers
3101 to gdb on sim_stopped and sim_signalled cases.
3102 * sim-engine.c (sim_engine_halt): Call SIM_CPU_EXCEPTION_SUSPEND
3103 hook just before longjmp.
3104 * sim-resume.c (sim_resume): Call SIM_CPU_EXCEPTION_RESUME
3105 hook just before sim_engine_run.
3107 * sim-n-core.h (sim_core_trace_M): Allay const warning.
3108 * sim-trace.h (trace_generic): Ditto.
3109 * sim-trace.c (trace_generic): Ditto.
3111 1998-12-14 Doug Evans <devans@casey.cygnus.com>
3113 * Make-common.in (SIM_MAIN_DEPS): New var.
3114 (CGEN_MAIN_CPU_DEPS): New var.
3115 * aclocal.m4: Add --enable-cgen-maint option.
3116 * cgen-mem.h (GETMEM*): New arg `pc'. Pass to sim_core routine.
3118 (GETIMEM*): Pass pc value to sim_core routine.
3120 Fri Dec 11 16:58:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
3122 * hw-handles.c (hw_handle_add_ihandle, hw_handle_add_phandle):
3123 Compare with ZERO not NULL.
3125 Thu Dec 10 14:14:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
3127 * hw-properties.c, hw-instances.c, hw-tree.c: Include
3130 1998-12-09 Doug Evans <devans@casey.cygnus.com>
3132 * sim-arange.c: Include libiberty.h, and stdlib.h if present.
3133 * sim-trace.c: Include stdlib.h if present.
3134 * dv-sockser.c: Include unistd.h if present.
3135 (dv_sockser_init): Add missing arg to call to sim_io_eprintf.
3136 * cgen-scache.c (scache_flush): Delete unused locals i,sc.
3138 1998-12-08 James E Wilson <wilson@wilson-pc.cygnus.com>
3140 * gennltvals.sh: Add i960.
3141 * nltvals.def: Rebuild.
3143 1998-12-04 Doug Evans <devans@casey.cygnus.com>
3145 * cgen-defs.h: New file, old cgen-sim.h.
3146 * cgen-sim.h: Simple header that includes others.
3147 * sim-arange.c: New file.
3148 * sim-arange.h: New file.
3149 * sim-basics.h: Include it.
3150 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-arange.o.
3151 (sim-arange.o): Add rule for.
3152 * sim-cpu.h (sim_cpu_msg_prefix): Add prototype.
3153 (sim_io_eprintf_cpu): Add prototype.
3154 * sim-inline.h (HAVE_INLINE): Define if GNUC.
3155 (INLINE2): New macro.
3156 (EXTERN_INLINE): New macro.
3157 * sim-module.c (sim_post_argv_init): Initialize cpu backlink
3158 before calling module init fns.
3159 * sim-profile.c (OPTION_PROFILE_*): Move into enum.
3160 (profile_init): New function.
3161 (profile_options): New option --profile-range.
3162 (profile_option_handler): Handle --profile-range.
3163 (profile_print_insn): Qualify address range specific section titles.
3164 (profile_print_addr_ranges): New function.
3165 (profile_info): Print address ranges if specified.
3166 (profile_install): Set profile_init init fn.
3167 * sim-profile.h (PROFILE_DATA): New member `range'.
3168 * sim-trace.c (trace_init): New function.
3169 (trace_options): New option --trace-range.
3170 (trace_option_handler): Handle --trace-range.
3171 (trace_install): Set trace_init init fn.
3172 * sim-trace.h (TRACE_DATA): New member `range'.
3173 * sim-utils.c (sim_cpu_msg_prefix): New function.
3174 (sim_io_eprintf_cpu): New function.
3175 * cgen-engine.h (PC_IN_TRACE_RANGE_P): New macro.
3176 (PC_IN_PROFILE_RANGE_P): New macro.
3177 * cgen-trace.c (trace_insn_init): Set current_insn to NULL.
3178 (trace_insn_fini): New arg abuf. All callers updated.
3179 Exit early if trace_insn not called. Check ARGBUF_PROFILE_P before
3180 printing cycle counts.
3181 * cgen-trace.h (trace_insn_fini): Update prototype.
3182 (TRACE_RESULT_P): New macro.
3183 (TRACE_INSN_INIT,TRACE_INSN_FINI): New arg abuf. All callers updated.
3184 (TRACE_INSN): Check ARGBUF_TRACE_P.
3185 (TRACE_EXTRACT,TRACE_RESULT): New arg abuf. All callers updated.
3186 * cgen-types.h (SIM_INLINE): Delete.
3187 (SIM_HAVE_MODEL,SIM_HAVE_ADDR_RANGE): Define.
3188 * cgen-utils.c: Don't include cgen-engine.h
3189 * genmloop.sh (@cpu@_fill_argbuf): New function.
3190 (@cpu@_fill_argbuf_tp): New function.
3191 (@cpu@_emit_before,@cpu@_emit_after): New functions.
3192 (@cpu@_pbb_begin): Prefix cti_sc,insn_count with '_'.
3193 (SET_CTI_VPC,SET_INSN_COUNT): Update.
3194 (@cpu@_pbb_before): Check ARGBUF_PROFILE_P before calling
3195 doing profiling. Update call to TRACE_INSN_INIT,TRACE_INSN_FINI.
3196 (@cpu@_pbb_after): Check ARGBUF_PROFILE_P before calling
3197 doing profiling. Update call to TRACE_INSN_FINI.
3199 * sim-memopt.c (sim_memory_uninstall): Result type is `void'.
3201 1998-12-03 Frank Ch. Eigler <fche@cygnus.com>
3203 * sim-memopt.c (sim_memory_uninstall): Deallocate all memory
3206 1998-12-01 Doug Evans <devans@casey.cygnus.com>
3208 * sim-inline.c (SIM_INLINE_P): Fix typo.
3210 1998-11-30 Doug Evans <devans@casey.cygnus.com>
3212 * cgen-utils.c (cgen_virtual_opcode_table): Update.
3214 Tue Nov 24 18:40:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
3216 * gennltvals.sh: Add v850 and d10v. Sort alphabetically.
3217 * nltvals.def: Re-generate.
3219 Mon Nov 23 13:28:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
3221 * sim-core.c (reverse_n, sim_core_uninstall, sim_core_init,
3222 sim_core_map_attach, sim_core_map_detach, next_event_queue,
3223 new_sim_core_mapping): Only define when EXTERN_SIM_CORE_P, pacify
3225 * sim-events.c (sim_events_uninstall, sim_events_suspend,
3226 sim_events_resume, sim_events_zalloc, insert_sim_event): Ditto.
3228 1998-11-22 Doug Evans <devans@tobor.to.cygnus.com>
3230 * genmloop.sh (${cpu}_pbb_chain): Watch for Ctrl-C's.
3231 (${cpu}_pbb_cti_chain): Ditto.
3233 1998-11-18 Doug Evans <devans@casey.cygnus.com>
3235 * Make-common.in (cgen-utils.o): Depend on cgen-engine.h.
3236 * cgen-engine.h (EXTRACT_[ML]SB0_{INT,UINT}): New macros.
3237 (EXTRACT_INT,EXTRACT_UINT): New macros.
3238 (SEM_SEM_ARG): New macro.
3239 (SEM_NEXT_VPC): New arg `pc'.
3240 * cgen-sim.h (EXTRACT_SIGNED,EXTRACT_UNSIGNED): Delete.
3241 (sim_disassemble_insn): Update prototype.
3242 * cgen-trace.c (current_insn,insn_fields): New static locals.
3243 (trace_insn): Set them.
3244 * cgen-utils.c: #include cgen-engine.h.
3245 (sim_disassemble_insn): New arg insn_fields.
3246 Handle variable length insns.
3247 * genmloop.sh: Only emit pbb decls if -pbb.
3248 (${cpu}_scache_lookup): New arg `vpc'.
3249 (scache support): Fetch pc before entering loop.
3251 * gennltvals.sh: Add fr30 support.
3252 * nltvals.def: Rebuild.
3254 Wed Nov 18 10:22:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
3256 * sim-types.h: Re-do type system so that GCC's attribute and mode
3257 are used to specify types. Handle case of ALPHA.
3259 1998-11-13 Frank Ch. Eigler <fche@elastic.org>
3261 * aclocal.m4: Add tests for dlopen family.
3262 * config.in: Regenerated.
3264 Wed Nov 11 14:02:25 1998 Doug Evans <devans@canuck.cygnus.com>
3266 * sim-hload.c (sim_load): Pass `prog_name' to sim_load_file, not NULL.
3268 Wed Nov 4 23:51:19 1998 Doug Evans <devans@seba.cygnus.com>
3270 * genmloop.sh (eng.hin): Rename HAVE_PARALLEL_EXEC to
3271 HAVE_PARALLEL_INSNS, define as 0 or 1. Emit decls of fns in mloop.cin.
3272 * cgen-engine.h: Typedefs of IADDR,CIA,SEM_ARG,SEM_PC moved ...
3273 * cgen-sim.h: ... to here.
3275 Wed Oct 28 12:00:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
3277 * aclocal.m4 (enable-build-warnings): Replace
3278 enable-sim-warnings. Extend =LIST syntax so that prepend and
3279 append of options is possible. Drop -Werror, add
3280 -Wstrict-prototypes for GDB compatibility.
3281 * Make-common.in (SIM_WARNINGS): Update.
3283 Mon Oct 19 13:56:32 1998 Doug Evans <devans@seba.cygnus.com>
3285 * Make-common.in (CGEN_INCLUDE_DEPS): Define.
3286 (sim-core.o): Delete duplicate dependence on $(SIM_EXTRA_DEPS).
3287 (sim-cpu.o,sim-endian.o,sim-hw.o): Ditto.
3288 (cgen-run.o,cgen-scache.o,cgen-trace.o,cgen-utils.o): Delete
3289 explicit cgen header dependencies, require SIM_EXTRA_DEPS to include
3291 * cgen-cpu.h: New file.
3292 * cgen-engine.h: New file.
3293 * cgen-scache.h: New file.
3294 * cgen-sim.h: Delete portions moved to new files.
3295 * genmloop.sh: Generate two files eng.hin,mloop.cin explicitly,
3296 rather than sending result to stdout.
3298 Fri Oct 9 14:20:22 1998 Doug Evans <devans@seba.cygnus.com>
3300 * Make-common.in (sim-reg.o): New rule.
3301 (cgen-run.o): New rule.
3302 * cgen-ops.h: Delete many BI macros. Change all UBI -> BI.
3303 * cgen-run.c (prime_cpu): New function.
3304 * cgen-scache.c: Add pseudo-basic-block (pbb) scaching support.
3305 (scache_option_handler, case OPTION_PROFILE_SCACHE): Handle explicitly
3307 (scache_flush_cpu,scache_lookup,scache_lookup_or_alloc): New fns.
3308 * cgen-sim.h (CGEN_INSN_VIRTUAL_TYPE): New enum.
3309 (CGEN_INSN_VIRTUAL_P): New macro.
3310 (SEM_PC): New typedef.
3311 (SEMANTIC_FN): Change type of result to SEM_PC.
3312 (SEM_SET_FULL_CODE,SEM_SET_FAST_CODE,SEM_SET_CODE): New macros.
3313 (IDESC_CTI_P,IDESC_SKIP_P): New macros.
3314 (SCACHE_MAP): New typedef.
3315 (CPU_SCACHE): Add pbb support.
3316 (scace_lookup,scache_lookup_or_alloc,scache_flush_cpu): Declare.
3317 (SEM_BRANCH_INIT_EXTRACT,SEM_BRANCH_INIT,SEM_BRANCH_FINI): New macros.
3318 (CGEN_CPU): New members running_p,insn_count,{fast,full}_engine_fn,
3320 (INSN_NAME): Delete.
3321 (cgen_insn_name): Declare.
3322 (sim_engine_invalid_insn): Renamed from sim_engine_illegal_insn.
3323 * cgen-trace.c (trace_buf): Shrink from 1024 to 256 bytes.
3324 (first_insn_p): Make static.
3325 (trace_insn): Handle virtual insns specially.
3326 (cgen_trace_printf): Ensure we haven't overflowed the buffer.
3327 * cgen-types.h (UBI): Delete.
3328 (MODE_TYPE): New enum.
3329 (HOSTINT,HOSTUINT,HOSTPTR): Delete.
3330 * cgen-utils.c (mode_names): Delete UBI. Add INT,UINT,PTR.
3331 (cgen_virtual_opcode_table): New global.
3332 (cgen_insn_name): New function.
3333 (sim_disassemble_insn): Ignore virtual insns.
3334 * genmloop.sh: Delete top level loop generation. Add pbb support.
3335 * sim-cpu.h (CPU_INSN_NAME_FN): New typedef.
3336 (sim_cpu_base): New members max_insns,insn_name,model_data.
3337 (CPU_PC_GET,CPU_PC_SET): New macros.
3338 (sim_pc_get,sim_pc_set): Declare.
3339 * sim-model.c (model_set): Call model init fn.
3340 * sim-model.h (MODEL_FN): New typedef.
3341 (INSN_TIMING): New member model_fn.
3342 (MODEL): New members num,init.
3343 * sim-profile.c (sim_profile_print_bar): Renamed from print_bar.
3344 All callers updated.
3345 (profile_insn_init): New fn.
3346 (profile_print_insn): Update, INSN_NAME -> CPU_INSN_NAME.
3347 Exit early if insn profiling not supported.
3348 (profile_print_memory): Update, MAX_MODES -> MODE_TARGET_MAX.
3349 (profile_install): Record profile_insn_init as init fn.
3350 (profile_uninstall): Free PROFILE_INSN_COUNT if non-null.
3351 * sim-profile.h: Update, MAX_MODES -> MODE_TARGET_MAX.
3352 (PROFILE_DATA): Delete member exec_time.
3353 Change insn_count to pointer to array, rather than the array.
3354 (sim_profile_print_bar): Declare.
3356 Wed Oct 7 16:56:42 1998 Doug Evans <devans@seba.cygnus.com>
3358 * cgen-run.c: New file.
3359 * sim-reg.c: New file.
3361 Mon Sep 14 10:58:19 1998 Frank Ch. Eigler <fche@cygnus.com>
3363 * aclocal.m4: Add checks for -lsocket and -lnsl.
3365 * dv-sockser.c (dv_sockser_init): Use SO_REUSEADDR to
3366 allow local port reuse on listening socket.
3368 Tue Sep 1 15:36:52 1998 Frank Ch. Eigler <fche@cygnus.com>
3370 * sim-config.h: Remove reference to linux kernel header.
3372 Tue Aug 25 12:45:27 1998 Frank Ch. Eigler <fche@cygnus.com>
3374 * dv-sockser.c (sockser_addr): Make variable non-static.
3376 Mon Aug 24 11:47:37 1998 Joyce Janczyn <janczyn@cygnus.com>
3378 * sim-hw.{c,h} (sim_hw_parse): Return struct hw pointer.
3380 Tue Aug 11 18:12:19 1998 Doug Evans <devans@canuck.cygnus.com>
3382 * sim-events.c (sim_events_elapsed_time): Fix calculation.
3384 Tue Aug 4 20:36:46 1998 Jeff Holcomb <jeffh@cygnus.com>
3386 * Make-common.in (install-common): Add $(EXEEXT) when installing
3389 Mon Aug 3 11:46:01 1998 Doug Evans <devans@seba.cygnus.com>
3391 * cgen-sim.h (cgen_state): New member opcode_table.
3392 * cgen-utils.c (sim_disassemble_insn): Use it.
3394 Fri Jul 24 10:14:18 1998 Doug Evans <devans@canuck.cygnus.com>
3396 * cgen-mem.h (DECLARE_SETT): Fix return type.
3397 * cgen-sim.h (sim_engine_illegal_insn): Declare.
3398 * cgen-scache.c: Include stdlib.h.
3399 * cgen-trace.c (trace_extract): Use %lx for PCADDR.
3400 * sim-model.c (model_option_handler): Remove unused variable `n'.
3402 Tue Jul 21 16:27:43 1998 Doug Evans <devans@seba.cygnus.com>
3404 * cgen-utils.c: Include bfd.h.
3405 (sim_disassemble_insn): Update call to CGEN_EXTRACT_FN.
3407 Wed Jul 8 18:24:10 1998 Jeffrey A Law (law@cygnus.com)
3409 * sim-bits.h (EXTEND24): Fix typo.
3411 Wed Jul 8 17:41:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
3413 * sim-events.c (ETRACE_P): New macro.
3414 (struct _sim_event): Add member trace.
3415 (sim_events_free): Reclaim trace message.
3417 * sim-events.c, sim-events.h (sim_events_schedule_vtracef,
3418 sim_events_schedule_tracef): New functions, include printf trace
3419 information in argument list. If tracing, store asprintf'd trace
3420 message in sim_event.
3422 * hw-events.c, hw-events.h (hw_event_queue_schedule_tracef,
3423 hw_event_queue_schedule_vtracef): New functions, mimic
3426 Mon Jul 6 15:51:14 1998 Jeffrey A Law (law@cygnus.com)
3428 * sim-bits.h (EXTEND24): Define.
3430 Thu Jul 2 17:13:25 1998 Doug Evans <devans@seba.cygnus.com>
3432 * cgen-sim.h (CPU_SCACHE): Make size unsigned.
3433 (CPU_SCACHE_HASH_MASK): New macro.
3434 (SCACHE_HASH_PC): Rewrite.
3435 * genmloop.sh (engine_resume_{full,fast}): Move some of hash
3436 computation out of main loop.
3438 Wed Jul 1 16:44:12 1998 Doug Evans <devans@seba.cygnus.com>
3440 * cgen-sim.h (RECORD_IADDR): Delete.
3441 * cgen-types.h (HOSTINT,HOSTUINT,HOSTPTR): New types.
3442 * genmloop.sh (engine_resume_{full,fast}): Delete icount.
3444 Wed Jun 17 12:25:08 1998 Mark Alexander <marka@cygnus.com>
3446 * gennltvals.def (mn10200): Add entry.
3447 * nltvals.def: Regenerate with MN10200 additions.
3449 Wed Jun 17 13:18:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
3451 * sim-inline.h (EXTERN_*): Replace with EXTERN_*_P. Correct
3452 documentation on how it works.
3454 * sim-core.h, sim-core.c (sim_core_install, sim_core_attach,
3455 sim_core_detach, sim_core_read_buffer, sim_core_write_buffer,
3456 sim_core_set_xor, sim_core_xor_read_buffer,
3457 sim_core_xor_write_buffer): Update.
3459 * sim-events.h, sim-events.c (sim_events_install,
3460 sim_events_watch_clock, sim_events_schedule_after_signal,
3461 sim_events_schedule, sim_events_watch_sim, sim_events_watch_core,
3462 sim_events_deschedule): Update.
3464 * sim-fpu.h, sim-fpu.c (sim_fpu_zero, sim_fpu_one, sim_fpu_two,
3465 sim_fpu_max32, sim_fpu_max64): Update.
3467 Sat Jun 13 07:45:38 1998 Doug Evans <devans@fallis.cygnus.com>
3469 * cgen-trace.c (trace_insn_fini): Redo cycle handling.
3470 * sim-profile.h (PROFILE_DATA): Rename cycle handling members.
3471 * sim-profile.c (profile_print_model): Update.
3473 Fri Jun 12 18:35:07 1998 Doug Evans <devans@seba.cygnus.com>
3475 * gennltvals.def (m32r): Use common syscall.h now.
3476 (mn10300): Add entry.
3477 * nltvals.def: Regenerate.
3479 * sim-engine.c (sim_engine_get_run_state): New function.
3480 * sim-engine.h (sim_engine_get_run_state): Declare it.
3482 Thu Jun 11 00:50:03 1998 Doug Evans <devans@seba.cygnus.com>
3484 * sim-core.h (SIM_CORE_SIGNAL_FN): New typedef.
3485 * sim-core.c (sim_core_signal): Make extern, always define.
3487 Wed Jun 10 16:02:29 1998 Doug Evans <devans@seba.cygnus.com>
3489 * Make-common.in (CGEN_FLAGS_TO_PASS): New variable.
3490 * cgen-ops.h (ANDIF): New macro.
3491 (ANDIF[BQHSD]I): Delete.
3493 Thu Jun 4 13:53:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
3495 * hw-events.c (create_hw_event, delete_hw_event): Delete.
3496 (hw_event_queue_schedule, hw_event_queue_deschedule,
3497 bounce_hw_event): Fix hw-event memory corruptions found by Joyce
3500 * hw-alloc.h (HW_NZALLOC): Define.
3502 * Make-common.in (test-hw-events): Add target for testing the
3505 Mon May 25 21:11:26 1998 Andrew Cagney <cagney@b1.cygnus.com>
3507 * Make-common.in (SIM_COMMON_HW_OBJS): Add hw-handles.o and
3509 hw-handles.c, hw-instances.c, hw-handles.h, hw-instances.h: New
3511 * hw-main.h: Include hw-handles.h, hw-instances.h.
3512 * hw-base.h ({create,delete}_hw_{handles,instances}_data): Declare
3513 * hw-base.c (hw_create, hw_delete): Call same.
3515 Mon May 25 18:55:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
3517 * dv-core.c: Include hw-main.h and sim-main.h.
3518 * dv-pal.c: Include hw-main.h and sim-io.h.
3519 * dv-glue.c: Include hw-main.h.
3521 * hw-main.h: New file. Move list of includes to here.
3522 * hw-base.h: From here.
3523 * Make-common.in (hw_base_headers): Rename to hw_main_headers.
3524 (hw-*.o, dv-*.o): Update.
3525 * hw-tree.c, hw-base.c, hw-properties.c, hw-ports.c, hw-device.c,
3526 hw-events.c, hw-alloc.c, sim-hw.c: Include hw-main.h instead of
3529 * hw-base.h (do_hw_attach_regs, do_hw_poll_read_method,
3530 do_hw_poll_read): Move declarations from here.
3531 * hw-main.h: To here.
3533 * hw-base.h (struct hw_device_descriptor, hw_finish_callback):
3535 * hw-main.h (struct hw_descriptor, hw_finish_method): To here,
3537 * Make-common.in (hw-config.h): Update
3538 * hw-base.c, dv-pal.c, dv-glue.c: Update
3540 * dv-glue.c, hw-device.h, hw-base.h, hw-ports.c: Rename
3541 `*_callback' to `*_method.
3543 Mon May 25 18:41:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
3545 * hw-base.h (set_*): Move set method macros from here.
3546 * hw-device.h: To here.
3548 Mon May 25 18:21:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
3550 * hw-base.h (create_hw_property_data, delete_hw_property_data):
3553 * hw-base.c (hw_create, hw_delete): Call
3554 * hw-properties.c (create_hw_property_data,
3555 delete_hw_property_data): Define.
3557 Mon May 25 17:40:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
3559 * hw-device.c, hw-properties.c: Include hw-base.h
3561 * hw-alloc.h, hw-alloc.c: New files. Move alloc code to here.
3562 * hw-device.c: From here.
3563 * hw-base.h: Include "hw-events.h".
3565 * hw-base.h (create_hw_alloc_data, delete_hw_alloc_data): Declare.
3566 * hw-base.c (hw_create, hw_delete): Call.
3567 * hw-alloc.c (create_hw_alloc_data, delete_hw_alloc_data): Define.
3569 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-alloc.o.
3570 (hw-alloc.o): New target.
3572 Mon May 25 17:14:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
3574 * hw-events.h, hw-events.c: New files. Move event code to here.
3575 * sim-hw.c: From here.
3576 * hw-base.h: Include "hw-events.h".
3577 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-events.o.
3578 (hw-events.o): New target.
3580 * hw-device.h (struct hw): Add struct hw_event_data events_of_hw.
3581 * hw-events.h (struct hw_event): Replace typedef hw_event.
3583 * hw-base.h (create_hw_event_data, delete_hw_event_data): Declare.
3584 * hw-base.c (hw_create, hw_delete): Call.
3585 * hw-events.c (create_hw_event_data, delete_hw_event_data): Define.
3589 Mon May 25 16:55:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
3591 * hw-base.c (panic_hw_port_event, empty_hw_ports): Move from here.
3592 * hw-ports.c: To here.
3594 * hw-base.h, hw-ports.c (create_hw_port_data,
3595 delete_hw_port_data): New functions.
3596 * hw-base.c (hw_delete, hw_create): Call same.
3598 * hw-base.h (set_hw_ports, set_hw_port_event): Move set functions
3600 * hw-ports.h: To here.
3602 Mon May 25 16:42:48 1998 Andrew Cagney <cagney@b1.cygnus.com>
3604 * hw-device.c (hw_ioctl), hw-device.h (hw_ioctl_callback): Drop
3605 PROCESSOR and CIA arguments.
3607 Fri May 22 12:16:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
3609 * aclocal.m4 (SIM_AC_OPTION_HW): Add enable / disable argument.
3610 Move common object files from here.
3611 * Make-common.in (SIM_COMMON_HW_OBJS): To here.
3613 Thu May 21 17:57:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
3615 * sim-hw.c: Include ctype.h.
3616 (do_hw_poll_read): Do not assume EAGAIN.
3618 Wed May 20 04:37:57 1998 Doug Evans <devans@seba.cygnus.com>
3620 * cgen-trace.c (first_insn_p): New static local.
3621 (trace_insn_init): Set it.
3622 (trace_insn_fini): Use TRACE_PREFIX.
3623 (trace_insn): Rewrite to use trace_prefix.
3624 * sim-trace.c (trace_prefix): Don't print filename arg if NULL.
3625 Adjust width accordingly.
3627 * sim-profile.h (PROFILE_DATA): New member profile_any_p.
3628 (PROFILE_ANY_P,PROFILE_INSN_P,PROFILE_MEMORY): New macros.
3629 (PROFILE_SCACHE_P,PROFILE_PC_P,PROFILE_CORE_P): New macros.
3630 (PROFILE_COUNT_INSN,PROFILE_COUNT_READ,PROFILE_COUNT_WRITE): Simplify.
3631 (PROFILE_COUNT_CORE): Simplify.
3632 * sim-profile.c (profile_option_handler): Compute profile_any_p.
3634 Tue May 19 23:55:30 1998 Doug Evans <devans@seba.cygnus.com>
3636 * cgen-ops.h (ADDCFSI): Fix typo.
3638 Sat May 16 12:44:52 1998 Doug Evans <devans@seba.cygnus.com>
3640 * cgen-sim.h (CGEN_CPU): New members idesc_{read,sem}_init_p.
3641 * genmloop.sh: Use them rather than static locals.
3643 * sim-engine.c (sim_engine_set_run_state): New function.
3644 * sim-engine.h (sim_engine_set_run_state): Declare.
3645 * genmloop.sh (pending_reason,pending_sigrc): New static locals.
3646 (@cpu@_engine_stop): New args reason,sigrc. All callers updated.
3647 (engine_resume): Reorganize. Allow synchronous exit from main loop.
3649 Fri May 15 16:06:05 1998 Doug Evans <devans@seba.cygnus.com>
3651 * cgen-trace.c (trace_insn_init): New arg first_p.
3652 All callers updated.
3653 (trace_insn_fini): New arg last_p. All callers updated.
3654 * cgen-trace.h (trace_insn_init,trace_insn_fini): Update.
3655 (TRACE_INSN_INIT,TRACE_INSN_FINI): Update.
3656 * genmloop.sh (engine_resume): Update.
3658 Fri May 15 15:59:00 1998 Joyce Janczyn <janczyn@cygnus.com>
3660 * Make-common.in (install-common): Run ranlib on installed copy of
3663 Fri May 15 15:03:00 1998 Joyce Janczyn <janczyn@cygnus.com>
3665 * Make-common.in (install-common): Rename and install libsim.a.
3667 Tue May 12 15:23:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
3669 * sim-io.c (unistd.h): Include.
3671 Wed May 6 16:04:18 1998 Doug Evans <devans@seba.cygnus.com>
3673 * Make-common (sim_main_headers): Sort.
3674 (cgen-*.o): Add cgen-sim.h dependency.
3676 * cgen-scache.c (scache_init): Only allocate space if scache element
3678 (scache_flush,scache_print_profile): Check if scache in use first.
3680 * cgen-sim.h (IDESC): Provide forward declaration.
3682 (CGEN_CPU): Always define scache member. New members idesc,opcode.
3683 (cgen_cpu_max_extra_bytes): Declare.
3684 * cgen-utils.c (cgen_cpu_max_extra_bytes): New function.
3686 * sim-cpu.h: New file. sim_cpu_base moved here.
3687 Move sim_cpu_lookup decl here.
3688 * sim-base.h: #include "sim-cpu.h".
3689 * sim-cpu.c: New file.
3690 * Make-common (sim_main_headers): Add sim-cpu.h.
3691 (sim-cpu.o): Add rule for.
3693 * sim-model.c (set_model): Delete.
3694 (sim_model_set,model_set): New functions.
3695 (sim_model_install): Renamed from model_install.
3696 Don't set default model here.
3697 (model_option_handler): Rewrite --model processing.
3698 (sim_model_lookup,sim_mach_lookup): New functions.
3699 * sim-model.h (MAX_MODELS,MAX_INSNS): Delete.
3700 (insn_timing): Delete.
3701 (INSN_TIMING): New member `num'.
3702 (IMP_PROPERTIES): Always define scache_elm_size member.
3703 (MACH): New member init_cpu.
3704 (sim_machs): Renamed from machs.
3705 (sim_model_install): Renamed from model_install.
3706 (sim_model_set,sim_model_lookup,sim_mach_lookup): Declare.
3707 * sim-module.c (modules): Update.
3709 * sim-profile.c (profile_print_insn): Add cpu arg to INSN_NAME macro.
3711 * sim-io.c: #include <errno.h>.
3713 Wed May 6 12:39:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
3715 * dv-pal.c (struct hw_pal_device): Add reader.
3716 (hw_pal_finish): Initialize reader.
3717 (scan_hw_pal): Use reader.
3719 * hw-base.h, sim-hw.c (do_hw_poll_read): New function.
3720 (HW_IO_EOF, HW_IO_NOT_READY): Define.
3723 * sim-io.h, sim-io.c (sim_io_poll_read): New function. Copy from
3724 ../ppc/main.c sim_io_read_stdin.
3726 Fri May 1 12:11:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
3728 * hw-tree.h (hw_tree_print): Paramaterize with print and file
3730 * hw-tree.c: Update.
3732 * hw-base.h (hw_port_event_callback): Delete CPU/CIA args.
3733 * hw-device.h (hw_io_read_buffer, hw_io_write_buffer): Delete
3735 * hw-ports.h (hw_port_event): Ditto.
3736 * hw-ports.c (hw_port_event): Update.
3737 * hw-base.c (panic_hw_io_read_buffer, panic_hw_io_write_buffer):
3739 * dv-pal.c (hw_pal_io_read_buffer, hw_pal_io_write_buffer):
3741 (hw_pal_io_write_buffer): Call hw_halt not sim_engine_halt.
3742 (do_counter_event): Update.
3743 * dv-glue.c (hw_glue_io_read_buffer): Update.
3744 (hw_glue_port_event): Update.
3746 * hw-device.h (SIM_DESC): Replace with struct sim_state.
3747 * hw-base.h (hw_create): Ditto.
3748 * hw-base.c (hw_create): Ditto.
3750 * hw-device.c (hw_abort, hw_trace, hw_hw_event_queue_schedule,
3751 hw_event_queue_deschedule, hw_event_queue_time): Delete, moved
3754 * hw-device.h (hw_system_cpu): Declare.
3755 * sim-hw.c (hw_system_cpu): New function.
3757 * sim-core.c (sim_core_map_attach, sim_core_attach): Call
3758 sim_hw_abort not hw_abort.
3759 (sim-hw.h): Include.
3760 (sim_core_read_buffer, sim_core_write_buffer): Call
3761 sim_hw_io_read_buffer and sim_hw_io_write_buffer. Do not pass CPU
3763 (sim_core_set_xor): Do not pass CPU when aborting.
3765 * sim-n-core.h (sim_core_read_aligned_N,
3766 sim_core_write_aligned_N): Call sim_hw_abort not hw_abort.
3767 (sim_core_read_aligned_N, sim_core_write_aligned_N): Call
3768 sim_cpu_hw_io_read_buffer and sim_cpu_hw_io_write_buffer. Does not
3771 * sim-hw.h: Declare sim_hw_io_{read,write}_buffer. Declare
3773 * sim-hw.c (sim_hw_io_read_buffer, sim_hw_io_write_buffer,
3774 sim_cpu_hw_io_read_buffer, sim_cpu_hw_io_write_buffer): New
3776 (sim_hw_print): New function.
3778 * sim-engine.h (sim_engine_vabort): Declare.
3779 * sim-engine.c (sim_engine_vabort): New function.
3781 Wed Apr 29 23:58:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
3783 * sim-trace.c (print_data): For floating-point numbers trace raw
3785 (trace_result_fp2): New function.
3786 * sim-trace.h (trace_result_fp2): New declaration.
3787 (TRACE_FP_RESULT2): New macro.
3789 Tue Apr 28 18:28:58 1998 Geoffrey Noer <noer@cygnus.com>
3791 * common/aclocal.m4: call AM_EXEEXT in SIM_AC_COMMON, define
3792 AM_CYGWIN32 and AM_EXEEXT.
3793 * common/Make-common.in: set EXEEXT, add missing EXEEXTs
3794 to run and install-common rules.
3795 * common/configure: regenerate
3797 Sat Apr 25 17:45:01 1998 Andrew Cagney <cagney@b1.cygnus.com>
3799 * sim-types.h (cell_word): New type.
3800 (natural_cell): Delete type.
3802 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
3804 * configure: Regenerated to track ../common/aclocal.m4 changes.
3807 Sun Apr 26 15:25:07 1998 Tom Tromey <tromey@cygnus.com>
3809 * acconfig.h (NEED_DECLARATION_PRINTF): Removed.
3811 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
3813 * configure: Regenerated to track ../common/aclocal.m4 changes.
3816 Fri Apr 24 11:38:08 1998 Tom Tromey <tromey@cygnus.com>
3818 * acconfig.h: New file.
3819 * Make-common.in (top_builddir): New macro.
3820 (INTL_LIB): Removed.
3821 (INTLLIBS): New macro.
3822 (INTLDEPS): Likewise.
3823 (LIBDEPS): Use INTLDEPS.
3824 (EXTRA_LIBS): Use INTLLIBS.
3825 * aclocal.m4 (SIM_AC_COMMON): Call CY_GNU_GETTEXT.
3826 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST,
3827 AM_LC_MESSAGES): New macros from GNU gettext.
3829 Fri Apr 24 19:57:59 1998 Andrew Cagney <cagney@b1.cygnus.com>
3831 * sim-config.h: Discard leading _ from macros.
3832 * sim-types.h: Ditto.
3834 Wed Apr 22 14:14:19 1998 Michael Meissner <meissner@cygnus.com>
3836 * Make-common.in (CSEARCH): Add -I to intl directories.
3837 (INTL_LIB): Point to libintl.a.
3838 (LIBDEPS): Add $(INTL_LIB).
3839 (EXTRA_LIBS): Ditto.
3841 Tue Apr 21 12:44:27 1998 Doug Evans <devans@canuck.cygnus.com>
3843 * cgen-types.h (GETHIDI,MAKEDI): Tweak.
3845 * cgen-ops.h (ADDCFSI): Fix.
3848 Tue Apr 21 13:18:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
3850 * sim-types.h (signed_address, unsigned_address): Define.
3852 Mon Apr 20 21:47:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
3854 * sim-fpu.c (sim_fpu_2d): Don't return an SNaN, convert it into a
3857 Thu Apr 16 10:30:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
3859 * sim-fpu.c, sim-fpu.h (sim_fpu_fractionto, sim_fpu_tofraction):
3860 New functions, pack / unpack sim_fpu struct using raw values.
3861 (sim_fpu_is): Differentiate between negative and positive
3864 Tue Apr 14 18:49:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
3866 * sim-bits.h (EXTEND4): Define.
3867 (EXTEND4, EXTEND15, EXTEND11): Ditto.
3869 Tue Apr 14 16:31:35 1998 John Metzler <jmetzler@cygnus.com>
3871 * sim-memopt.c (parse_addr): Sunos 4.5 does not have strtol
3872 declared so we need this cast to prevent long long addresses
3873 from being misconfigures. Results in access to unmapped memory.
3875 Tue Apr 14 13:19:14 1998 Doug Evans <devans@canuck.cygnus.com>
3877 * Make-common.in (RUNTESTFLAGS): Define.
3878 (check): Pass RUNTESTFLAGS to recursive make.
3880 Tue Apr 14 15:09:19 1998 Andrew Cagney <cagney@b1.cygnus.com>
3882 * sim-info.c (sim_info): Be verbose when either VERBOSE or
3885 Sat Apr 4 23:24:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
3887 * aclocal.m4 (sim-inline): By default, disable sim-inline when
3890 Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
3892 * aclocal.m4 (sim-cflags): Add -fomit-frame-pointer to defaults.
3893 (sim-inline): Update to match sim-inline.[hc]
3894 * configure: Regenerated to track ../common/aclocal.m4 changes.
3896 * Make-common.in (sim_main_headers): Add sim-inline.h
3898 * sim-bits.h (sim-bits.c): Include when H_REVEALS_MODULE_P.
3900 * sim-endian.h (sim-endian.c): Ditto.
3902 * sim-events.h (_SIM_EVENTS_H_): Replace with SIM_EVENTS_H.
3903 (sim_events_set_trace): Delete unused prototype.
3905 * sim-core.h (_SIM_CORE_H_): Replace with SIM_CORE_H.
3906 * sim-core.c (_SIM_CORE_C_): Ditto for SIM_CORE_C.
3908 * sim-fpu.h (sim-fpu.c): Include when H_REVEALS_MODULE_P.
3909 (sim_fpu_to232i, sim_fpu_to232u, sim_fpu_i232to, sim_fpu_u232to):
3910 Comment out, not yet implemented in sim-fpu.c.
3911 (sim_fpu_zero, sim_fpu_one, sim_fpu_two, sim_fpu_qnan,
3912 sim_fpu_max32, sim_fpu_max64): Mark as EXTERN_SIM_FPU.
3914 * sim-inline.h: Rewrite description.
3915 (H_REVEALS_MODULE_P, C_REVEALS_MODULE_P): Define.
3916 (SIM_MAIN_INLINE): Add inline option.
3918 * sim-inline.c (semantics.c, idecode.c, engine.c, ...): Do not
3919 include generated files. Handled by generator directly.
3921 Sat Apr 4 01:07:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
3923 * sim-trace.c (set_trace_option_mask): Keep TRACE_ANY_P
3926 * sim-trace.h (TRACE_ANY_P): Define.
3927 (struct _trace_data): Add trace_any_p.
3929 Mon Mar 30 17:11:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
3931 * run.c (main): Handle all alternatives of enum sim_stop.
3932 (main): Delete unused `asection *s'.
3934 Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
3936 * hw-tree.h, hw-tree.c (hw_tree_vparse): New function
3938 * configure: Regenerated to track ../common/aclocal.m4 changes.
3940 * sim-hw.c: New file.
3941 * sim-hw.h (sim_hw_parse): Declare function.
3942 (hw-tree.h): Do not include.
3944 * sim-base.h (STATE_HW): Define.
3945 (struct sim_state_base): Add member struct *hw.
3947 * sim-module.c (sim-hw.h): Include.
3948 (modules): Add sim_hw_install.
3950 * aclocal.m4 (sim_hw_obj): Add sim-hw.o
3952 Fri Mar 27 14:55:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
3954 * sim-base.h (CPU_INDEX): Define.
3956 * sim-utils.c (sim_state_alloc): Initialize.
3957 * sim-module.c (sim_post_argv_init): Ditto.
3959 Thu Mar 26 10:07:57 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
3961 * aclocal.m4 (sim_hw_obj): Fix sed expression to generate
3962 properly formatted lists.
3964 Thu Mar 26 10:37:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
3966 * dv-pal.c (enum hw_pal_address_mask): From Stu Grossman, was
3967 0x2f needs to be 0x3f.
3969 Thu Mar 26 09:10:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
3971 * hw-tree.c (hw_tree_find_property): Return NULL when device is
3973 (hw_tree_find_*_property): Clean up error message when property is
3976 * dv-pal.c (hw_pal_io_read_buffer): Check the smp property is
3977 present before looking for it.
3979 Wed Mar 25 16:17:38 1998 Ian Carmichael <iancarm@cygnus.com>
3981 * aclocal.m4 (AC_CHECK_HEADERS): Add check for fpu_control.h.
3982 (AC_CHECK_FUNCS): Add check for __setfpucw.
3983 * configure: Regenerated.
3985 Wed Mar 25 09:18:34 1998 Andrew Cagney <cagney@b1.cygnus.com>
3987 * dv-pal.c (hw_pal_countdown, hw_pal_countdown_value,
3988 hw_pal_timer, hw_pal_timer_value): Define.
3989 (hw_pal_io_read_buffer, hw_pal_io_write_buffer): Add timer support
3990 (do_counter_event, do_counter_read, do_counter_value,
3991 do_counter_write): new functions.
3993 Tue Mar 24 12:24:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
3995 * hw-tree.c (hw_printf): Send tree dump to stderr, same as other
3998 * hw-base.c (hw_create): Stop searching for a device when one is
4001 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
4003 * configure: Regenerated to track ../common/aclocal.m4 changes.
4005 Mon Mar 23 10:25:08 1998 Andrew Cagney <cagney@b1.cygnus.com>
4007 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add second argument,
4008 appends extra devices.
4009 (SIM_AC_OPTION_HARDWARE): Substute sim_hw, a non-duplicate list of
4012 * Make-common.in (hw-config.h): New target, create hw-config.h
4014 (SIM_HW): Definition from @sim_hw@.
4015 (hw-base.o): Depend on hw-config.h
4017 Tue Mar 24 17:41:35 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
4019 * Make-common.in: Get SHELL from configure.
4020 * (stamp-tvals sim-inline.c): Use $(SHELL) when invoking
4021 move-if-change. Fixes NT native build problem.
4022 * Makefile.in (nltvals.def): Use $(SHELL) when invoking
4023 move-if-change. Fixes NT native build problem.
4024 * configure: Regenerate with autoconf 2.12.1 to fix shell issues for
4027 Sun Mar 22 16:54:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
4029 * hw-device.h, hw-device.c (hw_strdup): New function.
4031 * hw-base.c (hw_create): Use hw_strdup when saving a copy of the
4032 strings name, family and args.
4033 (full_name_of_hw): Use hw_strdup when returning the full path.
4035 * hw-properties.c: Clean up property not found / wrong type error
4038 * hw-tree.c (hw_tree_parse): Finish a devices initialization
4039 before attaching any ports.
4041 * hw-base.c (hw-config.): Include. Replace hardwired table.
4043 * dv-glue.c: Copy over ../ppc/hw_glue.c. Update to new framework.
4045 * Make-common.in: Add rule for dv-glue.o.
4047 Sun Mar 22 16:45:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4049 * hw-base.c (hw_finish): Move setting of trace level to here.
4050 (hw_create): From here.
4052 * hw-base.h, hw-base.c (do_hw_attach_regs): Copy function from
4053 ../ppc/device_table.c.
4055 * dv-pal.c (hw_pal_finish): Attach PAL device to parent bus.
4057 * hw-tree.c (print_properties): Supress path when printing
4058 properties of root node.
4060 Sun Mar 22 16:21:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
4062 * hw-device.h (HW_TRACE): Define.
4063 (hw_trace): Declare.
4064 * hw-device.c (hw_trace): Implement function.
4066 * hw-base.c (hw_create): Set hw trace level from "trace?"
4069 * dv-core.c (dv_core_attach_address_callback): Add trace.
4071 * dv-pal.c: Replace DTRACE with HW_TRACE.
4073 Sun Mar 22 15:23:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
4075 * hw-device.h (HW_ZALLOC, HW_MALLOC): New macros.
4076 (hw_alloc_data): Delcare.
4077 (struct hw): Add member alloc_of_hw.
4079 * hw-device.c (hw_zalloc, hw_malloc, hw_free, hw_free_all): New
4080 functions. Assocate memory with a device.
4081 (stdlib.h): Include.
4083 * hw-base.h (set_hw_delete): Define.
4084 (hw_delete_callback): Declare.
4085 (hw_delete): Declare.
4087 * hw-base.c (hw_delete): Implement function.
4088 (struct hw_base_data): Add member to_delete.
4089 (ignore_hw_delete): New function, does nothing.
4090 (hw_create): Set the hw_delete method.
4091 (hw_create): Allocate the base type using HW_ZALLOC before setting
4094 * hw-tree.h, hw-tree.c (hw_tree_delete): New function.
4096 * hw-properties.c: Replace zalloc/zfree with hw_zalloc/hw_free.
4098 * hw-ports.c: Replace zalloc/zfree with hw_zalloc/hw_free.
4099 (attach_hw_port_edge): Add struct hw argument
4101 * dv-pal.c (hw_pal_finish): Replace zalloc/zfree with
4104 Sun Mar 22 15:09:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
4106 * hw-device.h (hw_attach_address_callback,
4107 hw_detach_address_callback): Attach to a single space not a space
4108 mask. Clarify interpretation of SPACE:ADDR parameters.
4110 * hw-base.c (passthrough_hw_attach_address,
4111 passthrough_hw_detach_address): Update.
4112 * dv-core.c (dv_core_attach_address_callback): Ditto.
4113 * dv-pal.c (hw_pal_attach_address): Ditto.
4115 Thu Mar 19 00:41:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
4117 * sim-options.h: Document additional CPU arg to OPTION_HANDLER.
4119 Wed Mar 18 14:13:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
4121 * Make-common.in (SIM_HW_OBJS, SIM_HW_SRC, SIM_DV_OBJS): Define.
4122 (hw-base_h, hw-device_h, hw-handles_h, hw-instances_h, hw_ports_h,
4123 hw-properties_h, hw-tree_h): Define, point at corresponding
4125 (hw_base_headers): Define list of headers included by hw-base.h
4126 (hw-base.o, hw-device.o, hw-instances.o, hw-handles.o, hw-ports.o,
4127 hw-properties.o, hw-tree.o): Specify dependencies.
4128 (dv-core.o, dv-pal.o): Ditto.
4130 * sim-hw.h: New file.
4132 * hw-device.h, hw-device.c, hw-properties.h, hw-properties.c,
4133 hw-ports.h, hw-ports.c: New files. Copied from ../ppc/device.[ch].
4135 * hw-tree.h, hw-tree.c: New files. Copied from ../ppc/tree.[hc].
4137 * hw-base.h, hw-base.c: new files. Copied from
4138 ../ppc/device_table.[hc].
4140 * dv-core.c, dv-pal.c: New files. Copied from
4141 ../ppc/hw_{core,pal}.c
4143 * sim-basics.h (struct hw): Declare.
4144 (enum port_direction, enum object_disposition): Declare.
4146 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
4148 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set sim_hw_obj, sim_dv_obj,
4149 sim_dv_src in Makefile. Take list of devices as parameter to m4
4152 * configure: Regenerated to track ../common/aclocal.m4 changes.
4154 Mon Mar 16 12:37:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
4156 * sim-trace.h, sim-trace.c (trace_prefix): Pass in sim_cia so that
4157 trace_prefix can abort cleanly.
4159 Sat Mar 14 18:36:12 1998 Doug Evans <devans@seba.cygnus.com>
4161 * dv-sockser.c, dv-sockser.h: New files.
4162 * Make-common.in (dv-sockser.o): Add rule for.
4163 * aclocal.m4: Check for fcntl.h.
4164 * config.h: Add HAVE_FCNTL_H.
4166 * sim-break.c (remove_breakpoint): Fix thinko.
4168 * sim-hload.c (sim_load): Provide default value of SIM_HANDLES_LMA.
4169 Use SIM_HANDLES_LMA for lma_p arg to sim_load_file.
4171 1998-03-13 Fred Fish <fnf@cygnus.com>
4173 * sim-base.h (struct sim_state_base): Add prog_syms and
4174 define macro STATE_PROG_SYMS.
4175 * sim-trace.c (trace_prefix): Add variables abfd, symsize,
4176 symbol_count, and asymbols. Call bfd_get_symtab_upper_bound
4177 and bfd_canonicalize_symtab, to get symbol table on first use
4178 and preserve it via STATE_PROG_SYMS for future calls to
4179 bfd_find_nearest_line.
4181 Wed Mar 11 14:02:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
4183 * sim-core.h, sim-core.c (sim_core_map_to_str): Delete.
4185 * sim-core.c (sim_core_attach): Handle a generic number of maps -
4186 up to nr_maps, not just access_* maps.
4188 * sim-profile.h (struct PROFILE_DATA): Track nr_maps different
4191 * sim-profile.c (profile_print_core): Make map unsigned. Iterate
4192 over nr_maps not sim_core_nr_maps.
4194 * sim-events.h, sim-events.c (sim_events_watch_core): Change
4195 core_map argument to unsigned.
4196 (struct _sim_core): Ditto for struct member core_map.
4198 * sim-core.h (nr_sim_core_maps, sim_core_*_map): Delete
4200 * sim-basics.h (access_io, access_*_io): Define.
4201 (map_read, map_write, map_exec, map_io): Define.
4203 * sim-core.c, sim-core.h (sim_core_attach): Replace argument
4204 attach with more generic mapmask.
4205 (sim_core_{read,write}_*): Change map argument to unsigned.
4207 * sim-core.c (sim_core_uninstall, sim_core_attach,
4208 sim_core_detach): Iterate over nr_maps instead of
4211 * sim-break.c (insert_breakpoint): Write breakpoints to exec_map
4212 instead of the write_map.
4213 (remove_breakpoint): Ditto.
4215 * genmloop.sh (engine_resume_full): Replace sim_core_*_map
4216 with read_map, write_map, exec_map resp.
4218 * cgen-mem.h (DECLARE_GETMEM, DECLARE_SETMEM, DECLARE_GETIMEM):
4221 * cgen-utils.c (sim_disassemble_insn): Ditto.
4223 * sim-hrw.c (sim_write, sim_write): Ditto.
4225 * sim-utils.h, sim-utils.c (access_to_str, map_to_str,
4226 transfer_to_str): New functions.
4228 Mon Mar 9 12:50:59 1998 Doug Evans <devans@seba.cygnus.com>
4230 * sim-base.h (sim_state_base): New member environment.
4231 (STATE_ENVIRONMENT): New macro.
4232 * sim-config.c (current_environment): Delete.
4233 (sim_config_default): New function.
4234 (sim_config): Set STATE_ENVIRONMENT, not current_environment.
4235 * sim-config.h (current_environment,CURRENT_ENVIRONMENT): Delete.
4236 (sim_config_default): Add prototype.
4237 * sim-module.c (sim_pre_argv_init): Call sim_config_default.
4238 * sim-options.c (standard_option_handler, case OPTION_ENVIRONMENT):
4239 Set STATE_ENVIRONMENT, not current_environment.
4241 Mon Mar 9 11:59:03 1998 Jim Wilson <wilson@cygnus.com>
4243 * sim-fpu.c (NR_GUARDS64): Change NR_PAD32 to NR_PAD64.
4245 Tue Mar 3 10:53:05 1998 Andrew Cagney <cagney@b1.cygnus.com>
4247 * sim-types.h (SIGNED32, SIGNED64): Pacify GCC.
4249 * sim-alu.h (ALU64_BEGIN): Make alu64_r unsigned.
4251 Mon Mar 2 10:20:06 1998 Doug Evans <devans@seba.cygnus.com>
4253 * Make-common.in (TAGS): Make smarter.
4254 * Makefile.in (TAGS): Ditto.
4256 Fri Feb 27 19:09:57 1998 Doug Evans <devans@canuck.cygnus.com>
4258 * sim-module.c (*): Fix typos in assertion tests.
4260 Sat Feb 28 13:54:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
4262 * sim-module.c (sim_pre_argv_init): String passed to asprintf
4265 * sim-options.c (sim_parse_args): Ditto.
4266 (sim_args_command): Return OK, instead of nothing, for an empty
4269 Fri Feb 27 13:29:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
4271 * sim-profile.c (profile_info): Rename from profile_print. Drop
4272 misc and misc_cpu callback arguments. Use
4273 PROFILE_INFO_CPU_CALLBACK and STATE_PROFILE_INFO_CALLBACK instead.
4274 (profile_install): Install profile_info function.
4276 * sim-profile.h (PROFILE_INFO_CPU_CALLBACK,
4277 STATE_PROFILE_INFO_CALLBACK): Define.
4278 (struct PROFILE_DATA): Add field info_cpu_callback.
4279 (profile_print): Delete function.
4281 * sim-base.h (STATE_MODULES): Define. Replace individual
4282 STATE_*_LIST with single struct module_list.
4284 * sim-module.h (MODULE_INFO_FN, MODULE_INFO_LIST): Declare.
4285 (struct module_list): Declare.
4287 * sim-module.h, sim-module.c (sim_module_add_info_fn,
4288 sim_module_info): New functions.
4289 (sim_module_install): Clean up module data structures.
4291 * sim-info.c (sim_info): New file. New function. Call
4294 * Make-common.in (sim-info.o): Define rule.
4295 (SIM_NEW_COMMON_OBJS): Add sim-info.o.
4298 Fri Feb 27 18:26:16 1998 Doug Evans <devans@canuck.cygnus.com>
4300 * sim-base.h (sim_cpu_base): New members name, options.
4301 (sim_cpu_lookup): Add prototype.
4302 * sim-module.c (sim_pre_argv_init): Provide default names for cpus.
4303 * sim-options.h (DECLARE_OPTION_HANDLER): New argument `cpu'.
4304 (sim_add_option_table): Update prototype.
4305 * sim-options.c (sim_add_option_table): New argument `cpu'.
4306 (standard_option_handler,standard_install): Update.
4307 (sim_parse_args): Handle cpu specific options.
4308 (print_help): New static function.
4309 (sim_print_help): Call it. Print cpu specific options.
4310 (find_match): New static function.
4311 (sim_args_command): Call it. Handle cpu specific options.
4312 * sim-utils.c (sim_cpu_lookup): New function.
4313 * sim-memopt.c (memory_option_handler): Update.
4314 (sim_memopt_install): Update.
4315 * sim-model.c (model_option_handler): Update.
4316 (model_install): Update.
4317 * sim-profile.c (profile_option_handler): Update.
4318 (profile_install): Update.
4319 * sim-trace.c (trace_option_handler): Update.
4320 (trace_install): Update.
4321 * sim-watch.c (watchpoint_option_handler): Update.
4322 (sim_watchpoint_install): Update.
4323 * cgen-scache.c (scache_option_handler): Update.
4324 (scache_install): Update.
4326 Wed Feb 25 11:00:26 1998 Doug Evans <devans@canuck.cygnus.com>
4328 * Make-common.in (check): Run `make check' in testsuite dir.
4330 Wed Feb 25 14:40:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
4332 * sim-trace.c (trace_result0): New function.
4334 * sim-trace.h (TRACE_FP_*, TRACE_FPU_*): Rename TRACE_FPU_*
4335 macro's to TRACE_FP_*. TRACE_FPU_* should be defined and used when
4336 tracing sim_fpu variables.
4337 (TRACE_ALU_RESULT0): Define.
4338 (TRACE_FP_RESULT_WORD): Define.
4339 (TRACE_FP_INPUT_WORD1): Define.
4341 * sim-fpu.c, sim-fpu.h (sim_fpu_max32, sim_fpu_max64, sim_fpu_one,
4342 sim_fpu_two): New constants.
4343 (sim_fpu_op1, sim_fpu_op2): New types.
4344 (struct _sim_fpu): Delete member result. Re-order other members.
4345 (sim_fpu_sign, sim_fpu_exp): New functions.
4346 (sim_fpu_max, sim_fpu_min): new functions.
4347 (EXPMAX32, EXPMAX64, NR_PAD32, NR_PAD64, NR_GUARDS32, NR_GUARDS64,
4348 NORMAL_EXPMAX32, NORMAL_EXPMAX64): Define.
4350 Tue Feb 24 22:45:39 1998 Doug Evans <devans@seba.cygnus.com>
4352 * sim-profile.c (profile_print): Delete duplicate test of
4354 (profile_print_pc): Exit early if data collection not set up.
4355 (profile_print_core): Simplify by calling sim_core_map_to_str.
4356 * sim-core.h (sim_core_map_to_str): Declare.
4357 * sim-core.c (sim_core_map_to_str): Make non-static.
4359 * genmloop.sh (engine_resume): Update insn_count before exiting.
4360 (engine_resume_full): Keep accurate core profile data.
4362 * cgen-utils.c (sim_disassemble_insn): Don't use
4363 sim_core_read_aligned_N, it messes up profiling results.
4365 Mon Feb 23 20:45:57 1998 Mark Alexander <marka@cygnus.com>
4367 * nltvals.def: Regenerate with MN10300 additions.
4369 Tue Feb 24 13:18:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
4371 * sim-trace.h (TRACE_ALU_RESULT2): Define.
4373 * sim-trace.h, sim-trace.c (trace_result_word2,
4374 trace_input_word4, trace_result_word4): New function.
4376 Mon Feb 23 13:08:35 1998 Doug Evans <devans@canuck.cygnus.com>
4378 * cgen-sim.h (SEM_NEXT_PC): New arg `len'.
4380 * sim-xcat.h: Delete.
4381 * cgen-mem.h: Delete inclusion of sim-xcat.h.
4382 * cgen-sim.h: Ditto.
4383 * sim-alu.h: Replace sim-xcat.h with symcat.h.
4384 * sim-n-bits.h: Ditto.
4385 * sim-n-core.h: Ditto.
4386 * sim-n-endian.h: Ditto.
4388 Mon Feb 23 13:19:58 1998 Michael Meissner <meissner@cygnus.com>
4390 * syscall.c (cb_syscall): Handle short reads, and EOF.
4392 Tue Feb 24 00:29:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
4394 * sim-trace.c (print_data): case trace_fmt_fp missing break. Use
4395 sim_fpu to safely print fp_word values.
4396 (print_data): Add trace_fmt_bool and trace_fmt_addr.
4397 (trace_result_bool1, trace_result_addr1): New functions.
4398 (trace_input_bool1, trace_input_addr1): New functions.
4400 * sim-trace.h (TRACE_FPU_*): Define.
4402 Mon Feb 23 13:24:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
4404 * sim-fpu.h (enum sim_fpu_class): Add sim_fpu_class_denorm.
4405 (sim_fpu_fpto, sim_fpu_tofp): Define.
4407 Fri Feb 20 18:08:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
4409 * sim-fpu.c (sim_fpu_cmp): New function.
4411 Wed Feb 18 16:29:21 1998 Doug Evans <devans@canuck.cygnus.com>
4413 * cgen-utils.h (sim_disassemble_insn): Use CGEN_INSN_BITSIZE
4414 instead of abuf->length.
4415 * sim-trace.c (trace_options): Have -t only trace a few useful things.
4416 (set_trace_option_mask): Renamed from set_trace_options.
4417 (set_trace_option): New function.
4418 (trace_option_handler): Update calls to set_trace_option{,_mask}.
4419 * sim-trace.h (TRACE_USEFUL_MASK): New macro.
4421 Wed Feb 18 12:42:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
4423 * sim-basics.h: Declare struct _sim_fpu.
4425 Tue Feb 17 16:27:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
4427 * sim-trace.h (TRACE_ALU_INPUT*, TRACE_ALU_RESULT): Define.
4428 (trace_prefix, trace_input*, trace_result*): Declare.
4429 (trace_one_insn): Change declaration, assume trace_prefix called.
4430 (trace_generic): Like trace_one_insn.
4431 (TRACE_ALU_IDX, TRACE_*_IDX): Change #define's to enum.
4432 (TRACE_alu, TRACE_[a-z]*): Update.
4434 * sim-trace.c (trace_prefix, trace_input*, trace_result*,
4435 trace_insn, save_data, trace_idx_to_str, print_data): New
4437 (trace_one_insn): Rewrite.
4438 (trace_generic): New function.
4440 Tue Feb 17 17:27:30 1998 Doug Evans <devans@seba.cygnus.com>
4442 * aclocal.m4 (USE_MAINTAINER_MODE): New variable.
4444 * cgen-sim.h (SEMANTIC_CACHE_FN): Delete.
4445 (SEMANTIC_FN): Rewrite declaration.
4446 (DECODE): Update type of semantic_fast member.
4447 ({EX,SEM}_FN_NAME): Have only one version.
4448 * sim-base.h (sim_state_base): Delete conditionals surrounding
4451 Tue Feb 10 18:31:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
4453 * sim-load.c (sim_load_file): Print LMA/VMA according to value
4456 Tue Feb 10 14:56:23 1998 Ian Carmichael <iancarm@cygnus.com>
4458 * sim-core.c: Add missing prototypes for WITH_DEVICES.
4459 Add missing parameters to device_io calls.
4460 * sim-core.h: Add missing parameters to device_io calls.
4462 Mon Feb 9 14:48:37 1998 Doug Evans <devans@canuck.cygnus.com>
4464 * cgen-sim.h (DECODE): Always use switch for `read' for now.
4465 (PAREXEC): Renamed from PARALLEL_EXEC. All uses updated.
4466 (SEMANTIC{,_CACHE}_FN): Fix return type.
4467 * genmloop.sh (@cpu@_engine_run): Delete `current_state'.
4468 (engine_resume): Likewise. Make `engine' volatile. Save copy
4469 of cpu pointer in volatile object. Initialize read switch if
4472 Thu Feb 5 13:27:04 1998 Doug Evans <devans@seba.cygnus.com>
4474 * cgen-sim.h (EX_FN_NAME): _exc_ -> _ex_.
4475 (SEM_INSN): New macro.
4477 Tue Feb 3 16:31:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
4479 * sim-run.c (sim_engine_run): Assume IMEM is 32 bit.
4481 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
4483 * configure: Regenerated to track ../common/aclocal.m4 changes.
4485 Sun Feb 1 16:16:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
4487 * sim-types.h (fp_word): New type, define according to
4488 WITH_TARGET_FLOATING_POINT_BITSIZE.
4490 * aclocal.m4 (default_sim_floating_point_bitsize): Add
4491 configuration of size of floating point registers.
4493 Sun Feb 1 14:02:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
4495 * sim-profile.c (profile_print): Only print CPU <N> if other
4496 output is going to appear.
4498 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
4500 * configure: Regenerated to track ../common/aclocal.m4 changes.
4502 Sat Jan 31 18:03:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
4504 * sim-types.h (address_word): Typedef according to
4505 WITH_TARGET_ADDRESS_BITSIZE.
4506 (signed_cell, unsigned_cell, natural_cell): Ditto using
4507 WITH_TARGET_CELL_BITSIZE.
4509 * sim-config.h (WITH_TARGET_ADDRESS_BITSIZE): Define.
4510 (WITH_TARGET_CELL_BITSIZE): Define.
4511 (WITH_HOST_WORD_BITSIZE): Delete.
4513 * sim-config.c (print_sim_config): Update.
4515 * aclocal.m4 (SIM_AC_OPTION_BITSIZE): Add support for
4516 configuration of address and OpenFirmware cell sizes.
4518 Fri Jan 30 09:36:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
4520 * sim-engine.h (sim_engine_run): Add argument nr_cpus.
4521 * sim-run.c (sim_engine_run): Update.
4523 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use SET_CPU_CIA instead of
4525 * sim-run.c (sim_engine_run): Ditto.
4527 * sim-resume.c (sim_resume): Obtain nr_cpus from sim_engine.
4528 (sim_resume): Pass nr_cpus to sim_engine_run.
4530 * sim-engine.h (struct _sim_engine): Add member nr_cpus.
4532 * sim-engine.c (sim_engine_init): Hardwire nr_cpus to
4534 (sim_engine_nr_cpus) sim-engine.c, sim-engine.h: New function
4536 Fri Jan 23 14:20:54 1998 Doug Evans <devans@seba.cygnus.com>
4538 * Make-common.in (stamp-tvals): New rule.
4539 (targ-vals.h,targ-map.c): Depend on it.
4540 (clean): Remove stamp-tvals.
4542 Tue Jan 20 21:35:13 1998 Michael Meissner <meissner@cygnus.com>
4544 * sim-utils.c (sim_state_alloc): #if 0 variable that is only used
4545 in code also #if 0'ed.
4547 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
4549 * configure: Regenerated to track ../common/aclocal.m4 changes.
4550 * aclocal.m4: Recognize --enable-maintainer-mode.
4552 Mon Jan 19 12:45:45 1998 Doug Evans <devans@seba.cygnus.com>
4554 * cgen-scache.h: Deleted.
4555 * Make-common.in (cgen-run.o,cgen-scache.o): Delete cgen-scache.h dep.
4556 * cgen-scache.c: Only compile contents if WITH_SCACHE.
4557 (scache_init): Use runtime computed size of SCACHE.
4558 (scache_flush): Likewise.
4559 * cgen-mem.h (GETIMEMU[QHSD]I): Declare.
4560 ([GS]ETT{QI,UQI,HI,UHI,SI,USI,DI,UDI}): Declare.
4561 * cgen-sim.h: Scache support moved here.
4562 (PC): Redo definition.
4563 (ARGBUF,SCACHE,PARALLEL_EXEC): Provide forward decls.
4564 (DECODE): Add parallel execution support.
4565 Only include semantic label members if using switch.
4566 (SWITCH,CASE,BREAK,DEFAULT,ENDSWITCH): Portable computed goto support.
4567 (CGEN_CPU): Delete members exec_state, halt_sigrc, halt_jmp_buf.
4568 (IADDR,CIA,SEM_ARG,EX_FN_NAME,SEM_FN_NAME,RECORD_IADDR,SEM_ARGBUF,
4569 SEM_NEXT_PC,SEM_BRANCH_VIA_{CACHE,ADDR},SEM_NEW_PC_ADDR): Moved here
4571 (engine_{stop,run,resume,halt,signal}): Delete decls.
4572 * cgen-types.h (CGEN_{XCAT3,CAT3}): Delete.
4573 (argbuf,scache): Delete forward decls.
4574 (STATE): Delete decl.
4575 * cgen-utils.c: Don't include decode.h, mem-ops.h, sem-ops.h.
4576 Include cgen-mem.h, cgen-ops.h.
4577 (engine_halt,engine_signal): Delete.
4578 ({ex,exc,sem,semc}_illegal): Delete.
4579 (sim_disassemble_insn): Result of extract fn is in bits.
4580 * genmloop.sh: Rewrite.
4582 * cgen-trace.c (trace_insn): Set printed_result_p=0 if not tracing
4585 * sim-base.h (sim_state_base): Delete member `model'.
4586 (sim_cpu_base): Add member `model'.
4587 * sim-model.h (IMP_PROPERTIES): New type.
4588 (MACH): New members imp_props, models.
4589 (models): Delete decl.
4590 * sim-model.c (set_model): Update.
4591 * sim-profile.c (profile_print_model): Update.
4593 * sim-utils.c (sim_state_alloc): Delete setting of cpu backlink here.
4595 Fri Jan 16 12:33:09 1998 Nick Clifton <nickc@cygnus.com>
4597 * cgen-trace.c (trace_insn): Call CGEN_INSN_MNEMONIC() rather than
4600 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
4602 * configure: Regenerated to track ../common/aclocal.m4 changes.
4605 Mon Dec 15 23:16:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
4607 * aclocal.m4 (AR): Check for sigaction.
4609 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
4611 * Make-common.in (sim-core.o): Depend on $(sim_main_headers).
4613 * sim-config.h (WITH_TREE_PROPERTIES): Define as 0.
4614 * sim-config.c (sim_config): Replace WITH_DEVICES with
4615 WITH_TREE_PROPERTIES.
4617 * configure: Regenerated to track ../common/aclocal.m4 changes.
4619 Wed Dec 3 17:56:02 1997 Doug Evans <devans@canuck.cygnus.com>
4621 * Make-common.in (SIM_ENVIRONMENT): New variable.
4622 (CONFIG_CFLAGS): Add it.
4623 * aclocal.m4 (SIM_AC_OPTION_ENVIRONMENT): Handle
4624 --enable-sim-environment option.
4625 * configure: Regenerated.
4626 * sim-config.h (environment support): Rewrite.
4627 * sim-config.c (current_environment): Define as enum, unconditionally.
4628 (current_alignment): Define unconditionally.
4629 (config_environment_to_a): Update.
4630 (config_alignment_to_a): Fix type of argument. Define unconditionally.
4631 (sim_config): Handle environment and alignment determination
4632 unconditionally. Delete sanity checks of current_environment,
4634 (print_sim_config): Update.
4635 * sim-options.c (STANDARD_OPTIONS enum): Add OPTION_ENVIRONMENT.
4636 (standard_options): Add --environment.
4637 (standard_option_handler): Likewise.
4639 Fri Nov 28 12:21:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
4641 * sim-alu.h: Add notes on carry vs borrow for subtraction.
4642 (ALU{,8,16,32,64}ADD): Redefine ADD macro as add overflowing.
4643 (ALU{,8,16,32,64}ADDC): Define - add carrying.
4644 (ALU{,8,16,32,64}SUB): Redefine SUB macro as subtract overflowing.
4645 (ALU{,8,16,32,64}SUBB): Define - subtract borrowing.
4646 (ALU{,8,16,32,64}SUBC): Define - tract carrying.
4647 (ALU{,8,16,32,64}ADD_CA, ALU{,8,16,32,64}ADDC_C): Replace single
4648 argument ADD_CA macro with two argument ADDC_C - add carrying with
4650 (ALU{,8,16,32,64}SUB_CA, ALU{,8,16,32,64}SUBC_X): Replace single
4651 argument SUB_CA macro with two argument SUBC_X - subtract
4653 (ALU{,8,16,32,64}SUBB_B): Define - subtract borrowing with
4655 (ALU{,8,16,32,64}NEGC, ALU{,8,16,32,64}NEGB): Define.
4657 Sun Nov 30 17:40:57 1997 Michael Meissner <meissner@cygnus.com>
4659 * sim-io.c (sim_io_{syscalls,getstring}): Delete. No longer used.
4660 * sim-io.h (sim_io_syscalls): Delete.
4662 Fri Nov 28 20:10:09 1997 Michael Meissner <meissner@cygnus.com>
4664 * syscall.c (cb_syscall): Add missing else, so write to stdout
4667 * sim-alu.h (ALU{,8,16,32,64}_SET_CARRY): Provide macros to import
4668 the carry bit from the CPU's psw.
4670 Fri Nov 28 11:15:05 1997 Doug Evans <devans@canuck.cygnus.com>
4672 * gennltvals.sh: Redo syscall support.
4673 * nltvals.def: Regenerated.
4675 Wed Nov 26 16:49:38 1997 Michael Meissner <meissner@cygnus.com>
4677 * syscall.c (cb_syscall): If writing to stdout or stderr, flush
4678 the stream immediately.
4680 Wed Nov 26 12:32:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
4682 * sim-io.c (sim_io_getstring): Delete unused len2.
4683 (sim_io_syscalls): Ditto for sys_errno.
4685 Wed Nov 26 11:18:40 1997 Doug Evans <devans@canuck.cygnus.com>
4687 * syscall.c (cb_syscall): Test CB_SYSCALL struct magic number.
4689 * Make-common.in (run.o): Depend on remote-sim.h.
4690 (nrun.o,sim-hload.o,sim-hrw.o): Likewise.
4691 (sim-io.o,sim-reason.o,sim-resume.o): Likewise.
4693 Tue Nov 25 20:12:46 1997 Michael Meissner <meissner@cygnus.com>
4695 * sim-io.c (sim_io_syscalls): Disable lseek.
4697 Tue Nov 25 00:12:38 1997 Doug Evans <devans@seba.cygnus.com>
4699 * gennltvals.sh: Generate syscall values for d30v.
4701 * gennltvals.sh: Use libgloss/syscall.h for sparc.
4702 * nltvals.def: Regenerate.
4704 * callback.c (os_stat): Make 3rd arg a host struct stat ptr.
4705 (os_fstat): Likewise. Validate fd argument.
4706 (cb_host_to_target_stat): Delete big_p arg. If HS arg is NULL,
4707 just compute target stat struct length.
4708 * syscall.c: #include "libiberty.h", <sys/types.h>, <sys/stat.h>.
4709 (ENOSYS,ENAMETOOLONG): Provide definitions if missing.
4710 (get_string): Return host errno values so they can be properly
4712 (cb_syscall): Likewise.
4713 (cb_syscall, cases open,unlink): Use get_path instead of get_string.
4714 (cb_syscall, case read): Use read_stdin for file descriptor 0.
4715 (cb_syscall, case write): Use write_stderr for file descriptor 2.
4716 (cb_syscall): Add cases for lseek, unlink, stat, fstat, time.
4717 (get_path): New function.
4719 Mon Nov 24 18:56:07 1997 Michael Meissner <meissner@cygnus.com>
4721 * sim-io.c (sim_io_syscalls): New function to provide system call
4722 emulation. Provide exit, open, close, read, write, lseek, and
4724 (sim_io_getstring): New function to return a string from a
4725 simulated memory location.
4727 * sim-io.h (sim_io_syscalls): Add declaration.
4729 Mon Nov 24 12:09:59 1997 Doug Evans <devans@seba.cygnus.com>
4731 * sim-core.c (sim_core_signal): Fix spelling error in message.
4733 * sim-hrw.c (sim_read): Use read map, not write map.
4735 * Make-common.in (all): Add .gdbinit.
4736 * gdbinit.in: Add dump command.
4738 * sim-model.c (model_options): Use '\0' for `shortopt'.
4740 * sim-trace.c (trace_option_handler): Set state trace file
4741 for --trace-file in addition to cpu's values.
4742 (trace_vprintf): If cpu == NULL, try state's trace file.
4743 (trace_options): Reorganize table, reword some descriptions.
4745 Sun Nov 23 10:57:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
4747 * sim-fpu.c (sim_fpu_abs, sim_fpu_neg, sim_fpu_inv), sim-fpu.h:
4750 Sat Nov 22 19:16:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
4752 * sim-reason.c (sim_stop_reason): For sim_signalled, return the
4753 signal untranslated, document problem with this.
4755 * nrun.c (main): Check for a prog name of `*step'. If present,
4756 step the simulator instead of allowing it to run free.
4758 * sim-signal.c (SIGQUIT): Define on _MSC_VER hosts.
4760 * Make-common.in (sim_main_headers): Add sim-signal.h.
4762 Fri Nov 21 09:32:32 1997 Andrew Cagney <cagney@b1.cygnus.com>
4764 * sim-signal.c (sim_signal_to_host): Return 0 for SIM_SIGNONE.
4766 Thu Nov 20 20:35:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
4768 * sim-signal.h: Start simulator signals at 64 so that host signal
4769 numbers can be detected and reported.
4771 * sim-signal.h (SIM_SIGFPE), sim-signal.h: Add signal.
4773 Wed Nov 19 12:02:41 1997 Doug Evans <devans@seba.cygnus.com>
4775 * callback.c (cb_host_to_target_stat): Fix return values.
4777 * cgen-sim.h (enum_signal_type): Delete.
4778 (engine_signal): Update prototype.
4779 * cgen-utils.c: Don't include <signal.h>.
4780 (sim_signal_to_host): Delete, lives in sim-signal.c now.
4781 (engine_signal): Update.
4783 * sim-utils.c (sim_state_alloc): Call SIM_STATE_ALLOC if defined.
4784 (sim_state_free): Call SIM_STATE_FREE if defined.
4786 * sim-module.c (sim_module_install): Don't leave any modules
4787 installed if one fails to install.
4789 Wed Nov 19 13:25:48 1997 Michael Meissner <meissner@cygnus.com>
4791 * sim-options.c: Don't include ../libiberty/alloca-conf.h any
4792 more, since alloca is not used in this file.
4794 * sim-alu.h (ALU{32,64}_*): Rewrite 32 and 64 bit ALU support to
4795 correctly set the carry and overflow bits for those types.
4796 (ALU{8,16,32,64}_{ADD,SUB}_CA): Take VAL argument to add along
4797 with carry, so carry is correct after doing both adds.
4798 (ALU*): Space out '\' to make it easier to read.
4800 Tue Nov 18 15:53:45 1997 Doug Evans <devans@canuck.cygnus.com>
4802 * sim-core.c (sim_core_signal): Use sim_stopped instead of
4805 * sim-signal.c, sim-signal.h: New files.
4806 * Make-common.in (sim-signal.o): Add rule for.
4807 (SIM_NEW_COMMON_OBJS): Add sim-signal.o.
4808 * sim-abort.c: Don't include <signal.h>.
4809 * sim-basics.h: #include "sim-signal.h".
4810 * sim-break.c: Don't include <signal.h>.
4811 (sim_handle_breakpoint): Replace SIGTRAP with SIM_SIGTRAP.
4812 * sim-core.c: Don't include <signal.h>.
4813 (SIGBUS): Delete definition.
4814 (sim_core_signal): Replace SIGSEGV,SIGBUS with SIM_SIGSEGV,SIM_SIGBUS.
4815 * sim-engine.c: Don't include <signal.h>.
4816 (sim_engine_abort): Replace SIGABRT with SIM_SIGABRT.
4817 * sim-reason.c (sim_stop_reason): Call sim_signal_to_host.
4818 * sim-resume.c: Don't include <signal.h>.
4819 (SIGTRAP): Delete definition.
4820 (has_stepped): Replace SIGTRAP with SIM_SIGTRAP.
4821 * sim-stop.c: Don't include <signal.h>.
4822 (control_c_simulation): Replace SIGINT with SIM_SIGINT.
4823 * sim-watch.c: Don't include <signal.h>.
4824 (handle_watchpoint): Replace SIGINT with SIM_SIGINT.
4826 * Make-common.in (SIM_NEW_COMMON_OBJS): New variable.
4828 * sim-base.h (CIA_ADDR): Provide default definition.
4829 * sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
4830 * sim-break.c (sim_handle_breakpoint): Likewise.
4832 Mon Nov 17 14:15:31 1997 Doug Evans <devans@seba.cygnus.com>
4834 * Make-common.in (srccom): New variable.
4836 * Make-common.in (DEP, COMMON_DEP_CFLAGS): Define.
4837 (LIB_OBJS): Add syscall.o.
4838 (gentmap): Pass $(NL_TARGET) to $(CC).
4839 (syscall.o): Add rule for.
4840 (sim_main_headers): Add $(SIM_EXTRA_DEPS).
4841 (sim-bits.o): Depend on $(sim-n-bits_h).
4842 (sim-load.o): Depend on callback.h.
4844 * Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to
4845 cgen-mem.h, sem-ops.h renamed to cgen-ops.h.
4846 * cgen-mem.h, cgen-ops.h: New files.
4848 * aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no".
4850 * Makefile.in (nltvals.def): Depend on gennltvals.sh.
4852 * callback.c: #include string.h or strings.h.
4853 #include sys/types.h and sys/stat.h.
4854 (cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare.
4855 (os_get_errno,os_open): Update.
4856 (os_stat,os_fstat): New functions.
4857 (os_init): Initialize syscall_map, errno_map, open_map.
4858 (default_callback): Add entries for os_stat, os_fstat, syscall_map,
4859 errno_map, open_map, signal_map, stat_map.
4860 (cb_read_target_syscall_maps): New function.
4861 (cb_target_to_host_syscall): New function.
4862 (cb_host_to_target_errno): Renamed from host_to_target_errno.
4863 (cb_target_to_host_open): Renamed from target_to_host_open.
4864 (store): New function.
4865 (cb_host_to_target_stat): New function.
4866 * syscall.c: New file.
4867 * gentmap.c (sys_tdefs): New global.
4868 (gen_targ_vals_h): Output target syscall numbers.
4869 (gen_targ_map_c): Update. Output target syscall translation map.
4870 * gentvals.sh: New first argument `target'. Preface table with
4871 #ifdef NL_TARGET_$target if non-null target passed.
4872 * gennltvals.sh: New file.
4873 * nltvals.def: Regenerated.
4875 Fri Nov 14 11:33:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
4877 * sim-n-core.h (sim_core_read_unaligned_N): Return static
4879 (sim_core_dummy_M): Declare.
4881 Wed Nov 12 18:16:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
4883 * sim-core.c (sim_core_signal): Print the address of the
4886 Thu Nov 13 11:49:41 1997 Doug Evans <devans@seba.cygnus.com>
4888 * sim-base.h (sim_state_base): Move `magic' to end of struct.
4890 * sim-base.h (sim_state_base): Add member trace_data.
4891 (STATE_TRACE_DATA): New macro.
4892 * sim-trace.h (TRACE_DEBUG_IDX,TRACE_debug): New macros.
4893 ({WITH_,}TRACE_DEBUG_P): New macros.
4894 (STATE_TRACE_FLAGS,STRACE_P,STRACE_DEBUG_P): New macros.
4895 (_sim_cpu): Delete forward reference.
4896 (debug_printf): Update.
4897 * sim-trace.c (OPTION_TRACE_DEBUG): Define.
4898 (trace_options): Add --trace-debug.
4899 (set_trace_options): Handle it.
4900 (trace_option_handler): Likewise.
4901 (trace_install): Init state trace_data struct.
4902 (trace_uninstall): Close state trace file.
4903 * sim-events.c (ETRACE): Only print source file and line number if
4905 * sim-n-core.h (sim_core_trace_M): Likewise.
4907 * sim-core.c (sim_core_signal): Add missing "\n" in message.
4909 1997-11-13 Felix Lee <flee@cygnus.com>
4911 * sim-n-core.h (sim_core_read_unaligned_N): illegal empty
4913 * sim-types.h (unsigned128,signed128): fix typo for MSVC.
4915 Wed Nov 12 12:18:08 1997 Doug Evans <devans@canuck.cygnus.com>
4917 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Fix typo.
4919 * Make-common.in (BUILT_SRC_FROM_COMMON): Remove files no longer
4921 (sim-config.o): Remove non-existent $(sim-nconfig_h) dependency.
4922 (clean): Don't delete $(BUILT_SRC_FROM_COMMON) if building in
4925 Tue Nov 11 13:28:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
4927 * sim-events.c (sim_events_process): Re-compute the time -
4928 update_time_from_event - as each event is processed. Reverses
4931 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
4933 * callback.c (os_poll_quit): Replace _WIN32 with _MSC_VER.
4935 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
4937 * sim-events.c (sim_events_process): Delete redundant call to
4938 update_time_from_event.
4939 (sim_events_slip): Always decrement time_from_event.
4940 (sim_events_tick, sim_events_deschedule, update_time_from_event):
4941 Delete assertion that time_from_event >=0 when work in queue, no
4944 Thu Nov 6 12:06:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
4946 * sim-options.c (STANDARD_OPTIONS): Change OPTION_* to an enum.
4947 (standard_option_handler): Update.
4949 * sim-options.h: Clarify documentation.
4950 (OPTION_LONG_ONLY_P): Delete definition.
4951 (OPTION_VALID_P): Define.
4953 * sim-options.c (sim_print_help): Allow short only options.
4954 (sim_parse_args): Ditto.
4955 (sim_args_command): Skip short only options.
4956 (sim_parse_args): Allocate space for NUM_OPTS not just 256. Make
4957 separate entries for short and long options in the HANDLERS and
4959 (sim_parse_args): Disable argument permutation.
4961 Wed Nov 5 13:40:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
4963 * sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N):
4964 Add argument M, size of data type.
4965 (sim_core_read_misaligned_3, sim_core_write_misaligned_3):
4966 Declare, ditto for 5, 6 & 7 byte transfers.
4967 (sim_core_write_unaligned_1, sim_core_write_unaligned_1): Define
4970 * sim-n-core.h (sim_core_trace_M): Rename from
4971 sim_core_trace_N. Add nr_bytes argument. Replace transfer argument
4972 with transfer type. Print transfer direction. Handle 1 and 2 byte
4974 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Trace
4976 (unsigned_M, T2H_M, H2T_M): Rename from unsigned_N, T2H_N, H2T_N.
4977 Update all functions.
4979 * sim-core.c: Generate functions starting with 16 not 1.
4980 (sim_core_read_unaligned_3): Generate. Ditto for 3 byte write and
4981 all 5, 6 & 7 byte transfers.
4983 * sim-n-core.h (sim_core_read_misaligned_N,
4984 sim_core_write_misaligned_N): Implement.
4986 Mon Nov 3 15:03:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
4988 * sim-endian.h (U16_8): Implement
4990 * sim-endian.c (sim_endian_split_16, sim_endian_join_16): New functions
4992 * sim-endian.h (VL8_16, VH8_16): Implement.
4994 * sim-memopt.c (memory_option_handler): Typecast 64bit value to
4996 (memory_option_handler): Only zalloc modulo bytes when non-zero.
4997 (memory_option_handler): Skip comma in alias address list
4999 Fri Oct 31 13:03:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
5001 * sim-memopt.c (do_memopt_add, do_memopt_delete): Add level and
5003 (parse_size, parse_addr): New functions
5004 (memory_option_handler, memory_options): Parse address & size
5005 using new functions. Pass level, space, modulo to do_memopt_add &
5008 * sim-memopt.h (struct _sim_memopt): Add level & space fields.
5010 * sim-core.h (sim_core_arrach, sim_core_detach): Replace
5011 `attach_type attach' argument with `unsigned level' argument.
5014 * sim-core.c (new_sim_core_mapping, sim_core_map_attach,
5015 sim_core_attach): Replace argument attach with level. Update
5016 verification of arguments.
5017 (sim_core_map_detach, sim_core_detach): Replace argument attach
5020 * sim-basics.h (enum _attach_type): Delete.
5022 Thu Oct 30 13:45:00 1997 Doug Evans <devans@seba.cygnus.com>
5024 * sim-core.h (sim_core_write_8): Define.
5026 Tue Oct 28 12:29:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5028 * sim-bits.h: Document ROTn macro.
5030 * sim-endian.h (H2T): Handle 16 byte variables.
5032 * sim-n-core.h (sim_core_read_unaligned_N): Return a dummy when an
5035 * sim-core.c: Do not generate sim_core_*_word.
5037 * sim-n-core.h (sim_core_trace_N): Add line_nr argument.
5038 (sim_core_write_aligned_N, sim_core_read_aligned_N): Update.
5040 * sim-core.h (sim_core_read_unaligned_word,
5041 sim_core_read_aligned_word, sim_core_read_word,
5042 sim_core_write_unaligned_word, sim_core_write_aligned_word,
5043 sim_core_write_word): Change to macros that map onto sim_core_*_N.
5045 Mon Oct 27 11:25:10 1997 Doug Evans <devans@canuck.cygnus.com>
5047 * sim-n-endian.h: Add TAGS entrys for 16 byte versions.
5049 * sim-endian.h: Disable 16 byte support.
5051 Mon Oct 27 12:00:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
5053 * sim-endian.c (_SWAP_16): Define. Generate 126 bit swap code.
5055 * sim-n-core.h (sim_core_trace_N): New function.
5056 (sim_core_read_aligned_N, sim_core_write_aligned_N): Use,
5057 (sim_core_read_unaligned_N): Do not retyrn bogus value wden error.
5059 * sim-endian.h: Add 128 bit variant.
5061 * sim-core.h, sim-core.c: Add 128 bit variant.
5063 * sim-types.h: Add signed128 and unsigned128 types using a struct.
5065 Fri Oct 24 11:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
5067 * sim-events.c (sim_events_process): Clear events->work_pending.
5068 (sim_events_tickn, sim_events_tick): Accumulate, instead of
5069 setting, nr_ticks_to_process.
5070 (sim_events_preprocess): Allow nr_ticks_to_process to be non-zero
5071 when the event queue isn't next.
5073 * sim-events.h, sim-events.c (sim_events_slip): New function.
5075 Wed Oct 22 14:18:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5077 * sim-hload.c (sim_load): Pass lma_p==0 and do_load=sim_load.
5079 * sim-utils.h, sim-load.c (sim_load_file): Add lma_p and do_load
5082 Tue Oct 21 18:37:57 1997 Doug Evans <devans@canuck.cygnus.com>
5084 * nrun.c (main): Remove useless test of name != NULL.
5085 Exit if bfd_openr fails. Call bfd_check_format after bfd_openr.
5087 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5089 * sim-fpu.c (EXPMAX): Type is unsigned.
5090 (MIN_INT, MAX_INT): Type is signed64.
5091 (i2fpu): Type of val is signed64.
5093 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5095 * sim-profile.h (PROFILE_PC_BUCKET_SIZE): Treat a shift of zero as
5096 a bucket size of zero.
5098 * sim-profile.c (OPTION_PROFILE_PC_GRANULARITY,
5099 OPTION_PROFILE_PC): Define.
5100 (profile_option_handler): Add support for --profile-pc and
5101 --profile-pc-granularity options.
5102 (profile_pc_init): When possible, compute nr buckets from bucket
5105 * sim-profile.c (profile_pc_init): Align the profile-pc end
5106 address with the profile-pc bucket size.
5108 * sim-profile.h (PROFILE_PC_NR_BUCKETS): Rename PROFILE_PC_SIZE to
5109 something less ambiguous.
5110 (PROFILE_PC_BUCKET_SIZE): Ditto for PROFILE_PC_SAMPLE_SIZE.
5112 * sim-profile.c (profile_pc_cleanup): New function. Move
5113 profile_pc_uninstall code to here.
5114 (profile_pc_uninstall): Call.
5115 (profile_pc_init): Call.
5117 Mon Oct 20 17:23:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
5119 * sim-profile.c (profile_print_pc): Dump pc profile to dmon.out
5120 file using BSD gprof format.
5122 * sim-bits.h (LSBIT, MSBIT, BIT): Force result to type
5124 (LSBIT8, LSBIT16, LSBIT32, LSBIT64, MSBIT8, MSBIT16, MSBIT32,
5125 MSBIT64): Force result to unsignedN.
5127 Thu Oct 16 11:38:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
5129 * sim-alu.h (ALU16_BEGIN, ALU32_BEGIN, ALU64_BEGIN): Drop opening
5131 (ALU8_BEGIN, ALU8_SET, ALU8_ADD, ALU8_SUB, ALU8_NEGATE): Define.
5132 (ALU16_ADD, ALU16_SUB, ALU16_NEGATE): Simplify arrithmetic.
5133 (ALU32_ADD, ALU32_SUB, ALU32_NEGATE): Simplify arrithmetic.
5134 (ALU64_ADD, ALU64_SUB, ALU64_NEGATE): Simplify arrithmetic.
5136 Wed Oct 15 09:24:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
5138 * sim-core.h (struct _sim_core_mapping): Change free_buffer to
5141 * sim-core.c (sim_core_uninstall, new_sim_core_mapping,
5142 sim_core_map_attach, sim_core_map_detach): Change free_buffer to
5144 (sim_core_attach): Rename buffer_freed to free_buffer, type
5145 void*. Ensure that allocated buffer is alligned according to
5148 Mon Oct 13 11:34:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
5150 * sim-alu.h (ALU64_HAD_OVERFLOW): Define.
5151 (ALU64_SUB): Define.
5153 * Make-common.in (all): Build SIM_EXTRA_ALL first.
5154 (.gdbinit): Remove dependencies, generate once per build.
5156 Tue Oct 14 19:20:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
5158 * sim-n-core.h (sim_core_read_aligned_N,
5159 sim_core_write_aligned_N): Make xaddr param type address_word not
5162 Fri Oct 3 09:49:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
5164 * sim-fpu.h, sim-fpu.c: Rewrite. Change sim_fpu object to an
5165 unpacked floating point struct. Pass sim_fpu object by reference.
5166 Add preliminary support for rounding modes.
5168 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5170 * configure: Regenerated to track ../common/aclocal.m4 changes.
5172 Thu Oct 2 19:43:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
5174 * aclocal.m4 (sim-bitsize): Fix typo, WITH_TARGET_WORD_BITSIZE not
5175 WITH_TARGET_BITSIZE.
5177 Thu Sep 25 23:20:20 1997 Felix Lee <flee@yin.cygnus.com>
5179 * sim-profile.c (profile_print_core): label needs empty statement.
5181 Thu Sep 25 11:20:47 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
5183 * sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC
5184 and zfree instead of xmalloc and free. Prevents warnings.
5186 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
5188 * configure: Regenerated to track ../common/aclocal.m4 changes.
5190 Wed Sep 24 17:23:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
5192 * Make-common.in (SIM_BITSIZE): Assign from configured value.
5193 (CONFIG_CFLAGS): Add SIM_BITSIZE.
5195 * aclocal.m4 (--enable-sim-bitsize): Developer option for
5196 controling the bitsize/msb of the target.
5198 Wed Sep 24 17:41:40 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
5200 * Make-common.in: New files sim-break.c, sim-break.h.
5201 * sim-base.h: Add point to breakpoint list to sim_state_base.
5202 * sim-break.c sim-break.h: New modules that implement intrinsic
5204 * sim-module.c: Add breakpoint module.
5206 Tue Sep 23 00:26:39 1997 Felix Lee <flee@yin.cygnus.com>
5208 * sim-events.c (SIM_EVENTS_POLL_RATE): poll more often than once
5210 * sim-n-core.h (WITH_XOR_ENDIAN): MSVC barfs on
5212 * sim-core.c (sim_core_xor_write_buffer): WITH_XOR_ENDIAN + 1.
5213 (SIGBUS) define for Windows.
5214 * sim-trace.c (trace_printf,debug_printf): added ALMOST_STDC.
5215 * sim-resume.c: define SIGTRAP for windows.
5216 * sim-xcat.h: use token pasting if ALMOST_STDC.
5218 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5220 * Make-common.in (SIM_SCACHE, SIM_DEFAULT_MODEL): Assign
5222 (CONFIG_CFLAGS): Add same.
5224 Mon Sep 22 17:20:27 1997 Felix Lee <flee@cygnus.com>
5226 * sim-types.h (SIGNED64): ##i64 when _MSC_VER, not _WIN32.
5227 (SIGNED32): use ##i32.
5229 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
5231 * configure: Regenerated to track ../common/aclocal.m4 changes.
5233 Tue Sep 23 10:07:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
5235 * aclocal.m4 (sim-endian): Simplify logic determining [default]
5238 * Make-common.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
5239 SIM_HOSTENDIAN, SIM_RESERVED_BITS, SIM_ASSERT, SIM_FLOAT,
5240 SIM_HARDWARE, SIM_INLINE, SIM_PACKAGES, SIM_REGPARM, SIM_SMP,
5241 SIM_STDCALL, SIM_XOR_ENDIAN): Assign configured values.
5242 (CONFIG_CFLAGS): Add same.
5244 * aclocal.m4: Perform AC_SUBST on optional options.
5246 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5248 * sim-config.h (WITH_DEFAULT_ALIGNMENT): Don't hardwire any alignment.
5250 * sim-options.c (standard_option_handler): Typo in warning message.
5252 * sim-base.h (STATE_MODEL): Make conditional on SIM_HAVE_MODEL.
5254 * sim-profile.c (profile_print_insn): Check 0 .. MAX_INSN for any
5255 insn count. Make count conditional on there being a valid
5257 (profile_pc_init): Make default PC profile frequency an arbitrary
5260 * sim-base.h: Ditto.
5262 * sim-profile.h (WITH_PROFILE_MODEL_P): Only enable modeling when
5265 * sim-model.h (struct MACH): Depreciate, to be replaced by bfd
5268 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5270 * configure: Regenerated to track ../common/aclocal.m4 changes.
5272 Mon Sep 22 11:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5274 * aclocal.m4 (sim_alignment): Simplify logic for selecting the
5275 configured alignment.
5277 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
5279 * configure: Regenerated to track ../common/aclocal.m4 changes.
5281 Fri Sep 19 17:26:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
5283 * sim-config.c (sim_config): Check for default alignment.
5285 * sim-options.c (standard_option_handler): Add alignment option.
5287 * aclocal.m4 (sim_alignment): Allow configuration of hardwired and
5288 default alignment requirements on memory accesses.
5290 Fri Sep 19 11:51:35 1997 Jeffrey A Law (law@cygnus.com)
5292 * sim-load.c (sim_load_file): Return failure if the executable
5293 had no loadable sections.
5295 Wed Sep 17 13:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
5297 * sim-events.c (ETRACE): Use trace_printf not sim_io_printf for
5300 * sim-core.c (sim_core_signal): When bad access halt simulator
5301 SIGSEGV / SIGBUS instead of aborting.
5302 (signal.h): Include.
5304 * sim-watch.c (sim_watchpoint_install): Handler for watchpoint
5305 options was missing.
5307 * sim-bits.h (MOVED): Define
5309 Wed Sep 17 10:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
5311 * sim-alu.h (ALU32_HAD_OVERFLOW): Pacify GCC, Use MSBIT instead of
5314 * sim-bits.h (LSBIT, MSBIT): Check for overflow of shift value.
5316 * sim-bits.c: Add 8 bit versions of bit macros.
5318 * sim-bits.h: Ditto.
5320 Tue Sep 16 16:15:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
5322 * sim-bits.c (LSSEXT, MSSEXT): Replace SEXT.
5323 (LSINSERTED, MSINSERTED): Ditto for INSERTED.
5325 * sim-n-bits.h (MSSEXTn, LSSEXTn): Replace SEXTn.
5326 (LSINSERTDn, MSINSERTEDN): Ditto for INSERTEDn.
5328 * sim-bits.h (SEXT*): Define as MSEXT/LSEXT.
5329 (INSERTED*): Ditto for LSINSERTED/MSINSERTED.
5331 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
5333 * aclocal.m4 (SIM_AC_COMMON): Add optional config.h file argument.
5334 configure.in: Output to cconfig.h instead of config.h.
5336 * configure: Regenerated to track ../common/aclocal.m4 changes.
5338 Mon Sep 15 15:39:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
5340 * sim-utils.c (sim_analyze_program): Set STATE_ARCHITECTURE from
5343 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
5345 * callback.c (os_write): divert stdout and stderr to their
5348 Thu Sep 11 10:08:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
5350 * sim-profile.c (profile_print_speed): Call
5351 sim_events_elapsed_time instead of PROFILE_EXEC_TIME for moment.
5353 * sim-events.c (sim_events_elapsed_time): New function return nr
5354 host MS consumed by the simulator.
5355 (sim_watch_valid): Use.
5357 * sim-module.c (modules): Install sim_events very very early.
5359 * sim-profile.c (profile_print): Call profile_print_pc.
5361 (profile_pc_init): New function, set up processor for PC
5363 (profile_print_pc): New function, print a PC profile.
5364 (profile_pc_event): New function, sample PC.
5366 * sim-profile.h (PROFILE_PC_COUNT, PROFILE_PC_START,
5367 PROFILE_PC_END, PROFILE_PC_SHIFT, PROFILE_PC_SAMPLE_SIZE): Add to
5370 * sim-options.c (sim_print_help): Pacify GCC.
5372 * sim-n-core.h (sim_core_read_aligned_N,
5373 sim_core_write_aligned_N): Add un-conditional profile call.
5374 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Add
5375 profile call when aligned read/write isn't used.
5377 * sim-base.h: Include sim-profile, sim-model after sim-core &
5378 sim-events allow sim-core to define useful values.
5380 * sim-profile.c (OPTION_PROFILE_CORE): Define.
5381 (profile_option_handler, profile_options): Add support for
5382 --profile-core option.
5383 (print_bar): Include when core profiling.
5384 (profile_print_core): New function, print core profile.
5386 * sim-config.c (print_sim_config): Print profile status.
5388 * sim-profile.h (PROFILE_NEXT_IDX, PROFILE_core,
5389 WITH_PROFILE_PC_P): Define.
5390 (PROFILE_CORE_COUNT): Count each core-map/size separatly.
5391 (PROFILE_COUNT_CORE): Define.
5393 Thu Sep 11 08:44:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
5395 * sim-watch.c (handle_watchpoint): Pass a char** index into the
5396 interrupt_names array as the data.
5397 (sim-watch.h): Document.
5399 Wed Sep 10 16:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5401 * sim-options.c (sim_print_help): When the doc string is to long
5404 * sim-watch.c (sim_watchpoint_install): Use option.doc_name so
5405 that only the first few the watch options are listed. Generate
5406 meanginful usage messages.
5408 * sim-options.h (struct OPTION): Clarify use of doc_name field
5410 Wed Sep 10 13:23:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
5412 * sim-options.c (OPTION_ARCHITECTURE_INFO): New option.
5413 (standard_option_handler): Handle --architecture-info.
5415 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
5417 * sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid
5418 illegal zero-sized array.
5419 * sim-core.c (sim_core_xor_read_buffer): same.
5421 Tue Sep 9 11:20:35 1997 Doug Evans <dje@canuck.cygnus.com>
5423 * nltvals.def: Regenerate.
5425 Tue Sep 9 02:10:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
5427 * sim-fpu.c (DP_FRACHIGH2): Define LL using SIGNED64.
5429 Mon Sep 8 12:22:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
5431 * sim-bits.c (MASKED): Delete.
5432 (EXTRACTED): Delete.
5433 (LSEXTRACTED, MSEXTRACTED): New functions.
5435 * sim-n-bits.h (MASKEDn): Delete, define as MSMASKED or LSMASKED.
5436 (MSMASKEDn, LSMASKEDn): Add last argument.
5439 * sim-bits.h (EXTEND8, EXTEND16): Define.
5440 (EXTRACTED64): Define as 64 bit extract, not 32 bit.
5442 * sim-run.c (sim_engine_run): Use CPU_CIA macro.
5444 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use CPU_CIA to get at
5445 current instruction address.
5447 * sim-inline.h (*_ENGINE): Define.
5449 Fri Sep 5 08:39:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
5451 * sim-core.c (sim_core_attach): Fix checks of modulo/mask.
5453 * sim-watch.c (delete_watchpoint): Delete by ident and type.
5454 (watch_option_handler): Call delete_watchpoint with ident or type.
5455 (sim_watchpoint_install): Create interrupt specific watchpoint
5456 commands on the fly.
5457 (do_watchpoint_create): New function, create a watch point using
5458 type/int-nr info encoded in the option nr.
5459 (do_watchpoint_info): New function. List active watchpoints.
5461 * sim-watch.h: Change data structure to a list.
5463 * sim-memopt.c (memory_option_handler): Require explicit "all"
5464 before deleting all memory regions.
5466 * sim-utils.c (sim_do_commandf): New function, printf version of
5469 * sim-basics.h (asprintf, vasprintf): Hack, define for CYGWIN32.
5471 * sim-alu.h (ALU64_ADD): Use explicit MSEXTRACTED64, do not assume
5473 (SIGNED64, UNSIGNED64): Delete.
5474 (ALU64_ADD): Don't rely on bit endianness.
5475 (ALU64_BEGIN): Define.
5477 * sim-n-bits.h (MSEXTRACTEDn, LSEXTRACTED): New functions.
5478 (EXTRACTEDn): Delete, define as either LSEXTRACTED or MSEXTRACTED.
5480 * sim-types.h (SIGNED64, UNSIGNED64): New macros, attach relevant
5481 suffix - u64, LL - to 64 bit constants.
5483 Thu Sep 4 09:27:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
5485 * sim-config.c (sim_config): Add assert for SIM_MAGIC_NUMBER.
5487 * sim-utils.h (NZALLOC): Define - zalloc * N.
5489 * sim-hrw.c (sim_read, sim_write): New file. Provide generic
5490 implementation of read/write functions.
5492 * Make-common.in (sim-hrw.o): New target.
5494 * sim-base.h (STATE_MEMOPT_P): Delete, simulators _always_ add
5497 * sim-memopt.c (memory_option_handler): Implement memory-size
5498 command. Implement memory-alias command. Let memory-delete delete
5500 (add_memopt): New function. Add a memory region.
5501 (do_memopt_delete): New function. Delete a memory region.
5503 * sim-utils.c (sim_elapsed_time_get): Never return zero.
5505 * sim-core.c (sim_core_detach): New function.
5506 (sim_core_map_detach): New function. Perform the actual detach.
5507 (sim_core_init): Move initialization code from here.
5508 (sim_core_install): To here.
5509 (sim_core_uninstall): And here.
5511 * sim-module.c: Add memopt module.
5513 * sim-base.h (STATE_MEMOPT, STATE_MEMOPT_P): Add memopt to
5514 simulator base type.
5516 * Make-common.in (sim_main_headers): Add sim-memopt.h
5517 (sim-memopt.o): New target.
5519 * sim-core.c (sim_core_install): Add core_options to the option
5522 * sim-watch.c (watch_options): Make --delete-watch a synonym for
5525 * sim-config.h (WITH_MODULO_MEMORY): Define as 0. Update
5528 * sim-core.h (struct _sim_core_mapping): Change nr_bytes to type
5529 address_word, add mask member.
5531 * sim-core.h, sim-core.c (sim_core_attach): Make nr_bytes of type
5532 address_word, allow for 64bit targets in 32bit host. Add modulo
5534 (sim_core_map_attach): Ditto.
5535 (new_sim_core_mapping): Ditto.
5536 (sim_core_translate): Mask address when modulo memory.
5538 Wed Sep 3 17:32:54 1997 Doug Evans <dje@seba.cygnus.com>
5540 * sim-hload.c (sim_load): Add assert for SIM_MAGIC_NUMBER.
5542 * gdbinit.in: New file.
5543 * aclocal.m4 (SIM_AC_OUTPUT): Build .gdbinit.
5544 * Make-common.in (distclean): Delete .gdbinit.
5545 (.gdbinit): Add rule for.
5546 * configure: Regenerated to track ../common/aclocal.m4 changes.
5548 * Make-common.in (cgen-run.o): Add rule for.
5550 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
5552 * sim-resume.c (sim_resume): Suspend/resume the simulator.
5554 * sim-events.c (sim_watch_valid): Compute total elapsed time from
5555 both resumed and previous elapsed time.
5556 (sim_events_init): Set initial_wallclock and current_wallclock to
5558 (sim_events_install): Install sim_events_suspend and
5560 (sim_events_watch_clock): Allow for suspended simulator when
5561 computing the time of the clock event.
5563 * sim-events.h (struct _sim_event): Add resume_wallclock, rename
5564 initial_wallclock to elapsed_wallclock, set both to zero.
5565 (sim_events_init, sim_events_uninstall): Delete prototypes.
5567 * sim-module.h (MODULE_SUSPEND_FN, MODULE_RESUME_FN): Define types.
5569 * sim-module.c(sim_module_resume, sim_module_suspend): New
5572 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
5574 * sim-core.c (sim_core_map_attach): Clarify memory overlap error
5577 Tue Sep 2 14:57:06 1997 Doug Evans <dje@canuck.cygnus.com>
5579 * Makefile.in (TAGS): Add support for "/* TAGS: foo */" marker.
5580 * Make-common.in (TAGS): Likewise.
5581 * sim-n-bits.h: Add TAGS comments for all functions.
5582 * sim-n-core.h: Likewise.
5583 * sim-n-endian.h: Likewise.
5585 Mon Sep 1 10:50:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
5587 * sim-utils.c (sim_state_alloc): Set CPU backlinks, callback and
5590 * sim-base.h (sim_state_alloc): Add callback and kind arguments.
5592 * sim-base.h (INVALID_INSTRUCTION_ADDRESS): Add default
5595 Sat Aug 30 09:47:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
5597 * sim-fpu.c (DP_GARDMSB, ...): Make unsigned.
5598 (DP_FRACHIGH, DP_FRACHIGH2, ..): Use MSMASK to avoid LL.
5600 Fri Aug 29 13:37:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
5602 * sim-core.c (sim_core_map_attach): Cast attach enum to int.
5603 (sim_core_xor_read_buffer, sim_core_xor_write_buffer): Make
5604 nr_transfered and nr_this_transfer unsigned.
5606 * sim-events.c (sim_events_tickn): N is signed, as limited to
5609 * sim-n-endian.h (offset_N): Change size to unsigned.
5611 * callback.c (os_poll_quit): Add prototypes for kbhit and getkey.
5613 Fri Aug 29 10:10:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
5615 * sim-utils.c (sim_copy_argv): Delete, replaced by dupargv.
5617 * sim-options.c (sim_parse_args): Use dupargv.
5619 Thu Aug 28 10:36:34 1997 Doug Evans <dje@canuck.cygnus.com>
5621 * sim-options.c (standard_option_handler): Use xstrdup, not strdup.
5623 Thu Aug 28 12:09:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
5625 * sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator
5628 * sim-options.c (standard_options): Add --architecture=MACHINE and
5629 --target=TARGET options.
5630 (OPTION_ARCHITECTURE, OPTION_TARGET): Define.
5631 (standard_option_handler): Handle architecture and target options.
5634 * sim-utils.c (sim_analyze_program): Pass STATE_TARGET to
5636 (sim_analyze_program): Set prog_bfd architecture from
5637 STATE_ARCHITECTURE if known.
5639 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5641 * configure: Regenerated to track ../common/aclocal.m4 changes.
5644 Wed Aug 27 18:11:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
5646 * aclocal.m4 (enable-sim-warnings): Remove comment stating
5647 that option does not apply to certain files.
5649 Wed Aug 27 15:13:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
5651 * sim-bits.h (LSBIT8, LSBIT16, LSBIT32, LSBIT64, LSBIT, MSBIT8,
5652 MSBIT16, MSBIT32, MSBIT64, MSBIT): New macros - single bit as
5653 offset from MSB/LSB.
5655 * sim-endian.h (A1_8, A2_8, A4_8, A1_4, A2_4, A1_2): New macro,
5656 access address of sub word quantity of a hosts 16, 32, 64 bit word
5658 (V1_2, V1_4, V2_4, V1_8, V2_8, V4_8): Ditto for values.
5659 (U8_1, U8_2, U8_4, U4_1, U4_2, U2_1): Ditto for set of values.
5660 (V2_H1, V2_L1, V4_H2, V4_L2, V8_L4, V8_H4): Given N byte argument,
5661 return N*2 byte value with argument in Hi/Lo word. Renamed from
5662 V1_H2, V1_L2, V2_H4, V2_L4, V4_H8, V4_L8.
5664 * sim-alu.h (ALU32_HAD_OVERFLOW): Use 64 bit mask not 32bit.
5665 (ALU16_HAD_CARRY, ALU32_HAD_CARRY, ALU16_HAD_OVERFLOW): Use MSBIT
5666 so that bit offset is explicit.
5668 Wed Aug 27 11:55:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
5670 * sim-utils.c (sim_analyze_program): Add prog_name argument.
5671 Update STATE_PROG_BFD when needed with a dup'd copy of the
5674 * sim-config.c (sim_config): Delete ABFD argument, use
5675 STATE_PROG_BFD directly.
5677 Tue Aug 26 12:55:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
5679 * run.c (main): Pass the open ABFD to sim_create_inferior.
5681 * nrun.c (main): Determine prog_bfd. Pass to sim_create_inferior
5685 * sim-hload.c (sim_load): New file. Implement generic sim_load for
5686 hardware only simulator targets.
5688 * Make-common.in (sim-hload.o): Add rule.
5690 Wed Aug 27 09:51:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
5692 * sim-utils.c (sim_copy_argv): Rewrite to match malloc strategy
5693 used by copyargv and freeargv.
5695 * sim-options.c (sim_parse_args): Save a copy of PROG-ARGS in
5696 STATE_PROG_ARGV, not just a pointer.
5698 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5700 * configure: Regenerated to track ../common/aclocal.m4 changes.
5703 Mon Aug 25 12:11:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
5705 * aclocal.m4 (sim-endian): Add second argument to
5706 SIM_AC_OPTION_ENDIAN. First is hardwired endian, second is
5707 default endian when not hardwired.
5709 * sim-config.h (WITH_DEFAULT_TARGET_BYTE_ORDER): New macro, if all
5710 else failes value for target byte order.
5712 * sim-config.c (sim_config): Add abfd arguments. Set
5713 STATE_PROG_BFD accordingly. Determine prefered_target_byte_order
5715 (sim_config): Return SIM_RC, don't abort.
5718 * run.c (main): Update call to sim_open - add ABFD argument.
5719 * nrun.c (main): Add NULL ABFD argument.
5721 Thu Aug 14 12:48:57 1997 Doug Evans <dje@canuck.cygnus.com>
5723 * callback.c (os_poll_quit): Make static.
5724 Call sim_cb_eprintf, not p->eprintf.
5725 (sim_cb_printf, sim_cb_eprintf): New functions.
5726 * sim-utils.h (sim_cb_printf, sim_cb_eprintf): Declare.
5728 * sim-basics.h (zalloc,zfree,sim_add_commas,SIM_ELAPSED_TIME,
5729 sim_elapsed_time_get,sim_elapsed_time_since): Move decls to
5730 sim-utils.h. #include sim-utils.h.
5731 * sim-utils.h: Above decls moved here.
5732 (sim_analyze_program,sim_load_file): Use `struct _bfd', not `bfd'.
5734 * sim-watch.c (action_watchpoint): Fix thinkos.
5736 Thu Jul 24 08:48:05 1997 Stu Grossman (grossman@critters.cygnus.com)
5738 * sim-types.h: Fix defs of 64 bit data types for MSVC.
5740 Tue Jul 22 10:35:37 1997 Doug Evans <dje@canuck.cygnus.com>
5742 * sim-n-core.h (sim_core_write_unaligned_N): Add missing break
5743 to FORCED_ALIGNMENT case.
5745 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
5747 * callback.c (target_to_host_open): Handle hosts with O_BINARY.
5749 Thu Jun 5 08:47:10 1997 Jeffrey A Law (law@cygnus.com)
5751 * Make-common.in (libsim.a): Fix typo.
5753 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
5755 * nrun.c (main): Verify the structure returned before using it.
5757 Wed Jun 4 11:44:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
5759 * sim-config.h (WITH_ENGINE): Enable the sim-engine module by
5762 * sim-engine.c (sim_engine_install): New function. Install the
5763 engine init functions.
5764 (sim_engine_init): [Re]initialize the simulator engine.
5766 * sim-module.c: Add sim_engine to list of modules that always
5769 Tue Jun 3 04:52:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
5771 * sim-watch.c (schedule_watchpoint): Use sim_unschedule_watchpoint
5772 to remove the old watchpoint, not delete_watchpoint.
5773 (watch_option_handler): Action the correct watchpoint, not just
5776 Wed May 28 14:47:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
5778 * sim-n-core.h (sim_core_write_aligned_N): For 8byte reads, output
5779 both low and high word.
5780 (sim_core_write_aligned_N): Ditto.
5782 * sim-trace.c (set_trace_options): Delete code explicitly setting
5785 * sim-options.c (sim_print_help): Call the list commands if not a
5786 standalone simulator.
5787 (sim_print_help): Advise that some options may not be applicable.
5789 * sim-trace.c (set_trace_options): Assume core present.
5791 * sim-events.c (sim_events_schedule_after_signal): Overflow signal
5792 buffer when full not almost full.
5794 Tue May 27 14:32:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
5796 * sim-events.c (sim_events_process): Don't blat the event queue
5797 when processing watchpoints.
5799 * sim-watch.h: Make arg unsigned long - stop sign extension.
5801 * sim-events.c (sim_watch_valid): rewrite so debugable.
5803 * sim-config.h (WITH_XOR_ENDIAN): Default to zero.
5805 * sim-watch.c (schedule_watchpoint): Add is_within option so that
5806 inequality test is possible.
5807 (handle_watchpoint): Re-pass is_within arg.
5808 (watch_option_handler): When `!' prefix to pc-watchpoint arg pass
5809 0 to schedule_watchpoint's is_within arg.
5810 (sim_watchpoint_init): Re-pass is_within arg.
5812 * sim-options.c (sim_print_help): Add is_command argument. Don't
5813 include -- prefix when called from the command line interpreter.
5815 * sim-watch.c (schedule_watchpoint): Pass true is_within argument.
5817 * sim-events.c (sim_events_watch_sim): Add is_within argument,
5818 zero indicates that the test should be reversed.
5819 (sim_events_watch_core): Ditto.
5820 (WATCH_CORE): Compare range against is_within.
5823 Tue May 27 12:48:03 1997 Andrew Cagney <cagney@b2.cygnus.com>
5825 * sim-events.c (WATCH_CORE): Pass NULL cpu argument to
5826 sim_core_read_buffer. Check nr-bytes transfered.
5828 * sim-core.h (sim_core_common): Define a new struct that contains
5829 the common data. to sd and cpu structures.
5830 * sim-core.c (sim_core_attach): Update.
5831 (sim_core_init): Update. Remember to copy initialized data to each
5833 (sim_core_find_mapping): Ditto.
5835 * sim-core.c (sim_core_read_buffer): Add cpu argument.
5836 (sim_core_write_buffer): Ditto.
5838 * sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned
5839 transfer use xor version of read buffer.
5840 (sim_core_write_unaligned_N): Ditto for write.
5842 * sim-core.c (sim_core_xor_read_buffer): New function implement
5843 xor-endian data read breaking transfer up into xor-endian sized
5845 (sim_core_xor_write_buffer): Ditto for write.
5846 (reverse_n): Reverse order of arbitrary number of bytes in buffer
5847 - needed for xor-endian transfers.
5849 Fri May 23 14:24:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
5851 * sim-inline.h: Review description.
5853 * sim-core.h, sim-core.c: Reduce number of functions being inlined
5854 to just those involved in data transfers and configuration.
5856 * sim-xcat.h (XSTRING): New macro, map macro definition onto
5858 * sim-n-core.h (sim_core_read_aligned_N): Use.
5859 (sim_core_read_unaligned_N): Ditto.
5860 (sim_core_read_unaligned_N): Ditto..
5861 (sim_core_write_unaligned_N): Ditto.
5863 * sim-core.h: Add xor endian bitmap to main structure. *
5865 sim-n-core.h (sim_core_write_aligned_N): Add suport for xor
5867 (sim_core_read_aligned_N): Ditto.
5869 * sim-core.c (sim_core_set_xor_endian): New function.
5870 (sim_core_attach): Don't overwrite the per-cpu xor map when
5871 cloning the global core.
5873 Fri May 23 10:53:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
5875 * sim-engine.h: Update below so that it is using an enumerated
5878 Thu May 22 09:12:16 1997 Gavin Koch <gavin@cygnus.com>
5880 * sim-engine.c (sim_engine_restart):
5881 * sim-resume.c (sim_resume): Change longjmp param/setjmp
5882 return value used for simulator restart from 0 to 2.
5884 Wed May 21 08:47:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
5886 * cgen-scache.c (scache_option_handler): Add is_command arg.
5888 * sim-model.c (model_option_handler): Add is_command argument.
5890 * sim-profile.c (profile_option_handler): Add is_command arg.
5892 * sim-events.c (sim_watch_valid): Use ub64, lb64 when 64bit value
5895 * sim-module.c (sim_module_add_init_fn): Call init fn in the same
5896 order that they are registered.
5898 * sim-options.h (OPTION_HANDLER): Add argument to differentiate
5899 between option and command line processing.
5901 * sim-options.c: Include stdlib.h, ctype.h.
5903 * Make-common.in (sim-watch.o): Add rule.
5904 (sim_main_headers): Assume sim-assert.h included.
5905 (sim-*.o): Simplify make rule.
5907 * sim-module.c: Add sim_watch_install to module list.
5909 Tue May 20 14:15:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
5911 * sim-base.h (STATE_LOADED_P): New predicate. Set once everything
5914 * sim-trace.c (trace_install): Check magic. Include sim-assert.h.
5915 * sim-events.c (sim_events_install): Ditto.
5916 * sim-core.c (sim_core_install): Ditto.
5917 * sim-model.c (model_install): Ditto.
5918 * sim-options.c (standard_install): Ditto.
5919 * sim-profile.c (profile_install): Ditto.
5920 * sim-reason.c (sim_stop_reason): Ditto.
5921 * sim-run.c (sim_engine_run): Ditto.
5922 * sim-utils.c (sim_analyze_program): Ditto.
5924 * sim-module.c (modules): Make profile_install and trace_install
5927 * sim-base.h (STATE_MEM_BASE): Define for flat memory systems.
5929 * sim-options.c (standard_option_handler): Set the byte order.
5931 * sim-events.c (sim_events_process): Allow multi tick processing.
5932 (sim_events_tickn): New function - multi cycle tick.
5934 * sim-events.h (sim_events_tickn, sim_events_timewarp): Add
5935 prototypes. Under development.
5936 (sim_events): Replace processing with nr_ticks_to_process.
5938 Tue May 20 09:39:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5940 * nrun.c (main): Pass callbacks to sim_open instead of using
5943 * run.c (main): Ditto.
5945 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
5947 * sim-events.c (sim_events_zalloc): Signal save memory allocator -
5948 stop tk interrupting malloc calls.
5949 (sim_events_zalloc): Converse.
5951 * Make-common.in (sim_main_headers): Add sim-events.h.
5953 * sim-events.c (sim_events_schedule_after_signal): Change return
5954 type to void - signal events are strictly internal.
5955 (sim_events_init): Allocate a finite buffer for signal events.
5956 (sim_events_schedule_after_signal): Enter signal events into the
5959 * sim-engine.c (sim_engine_halt): Check SIM_DESC magic.
5960 (sim_engine_restart): Ditto.
5961 (sim_engine_abort): Ditto.
5962 * sim-stop.c (sim_stop): Ditto.
5963 (control_c_simulation): Ditto.
5964 * sim-resume.c (sim_resume): Ditto.
5965 (has_stepped): Ditto.
5966 * sim-abort.c (sim_engine_abort): Ditto.
5968 * sim-basics.h (transfer_type): New type.
5970 * sim-core.c (sim_core_signal): New function. Print core signal
5972 (sim_core_find_mapping): Add transfer argument.
5974 * sim-n-core.h (sim_core_{write,write}_unaligned_N): Call
5975 SIM_CORE_SIGNAL if a recoverable abort.
5976 * sim-core.c (sim_core_find_mapping): Ditto.
5978 Fri May 16 15:13:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
5980 * sim-core.c (sim_core_find_mapping): Replace calls to
5981 sim_io_error to more resiliant sim_engine_abort.
5983 * sim-n-core.h (sim_core_read_unaligned_N): Ditto.
5984 (sim_core_write_unaligned_N): Ditto.
5986 Tue May 13 13:50:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
5988 * sim-module.c: Add sim_events_install to list.
5990 * sim-events.c (sim_events_install, sim_events_uninstall): Clonse
5992 (sim_events_init): Now returns SIG_RC.
5994 * sim-run.c: New file. Generic sim_engine_run.
5995 * sim-reason.c: New file. Generic sim_stop_reason.
5996 * sim-stop.c: New file. Generic sim_stop.
5997 * sim-resume.c: New file. Generic sim_resume.
5999 * Make-common.in (sim-engine.o): Add rule.
6000 (sim-run.o, sim-reason.o, sim-stop.o, sim-resume.o): Ditto.
6002 * sim-engine.h, sim-engine.c: New file. Provide generic
6003 implementation of sim_engine_halt, sim_engine_error. et.al.
6005 * sim-base.h (sim_state_base): Add member halt.
6006 (sim-engine.h): Include.
6008 * sim-events.h (sim_event_handler): Always pass SIM_DESC to event
6010 * sim-events.c (sim_events_poll): Update event handler.
6012 Tue May 13 09:57:49 1997 Andrew Cagney <cagney@b2.cygnus.com>
6014 * sim-events.h, sim-events.c (sim_events_watch_clock): New
6016 (sim_events_watch_sim): New function.
6017 (sim_events_watch_core): New function.
6018 (sim_watch_valid): New function.
6019 (sim_events_preprocess): New function.
6020 (sim_events_process): Process the watchpoints as well as the timer
6022 (sim_events_tick): Check WORK_PENDING instead of the hold queue.
6023 (sim_events_deschedule): Check all the queues when removing an
6025 (sim_events_init): Ditto for cleaning.
6027 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
6029 * sim-fpu.c (is_ufpu_number): Comment out - currently unused.
6031 Mon May 19 11:23:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
6033 * callback.c (os_open): Type of arg flags is int.
6035 Fri May 16 22:26:43 1997 Michael Meissner <meissner@cygnus.com>
6037 * sim-fpu.c (sim_fpu_is_{eq,ne,lt,le,gt,ge}): Compare Infinities
6038 just like normal numbers as per IEEE rules.
6040 Wed May 14 21:20:38 1997 Bob Manson <manson@charmed.cygnus.com>
6042 * callback.c (os_close): Mark the descriptor as being
6043 available if the close succeeded.
6044 (os_open): Pass 0644 as the mode of the file being created.
6046 Thu May 15 10:58:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
6048 * sim-fpu.c (pack_fpu, unpack_fpu): New functions - decode a
6051 * sim-inline.c (SIM_INLINE_C): Rename from _SIM_INLINE_C_.
6052 * sim-lnline.h: Update.
6054 * sim-fpu.h, sim-fpu.c (sim_fpu_[iu]{32,64}to): New int2fp
6055 conversion functions.
6056 (sim_fpu_to{32,64}[iu]): New fp2int functions.
6058 * sim-fpu.h, sim-fpu.c (sim_fpu_is_{lt,le,eq,ne,ge,gt}): New fp
6059 compare functions. Replacing.
6060 (sim_fpu_cmp): This. Delete.
6062 Mon May 12 14:49:05 1997 Andrew Cagney <cagney@b1.cygnus.com>
6064 * sim-core.c (sim_core_find_mapping): Call engine_error not
6065 sim_io_error when possible.
6067 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b2.cygnus.com>
6069 * sim-endian.h (V1_H2): Add macro's to insert a word into a
6070 high/low double word.
6072 * sim-trace.h: Remove definition of attribute - defined in
6075 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
6077 * sim-options.h (struct OPTION): Add doc_opt as the documenting
6078 name of the option - or family of options.
6080 * sim-options.c (sim_args_command): Match command `a-b c' with
6081 option `--a-b-c' from option table.
6083 Thu May 8 12:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
6085 * sim-options.c (sim_print_help): For optional arguments, wrap
6088 * sim-trace.c (set_trace_options): New function, handle optional
6089 argument and multiple assignment.
6090 (trace_option_handler): Update.
6092 * sim-trace.c (trace_option_handler): Trace branch and not fpu
6093 when branch tracing selected.
6095 Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
6097 * sim-trace.c (trace_one_insn): Make a va-args function.
6099 * sim-trace.c (trace_vprintf): New function, va-arg version of
6102 Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com>
6104 * sim-trace.c (trace_uninstall): Don't close a file twice.
6105 * sim-profile.c (profile_uninstall): Likewise.
6107 Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com>
6109 * sim-trace.c (toplevel): Include bfd.h.
6110 (trace_options): Note that --trace-linenum also turns on
6111 --trace-insn. Add --trace-{branch,semantics}.
6112 (trace_option_handler): If --trace-linenum, also turn on
6113 --trace-insn. Add --trace-branch support. If --trace-semantics,
6114 turn on ALU, FPU, branch, and memory tracing.
6115 (trace_one_insn): New function to trace an instruction. Support
6117 (OPTION_TRACE_*): Use an enum, rather than lots of defines.
6119 * sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros.
6120 (MAX_TRACE_VALUES): Use 32, not 12 by default.
6121 (TRACE_branch): Add new mask.
6122 (TRACE_*_P): Define all possible trace_p macros.
6123 (trace_one_insn): Declare function.
6125 Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com>
6127 * sim-trace.h (__attribute__): Define as nothing if not GNU C or
6128 GNU C doesn't support __attributes__.
6129 ({trace,debug}_printf): Add attribute's so -Wformat can check the
6132 Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
6134 * sim-config.h (FORCED_ALIGNMENT): New alignment option -
6135 addresses are masked forcing them to be correctly aligned.
6136 (WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default.
6137 * sim-config.c (config_alignment_to_a): Update.
6139 * sim-core.h (sim_cpu_core): New data type contains cpu specific
6141 * sim-base.h (CPU_CORE): Add cpu specific core data to cpu base
6143 * sim-core.c (sim_core_attach): Add CPU argument. Ready for
6144 processor specific core maps.
6145 (sim_core_map_attach): Copy the core map data to each of the
6146 processor specific core data structures.
6147 * sim-core.c (sim_core_find_mapping): Update.
6149 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename.
6150 (sim_core_write_aligned_N, sim_core_write_aligned_N): New names.
6151 (sim_core_write_unaligned_N, sim_core_write_unaligned_N): New
6152 alternatives that handle unaligned addresses.
6153 (sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace
6155 * cgen-utils.c (sim_disassemble_insn): Update.
6157 Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
6159 * sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific
6162 * sim-fpu.h, sim-fpu.c: New files - prototype for generic target
6165 * sim-inline.h, sim-inline.c: Add support for SIM_FPU.
6167 Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
6169 * sim-core.c (sim_core_map_to_str): New function ascii equivalent
6172 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace
6175 Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com>
6177 * cgen-trace.c: Prepend additional trace_printf argument.
6179 * cgen-utils.c (sim_disassemble_insn): Add additional core
6182 Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
6184 * nrun.c (main): Catch/report errorenous simulator states.
6186 * sim-module.c: #include "libiberty.h" so that xmalloc is defined.
6187 * sim-trace.c: #include string.h/strings.h so that memset is
6189 * sim-utils.c: Ditto.
6190 * sim-profile.c: Ditto. And stdlib.h.
6191 (print_bar): Only define when used by instruction or memory profiler.
6193 * sim-options.c (standard_option_handler): Make ul more local.
6195 * sim-load.c (sim_load_file): Make the name constant.
6196 (sim_load_file): Passify gcc.
6198 * sim-utils.h: New file, pre-declare utilites in corresponding .c
6200 * sim-utils.c, sim-load.c: Include sim-utils.h.
6202 * sim-base.h (sim_cpu): Pre define here so available to all.
6204 * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N):
6205 Restore the sim_cpu and instruction_address arguments so that full
6206 information is available to the abort function.
6207 * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto.
6208 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
6210 * sim-trace.h, sim-trace.c (trace_option_handler): Add interim
6211 tracing support for sim-events and sim-core.
6212 (trace_option_handler): Convert #if to if where possible so always
6213 compiled/checked by C compiler.
6214 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
6216 * sim-base.h: Adjust comment documenting how to define the cpu
6218 (sim_state_base): Add sim_core and sim_events to simulator base
6221 * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument.
6222 * sim-core.c (sim_core_init, sim_core_attach,
6223 sim_core_find_mapping): Update.
6224 * sim-events.c (ETRACE, sim_events_init, sim_events_time,
6225 update_time_from_event, insert_sim_event,
6226 sim_events_schedule_after_signal, sim_events_deschedule,
6227 sim_events_tick): Ditto.
6229 * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h,
6230 sim-model.h): Move #includes from here.
6231 * sim-base.h: To here.
6232 (sim-core.h, sim-events.h, sim-io.h): Include also
6234 Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
6236 * callback.c (default_callback): Missing initialisers.
6238 Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com>
6240 * sim-utils.c (sim_add_commas): New function.
6241 * sim-basics.h (sim_add_commas): Add prototype.
6242 * cgen-scache.c (scache_print_profile): Print commas in numbers.
6243 * sim-profile.c (COMMAS): New macro.
6244 (print_*): Use it to print commas in numbers.
6246 * configure: Regenerated.
6248 * cgen-sim.h (sim_signal_type): Add SIM_SIGINT.
6249 (cgen_state): New member run_fast_p.
6250 (cgen_init): Add prototype.
6251 (sim_disassemble_insn): New arg `cpu'.
6252 * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn.
6253 * cgen-utils.c (cgen_init): New function.
6254 (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn.
6255 * genmloop.sh: Call engine_halt if loop exits.
6257 * Makefile.in (sim-options_h): Define.
6258 (sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
6259 (sim-model.o): Add new rule.
6260 (cgen-{scache,trace,utils}.o): Add new rules.
6261 * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
6262 * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
6263 Indent output by 2 spaces.
6264 * cgen-scache.h (scache_print_profile): Update.
6265 * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
6266 Use trace_printf, not fprintf.
6267 (trace_extract): Use trace_printf, not cgen_trace_printf.
6268 * genmloop.sh (!FAST case): Increment `insn_count'.
6269 * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
6270 (sim_cpu_base): Rename member `sd' to `state' to be consistent with
6271 access macro's name.
6272 * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
6273 Change return type to SIM_RC.
6274 (sim_core_{install,uninstall}): New functions.
6275 * sim-core.h (sim_core_{install,uninstall}): Declare.
6276 (sim_core_init): Use EXTERN_SIM_CORE to define it.
6277 Change return type to SIM_RC.
6278 * sim-model.h (models,machs,model_install): Declare.
6279 * sim-module.c (modules): Add scache_install, model_install.
6280 (sim_post_argv_init): Set cpu->state backlinks.
6281 * sim-options.c (standard_options): Delete --simcache-size,--max-insns.
6282 (standard_option_handler): Likewise.
6283 * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
6286 (profile_options): Delete --profile-simcache.
6287 (profile_option_handler): Likewise.
6288 (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
6290 (profile_print_{memory,model}): Likewise.
6291 (profile_print_simcache): Delete.
6292 (profile_print_speed): New function.
6293 (profile_print): Rewrite.
6294 * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
6295 (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
6296 (PROFILE_DATA): Delete members simcache_{hits,misses}.
6297 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
6298 (PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
6299 (profile_print): Update prototype.
6301 Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com>
6303 * cgen-scache.[ch], cgen-sim.h: New files.
6304 * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files.
6305 * sim-model.c: New file.
6307 * Make-common.in (clean targets): Undo patch of Apr. 22.
6309 Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com>
6311 * sim-n-bits.h (signed): If we have a standard compiler, undef
6312 signed, so that signedN is defined correctly.
6314 Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com>
6316 * sim-module.h, sim-model.h, sim-profile.h: New files.
6317 * sim-module.c, sim-profile.c: New files.
6318 * Make-common.in (SIM_PROFILE): Define
6319 (CONFIG_CFLAGS): Add $(SIM_PROFILE).
6320 (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
6321 (sim_module.o,sim-profile.o): Add rules for.
6322 * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
6323 (--enable-sim-profile): Add.
6324 * configure: Regenerated.
6325 * sim-base.h (sim_state_base): New members init_list, uninstall_list,
6326 model. Move trace and profile support to sim-{trace,profile}.h.
6327 New members trace_data, profile_data.
6328 * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
6329 * sim-config.h: Provide default definition of WITH_PROFILE.
6330 (WITH_TRACE): Change default to -1.
6331 (MAX_NR_PROCESSORS): Always define.
6332 * sim-options.c: Move trace and profile support to
6333 sim-{trace,profile}.h.
6334 (sim_pre_argv_init): Moved to sim-model.c.
6335 (standard_install): New function.
6336 * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
6337 (standard_install): Declare.
6338 * sim-trace.c: Tracing option handling moved here from sim-options.c.
6339 (trace_install, trace_uninstall): New functions.
6340 (trace_printf): Update reference to TRACE_FILE.
6341 * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
6342 (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
6343 (WITH_TRACE_FOO_P): Define.
6344 (trace_install): Declare.
6345 (TRACE_DATA): New struct.
6347 Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com>
6349 * run.c: Undo last exec_bfd patch.
6350 (main): Only pass -E ifdef SIM_HAVE_BIENDIAN.
6352 Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com>
6354 * run.c (exec_bfd): Add back in.
6355 (main): Set exec_bfd.
6357 Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com>
6359 * sim-load.c (sim_load_file): #include <stdio.h> for NULL.
6361 Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
6363 * sim-events.c (insert_sim_event): Call sim_io_error instead of
6364 less well defined engine_error.
6365 * sim-core.c: Ditto.
6367 Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com)
6369 * Make-common.in: Change clean targets to use :: so that other
6370 Makefiles can have their own clean targets.
6371 * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of
6372 __STDC__ to control use of stdarg vs. varargs syntax. Some
6373 systems can't use __STDC__, but require stdarg.
6375 Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com>
6377 * sim-options.c (standard_options): Add --endian.
6378 (standard_option_handler): Likewise.
6380 * nrun.c: #include <signal.h>.
6381 (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
6382 handler that calls sim_stop ().
6384 Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
6386 * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
6387 handler that calls sim_stop (). Simulators may still be
6388 establishing their own handler.
6390 * sim-events.c (sim_events_poll): Rename from
6391 sim_events_at_large_int. Poll IO.
6393 * sim-io.c (sim_io_poll_quit): New function - pass on a polling
6396 * callback.c (os_poll_quit): New function poll for quit signal
6398 (default_callback): Include magic number.
6400 Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
6402 * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
6403 Check for functions getrusage, time.
6404 * sim-basics.h (SIM_ELAPSED_TIME): New typedef.
6405 (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes.
6406 * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able.
6407 (sim_elapsed_time_get, sim_elapsed_time_since): New functions.
6409 * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.
6411 * sim-options.c, sim-options.h: New files.
6412 * sim-config.h (WITH_DEBUG): Provide default value of zero.
6413 * Make-common.in (nrun.o): Add rules for.
6416 * run.c (main): Check return value of sim_open.
6418 * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules.
6419 (sim_main_headers): Add sim-trace.h.
6420 * run.c (exec_bfd, target_byte_order): Delete.
6421 (main): Pass -E <endian> to sim_open. Delete code to load sections,
6422 call sim_load instead. Check return code of sim_create_inferior.
6423 * sim-base.h (CURRENT_STATE): Define.
6424 (sim_state_base): Make typedef. New members options, prog_argv,
6425 prog_bfd, text_{section,start,end}, start_addr, simcache_size,
6426 mem_size, memory [+ corresponding access macros].
6427 (sim_cpu_base): New typedef.
6428 * sim-trace.h: New file.
6429 * sim-trace.c: New file.
6430 * sim-basics.h: #include it.
6431 * sim-load.c: New file.
6433 Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com>
6435 * Make-common.in (INSTALL): Set to @INSTALL@.
6436 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
6437 (install-common): Depend upon installdirs. Use
6438 $(program_transform_name) directly, rather than using
6440 (installdirs): New target.
6441 * Makefile.in (INSTALL): Set to @INSTALL@.
6442 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
6443 (install-man): Depend upon installdirs. Use
6444 $(program_transform_name) directly, rather than using
6446 (installdirs): New target.
6448 Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
6450 * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
6453 Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6455 * sim-basics.h: Only bring in config.h and tconfig.h if
6458 Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6460 * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
6461 numbering convention of the target.
6462 * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
6463 and WITH_TARGET_WORD_MSB.
6464 (sim_config): When possible, check for consistency with bitsize
6467 * sim-bits.h: Allow MSB to be other than zero.
6468 * sim-bits.c: Ditto.
6469 * sim-n-bits.h: Ditto.
6471 * sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
6472 * sim-n-bits.h (MSMASKEDn): Ditto.
6474 Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com>
6476 * Makefile.in (INSTALL): Change install.sh to install-sh.
6478 Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com>
6480 * sim-base.h (sim_state_base): Move `magic' to end of struct.
6482 Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6484 * run.c (main): Check that a program to run was specified.
6486 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6488 * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
6490 * configure: Regenerated to track ../common/aclocal.m4 changes.
6493 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
6495 * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
6496 * sim-config.h: To here.
6498 * Make-common.in (SIM_EXTRA_DEPS): New config var.
6499 (sim_main_headers): Define.
6500 (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
6501 (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
6503 (sim-utils.o): Add rule for.
6504 * sim-utils.o: New file.
6505 * sim-basics.h: #include sim-base.h.
6506 (zalloc): Make argument unsigned long.
6507 * sim-base.h: New file.
6508 * sim-inline.h (SIM_IO support): Delete.
6509 * sim-io.h: Delete inline support.
6510 * sim-io.c: Likewise. sim-state.h renamed to sim-main.h.
6511 * sim-config.c: sim-state.h renamed to sim-main.h.
6512 * sim-core.c: Likewise.
6513 * sim-events.c: Likewise.
6515 * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
6517 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
6518 (sim-debug): Allow arguments. Define WITH_DEBUG in addition to
6520 * configure: Regenerated to track ../common/aclocal.m4 changes.
6522 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6524 * configure: Regenerated to track ../common/aclocal.m4 changes.
6526 Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6528 * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
6529 WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
6530 are defined by the configure.
6532 * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
6534 * aclocal.m4 (floating-point, xor-endian, alignment, smp,
6535 reserved-bits): Always define.
6537 * sim-config.h, sim-config.c (sim_config): New function - and new
6538 file - co-ordinate the setting/checking of the common simulator
6539 configuration options.
6541 * Make-common.in (sim-config.o): Add rule.
6543 Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com>
6545 * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
6546 va_list from void *, since va_list might not be a pointer type.
6548 Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6550 * sim-n-endian.h (offset_N): Correct assertion - word and sub word
6552 (offset_N): Correct computation of LE offset.
6554 * sim-io.c (sim_io_error): Include a new line when reporting
6557 * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
6560 Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com)
6562 * run.c: Include alloca-conf.h.
6564 * callback.c (os_evprintf_filtered): Fix typo.
6566 Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6568 * run.c (string.h, strings.h, stdlib.h): Include.
6570 * sim-events.c (sim_events_tick): Recent cleanup failed to return
6571 0 when nothing pending.
6573 * run.c (sim_size, sim_trace): Plicate GCC - these two functions
6574 will soon be going away.
6575 (getopt): Plicate GCC.
6577 * sim-endian.c (sim-io.h): Plicate GCC.
6578 * sim-bits.c (sim-io.h): Ditto.
6579 * sim-n-bits.h (ROTn): Ditto.
6581 * sim-io.c (sim_io_error): Correct check for NULL.
6583 * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
6585 * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
6588 Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6590 * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
6591 SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
6593 Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6595 * sim-alu.h: Include sim-xcat.h.
6597 Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6599 * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
6600 sim-events.c, sim-inline.c, sim-io.c): Define rules for building
6603 * sim-events.c (sim_events_at_large_int): New function. Just
6604 schedules an event every large-int ticks.
6605 (sim_events_init): Call.
6606 (sim_events_tick, sim_events_process): Move async handing to
6607 sim_events_process. Move timer decrement so that it occures after
6608 events have been processed.
6610 * sim-basics.h (struct _engine): Remove declaration.
6612 * sim-events.h, sim-events.c: Rename type to sim_events. Prefix
6613 everything with same. Rename global struct to SIM_DESC.
6614 * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
6615 * sim-io.h, sim-io.c: Ditto.
6617 * sim-assert.h: New file. Optional assertion checking macros.
6618 * sim-io.c (sim_io_error): Make just this function tolerant to
6621 * sim-xcat.h: New file. Define concatenate macros.
6622 * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
6623 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
6627 Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6629 * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
6631 Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6633 * sim-inline.h: Add definitions for sim-types.
6634 (ALL_BY_MODULE): New macro, encapsulate full inlining by the
6637 Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6639 * sim-events.h: Remove defunct reference to callback struct.
6641 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6643 * configure: Re-generate.
6645 Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6647 * Make-common.in (CSEARCH): Do not include the gdb directory in
6650 Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6652 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
6653 SIM_WARNING): Drop, requiring the simulator specific Makefile.in
6654 to explicitly incorporate these.
6656 * aclocal.m4 (--enable-sim-alignment); New option. Strongly
6657 specify the alignment restrictions of the target architecture -
6658 without this option all alignment restrictions are accomodated.
6659 (--enable-sim-assert): New option. Conditionally compile in
6660 assertion statements.
6661 (--enable-sim-float): New option. Strongly specify the target's
6662 floating point support.
6663 (--enable-sim-hardware): New option. Specify the hardware devices
6664 included in the simulation.
6665 (--enable-sim-packages): New option. Specify the hardware
6666 packages included in the simulation.
6667 (--enable-sim-regparm): New option. Specify that parameters be
6668 passed in registers instead of on the stack.
6669 (--enable-sim-reserved-bits): New option. Specify that reserved
6670 bits within an instruction are are correctly set.
6671 (--enable-sim-smp): New option. Specify the level of SMP support
6672 to be included in the simulator.
6673 (--enable-sim-stdcall): New option. Specify an alternative
6674 function call convention.
6675 (--enable-sim-xor-endian): New option. Configure xor-endian
6676 support used by some targets to implement bi-endian support.
6678 Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6680 * aclocal.m4 (--enable-sim-hostendian): New option. Allow the
6681 host endianness to be overridden.
6682 (--enable-sim-endian): Allow the target platform's byte order
6684 (--enable-sim-inline): Control the inlining of common components.
6685 (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
6686 (--enable-sim-warnings): Enable additional GCC compiler checks.
6687 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
6690 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
6691 sim-*-n.h so that the names are uniq on dos machines
6692 * sim-core.c, sim-bits.c, sim-endian.c: Update.
6694 Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
6696 * run.c: #include "libiberty.h".
6697 (main): New locals sd,no_args,sim_argv.
6698 Run buildargv on -a option. Pass argv to sim_open, argv[0]
6699 is program name. Update call to sim_set_callbacks.
6700 Record result of sim_open, pass to other sim_foo routines.
6702 Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
6704 * callback.c (os_printf_filtered): Do not call exit(1) or print a
6707 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6709 * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
6710 Route stdout through buffered IO.
6712 * callback.c: Add os_flush_stderr, os_write_stderr,
6713 os_evprintf_filtered functions to route error output through
6716 * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
6717 Correct return type - should be void.
6719 Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6721 * sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
6723 * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
6724 not provide a default value as undefined indicates disable code.
6726 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6728 * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
6730 * sim-events.h, sim-events.c: Ditto.
6731 * sim-io.h, sim-io.c: Ditto.
6733 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6735 * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
6737 * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
6738 extract the tail or least signifiant bits from an integer of the
6741 * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
6742 WITH_TARGET_BITSIZE so that the compilation will fail when an
6743 unsupported bitsize value is defined.
6745 (INSERTED*): Convert to functions.
6746 (EXTRACTED*): Ditto.
6748 (SIGN_EXTEND, SEXT): Change to more terse name.
6750 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6752 * sim-inline.h: Allow explicit control over which .c files will be
6753 included by their header.
6755 * sim-inline.h: Allow explicit control over which .c files use the
6756 alternative - REGPARM - parameter passing mechanism.
6758 * sim-inline.h, sim-inline.c: Don't attempt to include any of
6759 icache.c, idecode.c, semantics.c or support.c. Those names are
6760 not generally applicable.
6762 Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6764 * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
6765 in a fashion similar to sim-endian-n.
6767 * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
6768 both value and address macro's.
6770 Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
6772 * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
6774 * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
6775 generic L_word, H_word macro's.
6777 Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
6779 * sim-basics.h: Borrow code from ppc directory.
6780 * sim-bits.c: Ditto.
6781 * sim-bits.h: Ditto.
6782 * sim-config.h: Ditto.
6783 * sim-endian-n.h: Ditto.
6784 * sim-endian.c: Ditto.
6785 * sim-endian.h: Ditto.
6786 * sim-inline.c: Ditto.
6787 * sim-inline.h: Ditto.
6788 * sim-types.h: Ditto.
6790 Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
6792 * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
6793 all the ALU size alternatives and then auto-configure a default.
6795 * sim-alu.h: Copy ppc/idecode_expression.h.
6797 Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
6799 * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
6800 sign extend a bit within a value.
6802 * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
6803 a pointer into the middle of a host word.
6804 * sim-endian.h (MS2W_4, LS2W_4): Use this function.
6806 Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
6808 * callback.c: If HAVE_CONFIG_H is defined, include config.h from
6809 autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
6810 appropriate definitions of read, write, etc. Add prototype for
6813 Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
6815 * Makefile.in (libcommon.a): Delete.
6816 (callback.o,targ-map.o): Delete, moved to Make-common.in.
6817 (gentmap,targ-vals.h,targ-map.c): Likewise.
6818 (run-autoconf): Delete.
6819 * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
6820 (common makefile fragment): Moved back into ...
6821 * Make-common.in: Resurrect.
6822 * configure.in (AC_LINK_FILES): Delete, unnecessary now.
6823 * configure: Regenerated.
6825 Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
6827 * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
6828 (SIM_AC_OUTPUT): To here.
6830 Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
6832 * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
6833 comments and single quotes. Fixes a problem found on hpux.
6835 Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
6837 * aclocal.m4: Remove Make-common.in from dependencies.
6838 * (distclean): Remove targ-vals.def.
6840 * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
6841 into here. Makes insertion into makefiles easier. Also, change
6842 the way that callback.o, gentmap, targ-vals.h, targ-map.c,
6843 targ-map.o, and run are built. They are now built in the
6844 individual simulator directories, taking sources from ../common as
6845 necessary. This replaces the merging of libcommon.a into
6846 linsim.a, which was problematic for the WinGDB build process.
6847 * run.c: Include config.h from . instead of ../common.
6848 * Make-common.in: Remove. It's no longer necessary.
6850 Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
6852 * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
6853 (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
6855 Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
6857 * run.c (main): Set target_byte_order before call to sim_open.
6859 Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
6861 * callback.c: #include <stdlib.h>
6862 (os_error): New function.
6863 (default_callback): Add os_error.
6865 Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
6867 * Make-common.in (Makefile): Set CONFIG_HEADERS="".
6868 * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
6870 (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
6872 Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
6874 * run.c: #include ../common/config.h, tconfig.h.
6875 (myname): New static global.
6876 (main): Recognize new options -a, -c. Also recognize -h if h8/300.
6877 Only process -c ifdef SIM_HAVE_SIMCACHE.
6878 Only process -p/-s ifdef SIM_HAVE_PROFILE.
6879 Parse program name from argv[0] and use in error messages.
6880 Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
6881 Add support for incomplete h8/300 termination indicators.
6882 (usage): Make more verbose.
6883 * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
6884 * Makefile.in,Make-common.in,callback.c: New files.
6885 * nltvals.def,gentmap.c,gentvals.sh: New files.
6887 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
6889 * run.c: Include stdarg.h if __STDC__.
6891 Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
6893 * run.c (main): Don't print out anything if the signal
6894 number is zero (ie no signal).
6896 Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6898 * run.c (main): Print out if the program raised a signal.
6900 Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6902 * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
6905 Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
6907 * run.c (main): Explicitly cast malloc() parameter.
6909 Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6911 * run.c (sim_bfd): New global to hold the bfd pointer for the
6913 (main): Initialize sim_bfd.
6915 Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
6917 * run.c (main): Use new bfd_big_endian macro.
6919 Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
6921 * run.c (main): Removed SH specific comments, so source is
6922 generic. Also updated to only load relevant sections. Moved
6923 sim_open() to after callback attach (to match GDB).
6925 * run.1: Removed SH specific comments.
6927 Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
6929 * run.c (main): Always return sigrc at end.
6931 Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
6933 * run.c (main): Print error diagnostic and exit if bfd_openr() or
6934 bfd_check_format() fails.
6936 Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
6938 * run.c, run.1: From sh directory.