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