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