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