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