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