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