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