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