This commit was generated by cvs2svn to track changes on a CVS vendor
[deliverable/binutils-gdb.git] / sim / common / ChangeLog
1 Wed Mar 25 09:18:34 1998 Andrew Cagney <cagney@b1.cygnus.com>
2
3 * dv-pal.c (hw_pal_countdown, hw_pal_countdown_value,
4 hw_pal_timer, hw_pal_timer_value): Define.
5 (hw_pal_io_read_buffer, hw_pal_io_write_buffer): Add timer support
6 (do_counter_event, do_counter_read, do_counter_value,
7 do_counter_write): new functions.
8
9 Tue Mar 24 12:24:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
10
11 * hw-tree.c (hw_printf): Send tree dump to stderr, same as other
12 trace output.
13
14 * hw-base.c (hw_create): Stop searching for a device when one is
15 found.
16
17 Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
18
19 * configure: Regenerated to track ../common/aclocal.m4 changes.
20
21 Mon Mar 23 10:25:08 1998 Andrew Cagney <cagney@b1.cygnus.com>
22
23 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add second argument,
24 appends extra devices.
25 (SIM_AC_OPTION_HARDWARE): Substute sim_hw, a non-duplicate list of
26 the device names.
27
28 * Make-common.in (hw-config.h): New target, create hw-config.h
29 file.
30 (SIM_HW): Definition from @sim_hw@.
31 (hw-base.o): Depend on hw-config.h
32
33 Tue Mar 24 17:41:35 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
34
35 * Make-common.in: Get SHELL from configure.
36 * (stamp-tvals sim-inline.c): Use $(SHELL) when invoking
37 move-if-change. Fixes NT native build problem.
38 * Makefile.in (nltvals.def): Use $(SHELL) when invoking
39 move-if-change. Fixes NT native build problem.
40 * configure: Regenerate with autoconf 2.12.1 to fix shell issues for
41 NT native builds.
42
43 Sun Mar 22 16:54:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
44
45 * hw-device.h, hw-device.c (hw_strdup): New function.
46
47 * hw-base.c (hw_create): Use hw_strdup when saving a copy of the
48 strings name, family and args.
49 (full_name_of_hw): Use hw_strdup when returning the full path.
50
51 * hw-properties.c: Clean up property not found / wrong type error
52 messages.
53
54 * hw-tree.c (hw_tree_parse): Finish a devices initialization
55 before attaching any ports.
56
57 * hw-base.c (hw-config.): Include. Replace hardwired table.
58
59 * dv-glue.c: Copy over ../ppc/hw_glue.c. Update to new framework.
60
61 * Make-common.in: Add rule for dv-glue.o.
62
63 Sun Mar 22 16:45:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
64
65 * hw-base.c (hw_finish): Move setting of trace level to here.
66 (hw_create): From here.
67
68 * hw-base.h, hw-base.c (do_hw_attach_regs): Copy function from
69 ../ppc/device_table.c.
70
71 * dv-pal.c (hw_pal_finish): Attach PAL device to parent bus.
72
73 * hw-tree.c (print_properties): Supress path when printing
74 properties of root node.
75
76 Sun Mar 22 16:21:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
77
78 * hw-device.h (HW_TRACE): Define.
79 (hw_trace): Declare.
80 * hw-device.c (hw_trace): Implement function.
81
82 * hw-base.c (hw_create): Set hw trace level from "trace?"
83 property.
84
85 * dv-core.c (dv_core_attach_address_callback): Add trace.
86
87 * dv-pal.c: Replace DTRACE with HW_TRACE.
88
89 Sun Mar 22 15:23:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
90
91 * hw-device.h (HW_ZALLOC, HW_MALLOC): New macros.
92 (hw_alloc_data): Delcare.
93 (struct hw): Add member alloc_of_hw.
94
95 * hw-device.c (hw_zalloc, hw_malloc, hw_free, hw_free_all): New
96 functions. Assocate memory with a device.
97 (stdlib.h): Include.
98
99 * hw-base.h (set_hw_delete): Define.
100 (hw_delete_callback): Declare.
101 (hw_delete): Declare.
102
103 * hw-base.c (hw_delete): Implement function.
104 (struct hw_base_data): Add member to_delete.
105 (ignore_hw_delete): New function, does nothing.
106 (hw_create): Set the hw_delete method.
107 (hw_create): Allocate the base type using HW_ZALLOC before setting
108 any methods.
109
110 * hw-tree.h, hw-tree.c (hw_tree_delete): New function.
111
112 * hw-properties.c: Replace zalloc/zfree with hw_zalloc/hw_free.
113
114 * hw-ports.c: Replace zalloc/zfree with hw_zalloc/hw_free.
115 (attach_hw_port_edge): Add struct hw argument
116
117 * dv-pal.c (hw_pal_finish): Replace zalloc/zfree with
118 hw_zalloc/hw_free.
119
120 Sun Mar 22 15:09:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
121
122 * hw-device.h (hw_attach_address_callback,
123 hw_detach_address_callback): Attach to a single space not a space
124 mask. Clarify interpretation of SPACE:ADDR parameters.
125
126 * hw-base.c (passthrough_hw_attach_address,
127 passthrough_hw_detach_address): Update.
128 * dv-core.c (dv_core_attach_address_callback): Ditto.
129 * dv-pal.c (hw_pal_attach_address): Ditto.
130
131 Thu Mar 19 00:41:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
132
133 * sim-options.h: Document additional CPU arg to OPTION_HANDLER.
134
135 Wed Mar 18 14:13:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
136
137 * Make-common.in (SIM_HW_OBJS, SIM_HW_SRC, SIM_DV_OBJS): Define.
138 (hw-base_h, hw-device_h, hw-handles_h, hw-instances_h, hw_ports_h,
139 hw-properties_h, hw-tree_h): Define, point at corresponding
140 header.
141 (hw_base_headers): Define list of headers included by hw-base.h
142 (hw-base.o, hw-device.o, hw-instances.o, hw-handles.o, hw-ports.o,
143 hw-properties.o, hw-tree.o): Specify dependencies.
144 (dv-core.o, dv-pal.o): Ditto.
145
146 * sim-hw.h: New file.
147
148 * hw-device.h, hw-device.c, hw-properties.h, hw-properties.c,
149 hw-ports.h, hw-ports.c: New files. Copied from ../ppc/device.[ch].
150
151 * hw-tree.h, hw-tree.c: New files. Copied from ../ppc/tree.[hc].
152
153 * hw-base.h, hw-base.c: new files. Copied from
154 ../ppc/device_table.[hc].
155
156 * dv-core.c, dv-pal.c: New files. Copied from
157 ../ppc/hw_{core,pal}.c
158
159 * sim-basics.h (struct hw): Declare.
160 (enum port_direction, enum object_disposition): Declare.
161
162 Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
163
164 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set sim_hw_obj, sim_dv_obj,
165 sim_dv_src in Makefile. Take list of devices as parameter to m4
166 macro..
167
168 * configure: Regenerated to track ../common/aclocal.m4 changes.
169
170 Mon Mar 16 12:37:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
171
172 * sim-trace.h, sim-trace.c (trace_prefix): Pass in sim_cia so that
173 trace_prefix can abort cleanly.
174
175 Sat Mar 14 18:36:12 1998 Doug Evans <devans@seba.cygnus.com>
176
177 * dv-sockser.c, dv-sockser.h: New files.
178 * Make-common.in (dv-sockser.o): Add rule for.
179 * aclocal.m4: Check for fcntl.h.
180 * config.h: Add HAVE_FCNTL_H.
181
182 * sim-break.c (remove_breakpoint): Fix thinko.
183
184 * sim-hload.c (sim_load): Provide default value of SIM_HANDLES_LMA.
185 Use SIM_HANDLES_LMA for lma_p arg to sim_load_file.
186
187 1998-03-13 Fred Fish <fnf@cygnus.com>
188
189 * sim-base.h (struct sim_state_base): Add prog_syms and
190 define macro STATE_PROG_SYMS.
191 * sim-trace.c (trace_prefix): Add variables abfd, symsize,
192 symbol_count, and asymbols. Call bfd_get_symtab_upper_bound
193 and bfd_canonicalize_symtab, to get symbol table on first use
194 and preserve it via STATE_PROG_SYMS for future calls to
195 bfd_find_nearest_line.
196
197 Wed Mar 11 14:02:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
198
199 * sim-core.h, sim-core.c (sim_core_map_to_str): Delete.
200
201 * sim-core.c (sim_core_attach): Handle a generic number of maps -
202 up to nr_maps, not just access_* maps.
203
204 * sim-profile.h (struct PROFILE_DATA): Track nr_maps different
205 maps.
206
207 * sim-profile.c (profile_print_core): Make map unsigned. Iterate
208 over nr_maps not sim_core_nr_maps.
209
210 * sim-events.h, sim-events.c (sim_events_watch_core): Change
211 core_map argument to unsigned.
212 (struct _sim_core): Ditto for struct member core_map.
213
214 * sim-core.h (nr_sim_core_maps, sim_core_*_map): Delete
215
216 * sim-basics.h (access_io, access_*_io): Define.
217 (map_read, map_write, map_exec, map_io): Define.
218
219 * sim-core.c, sim-core.h (sim_core_attach): Replace argument
220 attach with more generic mapmask.
221 (sim_core_{read,write}_*): Change map argument to unsigned.
222
223 * sim-core.c (sim_core_uninstall, sim_core_attach,
224 sim_core_detach): Iterate over nr_maps instead of
225 sim_core_nr_maps.
226
227 * sim-break.c (insert_breakpoint): Write breakpoints to exec_map
228 instead of the write_map.
229 (remove_breakpoint): Ditto.
230
231 * genmloop.sh (engine_resume_full): Replace sim_core_*_map
232 with read_map, write_map, exec_map resp.
233
234 * cgen-mem.h (DECLARE_GETMEM, DECLARE_SETMEM, DECLARE_GETIMEM):
235 Ditto.
236
237 * cgen-utils.c (sim_disassemble_insn): Ditto.
238
239 * sim-hrw.c (sim_write, sim_write): Ditto.
240
241 * sim-utils.h, sim-utils.c (access_to_str, map_to_str,
242 transfer_to_str): New functions.
243
244 Mon Mar 9 12:50:59 1998 Doug Evans <devans@seba.cygnus.com>
245
246 * sim-base.h (sim_state_base): New member environment.
247 (STATE_ENVIRONMENT): New macro.
248 * sim-config.c (current_environment): Delete.
249 (sim_config_default): New function.
250 (sim_config): Set STATE_ENVIRONMENT, not current_environment.
251 * sim-config.h (current_environment,CURRENT_ENVIRONMENT): Delete.
252 (sim_config_default): Add prototype.
253 * sim-module.c (sim_pre_argv_init): Call sim_config_default.
254 * sim-options.c (standard_option_handler, case OPTION_ENVIRONMENT):
255 Set STATE_ENVIRONMENT, not current_environment.
256
257 Mon Mar 9 11:59:03 1998 Jim Wilson <wilson@cygnus.com>
258
259 * sim-fpu.c (NR_GUARDS64): Change NR_PAD32 to NR_PAD64.
260
261 Tue Mar 3 10:53:05 1998 Andrew Cagney <cagney@b1.cygnus.com>
262
263 * sim-types.h (SIGNED32, SIGNED64): Pacify GCC.
264
265 * sim-alu.h (ALU64_BEGIN): Make alu64_r unsigned.
266
267 Mon Mar 2 10:20:06 1998 Doug Evans <devans@seba.cygnus.com>
268
269 * Make-common.in (TAGS): Make smarter.
270 * Makefile.in (TAGS): Ditto.
271
272 Fri Feb 27 19:09:57 1998 Doug Evans <devans@canuck.cygnus.com>
273
274 * sim-module.c (*): Fix typos in assertion tests.
275
276 Sat Feb 28 13:54:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
277
278 * sim-module.c (sim_pre_argv_init): String passed to asprintf
279 can't be constant.
280
281 * sim-options.c (sim_parse_args): Ditto.
282 (sim_args_command): Return OK, instead of nothing, for an empty
283 command.
284
285 Fri Feb 27 13:29:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
286
287 * sim-profile.c (profile_info): Rename from profile_print. Drop
288 misc and misc_cpu callback arguments. Use
289 PROFILE_INFO_CPU_CALLBACK and STATE_PROFILE_INFO_CALLBACK instead.
290 (profile_install): Install profile_info function.
291
292 * sim-profile.h (PROFILE_INFO_CPU_CALLBACK,
293 STATE_PROFILE_INFO_CALLBACK): Define.
294 (struct PROFILE_DATA): Add field info_cpu_callback.
295 (profile_print): Delete function.
296
297 * sim-base.h (STATE_MODULES): Define. Replace individual
298 STATE_*_LIST with single struct module_list.
299
300 * sim-module.h (MODULE_INFO_FN, MODULE_INFO_LIST): Declare.
301 (struct module_list): Declare.
302
303 * sim-module.h, sim-module.c (sim_module_add_info_fn,
304 sim_module_info): New functions.
305 (sim_module_install): Clean up module data structures.
306
307 * sim-info.c (sim_info): New file. New function. Call
308 sim_module_info.
309
310 * Make-common.in (sim-info.o): Define rule.
311 (SIM_NEW_COMMON_OBJS): Add sim-info.o.
312
313
314 Fri Feb 27 18:26:16 1998 Doug Evans <devans@canuck.cygnus.com>
315
316 * sim-base.h (sim_cpu_base): New members name, options.
317 (sim_cpu_lookup): Add prototype.
318 * sim-module.c (sim_pre_argv_init): Provide default names for cpus.
319 * sim-options.h (DECLARE_OPTION_HANDLER): New argument `cpu'.
320 (sim_add_option_table): Update prototype.
321 * sim-options.c (sim_add_option_table): New argument `cpu'.
322 (standard_option_handler,standard_install): Update.
323 (sim_parse_args): Handle cpu specific options.
324 (print_help): New static function.
325 (sim_print_help): Call it. Print cpu specific options.
326 (find_match): New static function.
327 (sim_args_command): Call it. Handle cpu specific options.
328 * sim-utils.c (sim_cpu_lookup): New function.
329 * sim-memopt.c (memory_option_handler): Update.
330 (sim_memopt_install): Update.
331 * sim-model.c (model_option_handler): Update.
332 (model_install): Update.
333 * sim-profile.c (profile_option_handler): Update.
334 (profile_install): Update.
335 * sim-trace.c (trace_option_handler): Update.
336 (trace_install): Update.
337 * sim-watch.c (watchpoint_option_handler): Update.
338 (sim_watchpoint_install): Update.
339 * cgen-scache.c (scache_option_handler): Update.
340 (scache_install): Update.
341
342 Wed Feb 25 11:00:26 1998 Doug Evans <devans@canuck.cygnus.com>
343
344 * Make-common.in (check): Run `make check' in testsuite dir.
345
346 Wed Feb 25 14:40:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
347
348 * sim-trace.c (trace_result0): New function.
349
350 * sim-trace.h (TRACE_FP_*, TRACE_FPU_*): Rename TRACE_FPU_*
351 macro's to TRACE_FP_*. TRACE_FPU_* should be defined and used when
352 tracing sim_fpu variables.
353 (TRACE_ALU_RESULT0): Define.
354 (TRACE_FP_RESULT_WORD): Define.
355 (TRACE_FP_INPUT_WORD1): Define.
356
357 * sim-fpu.c, sim-fpu.h (sim_fpu_max32, sim_fpu_max64, sim_fpu_one,
358 sim_fpu_two): New constants.
359 (sim_fpu_op1, sim_fpu_op2): New types.
360 (struct _sim_fpu): Delete member result. Re-order other members.
361 (sim_fpu_sign, sim_fpu_exp): New functions.
362 (sim_fpu_max, sim_fpu_min): new functions.
363 (EXPMAX32, EXPMAX64, NR_PAD32, NR_PAD64, NR_GUARDS32, NR_GUARDS64,
364 NORMAL_EXPMAX32, NORMAL_EXPMAX64): Define.
365
366 Tue Feb 24 22:45:39 1998 Doug Evans <devans@seba.cygnus.com>
367
368 * sim-profile.c (profile_print): Delete duplicate test of
369 PROFILE_INSN_IDX.
370 (profile_print_pc): Exit early if data collection not set up.
371 (profile_print_core): Simplify by calling sim_core_map_to_str.
372 * sim-core.h (sim_core_map_to_str): Declare.
373 * sim-core.c (sim_core_map_to_str): Make non-static.
374
375 * genmloop.sh (engine_resume): Update insn_count before exiting.
376 (engine_resume_full): Keep accurate core profile data.
377
378 * cgen-utils.c (sim_disassemble_insn): Don't use
379 sim_core_read_aligned_N, it messes up profiling results.
380
381 Mon Feb 23 20:45:57 1998 Mark Alexander <marka@cygnus.com>
382
383 * nltvals.def: Regenerate with MN10300 additions.
384
385 Tue Feb 24 13:18:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
386
387 * sim-trace.h (TRACE_ALU_RESULT2): Define.
388
389 * sim-trace.h, sim-trace.c (trace_result_word2,
390 trace_input_word4, trace_result_word4): New function.
391
392 Mon Feb 23 13:08:35 1998 Doug Evans <devans@canuck.cygnus.com>
393
394 * cgen-sim.h (SEM_NEXT_PC): New arg `len'.
395
396 * sim-xcat.h: Delete.
397 * cgen-mem.h: Delete inclusion of sim-xcat.h.
398 * cgen-sim.h: Ditto.
399 * sim-alu.h: Replace sim-xcat.h with symcat.h.
400 * sim-n-bits.h: Ditto.
401 * sim-n-core.h: Ditto.
402 * sim-n-endian.h: Ditto.
403
404 Mon Feb 23 13:19:58 1998 Michael Meissner <meissner@cygnus.com>
405
406 * syscall.c (cb_syscall): Handle short reads, and EOF.
407
408 Tue Feb 24 00:29:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
409
410 * sim-trace.c (print_data): case trace_fmt_fp missing break. Use
411 sim_fpu to safely print fp_word values.
412 (print_data): Add trace_fmt_bool and trace_fmt_addr.
413 (trace_result_bool1, trace_result_addr1): New functions.
414 (trace_input_bool1, trace_input_addr1): New functions.
415
416 * sim-trace.h (TRACE_FPU_*): Define.
417
418 Mon Feb 23 13:24:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
419
420 * sim-fpu.h (enum sim_fpu_class): Add sim_fpu_class_denorm.
421 (sim_fpu_fpto, sim_fpu_tofp): Define.
422
423 Fri Feb 20 18:08:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
424
425 * sim-fpu.c (sim_fpu_cmp): New function.
426
427 Wed Feb 18 16:29:21 1998 Doug Evans <devans@canuck.cygnus.com>
428
429 * cgen-utils.h (sim_disassemble_insn): Use CGEN_INSN_BITSIZE
430 instead of abuf->length.
431 * sim-trace.c (trace_options): Have -t only trace a few useful things.
432 (set_trace_option_mask): Renamed from set_trace_options.
433 (set_trace_option): New function.
434 (trace_option_handler): Update calls to set_trace_option{,_mask}.
435 * sim-trace.h (TRACE_USEFUL_MASK): New macro.
436
437 Wed Feb 18 12:42:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
438
439 * sim-basics.h: Declare struct _sim_fpu.
440
441 Tue Feb 17 16:27:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
442
443 * sim-trace.h (TRACE_ALU_INPUT*, TRACE_ALU_RESULT): Define.
444 (trace_prefix, trace_input*, trace_result*): Declare.
445 (trace_one_insn): Change declaration, assume trace_prefix called.
446 (trace_generic): Like trace_one_insn.
447 (TRACE_ALU_IDX, TRACE_*_IDX): Change #define's to enum.
448 (TRACE_alu, TRACE_[a-z]*): Update.
449
450 * sim-trace.c (trace_prefix, trace_input*, trace_result*,
451 trace_insn, save_data, trace_idx_to_str, print_data): New
452 functions.
453 (trace_one_insn): Rewrite.
454 (trace_generic): New function.
455
456 Tue Feb 17 17:27:30 1998 Doug Evans <devans@seba.cygnus.com>
457
458 * Make-common.in (CGEN_MAIN_SCM): Update.
459 * aclocal.m4 (USE_MAINTAINER_MODE): New variable.
460
461 * cgen-sim.h (SEMANTIC_CACHE_FN): Delete.
462 (SEMANTIC_FN): Rewrite declaration.
463 (DECODE): Update type of semantic_fast member.
464 ({EX,SEM}_FN_NAME): Have only one version.
465 * cgen.sh: Support building cpu.c.
466 * sim-base.h (sim_state_base): Delete conditionals surrounding
467 member scache_size.
468
469 Tue Feb 10 18:31:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
470
471 * sim-load.c (sim_load_file): Print LMA/VMA according to value
472 used.
473
474 Tue Feb 10 14:56:23 1998 Ian Carmichael <iancarm@cygnus.com>
475
476 * sim-core.c: Add missing prototypes for WITH_DEVICES.
477 Add missing parameters to device_io calls.
478 * sim-core.h: Add missing parameters to device_io calls.
479
480 Mon Feb 9 14:48:37 1998 Doug Evans <devans@canuck.cygnus.com>
481
482 * cgen-sim.h (DECODE): Always use switch for `read' for now.
483 (PAREXEC): Renamed from PARALLEL_EXEC. All uses updated.
484 (SEMANTIC{,_CACHE}_FN): Fix return type.
485 * cgen.sh (decode): Add s/@arch@/$arch/.
486 * genmloop.sh (@cpu@_engine_run): Delete `current_state'.
487 (engine_resume): Likewise. Make `engine' volatile. Save copy
488 of cpu pointer in volatile object. Initialize read switch if
489 -parallel.
490
491 Thu Feb 5 13:27:04 1998 Doug Evans <devans@seba.cygnus.com>
492
493 * cgen-sim.h (EX_FN_NAME): _exc_ -> _ex_.
494 (SEM_INSN): New macro.
495
496 Tue Feb 3 16:31:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
497
498 * sim-run.c (sim_engine_run): Assume IMEM is 32 bit.
499
500 Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
501
502 * configure: Regenerated to track ../common/aclocal.m4 changes.
503
504 Sun Feb 1 16:16:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
505
506 * sim-types.h (fp_word): New type, define according to
507 WITH_TARGET_FLOATING_POINT_BITSIZE.
508
509 * aclocal.m4 (default_sim_floating_point_bitsize): Add
510 configuration of size of floating point registers.
511
512 Sun Feb 1 14:02:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
513
514 * sim-profile.c (profile_print): Only print CPU <N> if other
515 output is going to appear.
516
517 Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
518
519 * configure: Regenerated to track ../common/aclocal.m4 changes.
520
521 Sat Jan 31 18:03:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
522
523 * sim-types.h (address_word): Typedef according to
524 WITH_TARGET_ADDRESS_BITSIZE.
525 (signed_cell, unsigned_cell, natural_cell): Ditto using
526 WITH_TARGET_CELL_BITSIZE.
527
528 * sim-config.h (WITH_TARGET_ADDRESS_BITSIZE): Define.
529 (WITH_TARGET_CELL_BITSIZE): Define.
530 (WITH_HOST_WORD_BITSIZE): Delete.
531
532 * sim-config.c (print_sim_config): Update.
533
534 * aclocal.m4 (SIM_AC_OPTION_BITSIZE): Add support for
535 configuration of address and OpenFirmware cell sizes.
536
537 Fri Jan 30 09:36:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
538
539 * sim-engine.h (sim_engine_run): Add argument nr_cpus.
540 * sim-run.c (sim_engine_run): Update.
541
542 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use SET_CPU_CIA instead of
543 CPU_CIA.
544 * sim-run.c (sim_engine_run): Ditto.
545
546 * sim-resume.c (sim_resume): Obtain nr_cpus from sim_engine.
547 (sim_resume): Pass nr_cpus to sim_engine_run.
548
549 * sim-engine.h (struct _sim_engine): Add member nr_cpus.
550
551 * sim-engine.c (sim_engine_init): Hardwire nr_cpus to
552 MAX_NR_PROCESSORS.
553 (sim_engine_nr_cpus) sim-engine.c, sim-engine.h: New function
554
555 Thu Jan 29 12:13:01 1998 Doug Evans <devans@canuck.cygnus.com>
556
557 * cgen.sh: Portably read parms past $9.
558
559 Fri Jan 23 14:20:54 1998 Doug Evans <devans@seba.cygnus.com>
560
561 * Make-common.in (stamp-tvals): New rule.
562 (targ-vals.h,targ-map.c): Depend on it.
563 (clean): Remove stamp-tvals.
564
565 Tue Jan 20 21:35:13 1998 Michael Meissner <meissner@cygnus.com>
566
567 * sim-utils.c (sim_state_alloc): #if 0 variable that is only used
568 in code also #if 0'ed.
569
570 Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
571
572 * configure: Regenerated to track ../common/aclocal.m4 changes.
573 * aclocal.m4: Recognize --enable-maintainer-mode.
574
575 Mon Jan 19 12:45:45 1998 Doug Evans <devans@seba.cygnus.com>
576
577 start-sanitize-cygnus
578 * Make-common.in (cgen-{arch,cpu,decode}): New targets.
579 * cgen.sh: New file.
580 end-sanitize-cygnus
581 * cgen-scache.h: Deleted.
582 * Make-common.in (cgen-run.o,cgen-scache.o): Delete cgen-scache.h dep.
583 (CGEN_CPU_SCM): Add sim-model.scm.
584 * cgen-scache.c: Only compile contents if WITH_SCACHE.
585 (scache_init): Use runtime computed size of SCACHE.
586 (scache_flush): Likewise.
587 * cgen-mem.h (GETIMEMU[QHSD]I): Declare.
588 ([GS]ETT{QI,UQI,HI,UHI,SI,USI,DI,UDI}): Declare.
589 * cgen-sim.h: Scache support moved here.
590 (PC): Redo definition.
591 (ARGBUF,SCACHE,PARALLEL_EXEC): Provide forward decls.
592 (DECODE): Add parallel execution support.
593 Only include semantic label members if using switch.
594 (SWITCH,CASE,BREAK,DEFAULT,ENDSWITCH): Portable computed goto support.
595 (CGEN_CPU): Delete members exec_state, halt_sigrc, halt_jmp_buf.
596 (IADDR,CIA,SEM_ARG,EX_FN_NAME,SEM_FN_NAME,RECORD_IADDR,SEM_ARGBUF,
597 SEM_NEXT_PC,SEM_BRANCH_VIA_{CACHE,ADDR},SEM_NEW_PC_ADDR): Moved here
598 from cgen-types.h.
599 (engine_{stop,run,resume,halt,signal}): Delete decls.
600 * cgen-types.h (CGEN_{XCAT3,CAT3}): Delete.
601 (argbuf,scache): Delete forward decls.
602 (STATE): Delete decl.
603 * cgen-utils.c: Don't include decode.h, mem-ops.h, sem-ops.h.
604 Include cgen-mem.h, cgen-ops.h.
605 (engine_halt,engine_signal): Delete.
606 ({ex,exc,sem,semc}_illegal): Delete.
607 (sim_disassemble_insn): Result of extract fn is in bits.
608 * genmloop.sh: Rewrite.
609
610 * cgen-trace.c (trace_insn): Set printed_result_p=0 if not tracing
611 line numbers.
612
613 * sim-base.h (sim_state_base): Delete member `model'.
614 (sim_cpu_base): Add member `model'.
615 * sim-model.h (IMP_PROPERTIES): New type.
616 (MACH): New members imp_props, models.
617 (models): Delete decl.
618 * sim-model.c (set_model): Update.
619 * sim-profile.c (profile_print_model): Update.
620
621 * sim-utils.c (sim_state_alloc): Delete setting of cpu backlink here.
622
623 Fri Jan 16 12:33:09 1998 Nick Clifton <nickc@cygnus.com>
624
625 * cgen-trace.c (trace_insn): Call CGEN_INSN_MNEMONIC() rather than
626 CGEN_INSN_SYNTAX().
627
628 Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
629
630 * configure: Regenerated to track ../common/aclocal.m4 changes.
631 * config.in: Ditto.
632
633 Mon Dec 15 23:16:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
634
635 * aclocal.m4 (AR): Check for sigaction.
636
637 Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
638
639 * Make-common.in (sim-core.o): Depend on $(sim_main_headers).
640
641 * sim-config.h (WITH_TREE_PROPERTIES): Define as 0.
642 * sim-config.c (sim_config): Replace WITH_DEVICES with
643 WITH_TREE_PROPERTIES.
644
645 * configure: Regenerated to track ../common/aclocal.m4 changes.
646
647 Wed Dec 3 17:56:02 1997 Doug Evans <devans@canuck.cygnus.com>
648
649 * Make-common.in (SIM_ENVIRONMENT): New variable.
650 (CONFIG_CFLAGS): Add it.
651 * aclocal.m4 (SIM_AC_OPTION_ENVIRONMENT): Handle
652 --enable-sim-environment option.
653 * configure: Regenerated.
654 * sim-config.h (environment support): Rewrite.
655 * sim-config.c (current_environment): Define as enum, unconditionally.
656 (current_alignment): Define unconditionally.
657 (config_environment_to_a): Update.
658 (config_alignment_to_a): Fix type of argument. Define unconditionally.
659 (sim_config): Handle environment and alignment determination
660 unconditionally. Delete sanity checks of current_environment,
661 unnecessary.
662 (print_sim_config): Update.
663 * sim-options.c (STANDARD_OPTIONS enum): Add OPTION_ENVIRONMENT.
664 (standard_options): Add --environment.
665 (standard_option_handler): Likewise.
666
667 Fri Nov 28 12:21:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
668
669 * sim-alu.h: Add notes on carry vs borrow for subtraction.
670 (ALU{,8,16,32,64}ADD): Redefine ADD macro as add overflowing.
671 (ALU{,8,16,32,64}ADDC): Define - add carrying.
672 (ALU{,8,16,32,64}SUB): Redefine SUB macro as subtract overflowing.
673 (ALU{,8,16,32,64}SUBB): Define - subtract borrowing.
674 (ALU{,8,16,32,64}SUBC): Define - tract carrying.
675 (ALU{,8,16,32,64}ADD_CA, ALU{,8,16,32,64}ADDC_C): Replace single
676 argument ADD_CA macro with two argument ADDC_C - add carrying with
677 carry in.
678 (ALU{,8,16,32,64}SUB_CA, ALU{,8,16,32,64}SUBC_X): Replace single
679 argument SUB_CA macro with two argument SUBC_X - subtract
680 carrying, extended.
681 (ALU{,8,16,32,64}SUBB_B): Define - subtract borrowing with
682 borrow-in.
683 (ALU{,8,16,32,64}NEGC, ALU{,8,16,32,64}NEGB): Define.
684
685 Sun Nov 30 17:40:57 1997 Michael Meissner <meissner@cygnus.com>
686
687 * sim-io.c (sim_io_{syscalls,getstring}): Delete. No longer used.
688 * sim-io.h (sim_io_syscalls): Delete.
689
690 Fri Nov 28 20:10:09 1997 Michael Meissner <meissner@cygnus.com>
691
692 * syscall.c (cb_syscall): Add missing else, so write to stdout
693 isn't doubled.
694
695 * sim-alu.h (ALU{,8,16,32,64}_SET_CARRY): Provide macros to import
696 the carry bit from the CPU's psw.
697
698 Fri Nov 28 11:15:05 1997 Doug Evans <devans@canuck.cygnus.com>
699
700 * gennltvals.sh: Redo syscall support.
701 * nltvals.def: Regenerated.
702
703 Wed Nov 26 16:49:38 1997 Michael Meissner <meissner@cygnus.com>
704
705 * syscall.c (cb_syscall): If writing to stdout or stderr, flush
706 the stream immediately.
707
708 Wed Nov 26 12:32:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
709
710 * sim-io.c (sim_io_getstring): Delete unused len2.
711 (sim_io_syscalls): Ditto for sys_errno.
712
713 Wed Nov 26 11:18:40 1997 Doug Evans <devans@canuck.cygnus.com>
714
715 * syscall.c (cb_syscall): Test CB_SYSCALL struct magic number.
716
717 * Make-common.in (run.o): Depend on remote-sim.h.
718 (nrun.o,sim-hload.o,sim-hrw.o): Likewise.
719 (sim-io.o,sim-reason.o,sim-resume.o): Likewise.
720
721 Tue Nov 25 20:12:46 1997 Michael Meissner <meissner@cygnus.com>
722
723 * sim-io.c (sim_io_syscalls): Disable lseek.
724
725 Tue Nov 25 00:12:38 1997 Doug Evans <devans@seba.cygnus.com>
726
727 start-sanitize-d30v
728 * gennltvals.sh: Generate syscall values for d30v.
729 end-sanitize-d30v
730 * gennltvals.sh: Use libgloss/syscall.h for sparc.
731 * nltvals.def: Regenerate.
732
733 * callback.c (os_stat): Make 3rd arg a host struct stat ptr.
734 (os_fstat): Likewise. Validate fd argument.
735 (cb_host_to_target_stat): Delete big_p arg. If HS arg is NULL,
736 just compute target stat struct length.
737 * syscall.c: #include "libiberty.h", <sys/types.h>, <sys/stat.h>.
738 (ENOSYS,ENAMETOOLONG): Provide definitions if missing.
739 (get_string): Return host errno values so they can be properly
740 translated later.
741 (cb_syscall): Likewise.
742 (cb_syscall, cases open,unlink): Use get_path instead of get_string.
743 (cb_syscall, case read): Use read_stdin for file descriptor 0.
744 (cb_syscall, case write): Use write_stderr for file descriptor 2.
745 (cb_syscall): Add cases for lseek, unlink, stat, fstat, time.
746 (get_path): New function.
747
748 Mon Nov 24 18:56:07 1997 Michael Meissner <meissner@cygnus.com>
749
750 * sim-io.c (sim_io_syscalls): New function to provide system call
751 emulation. Provide exit, open, close, read, write, lseek, and
752 unlink.
753 (sim_io_getstring): New function to return a string from a
754 simulated memory location.
755
756 * sim-io.h (sim_io_syscalls): Add declaration.
757
758 Mon Nov 24 12:09:59 1997 Doug Evans <devans@seba.cygnus.com>
759
760 * sim-core.c (sim_core_signal): Fix spelling error in message.
761
762 * sim-hrw.c (sim_read): Use read map, not write map.
763
764 * Make-common.in (all): Add .gdbinit.
765 * gdbinit.in: Add dump command.
766
767 * sim-model.c (model_options): Use '\0' for `shortopt'.
768
769 * sim-trace.c (trace_option_handler): Set state trace file
770 for --trace-file in addition to cpu's values.
771 (trace_vprintf): If cpu == NULL, try state's trace file.
772 (trace_options): Reorganize table, reword some descriptions.
773
774 Sun Nov 23 10:57:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
775
776 * sim-fpu.c (sim_fpu_abs, sim_fpu_neg, sim_fpu_inv), sim-fpu.h:
777 New functions.
778
779 Sat Nov 22 19:16:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
780
781 * sim-reason.c (sim_stop_reason): For sim_signalled, return the
782 signal untranslated, document problem with this.
783
784 * nrun.c (main): Check for a prog name of `*step'. If present,
785 step the simulator instead of allowing it to run free.
786
787 * sim-signal.c (SIGQUIT): Define on _MSC_VER hosts.
788
789 * Make-common.in (sim_main_headers): Add sim-signal.h.
790
791 Fri Nov 21 09:32:32 1997 Andrew Cagney <cagney@b1.cygnus.com>
792
793 * sim-signal.c (sim_signal_to_host): Return 0 for SIM_SIGNONE.
794
795 Thu Nov 20 20:35:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
796
797 * sim-signal.h: Start simulator signals at 64 so that host signal
798 numbers can be detected and reported.
799
800 * sim-signal.h (SIM_SIGFPE), sim-signal.h: Add signal.
801
802 Wed Nov 19 12:02:41 1997 Doug Evans <devans@seba.cygnus.com>
803
804 * callback.c (cb_host_to_target_stat): Fix return values.
805
806 * cgen-sim.h (enum_signal_type): Delete.
807 (engine_signal): Update prototype.
808 * cgen-utils.c: Don't include <signal.h>.
809 (sim_signal_to_host): Delete, lives in sim-signal.c now.
810 (engine_signal): Update.
811
812 * sim-utils.c (sim_state_alloc): Call SIM_STATE_ALLOC if defined.
813 (sim_state_free): Call SIM_STATE_FREE if defined.
814
815 * sim-module.c (sim_module_install): Don't leave any modules
816 installed if one fails to install.
817
818 Wed Nov 19 13:25:48 1997 Michael Meissner <meissner@cygnus.com>
819
820 * sim-options.c: Don't include ../libiberty/alloca-conf.h any
821 more, since alloca is not used in this file.
822
823 * sim-alu.h (ALU{32,64}_*): Rewrite 32 and 64 bit ALU support to
824 correctly set the carry and overflow bits for those types.
825 (ALU{8,16,32,64}_{ADD,SUB}_CA): Take VAL argument to add along
826 with carry, so carry is correct after doing both adds.
827 (ALU*): Space out '\' to make it easier to read.
828
829 Tue Nov 18 15:53:45 1997 Doug Evans <devans@canuck.cygnus.com>
830
831 * sim-core.c (sim_core_signal): Use sim_stopped instead of
832 sim_signalled.
833
834 * sim-signal.c, sim-signal.h: New files.
835 * Make-common.in (sim-signal.o): Add rule for.
836 (SIM_NEW_COMMON_OBJS): Add sim-signal.o.
837 * sim-abort.c: Don't include <signal.h>.
838 * sim-basics.h: #include "sim-signal.h".
839 * sim-break.c: Don't include <signal.h>.
840 (sim_handle_breakpoint): Replace SIGTRAP with SIM_SIGTRAP.
841 * sim-core.c: Don't include <signal.h>.
842 (SIGBUS): Delete definition.
843 (sim_core_signal): Replace SIGSEGV,SIGBUS with SIM_SIGSEGV,SIM_SIGBUS.
844 * sim-engine.c: Don't include <signal.h>.
845 (sim_engine_abort): Replace SIGABRT with SIM_SIGABRT.
846 * sim-reason.c (sim_stop_reason): Call sim_signal_to_host.
847 * sim-resume.c: Don't include <signal.h>.
848 (SIGTRAP): Delete definition.
849 (has_stepped): Replace SIGTRAP with SIM_SIGTRAP.
850 * sim-stop.c: Don't include <signal.h>.
851 (control_c_simulation): Replace SIGINT with SIM_SIGINT.
852 * sim-watch.c: Don't include <signal.h>.
853 (handle_watchpoint): Replace SIGINT with SIM_SIGINT.
854
855 * Make-common.in (SIM_NEW_COMMON_OBJS): New variable.
856
857 * sim-base.h (CIA_ADDR): Provide default definition.
858 * sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
859 * sim-break.c (sim_handle_breakpoint): Likewise.
860
861 Mon Nov 17 14:15:31 1997 Doug Evans <devans@seba.cygnus.com>
862
863 * Make-common.in (srccom): New variable.
864
865 * Make-common.in (DEP, COMMON_DEP_CFLAGS): Define.
866 (LIB_OBJS): Add syscall.o.
867 (gentmap): Pass $(NL_TARGET) to $(CC).
868 (syscall.o): Add rule for.
869 (sim_main_headers): Add $(SIM_EXTRA_DEPS).
870 (sim-bits.o): Depend on $(sim-n-bits_h).
871 (sim-load.o): Depend on callback.h.
872
873 * Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to
874 cgen-mem.h, sem-ops.h renamed to cgen-ops.h.
875 * cgen-mem.h, cgen-ops.h: New files.
876
877 * aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no".
878
879 * Makefile.in (nltvals.def): Depend on gennltvals.sh.
880 Rewrite build rule.
881 * callback.c: #include string.h or strings.h.
882 #include sys/types.h and sys/stat.h.
883 (cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare.
884 (os_get_errno,os_open): Update.
885 (os_stat,os_fstat): New functions.
886 (os_init): Initialize syscall_map, errno_map, open_map.
887 (default_callback): Add entries for os_stat, os_fstat, syscall_map,
888 errno_map, open_map, signal_map, stat_map.
889 (cb_read_target_syscall_maps): New function.
890 (cb_target_to_host_syscall): New function.
891 (cb_host_to_target_errno): Renamed from host_to_target_errno.
892 (cb_target_to_host_open): Renamed from target_to_host_open.
893 (store): New function.
894 (cb_host_to_target_stat): New function.
895 * syscall.c: New file.
896 * gentmap.c (sys_tdefs): New global.
897 (gen_targ_vals_h): Output target syscall numbers.
898 (gen_targ_map_c): Update. Output target syscall translation map.
899 * gentvals.sh: New first argument `target'. Preface table with
900 #ifdef NL_TARGET_$target if non-null target passed.
901 * gennltvals.sh: New file.
902 * nltvals.def: Regenerated.
903
904 Fri Nov 14 11:33:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
905
906 * sim-n-core.h (sim_core_read_unaligned_N): Return static
907 sim_core_dummy_M.
908 (sim_core_dummy_M): Declare.
909
910 Wed Nov 12 18:16:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
911
912 * sim-core.c (sim_core_signal): Print the address of the
913 instruction.
914
915 Thu Nov 13 11:49:41 1997 Doug Evans <devans@seba.cygnus.com>
916
917 * sim-base.h (sim_state_base): Move `magic' to end of struct.
918
919 * sim-base.h (sim_state_base): Add member trace_data.
920 (STATE_TRACE_DATA): New macro.
921 * sim-trace.h (TRACE_DEBUG_IDX,TRACE_debug): New macros.
922 ({WITH_,}TRACE_DEBUG_P): New macros.
923 (STATE_TRACE_FLAGS,STRACE_P,STRACE_DEBUG_P): New macros.
924 (_sim_cpu): Delete forward reference.
925 (debug_printf): Update.
926 * sim-trace.c (OPTION_TRACE_DEBUG): Define.
927 (trace_options): Add --trace-debug.
928 (set_trace_options): Handle it.
929 (trace_option_handler): Likewise.
930 (trace_install): Init state trace_data struct.
931 (trace_uninstall): Close state trace file.
932 * sim-events.c (ETRACE): Only print source file and line number if
933 --trace-debug.
934 * sim-n-core.h (sim_core_trace_M): Likewise.
935
936 * sim-core.c (sim_core_signal): Add missing "\n" in message.
937
938 1997-11-13 Felix Lee <flee@cygnus.com>
939
940 * sim-n-core.h (sim_core_read_unaligned_N): illegal empty
941 initializer.
942 * sim-types.h (unsigned128,signed128): fix typo for MSVC.
943
944 Wed Nov 12 12:18:08 1997 Doug Evans <devans@canuck.cygnus.com>
945
946 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Fix typo.
947
948 * Make-common.in (BUILT_SRC_FROM_COMMON): Remove files no longer
949 built this way.
950 (sim-config.o): Remove non-existent $(sim-nconfig_h) dependency.
951 (clean): Don't delete $(BUILT_SRC_FROM_COMMON) if building in
952 source tree.
953
954 Tue Nov 11 13:28:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
955
956 * sim-events.c (sim_events_process): Re-compute the time -
957 update_time_from_event - as each event is processed. Reverses
958 previous change.
959
960 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
961
962 * callback.c (os_poll_quit): Replace _WIN32 with _MSC_VER.
963
964 Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
965
966 * sim-events.c (sim_events_process): Delete redundant call to
967 update_time_from_event.
968 (sim_events_slip): Always decrement time_from_event.
969 (sim_events_tick, sim_events_deschedule, update_time_from_event):
970 Delete assertion that time_from_event >=0 when work in queue, no
971 longer applicable.
972
973 Thu Nov 6 12:06:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
974
975 * sim-options.c (STANDARD_OPTIONS): Change OPTION_* to an enum.
976 (standard_option_handler): Update.
977
978 * sim-options.h: Clarify documentation.
979 (OPTION_LONG_ONLY_P): Delete definition.
980 (OPTION_VALID_P): Define.
981
982 * sim-options.c (sim_print_help): Allow short only options.
983 (sim_parse_args): Ditto.
984 (sim_args_command): Skip short only options.
985 (sim_parse_args): Allocate space for NUM_OPTS not just 256. Make
986 separate entries for short and long options in the HANDLERS and
987 ORIG_VAL tables.
988 (sim_parse_args): Disable argument permutation.
989
990 Wed Nov 5 13:40:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
991
992 * sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N):
993 Add argument M, size of data type.
994 (sim_core_read_misaligned_3, sim_core_write_misaligned_3):
995 Declare, ditto for 5, 6 & 7 byte transfers.
996 (sim_core_write_unaligned_1, sim_core_write_unaligned_1): Define
997 as aligned variant.
998
999 * sim-n-core.h (sim_core_trace_M): Rename from
1000 sim_core_trace_N. Add nr_bytes argument. Replace transfer argument
1001 with transfer type. Print transfer direction. Handle 1 and 2 byte
1002 transfers.
1003 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Trace
1004 unaligned accesses.
1005 (unsigned_M, T2H_M, H2T_M): Rename from unsigned_N, T2H_N, H2T_N.
1006 Update all functions.
1007
1008 * sim-core.c: Generate functions starting with 16 not 1.
1009 (sim_core_read_unaligned_3): Generate. Ditto for 3 byte write and
1010 all 5, 6 & 7 byte transfers.
1011
1012 * sim-n-core.h (sim_core_read_misaligned_N,
1013 sim_core_write_misaligned_N): Implement.
1014
1015 Mon Nov 3 15:03:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
1016
1017 * sim-endian.h (U16_8): Implement
1018
1019 * sim-endian.c (sim_endian_split_16, sim_endian_join_16): New functions
1020
1021 * sim-endian.h (VL8_16, VH8_16): Implement.
1022
1023 * sim-memopt.c (memory_option_handler): Typecast 64bit value to
1024 long in printf.
1025 (memory_option_handler): Only zalloc modulo bytes when non-zero.
1026 (memory_option_handler): Skip comma in alias address list
1027
1028 Fri Oct 31 13:03:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
1029
1030 * sim-memopt.c (do_memopt_add, do_memopt_delete): Add level and
1031 space params.
1032 (parse_size, parse_addr): New functions
1033 (memory_option_handler, memory_options): Parse address & size
1034 using new functions. Pass level, space, modulo to do_memopt_add &
1035 do_memopt_del.
1036
1037 * sim-memopt.h (struct _sim_memopt): Add level & space fields.
1038
1039 * sim-core.h (sim_core_arrach, sim_core_detach): Replace
1040 `attach_type attach' argument with `unsigned level' argument.
1041 Document.
1042
1043 * sim-core.c (new_sim_core_mapping, sim_core_map_attach,
1044 sim_core_attach): Replace argument attach with level. Update
1045 verification of arguments.
1046 (sim_core_map_detach, sim_core_detach): Replace argument attach
1047 with level.
1048
1049 * sim-basics.h (enum _attach_type): Delete.
1050
1051 Thu Oct 30 13:45:00 1997 Doug Evans <devans@seba.cygnus.com>
1052
1053 * sim-core.h (sim_core_write_8): Define.
1054
1055 Tue Oct 28 12:29:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1056
1057 * sim-bits.h: Document ROTn macro.
1058
1059 * sim-endian.h (H2T): Handle 16 byte variables.
1060
1061 * sim-n-core.h (sim_core_read_unaligned_N): Return a dummy when an
1062 error.
1063
1064 * sim-core.c: Do not generate sim_core_*_word.
1065
1066 * sim-n-core.h (sim_core_trace_N): Add line_nr argument.
1067 (sim_core_write_aligned_N, sim_core_read_aligned_N): Update.
1068
1069 * sim-core.h (sim_core_read_unaligned_word,
1070 sim_core_read_aligned_word, sim_core_read_word,
1071 sim_core_write_unaligned_word, sim_core_write_aligned_word,
1072 sim_core_write_word): Change to macros that map onto sim_core_*_N.
1073
1074 Mon Oct 27 11:25:10 1997 Doug Evans <devans@canuck.cygnus.com>
1075
1076 * sim-n-endian.h: Add TAGS entrys for 16 byte versions.
1077
1078 * sim-endian.h: Disable 16 byte support.
1079
1080 Mon Oct 27 12:00:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1081
1082 * sim-endian.c (_SWAP_16): Define. Generate 126 bit swap code.
1083
1084 * sim-n-core.h (sim_core_trace_N): New function.
1085 (sim_core_read_aligned_N, sim_core_write_aligned_N): Use,
1086 (sim_core_read_unaligned_N): Do not retyrn bogus value wden error.
1087
1088 * sim-endian.h: Add 128 bit variant.
1089
1090 * sim-core.h, sim-core.c: Add 128 bit variant.
1091
1092 * sim-types.h: Add signed128 and unsigned128 types using a struct.
1093
1094 Fri Oct 24 11:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
1095
1096 * sim-events.c (sim_events_process): Clear events->work_pending.
1097 (sim_events_tickn, sim_events_tick): Accumulate, instead of
1098 setting, nr_ticks_to_process.
1099 (sim_events_preprocess): Allow nr_ticks_to_process to be non-zero
1100 when the event queue isn't next.
1101
1102 * sim-events.h, sim-events.c (sim_events_slip): New function.
1103
1104 Wed Oct 22 14:18:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1105
1106 * sim-hload.c (sim_load): Pass lma_p==0 and do_load=sim_load.
1107
1108 * sim-utils.h, sim-load.c (sim_load_file): Add lma_p and do_load
1109 arguments.
1110
1111 Tue Oct 21 18:37:57 1997 Doug Evans <devans@canuck.cygnus.com>
1112
1113 * nrun.c (main): Remove useless test of name != NULL.
1114 Exit if bfd_openr fails. Call bfd_check_format after bfd_openr.
1115
1116 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1117
1118 * sim-fpu.c (EXPMAX): Type is unsigned.
1119 (MIN_INT, MAX_INT): Type is signed64.
1120 (i2fpu): Type of val is signed64.
1121
1122 Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1123
1124 * sim-profile.h (PROFILE_PC_BUCKET_SIZE): Treat a shift of zero as
1125 a bucket size of zero.
1126
1127 * sim-profile.c (OPTION_PROFILE_PC_GRANULARITY,
1128 OPTION_PROFILE_PC): Define.
1129 (profile_option_handler): Add support for --profile-pc and
1130 --profile-pc-granularity options.
1131 (profile_pc_init): When possible, compute nr buckets from bucket
1132 size.
1133
1134 * sim-profile.c (profile_pc_init): Align the profile-pc end
1135 address with the profile-pc bucket size.
1136
1137 * sim-profile.h (PROFILE_PC_NR_BUCKETS): Rename PROFILE_PC_SIZE to
1138 something less ambiguous.
1139 (PROFILE_PC_BUCKET_SIZE): Ditto for PROFILE_PC_SAMPLE_SIZE.
1140
1141 * sim-profile.c (profile_pc_cleanup): New function. Move
1142 profile_pc_uninstall code to here.
1143 (profile_pc_uninstall): Call.
1144 (profile_pc_init): Call.
1145
1146 Mon Oct 20 17:23:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
1147
1148 * sim-profile.c (profile_print_pc): Dump pc profile to dmon.out
1149 file using BSD gprof format.
1150
1151 * sim-bits.h (LSBIT, MSBIT, BIT): Force result to type
1152 unsigned_word.
1153 (LSBIT8, LSBIT16, LSBIT32, LSBIT64, MSBIT8, MSBIT16, MSBIT32,
1154 MSBIT64): Force result to unsignedN.
1155
1156 Thu Oct 16 11:38:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
1157
1158 * sim-alu.h (ALU16_BEGIN, ALU32_BEGIN, ALU64_BEGIN): Drop opening
1159 brace from macro.
1160 (ALU8_BEGIN, ALU8_SET, ALU8_ADD, ALU8_SUB, ALU8_NEGATE): Define.
1161 (ALU16_ADD, ALU16_SUB, ALU16_NEGATE): Simplify arrithmetic.
1162 (ALU32_ADD, ALU32_SUB, ALU32_NEGATE): Simplify arrithmetic.
1163 (ALU64_ADD, ALU64_SUB, ALU64_NEGATE): Simplify arrithmetic.
1164
1165 Wed Oct 15 09:24:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
1166
1167 * sim-core.h (struct _sim_core_mapping): Change free_buffer to
1168 type void*.
1169
1170 * sim-core.c (sim_core_uninstall, new_sim_core_mapping,
1171 sim_core_map_attach, sim_core_map_detach): Change free_buffer to
1172 type void*.
1173 (sim_core_attach): Rename buffer_freed to free_buffer, type
1174 void*. Ensure that allocated buffer is alligned according to
1175 region's address.
1176
1177 Mon Oct 13 11:34:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
1178
1179 * sim-alu.h (ALU64_HAD_OVERFLOW): Define.
1180 (ALU64_SUB): Define.
1181
1182 * Make-common.in (all): Build SIM_EXTRA_ALL first.
1183 (.gdbinit): Remove dependencies, generate once per build.
1184
1185 Tue Oct 14 19:20:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
1186
1187 * sim-n-core.h (sim_core_read_aligned_N,
1188 sim_core_write_aligned_N): Make xaddr param type address_word not
1189 unsigned_word.
1190
1191 Fri Oct 3 09:49:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
1192
1193 * sim-fpu.h, sim-fpu.c: Rewrite. Change sim_fpu object to an
1194 unpacked floating point struct. Pass sim_fpu object by reference.
1195 Add preliminary support for rounding modes.
1196
1197 Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1198
1199 * configure: Regenerated to track ../common/aclocal.m4 changes.
1200
1201 Thu Oct 2 19:43:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
1202
1203 * aclocal.m4 (sim-bitsize): Fix typo, WITH_TARGET_WORD_BITSIZE not
1204 WITH_TARGET_BITSIZE.
1205
1206 Thu Sep 25 23:20:20 1997 Felix Lee <flee@yin.cygnus.com>
1207
1208 * sim-profile.c (profile_print_core): label needs empty statement.
1209
1210 Thu Sep 25 11:20:47 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
1211
1212 * sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC
1213 and zfree instead of xmalloc and free. Prevents warnings.
1214
1215 Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
1216
1217 * configure: Regenerated to track ../common/aclocal.m4 changes.
1218
1219 Wed Sep 24 17:23:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
1220
1221 * Make-common.in (SIM_BITSIZE): Assign from configured value.
1222 (CONFIG_CFLAGS): Add SIM_BITSIZE.
1223
1224 * aclocal.m4 (--enable-sim-bitsize): Developer option for
1225 controling the bitsize/msb of the target.
1226
1227 Wed Sep 24 17:41:40 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
1228
1229 * Make-common.in: New files sim-break.c, sim-break.h.
1230 * sim-base.h: Add point to breakpoint list to sim_state_base.
1231 * sim-break.c sim-break.h: New modules that implement intrinsic
1232 breakpoint support.
1233 * sim-module.c: Add breakpoint module.
1234
1235 Tue Sep 23 00:26:39 1997 Felix Lee <flee@yin.cygnus.com>
1236
1237 * sim-events.c (SIM_EVENTS_POLL_RATE): poll more often than once
1238 an hour.
1239 * sim-n-core.h (WITH_XOR_ENDIAN): MSVC barfs on
1240 if (0) { 1 % 0; }
1241 * sim-core.c (sim_core_xor_write_buffer): WITH_XOR_ENDIAN + 1.
1242 (SIGBUS) define for Windows.
1243 * sim-trace.c (trace_printf,debug_printf): added ALMOST_STDC.
1244 * sim-resume.c: define SIGTRAP for windows.
1245 * sim-xcat.h: use token pasting if ALMOST_STDC.
1246
1247 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1248
1249 * Make-common.in (SIM_SCACHE, SIM_DEFAULT_MODEL): Assign
1250 configured values.
1251 (CONFIG_CFLAGS): Add same.
1252
1253 Mon Sep 22 17:20:27 1997 Felix Lee <flee@cygnus.com>
1254
1255 * sim-types.h (SIGNED64): ##i64 when _MSC_VER, not _WIN32.
1256 (SIGNED32): use ##i32.
1257
1258 Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
1259
1260 * configure: Regenerated to track ../common/aclocal.m4 changes.
1261
1262 Tue Sep 23 10:07:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
1263
1264 * aclocal.m4 (sim-endian): Simplify logic determining [default]
1265 endian of target.
1266
1267 * Make-common.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
1268 SIM_HOSTENDIAN, SIM_RESERVED_BITS, SIM_ASSERT, SIM_FLOAT,
1269 SIM_HARDWARE, SIM_INLINE, SIM_PACKAGES, SIM_REGPARM, SIM_SMP,
1270 SIM_STDCALL, SIM_XOR_ENDIAN): Assign configured values.
1271 (CONFIG_CFLAGS): Add same.
1272
1273 * aclocal.m4: Perform AC_SUBST on optional options.
1274
1275 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1276
1277 * sim-config.h (WITH_DEFAULT_ALIGNMENT): Don't hardwire any alignment.
1278
1279 * sim-options.c (standard_option_handler): Typo in warning message.
1280
1281 * sim-base.h (STATE_MODEL): Make conditional on SIM_HAVE_MODEL.
1282
1283 * sim-profile.c (profile_print_insn): Check 0 .. MAX_INSN for any
1284 insn count. Make count conditional on there being a valid
1285 INSN_NAME.
1286 (profile_pc_init): Make default PC profile frequency an arbitrary
1287 256.
1288
1289 * sim-base.h: Ditto.
1290
1291 * sim-profile.h (WITH_PROFILE_MODEL_P): Only enable modeling when
1292 SIM_HAVE_MODEL.
1293
1294 * sim-model.h (struct MACH): Depreciate, to be replaced by bfd
1295 archure struct.
1296
1297 Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1298
1299 * configure: Regenerated to track ../common/aclocal.m4 changes.
1300
1301 Mon Sep 22 11:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1302
1303 * aclocal.m4 (sim_alignment): Simplify logic for selecting the
1304 configured alignment.
1305
1306 Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
1307
1308 * configure: Regenerated to track ../common/aclocal.m4 changes.
1309
1310 Fri Sep 19 17:26:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
1311
1312 * sim-config.c (sim_config): Check for default alignment.
1313
1314 * sim-options.c (standard_option_handler): Add alignment option.
1315
1316 * aclocal.m4 (sim_alignment): Allow configuration of hardwired and
1317 default alignment requirements on memory accesses.
1318
1319 Fri Sep 19 11:51:35 1997 Jeffrey A Law (law@cygnus.com)
1320
1321 * sim-load.c (sim_load_file): Return failure if the executable
1322 had no loadable sections.
1323
1324 Wed Sep 17 13:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
1325
1326 * sim-events.c (ETRACE): Use trace_printf not sim_io_printf for
1327 trace output.
1328
1329 * sim-core.c (sim_core_signal): When bad access halt simulator
1330 SIGSEGV / SIGBUS instead of aborting.
1331 (signal.h): Include.
1332
1333 * sim-watch.c (sim_watchpoint_install): Handler for watchpoint
1334 options was missing.
1335
1336 * sim-bits.h (MOVED): Define
1337
1338 Wed Sep 17 10:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
1339
1340 * sim-alu.h (ALU32_HAD_OVERFLOW): Pacify GCC, Use MSBIT instead of
1341 BIT.
1342
1343 * sim-bits.h (LSBIT, MSBIT): Check for overflow of shift value.
1344
1345 * sim-bits.c: Add 8 bit versions of bit macros.
1346
1347 * sim-bits.h: Ditto.
1348
1349 Tue Sep 16 16:15:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
1350
1351 * sim-bits.c (LSSEXT, MSSEXT): Replace SEXT.
1352 (LSINSERTED, MSINSERTED): Ditto for INSERTED.
1353
1354 * sim-n-bits.h (MSSEXTn, LSSEXTn): Replace SEXTn.
1355 (LSINSERTDn, MSINSERTEDN): Ditto for INSERTEDn.
1356
1357 * sim-bits.h (SEXT*): Define as MSEXT/LSEXT.
1358 (INSERTED*): Ditto for LSINSERTED/MSINSERTED.
1359
1360 Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1361
1362 * aclocal.m4 (SIM_AC_COMMON): Add optional config.h file argument.
1363 configure.in: Output to cconfig.h instead of config.h.
1364
1365 * configure: Regenerated to track ../common/aclocal.m4 changes.
1366
1367 Mon Sep 15 15:39:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
1368
1369 * sim-utils.c (sim_analyze_program): Set STATE_ARCHITECTURE from
1370 BFD if known.
1371
1372 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
1373
1374 * callback.c (os_write): divert stdout and stderr to their
1375 respective hooks.
1376
1377 Thu Sep 11 10:08:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
1378
1379 * sim-profile.c (profile_print_speed): Call
1380 sim_events_elapsed_time instead of PROFILE_EXEC_TIME for moment.
1381
1382 * sim-events.c (sim_events_elapsed_time): New function return nr
1383 host MS consumed by the simulator.
1384 (sim_watch_valid): Use.
1385
1386 * sim-module.c (modules): Install sim_events very very early.
1387
1388 * sim-profile.c (profile_print): Call profile_print_pc.
1389 (print_bar):
1390 (profile_pc_init): New function, set up processor for PC
1391 profiling.
1392 (profile_print_pc): New function, print a PC profile.
1393 (profile_pc_event): New function, sample PC.
1394
1395 * sim-profile.h (PROFILE_PC_COUNT, PROFILE_PC_START,
1396 PROFILE_PC_END, PROFILE_PC_SHIFT, PROFILE_PC_SAMPLE_SIZE): Add to
1397 profile struct.
1398
1399 * sim-options.c (sim_print_help): Pacify GCC.
1400
1401 * sim-n-core.h (sim_core_read_aligned_N,
1402 sim_core_write_aligned_N): Add un-conditional profile call.
1403 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Add
1404 profile call when aligned read/write isn't used.
1405
1406 * sim-base.h: Include sim-profile, sim-model after sim-core &
1407 sim-events allow sim-core to define useful values.
1408
1409 * sim-profile.c (OPTION_PROFILE_CORE): Define.
1410 (profile_option_handler, profile_options): Add support for
1411 --profile-core option.
1412 (print_bar): Include when core profiling.
1413 (profile_print_core): New function, print core profile.
1414
1415 * sim-config.c (print_sim_config): Print profile status.
1416
1417 * sim-profile.h (PROFILE_NEXT_IDX, PROFILE_core,
1418 WITH_PROFILE_PC_P): Define.
1419 (PROFILE_CORE_COUNT): Count each core-map/size separatly.
1420 (PROFILE_COUNT_CORE): Define.
1421
1422 Thu Sep 11 08:44:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
1423
1424 * sim-watch.c (handle_watchpoint): Pass a char** index into the
1425 interrupt_names array as the data.
1426 (sim-watch.h): Document.
1427
1428 Wed Sep 10 16:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1429
1430 * sim-options.c (sim_print_help): When the doc string is to long
1431 word wrap it.
1432
1433 * sim-watch.c (sim_watchpoint_install): Use option.doc_name so
1434 that only the first few the watch options are listed. Generate
1435 meanginful usage messages.
1436
1437 * sim-options.h (struct OPTION): Clarify use of doc_name field
1438
1439 Wed Sep 10 13:23:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
1440
1441 * sim-options.c (OPTION_ARCHITECTURE_INFO): New option.
1442 (standard_option_handler): Handle --architecture-info.
1443
1444 Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
1445
1446 * sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid
1447 illegal zero-sized array.
1448 * sim-core.c (sim_core_xor_read_buffer): same.
1449
1450 Tue Sep 9 11:20:35 1997 Doug Evans <dje@canuck.cygnus.com>
1451
1452 * nltvals.def: Regenerate.
1453
1454 Tue Sep 9 02:10:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
1455
1456 * sim-fpu.c (DP_FRACHIGH2): Define LL using SIGNED64.
1457
1458 Mon Sep 8 12:22:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1459
1460 * sim-bits.c (MASKED): Delete.
1461 (EXTRACTED): Delete.
1462 (LSEXTRACTED, MSEXTRACTED): New functions.
1463
1464 * sim-n-bits.h (MASKEDn): Delete, define as MSMASKED or LSMASKED.
1465 (MSMASKEDn, LSMASKEDn): Add last argument.
1466 (MSMASK*): Ditto.
1467
1468 * sim-bits.h (EXTEND8, EXTEND16): Define.
1469 (EXTRACTED64): Define as 64 bit extract, not 32 bit.
1470
1471 * sim-run.c (sim_engine_run): Use CPU_CIA macro.
1472
1473 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use CPU_CIA to get at
1474 current instruction address.
1475
1476 * sim-inline.h (*_ENGINE): Define.
1477
1478 Fri Sep 5 08:39:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
1479
1480 * sim-core.c (sim_core_attach): Fix checks of modulo/mask.
1481
1482 * sim-watch.c (delete_watchpoint): Delete by ident and type.
1483 (watch_option_handler): Call delete_watchpoint with ident or type.
1484 (sim_watchpoint_install): Create interrupt specific watchpoint
1485 commands on the fly.
1486 (do_watchpoint_create): New function, create a watch point using
1487 type/int-nr info encoded in the option nr.
1488 (do_watchpoint_info): New function. List active watchpoints.
1489
1490 * sim-watch.h: Change data structure to a list.
1491
1492 * sim-memopt.c (memory_option_handler): Require explicit "all"
1493 before deleting all memory regions.
1494
1495 * sim-utils.c (sim_do_commandf): New function, printf version of
1496 sim_do_command.
1497
1498 * sim-basics.h (asprintf, vasprintf): Hack, define for CYGWIN32.
1499
1500 * sim-alu.h (ALU64_ADD): Use explicit MSEXTRACTED64, do not assume
1501 bit endianness.
1502 (SIGNED64, UNSIGNED64): Delete.
1503 (ALU64_ADD): Don't rely on bit endianness.
1504 (ALU64_BEGIN): Define.
1505
1506 * sim-n-bits.h (MSEXTRACTEDn, LSEXTRACTED): New functions.
1507 (EXTRACTEDn): Delete, define as either LSEXTRACTED or MSEXTRACTED.
1508
1509 * sim-types.h (SIGNED64, UNSIGNED64): New macros, attach relevant
1510 suffix - u64, LL - to 64 bit constants.
1511
1512 Thu Sep 4 09:27:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
1513
1514 * sim-config.c (sim_config): Add assert for SIM_MAGIC_NUMBER.
1515
1516 * sim-utils.h (NZALLOC): Define - zalloc * N.
1517
1518 * sim-hrw.c (sim_read, sim_write): New file. Provide generic
1519 implementation of read/write functions.
1520
1521 * Make-common.in (sim-hrw.o): New target.
1522
1523 * sim-base.h (STATE_MEMOPT_P): Delete, simulators _always_ add
1524 memory.
1525
1526 * sim-memopt.c (memory_option_handler): Implement memory-size
1527 command. Implement memory-alias command. Let memory-delete delete
1528 all memory regions.
1529 (add_memopt): New function. Add a memory region.
1530 (do_memopt_delete): New function. Delete a memory region.
1531
1532 * sim-utils.c (sim_elapsed_time_get): Never return zero.
1533
1534 * sim-core.c (sim_core_detach): New function.
1535 (sim_core_map_detach): New function. Perform the actual detach.
1536 (sim_core_init): Move initialization code from here.
1537 (sim_core_install): To here.
1538 (sim_core_uninstall): And here.
1539
1540 * sim-module.c: Add memopt module.
1541
1542 * sim-base.h (STATE_MEMOPT, STATE_MEMOPT_P): Add memopt to
1543 simulator base type.
1544
1545 * Make-common.in (sim_main_headers): Add sim-memopt.h
1546 (sim-memopt.o): New target.
1547
1548 * sim-core.c (sim_core_install): Add core_options to the option
1549 table.
1550
1551 * sim-watch.c (watch_options): Make --delete-watch a synonym for
1552 --watch-delete.
1553
1554 * sim-config.h (WITH_MODULO_MEMORY): Define as 0. Update
1555 comments.
1556
1557 * sim-core.h (struct _sim_core_mapping): Change nr_bytes to type
1558 address_word, add mask member.
1559
1560 * sim-core.h, sim-core.c (sim_core_attach): Make nr_bytes of type
1561 address_word, allow for 64bit targets in 32bit host. Add modulo
1562 argument.
1563 (sim_core_map_attach): Ditto.
1564 (new_sim_core_mapping): Ditto.
1565 (sim_core_translate): Mask address when modulo memory.
1566
1567 Wed Sep 3 17:32:54 1997 Doug Evans <dje@seba.cygnus.com>
1568
1569 * sim-hload.c (sim_load): Add assert for SIM_MAGIC_NUMBER.
1570
1571 * gdbinit.in: New file.
1572 * aclocal.m4 (SIM_AC_OUTPUT): Build .gdbinit.
1573 * Make-common.in (distclean): Delete .gdbinit.
1574 (.gdbinit): Add rule for.
1575 * configure: Regenerated to track ../common/aclocal.m4 changes.
1576
1577 * Make-common.in (cgen-run.o): Add rule for.
1578
1579 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
1580
1581 * sim-resume.c (sim_resume): Suspend/resume the simulator.
1582
1583 * sim-events.c (sim_watch_valid): Compute total elapsed time from
1584 both resumed and previous elapsed time.
1585 (sim_events_init): Set initial_wallclock and current_wallclock to
1586 zero.
1587 (sim_events_install): Install sim_events_suspend and
1588 sim_events_resume.
1589 (sim_events_watch_clock): Allow for suspended simulator when
1590 computing the time of the clock event.
1591
1592 * sim-events.h (struct _sim_event): Add resume_wallclock, rename
1593 initial_wallclock to elapsed_wallclock, set both to zero.
1594 (sim_events_init, sim_events_uninstall): Delete prototypes.
1595
1596 * sim-module.h (MODULE_SUSPEND_FN, MODULE_RESUME_FN): Define types.
1597
1598 * sim-module.c(sim_module_resume, sim_module_suspend): New
1599 functions.
1600
1601 Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
1602
1603 * sim-core.c (sim_core_map_attach): Clarify memory overlap error
1604 message.
1605
1606 Tue Sep 2 14:57:06 1997 Doug Evans <dje@canuck.cygnus.com>
1607
1608 * Makefile.in (TAGS): Add support for "/* TAGS: foo */" marker.
1609 * Make-common.in (TAGS): Likewise.
1610 * sim-n-bits.h: Add TAGS comments for all functions.
1611 * sim-n-core.h: Likewise.
1612 * sim-n-endian.h: Likewise.
1613
1614 Mon Sep 1 10:50:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
1615
1616 * sim-utils.c (sim_state_alloc): Set CPU backlinks, callback and
1617 kind.
1618
1619 * sim-base.h (sim_state_alloc): Add callback and kind arguments.
1620
1621 * sim-base.h (INVALID_INSTRUCTION_ADDRESS): Add default
1622 definition.
1623
1624 Sat Aug 30 09:47:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
1625
1626 * sim-fpu.c (DP_GARDMSB, ...): Make unsigned.
1627 (DP_FRACHIGH, DP_FRACHIGH2, ..): Use MSMASK to avoid LL.
1628
1629 Fri Aug 29 13:37:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
1630
1631 * sim-core.c (sim_core_map_attach): Cast attach enum to int.
1632 (sim_core_xor_read_buffer, sim_core_xor_write_buffer): Make
1633 nr_transfered and nr_this_transfer unsigned.
1634
1635 * sim-events.c (sim_events_tickn): N is signed, as limited to
1636 MAXINT.
1637
1638 * sim-n-endian.h (offset_N): Change size to unsigned.
1639
1640 * callback.c (os_poll_quit): Add prototypes for kbhit and getkey.
1641
1642 Fri Aug 29 10:10:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
1643
1644 * sim-utils.c (sim_copy_argv): Delete, replaced by dupargv.
1645
1646 * sim-options.c (sim_parse_args): Use dupargv.
1647
1648 Thu Aug 28 10:36:34 1997 Doug Evans <dje@canuck.cygnus.com>
1649
1650 * sim-options.c (standard_option_handler): Use xstrdup, not strdup.
1651
1652 Thu Aug 28 12:09:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
1653
1654 * sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator
1655 base type.
1656
1657 * sim-options.c (standard_options): Add --architecture=MACHINE and
1658 --target=TARGET options.
1659 (OPTION_ARCHITECTURE, OPTION_TARGET): Define.
1660 (standard_option_handler): Handle architecture and target options.
1661 (bfd.h): Include.
1662
1663 * sim-utils.c (sim_analyze_program): Pass STATE_TARGET to
1664 bfd_openr.
1665 (sim_analyze_program): Set prog_bfd architecture from
1666 STATE_ARCHITECTURE if known.
1667
1668 Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1669
1670 * configure: Regenerated to track ../common/aclocal.m4 changes.
1671 * config.in: Ditto.
1672
1673 Wed Aug 27 18:11:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
1674
1675 * aclocal.m4 (enable-sim-warnings): Remove comment stating
1676 that option does not apply to certain files.
1677
1678 Wed Aug 27 15:13:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
1679
1680 * sim-bits.h (LSBIT8, LSBIT16, LSBIT32, LSBIT64, LSBIT, MSBIT8,
1681 MSBIT16, MSBIT32, MSBIT64, MSBIT): New macros - single bit as
1682 offset from MSB/LSB.
1683
1684 * sim-endian.h (A1_8, A2_8, A4_8, A1_4, A2_4, A1_2): New macro,
1685 access address of sub word quantity of a hosts 16, 32, 64 bit word
1686 type.
1687 (V1_2, V1_4, V2_4, V1_8, V2_8, V4_8): Ditto for values.
1688 (U8_1, U8_2, U8_4, U4_1, U4_2, U2_1): Ditto for set of values.
1689 (V2_H1, V2_L1, V4_H2, V4_L2, V8_L4, V8_H4): Given N byte argument,
1690 return N*2 byte value with argument in Hi/Lo word. Renamed from
1691 V1_H2, V1_L2, V2_H4, V2_L4, V4_H8, V4_L8.
1692
1693 * sim-alu.h (ALU32_HAD_OVERFLOW): Use 64 bit mask not 32bit.
1694 (ALU16_HAD_CARRY, ALU32_HAD_CARRY, ALU16_HAD_OVERFLOW): Use MSBIT
1695 so that bit offset is explicit.
1696
1697 Wed Aug 27 11:55:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
1698
1699 * sim-utils.c (sim_analyze_program): Add prog_name argument.
1700 Update STATE_PROG_BFD when needed with a dup'd copy of the
1701 program.
1702
1703 * sim-config.c (sim_config): Delete ABFD argument, use
1704 STATE_PROG_BFD directly.
1705
1706 Tue Aug 26 12:55:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
1707
1708 * run.c (main): Pass the open ABFD to sim_create_inferior.
1709
1710 * nrun.c (main): Determine prog_bfd. Pass to sim_create_inferior
1711 and sim_load.
1712 (bfd.h): Include.
1713
1714 * sim-hload.c (sim_load): New file. Implement generic sim_load for
1715 hardware only simulator targets.
1716
1717 * Make-common.in (sim-hload.o): Add rule.
1718
1719 Wed Aug 27 09:51:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
1720
1721 * sim-utils.c (sim_copy_argv): Rewrite to match malloc strategy
1722 used by copyargv and freeargv.
1723
1724 * sim-options.c (sim_parse_args): Save a copy of PROG-ARGS in
1725 STATE_PROG_ARGV, not just a pointer.
1726
1727 Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1728
1729 * configure: Regenerated to track ../common/aclocal.m4 changes.
1730 * config.in: Ditto.
1731
1732 Mon Aug 25 12:11:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1733
1734 * aclocal.m4 (sim-endian): Add second argument to
1735 SIM_AC_OPTION_ENDIAN. First is hardwired endian, second is
1736 default endian when not hardwired.
1737
1738 * sim-config.h (WITH_DEFAULT_TARGET_BYTE_ORDER): New macro, if all
1739 else failes value for target byte order.
1740
1741 * sim-config.c (sim_config): Add abfd arguments. Set
1742 STATE_PROG_BFD accordingly. Determine prefered_target_byte_order
1743 from same.
1744 (sim_config): Return SIM_RC, don't abort.
1745 (bfd.h): Include.
1746
1747 * run.c (main): Update call to sim_open - add ABFD argument.
1748 * nrun.c (main): Add NULL ABFD argument.
1749
1750 Thu Aug 14 12:48:57 1997 Doug Evans <dje@canuck.cygnus.com>
1751
1752 * callback.c (os_poll_quit): Make static.
1753 Call sim_cb_eprintf, not p->eprintf.
1754 (sim_cb_printf, sim_cb_eprintf): New functions.
1755 * sim-utils.h (sim_cb_printf, sim_cb_eprintf): Declare.
1756
1757 * sim-basics.h (zalloc,zfree,sim_add_commas,SIM_ELAPSED_TIME,
1758 sim_elapsed_time_get,sim_elapsed_time_since): Move decls to
1759 sim-utils.h. #include sim-utils.h.
1760 * sim-utils.h: Above decls moved here.
1761 (sim_analyze_program,sim_load_file): Use `struct _bfd', not `bfd'.
1762
1763 * sim-watch.c (action_watchpoint): Fix thinkos.
1764
1765 Thu Jul 24 08:48:05 1997 Stu Grossman (grossman@critters.cygnus.com)
1766
1767 * sim-types.h: Fix defs of 64 bit data types for MSVC.
1768
1769 Tue Jul 22 10:35:37 1997 Doug Evans <dje@canuck.cygnus.com>
1770
1771 * sim-n-core.h (sim_core_write_unaligned_N): Add missing break
1772 to FORCED_ALIGNMENT case.
1773
1774 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
1775
1776 * callback.c (target_to_host_open): Handle hosts with O_BINARY.
1777
1778 Thu Jun 5 08:47:10 1997 Jeffrey A Law (law@cygnus.com)
1779
1780 * Make-common.in (libsim.a): Fix typo.
1781
1782 Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
1783
1784 * nrun.c (main): Verify the structure returned before using it.
1785
1786 Wed Jun 4 11:44:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
1787
1788 * sim-config.h (WITH_ENGINE): Enable the sim-engine module by
1789 default.
1790
1791 * sim-engine.c (sim_engine_install): New function. Install the
1792 engine init functions.
1793 (sim_engine_init): [Re]initialize the simulator engine.
1794
1795 * sim-module.c: Add sim_engine to list of modules that always
1796 install.
1797
1798 Tue Jun 3 04:52:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
1799
1800 * sim-watch.c (schedule_watchpoint): Use sim_unschedule_watchpoint
1801 to remove the old watchpoint, not delete_watchpoint.
1802 (watch_option_handler): Action the correct watchpoint, not just
1803 cycles.
1804
1805 Wed May 28 14:47:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
1806
1807 * sim-n-core.h (sim_core_write_aligned_N): For 8byte reads, output
1808 both low and high word.
1809 (sim_core_write_aligned_N): Ditto.
1810
1811 * sim-trace.c (set_trace_options): Delete code explicitly setting
1812 core->trace.
1813
1814 * sim-options.c (sim_print_help): Call the list commands if not a
1815 standalone simulator.
1816 (sim_print_help): Advise that some options may not be applicable.
1817
1818 * sim-trace.c (set_trace_options): Assume core present.
1819
1820 * sim-events.c (sim_events_schedule_after_signal): Overflow signal
1821 buffer when full not almost full.
1822
1823 Tue May 27 14:32:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1824
1825 * sim-events.c (sim_events_process): Don't blat the event queue
1826 when processing watchpoints.
1827
1828 * sim-watch.h: Make arg unsigned long - stop sign extension.
1829
1830 * sim-events.c (sim_watch_valid): rewrite so debugable.
1831
1832 * sim-config.h (WITH_XOR_ENDIAN): Default to zero.
1833
1834 * sim-watch.c (schedule_watchpoint): Add is_within option so that
1835 inequality test is possible.
1836 (handle_watchpoint): Re-pass is_within arg.
1837 (watch_option_handler): When `!' prefix to pc-watchpoint arg pass
1838 0 to schedule_watchpoint's is_within arg.
1839 (sim_watchpoint_init): Re-pass is_within arg.
1840
1841 * sim-options.c (sim_print_help): Add is_command argument. Don't
1842 include -- prefix when called from the command line interpreter.
1843
1844 * sim-watch.c (schedule_watchpoint): Pass true is_within argument.
1845
1846 * sim-events.c (sim_events_watch_sim): Add is_within argument,
1847 zero indicates that the test should be reversed.
1848 (sim_events_watch_core): Ditto.
1849 (WATCH_CORE): Compare range against is_within.
1850 (WATCH_SIM): Ditto.
1851
1852 Tue May 27 12:48:03 1997 Andrew Cagney <cagney@b2.cygnus.com>
1853
1854 * sim-events.c (WATCH_CORE): Pass NULL cpu argument to
1855 sim_core_read_buffer. Check nr-bytes transfered.
1856
1857 * sim-core.h (sim_core_common): Define a new struct that contains
1858 the common data. to sd and cpu structures.
1859 * sim-core.c (sim_core_attach): Update.
1860 (sim_core_init): Update. Remember to copy initialized data to each
1861 cpu.
1862 (sim_core_find_mapping): Ditto.
1863
1864 * sim-core.c (sim_core_read_buffer): Add cpu argument.
1865 (sim_core_write_buffer): Ditto.
1866
1867 * sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned
1868 transfer use xor version of read buffer.
1869 (sim_core_write_unaligned_N): Ditto for write.
1870
1871 * sim-core.c (sim_core_xor_read_buffer): New function implement
1872 xor-endian data read breaking transfer up into xor-endian sized
1873 blocks.
1874 (sim_core_xor_write_buffer): Ditto for write.
1875 (reverse_n): Reverse order of arbitrary number of bytes in buffer
1876 - needed for xor-endian transfers.
1877
1878 Fri May 23 14:24:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
1879
1880 * sim-inline.h: Review description.
1881
1882 * sim-core.h, sim-core.c: Reduce number of functions being inlined
1883 to just those involved in data transfers and configuration.
1884
1885 * sim-xcat.h (XSTRING): New macro, map macro definition onto
1886 string.
1887 * sim-n-core.h (sim_core_read_aligned_N): Use.
1888 (sim_core_read_unaligned_N): Ditto.
1889 (sim_core_read_unaligned_N): Ditto..
1890 (sim_core_write_unaligned_N): Ditto.
1891
1892 * sim-core.h: Add xor endian bitmap to main structure. *
1893
1894 sim-n-core.h (sim_core_write_aligned_N): Add suport for xor
1895 endian.
1896 (sim_core_read_aligned_N): Ditto.
1897
1898 * sim-core.c (sim_core_set_xor_endian): New function.
1899 (sim_core_attach): Don't overwrite the per-cpu xor map when
1900 cloning the global core.
1901
1902 Fri May 23 10:53:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
1903
1904 * sim-engine.h: Update below so that it is using an enumerated
1905 type.
1906
1907 Thu May 22 09:12:16 1997 Gavin Koch <gavin@cygnus.com>
1908
1909 * sim-engine.c (sim_engine_restart):
1910 * sim-resume.c (sim_resume): Change longjmp param/setjmp
1911 return value used for simulator restart from 0 to 2.
1912
1913 Wed May 21 08:47:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
1914
1915 * cgen-scache.c (scache_option_handler): Add is_command arg.
1916
1917 * sim-model.c (model_option_handler): Add is_command argument.
1918
1919 * sim-profile.c (profile_option_handler): Add is_command arg.
1920
1921 * sim-events.c (sim_watch_valid): Use ub64, lb64 when 64bit value
1922 involved.
1923
1924 * sim-module.c (sim_module_add_init_fn): Call init fn in the same
1925 order that they are registered.
1926
1927 * sim-options.h (OPTION_HANDLER): Add argument to differentiate
1928 between option and command line processing.
1929
1930 * sim-options.c: Include stdlib.h, ctype.h.
1931
1932 * Make-common.in (sim-watch.o): Add rule.
1933 (sim_main_headers): Assume sim-assert.h included.
1934 (sim-*.o): Simplify make rule.
1935
1936 * sim-module.c: Add sim_watch_install to module list.
1937
1938 Tue May 20 14:15:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
1939
1940 * sim-base.h (STATE_LOADED_P): New predicate. Set once everything
1941 has been loaded.
1942
1943 * sim-trace.c (trace_install): Check magic. Include sim-assert.h.
1944 * sim-events.c (sim_events_install): Ditto.
1945 * sim-core.c (sim_core_install): Ditto.
1946 * sim-model.c (model_install): Ditto.
1947 * sim-options.c (standard_install): Ditto.
1948 * sim-profile.c (profile_install): Ditto.
1949 * sim-reason.c (sim_stop_reason): Ditto.
1950 * sim-run.c (sim_engine_run): Ditto.
1951 * sim-utils.c (sim_analyze_program): Ditto.
1952
1953 * sim-module.c (modules): Make profile_install and trace_install
1954 optional.
1955
1956 * sim-base.h (STATE_MEM_BASE): Define for flat memory systems.
1957
1958 * sim-options.c (standard_option_handler): Set the byte order.
1959
1960 * sim-events.c (sim_events_process): Allow multi tick processing.
1961 (sim_events_tickn): New function - multi cycle tick.
1962
1963 * sim-events.h (sim_events_tickn, sim_events_timewarp): Add
1964 prototypes. Under development.
1965 (sim_events): Replace processing with nr_ticks_to_process.
1966
1967 Tue May 20 09:39:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1968
1969 * nrun.c (main): Pass callbacks to sim_open instead of using
1970 sim_set_callbacks.
1971
1972 * run.c (main): Ditto.
1973
1974 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
1975
1976 * sim-events.c (sim_events_zalloc): Signal save memory allocator -
1977 stop tk interrupting malloc calls.
1978 (sim_events_zalloc): Converse.
1979
1980 * Make-common.in (sim_main_headers): Add sim-events.h.
1981
1982 * sim-events.c (sim_events_schedule_after_signal): Change return
1983 type to void - signal events are strictly internal.
1984 (sim_events_init): Allocate a finite buffer for signal events.
1985 (sim_events_schedule_after_signal): Enter signal events into the
1986 signal buffer.
1987
1988 * sim-engine.c (sim_engine_halt): Check SIM_DESC magic.
1989 (sim_engine_restart): Ditto.
1990 (sim_engine_abort): Ditto.
1991 * sim-stop.c (sim_stop): Ditto.
1992 (control_c_simulation): Ditto.
1993 * sim-resume.c (sim_resume): Ditto.
1994 (has_stepped): Ditto.
1995 * sim-abort.c (sim_engine_abort): Ditto.
1996
1997 * sim-basics.h (transfer_type): New type.
1998
1999 * sim-core.c (sim_core_signal): New function. Print core signal
2000 information.
2001 (sim_core_find_mapping): Add transfer argument.
2002
2003 * sim-n-core.h (sim_core_{write,write}_unaligned_N): Call
2004 SIM_CORE_SIGNAL if a recoverable abort.
2005 * sim-core.c (sim_core_find_mapping): Ditto.
2006
2007 Fri May 16 15:13:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
2008
2009 * sim-core.c (sim_core_find_mapping): Replace calls to
2010 sim_io_error to more resiliant sim_engine_abort.
2011
2012 * sim-n-core.h (sim_core_read_unaligned_N): Ditto.
2013 (sim_core_write_unaligned_N): Ditto.
2014
2015 Tue May 13 13:50:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
2016
2017 * sim-module.c: Add sim_events_install to list.
2018
2019 * sim-events.c (sim_events_install, sim_events_uninstall): Clonse
2020 from sim_core_*.
2021 (sim_events_init): Now returns SIG_RC.
2022
2023 * sim-run.c: New file. Generic sim_engine_run.
2024 * sim-reason.c: New file. Generic sim_stop_reason.
2025 * sim-stop.c: New file. Generic sim_stop.
2026 * sim-resume.c: New file. Generic sim_resume.
2027
2028 * Make-common.in (sim-engine.o): Add rule.
2029 (sim-run.o, sim-reason.o, sim-stop.o, sim-resume.o): Ditto.
2030
2031 * sim-engine.h, sim-engine.c: New file. Provide generic
2032 implementation of sim_engine_halt, sim_engine_error. et.al.
2033
2034 * sim-base.h (sim_state_base): Add member halt.
2035 (sim-engine.h): Include.
2036
2037 * sim-events.h (sim_event_handler): Always pass SIM_DESC to event
2038 handlers.
2039 * sim-events.c (sim_events_poll): Update event handler.
2040
2041 Tue May 13 09:57:49 1997 Andrew Cagney <cagney@b2.cygnus.com>
2042
2043 * sim-events.h, sim-events.c (sim_events_watch_clock): New
2044 function.
2045 (sim_events_watch_sim): New function.
2046 (sim_events_watch_core): New function.
2047 (sim_watch_valid): New function.
2048 (sim_events_preprocess): New function.
2049 (sim_events_process): Process the watchpoints as well as the timer
2050 queue.
2051 (sim_events_tick): Check WORK_PENDING instead of the hold queue.
2052 (sim_events_deschedule): Check all the queues when removing an
2053 event.
2054 (sim_events_init): Ditto for cleaning.
2055
2056 Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
2057
2058 * sim-fpu.c (is_ufpu_number): Comment out - currently unused.
2059
2060 Mon May 19 11:23:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
2061
2062 * callback.c (os_open): Type of arg flags is int.
2063
2064 Fri May 16 22:26:43 1997 Michael Meissner <meissner@cygnus.com>
2065
2066 * sim-fpu.c (sim_fpu_is_{eq,ne,lt,le,gt,ge}): Compare Infinities
2067 just like normal numbers as per IEEE rules.
2068
2069 Wed May 14 21:20:38 1997 Bob Manson <manson@charmed.cygnus.com>
2070
2071 * callback.c (os_close): Mark the descriptor as being
2072 available if the close succeeded.
2073 (os_open): Pass 0644 as the mode of the file being created.
2074
2075 Thu May 15 10:58:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
2076
2077 * sim-fpu.c (pack_fpu, unpack_fpu): New functions - decode a
2078 float.
2079
2080 * sim-inline.c (SIM_INLINE_C): Rename from _SIM_INLINE_C_.
2081 * sim-lnline.h: Update.
2082
2083 * sim-fpu.h, sim-fpu.c (sim_fpu_[iu]{32,64}to): New int2fp
2084 conversion functions.
2085 (sim_fpu_to{32,64}[iu]): New fp2int functions.
2086
2087 * sim-fpu.h, sim-fpu.c (sim_fpu_is_{lt,le,eq,ne,ge,gt}): New fp
2088 compare functions. Replacing.
2089 (sim_fpu_cmp): This. Delete.
2090
2091 Mon May 12 14:49:05 1997 Andrew Cagney <cagney@b1.cygnus.com>
2092
2093 * sim-core.c (sim_core_find_mapping): Call engine_error not
2094 sim_io_error when possible.
2095
2096 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b2.cygnus.com>
2097
2098 * sim-endian.h (V1_H2): Add macro's to insert a word into a
2099 high/low double word.
2100
2101 * sim-trace.h: Remove definition of attribute - defined in
2102 sim_basics.h.
2103
2104 Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
2105
2106 * sim-options.h (struct OPTION): Add doc_opt as the documenting
2107 name of the option - or family of options.
2108
2109 * sim-options.c (sim_args_command): Match command `a-b c' with
2110 option `--a-b-c' from option table.
2111
2112 Thu May 8 12:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
2113
2114 * sim-options.c (sim_print_help): For optional arguments, wrap
2115 them in [].
2116
2117 * sim-trace.c (set_trace_options): New function, handle optional
2118 argument and multiple assignment.
2119 (trace_option_handler): Update.
2120
2121 * sim-trace.c (trace_option_handler): Trace branch and not fpu
2122 when branch tracing selected.
2123
2124 Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
2125
2126 * sim-trace.c (trace_one_insn): Make a va-args function.
2127
2128 * sim-trace.c (trace_vprintf): New function, va-arg version of
2129 trace_printf.
2130
2131 Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com>
2132
2133 * sim-trace.c (trace_uninstall): Don't close a file twice.
2134 * sim-profile.c (profile_uninstall): Likewise.
2135
2136 Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com>
2137
2138 * sim-trace.c (toplevel): Include bfd.h.
2139 (trace_options): Note that --trace-linenum also turns on
2140 --trace-insn. Add --trace-{branch,semantics}.
2141 (trace_option_handler): If --trace-linenum, also turn on
2142 --trace-insn. Add --trace-branch support. If --trace-semantics,
2143 turn on ALU, FPU, branch, and memory tracing.
2144 (trace_one_insn): New function to trace an instruction. Support
2145 --trace-linenum.
2146 (OPTION_TRACE_*): Use an enum, rather than lots of defines.
2147
2148 * sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros.
2149 (MAX_TRACE_VALUES): Use 32, not 12 by default.
2150 (TRACE_branch): Add new mask.
2151 (TRACE_*_P): Define all possible trace_p macros.
2152 (trace_one_insn): Declare function.
2153
2154 Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com>
2155
2156 * sim-trace.h (__attribute__): Define as nothing if not GNU C or
2157 GNU C doesn't support __attributes__.
2158 ({trace,debug}_printf): Add attribute's so -Wformat can check the
2159 format strings.
2160
2161 Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
2162
2163 * sim-config.h (FORCED_ALIGNMENT): New alignment option -
2164 addresses are masked forcing them to be correctly aligned.
2165 (WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default.
2166 * sim-config.c (config_alignment_to_a): Update.
2167
2168 * sim-core.h (sim_cpu_core): New data type contains cpu specific
2169 core data.
2170 * sim-base.h (CPU_CORE): Add cpu specific core data to cpu base
2171 type.
2172 * sim-core.c (sim_core_attach): Add CPU argument. Ready for
2173 processor specific core maps.
2174 (sim_core_map_attach): Copy the core map data to each of the
2175 processor specific core data structures.
2176 * sim-core.c (sim_core_find_mapping): Update.
2177
2178 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename.
2179 (sim_core_write_aligned_N, sim_core_write_aligned_N): New names.
2180 (sim_core_write_unaligned_N, sim_core_write_unaligned_N): New
2181 alternatives that handle unaligned addresses.
2182 (sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace
2183 with just CPU arg.
2184 * cgen-utils.c (sim_disassemble_insn): Update.
2185
2186 Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
2187
2188 * sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific
2189 tracing.
2190
2191 * sim-fpu.h, sim-fpu.c: New files - prototype for generic target
2192 fpu support.
2193
2194 * sim-inline.h, sim-inline.c: Add support for SIM_FPU.
2195
2196 Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
2197
2198 * sim-core.c (sim_core_map_to_str): New function ascii equivalent
2199 to map type.
2200
2201 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace
2202 statement.
2203
2204 Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com>
2205
2206 * cgen-trace.c: Prepend additional trace_printf argument.
2207
2208 * cgen-utils.c (sim_disassemble_insn): Add additional core
2209 arguments.
2210
2211 Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
2212
2213 * nrun.c (main): Catch/report errorenous simulator states.
2214
2215 * sim-module.c: #include "libiberty.h" so that xmalloc is defined.
2216 * sim-trace.c: #include string.h/strings.h so that memset is
2217 defined.
2218 * sim-utils.c: Ditto.
2219 * sim-profile.c: Ditto. And stdlib.h.
2220 (print_bar): Only define when used by instruction or memory profiler.
2221
2222 * sim-options.c (standard_option_handler): Make ul more local.
2223
2224 * sim-load.c (sim_load_file): Make the name constant.
2225 (sim_load_file): Passify gcc.
2226
2227 * sim-utils.h: New file, pre-declare utilites in corresponding .c
2228 file.
2229 * sim-utils.c, sim-load.c: Include sim-utils.h.
2230
2231 * sim-base.h (sim_cpu): Pre define here so available to all.
2232
2233 * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N):
2234 Restore the sim_cpu and instruction_address arguments so that full
2235 information is available to the abort function.
2236 * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto.
2237 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
2238
2239 * sim-trace.h, sim-trace.c (trace_option_handler): Add interim
2240 tracing support for sim-events and sim-core.
2241 (trace_option_handler): Convert #if to if where possible so always
2242 compiled/checked by C compiler.
2243 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
2244
2245 * sim-base.h: Adjust comment documenting how to define the cpu
2246 structure.
2247 (sim_state_base): Add sim_core and sim_events to simulator base
2248 object.
2249
2250 * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument.
2251 * sim-core.c (sim_core_init, sim_core_attach,
2252 sim_core_find_mapping): Update.
2253 * sim-events.c (ETRACE, sim_events_init, sim_events_time,
2254 update_time_from_event, insert_sim_event,
2255 sim_events_schedule_after_signal, sim_events_deschedule,
2256 sim_events_tick): Ditto.
2257
2258 * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h,
2259 sim-model.h): Move #includes from here.
2260 * sim-base.h: To here.
2261 (sim-core.h, sim-events.h, sim-io.h): Include also
2262
2263 Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
2264
2265 * callback.c (default_callback): Missing initialisers.
2266
2267 Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com>
2268
2269 * sim-utils.c (sim_add_commas): New function.
2270 * sim-basics.h (sim_add_commas): Add prototype.
2271 * cgen-scache.c (scache_print_profile): Print commas in numbers.
2272 * sim-profile.c (COMMAS): New macro.
2273 (print_*): Use it to print commas in numbers.
2274
2275 * configure: Regenerated.
2276
2277 * cgen-sim.h (sim_signal_type): Add SIM_SIGINT.
2278 (cgen_state): New member run_fast_p.
2279 (cgen_init): Add prototype.
2280 (sim_disassemble_insn): New arg `cpu'.
2281 * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn.
2282 * cgen-utils.c (cgen_init): New function.
2283 (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn.
2284 * genmloop.sh: Call engine_halt if loop exits.
2285
2286 * Makefile.in (sim-options_h): Define.
2287 (sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
2288 (sim-model.o): Add new rule.
2289 (cgen-{scache,trace,utils}.o): Add new rules.
2290 * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
2291 * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
2292 Indent output by 2 spaces.
2293 * cgen-scache.h (scache_print_profile): Update.
2294 * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
2295 Use trace_printf, not fprintf.
2296 (trace_extract): Use trace_printf, not cgen_trace_printf.
2297 * genmloop.sh (!FAST case): Increment `insn_count'.
2298 * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
2299 (sim_cpu_base): Rename member `sd' to `state' to be consistent with
2300 access macro's name.
2301 * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
2302 Change return type to SIM_RC.
2303 (sim_core_{install,uninstall}): New functions.
2304 * sim-core.h (sim_core_{install,uninstall}): Declare.
2305 (sim_core_init): Use EXTERN_SIM_CORE to define it.
2306 Change return type to SIM_RC.
2307 * sim-model.h (models,machs,model_install): Declare.
2308 * sim-module.c (modules): Add scache_install, model_install.
2309 (sim_post_argv_init): Set cpu->state backlinks.
2310 * sim-options.c (standard_options): Delete --simcache-size,--max-insns.
2311 (standard_option_handler): Likewise.
2312 * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
2313 sim-profile.h.
2314 (*): Assume ANSI C.
2315 (profile_options): Delete --profile-simcache.
2316 (profile_option_handler): Likewise.
2317 (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
2318 spaces.
2319 (profile_print_{memory,model}): Likewise.
2320 (profile_print_simcache): Delete.
2321 (profile_print_speed): New function.
2322 (profile_print): Rewrite.
2323 * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
2324 (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
2325 (PROFILE_DATA): Delete members simcache_{hits,misses}.
2326 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
2327 (PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
2328 (profile_print): Update prototype.
2329
2330 Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com>
2331
2332 * cgen-scache.[ch], cgen-sim.h: New files.
2333 * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files.
2334 * sim-model.c: New file.
2335
2336 * Make-common.in (clean targets): Undo patch of Apr. 22.
2337
2338 Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com>
2339
2340 * sim-n-bits.h (signed): If we have a standard compiler, undef
2341 signed, so that signedN is defined correctly.
2342
2343 Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com>
2344
2345 * sim-module.h, sim-model.h, sim-profile.h: New files.
2346 * sim-module.c, sim-profile.c: New files.
2347 * Make-common.in (SIM_PROFILE): Define
2348 (CONFIG_CFLAGS): Add $(SIM_PROFILE).
2349 (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
2350 (sim_module.o,sim-profile.o): Add rules for.
2351 * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
2352 (--enable-sim-profile): Add.
2353 * configure: Regenerated.
2354 * sim-base.h (sim_state_base): New members init_list, uninstall_list,
2355 model. Move trace and profile support to sim-{trace,profile}.h.
2356 New members trace_data, profile_data.
2357 * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
2358 * sim-config.h: Provide default definition of WITH_PROFILE.
2359 (WITH_TRACE): Change default to -1.
2360 (MAX_NR_PROCESSORS): Always define.
2361 * sim-options.c: Move trace and profile support to
2362 sim-{trace,profile}.h.
2363 (sim_pre_argv_init): Moved to sim-model.c.
2364 (standard_install): New function.
2365 * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
2366 (standard_install): Declare.
2367 * sim-trace.c: Tracing option handling moved here from sim-options.c.
2368 (trace_install, trace_uninstall): New functions.
2369 (trace_printf): Update reference to TRACE_FILE.
2370 * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
2371 (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
2372 (WITH_TRACE_FOO_P): Define.
2373 (trace_install): Declare.
2374 (TRACE_DATA): New struct.
2375
2376 Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com>
2377
2378 * run.c: Undo last exec_bfd patch.
2379 (main): Only pass -E ifdef SIM_HAVE_BIENDIAN.
2380
2381 Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com>
2382
2383 * run.c (exec_bfd): Add back in.
2384 (main): Set exec_bfd.
2385
2386 Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com>
2387
2388 * sim-load.c (sim_load_file): #include <stdio.h> for NULL.
2389
2390 Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
2391
2392 * sim-events.c (insert_sim_event): Call sim_io_error instead of
2393 less well defined engine_error.
2394 * sim-core.c: Ditto.
2395
2396 Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com)
2397
2398 * Make-common.in: Change clean targets to use :: so that other
2399 Makefiles can have their own clean targets.
2400 * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of
2401 __STDC__ to control use of stdarg vs. varargs syntax. Some
2402 systems can't use __STDC__, but require stdarg.
2403
2404 Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com>
2405
2406 * sim-options.c (standard_options): Add --endian.
2407 (standard_option_handler): Likewise.
2408
2409 * nrun.c: #include <signal.h>.
2410 (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
2411 handler that calls sim_stop ().
2412
2413 Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
2414
2415 * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
2416 handler that calls sim_stop (). Simulators may still be
2417 establishing their own handler.
2418
2419 * sim-events.c (sim_events_poll): Rename from
2420 sim_events_at_large_int. Poll IO.
2421
2422 * sim-io.c (sim_io_poll_quit): New function - pass on a polling
2423 request.
2424
2425 * callback.c (os_poll_quit): New function poll for quit signal
2426 where needed.
2427 (default_callback): Include magic number.
2428
2429 Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
2430
2431 * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
2432 Check for functions getrusage, time.
2433 * sim-basics.h (SIM_ELAPSED_TIME): New typedef.
2434 (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes.
2435 * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able.
2436 (sim_elapsed_time_get, sim_elapsed_time_since): New functions.
2437
2438 * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.
2439
2440 * sim-options.c, sim-options.h: New files.
2441 * sim-config.h (WITH_DEBUG): Provide default value of zero.
2442 * Make-common.in (nrun.o): Add rules for.
2443 * nrun.c: New file.
2444
2445 * run.c (main): Check return value of sim_open.
2446
2447 * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules.
2448 (sim_main_headers): Add sim-trace.h.
2449 * run.c (exec_bfd, target_byte_order): Delete.
2450 (main): Pass -E <endian> to sim_open. Delete code to load sections,
2451 call sim_load instead. Check return code of sim_create_inferior.
2452 * sim-base.h (CURRENT_STATE): Define.
2453 (sim_state_base): Make typedef. New members options, prog_argv,
2454 prog_bfd, text_{section,start,end}, start_addr, simcache_size,
2455 mem_size, memory [+ corresponding access macros].
2456 (sim_cpu_base): New typedef.
2457 * sim-trace.h: New file.
2458 * sim-trace.c: New file.
2459 * sim-basics.h: #include it.
2460 * sim-load.c: New file.
2461
2462 Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com>
2463
2464 * Make-common.in (INSTALL): Set to @INSTALL@.
2465 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
2466 (install-common): Depend upon installdirs. Use
2467 $(program_transform_name) directly, rather than using
2468 $(INSTALL_XFORM).
2469 (installdirs): New target.
2470 * Makefile.in (INSTALL): Set to @INSTALL@.
2471 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
2472 (install-man): Depend upon installdirs. Use
2473 $(program_transform_name) directly, rather than using
2474 $(INSTALL_XFORM).
2475 (installdirs): New target.
2476
2477 Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
2478
2479 * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
2480 be overriden.
2481
2482 Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2483
2484 * sim-basics.h: Only bring in config.h and tconfig.h if
2485 HAVE_CONFIG_H.
2486
2487 Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2488
2489 * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
2490 numbering convention of the target.
2491 * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
2492 and WITH_TARGET_WORD_MSB.
2493 (sim_config): When possible, check for consistency with bitsize
2494 and msb.
2495
2496 * sim-bits.h: Allow MSB to be other than zero.
2497 * sim-bits.c: Ditto.
2498 * sim-n-bits.h: Ditto.
2499
2500 * sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
2501 * sim-n-bits.h (MSMASKEDn): Ditto.
2502
2503 Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com>
2504
2505 * Makefile.in (INSTALL): Change install.sh to install-sh.
2506
2507 Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com>
2508
2509 * sim-base.h (sim_state_base): Move `magic' to end of struct.
2510
2511 Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2512
2513 * run.c (main): Check that a program to run was specified.
2514
2515 Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2516
2517 * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
2518
2519 * configure: Regenerated to track ../common/aclocal.m4 changes.
2520 * config.in: Ditto.
2521
2522 Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
2523
2524 * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
2525 * sim-config.h: To here.
2526
2527 * Make-common.in (SIM_EXTRA_DEPS): New config var.
2528 (sim_main_headers): Define.
2529 (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
2530 start-sanitize-d30v
2531 (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
2532 end-sanitize-d30v
2533 (clean): Use it.
2534 (sim-utils.o): Add rule for.
2535 * sim-utils.o: New file.
2536 * sim-basics.h: #include sim-base.h.
2537 (zalloc): Make argument unsigned long.
2538 * sim-base.h: New file.
2539 * sim-inline.h (SIM_IO support): Delete.
2540 * sim-io.h: Delete inline support.
2541 * sim-io.c: Likewise. sim-state.h renamed to sim-main.h.
2542 * sim-config.c: sim-state.h renamed to sim-main.h.
2543 * sim-core.c: Likewise.
2544 * sim-events.c: Likewise.
2545
2546 * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
2547
2548 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
2549 (sim-debug): Allow arguments. Define WITH_DEBUG in addition to
2550 -DDEBUG.
2551 * configure: Regenerated to track ../common/aclocal.m4 changes.
2552
2553 Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2554
2555 * configure: Regenerated to track ../common/aclocal.m4 changes.
2556
2557 Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2558
2559 * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
2560 WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
2561 are defined by the configure.
2562
2563 * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
2564
2565 * aclocal.m4 (floating-point, xor-endian, alignment, smp,
2566 reserved-bits): Always define.
2567
2568 * sim-config.h, sim-config.c (sim_config): New function - and new
2569 file - co-ordinate the setting/checking of the common simulator
2570 configuration options.
2571
2572 * Make-common.in (sim-config.o): Add rule.
2573
2574 Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com>
2575
2576 * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
2577 va_list from void *, since va_list might not be a pointer type.
2578
2579 Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2580
2581 * sim-n-endian.h (offset_N): Correct assertion - word and sub word
2582 in wrong order.
2583 (offset_N): Correct computation of LE offset.
2584
2585 * sim-io.c (sim_io_error): Include a new line when reporting
2586 errors.
2587
2588 * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
2589 `/'.
2590
2591 Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com)
2592
2593 * run.c: Include alloca-conf.h.
2594
2595 * callback.c (os_evprintf_filtered): Fix typo.
2596
2597 Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2598
2599 * run.c (string.h, strings.h, stdlib.h): Include.
2600
2601 * sim-events.c (sim_events_tick): Recent cleanup failed to return
2602 0 when nothing pending.
2603
2604 * run.c (sim_size, sim_trace): Plicate GCC - these two functions
2605 will soon be going away.
2606 (getopt): Plicate GCC.
2607
2608 * sim-endian.c (sim-io.h): Plicate GCC.
2609 * sim-bits.c (sim-io.h): Ditto.
2610 * sim-n-bits.h (ROTn): Ditto.
2611
2612 * sim-io.c (sim_io_error): Correct check for NULL.
2613
2614 * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
2615 the __FILE__.
2616 * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
2617 path.
2618
2619 Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2620
2621 * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
2622 SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
2623
2624 Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2625
2626 * sim-alu.h: Include sim-xcat.h.
2627
2628 Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2629
2630 * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
2631 sim-events.c, sim-inline.c, sim-io.c): Define rules for building
2632 these.
2633
2634 * sim-events.c (sim_events_at_large_int): New function. Just
2635 schedules an event every large-int ticks.
2636 (sim_events_init): Call.
2637 (sim_events_tick, sim_events_process): Move async handing to
2638 sim_events_process. Move timer decrement so that it occures after
2639 events have been processed.
2640
2641 * sim-basics.h (struct _engine): Remove declaration.
2642
2643 * sim-events.h, sim-events.c: Rename type to sim_events. Prefix
2644 everything with same. Rename global struct to SIM_DESC.
2645 * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
2646 * sim-io.h, sim-io.c: Ditto.
2647
2648 * sim-assert.h: New file. Optional assertion checking macros.
2649 * sim-io.c (sim_io_error): Make just this function tolerant to
2650 null pointers.
2651
2652 * sim-xcat.h: New file. Define concatenate macros.
2653 * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
2654 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
2655 concat macros.
2656
2657
2658 Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2659
2660 * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
2661
2662 Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2663
2664 * sim-inline.h: Add definitions for sim-types.
2665 (ALL_BY_MODULE): New macro, encapsulate full inlining by the
2666 module.
2667
2668 Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2669
2670 * sim-events.h: Remove defunct reference to callback struct.
2671
2672 Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2673
2674 * configure: Re-generate.
2675
2676 Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2677
2678 * Make-common.in (CSEARCH): Do not include the gdb directory in
2679 the search path.
2680
2681 Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2682
2683 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
2684 SIM_WARNING): Drop, requiring the simulator specific Makefile.in
2685 to explicitly incorporate these.
2686
2687 * aclocal.m4 (--enable-sim-alignment); New option. Strongly
2688 specify the alignment restrictions of the target architecture -
2689 without this option all alignment restrictions are accomodated.
2690 (--enable-sim-assert): New option. Conditionally compile in
2691 assertion statements.
2692 (--enable-sim-float): New option. Strongly specify the target's
2693 floating point support.
2694 (--enable-sim-hardware): New option. Specify the hardware devices
2695 included in the simulation.
2696 (--enable-sim-packages): New option. Specify the hardware
2697 packages included in the simulation.
2698 (--enable-sim-regparm): New option. Specify that parameters be
2699 passed in registers instead of on the stack.
2700 (--enable-sim-reserved-bits): New option. Specify that reserved
2701 bits within an instruction are are correctly set.
2702 (--enable-sim-smp): New option. Specify the level of SMP support
2703 to be included in the simulator.
2704 (--enable-sim-stdcall): New option. Specify an alternative
2705 function call convention.
2706 (--enable-sim-xor-endian): New option. Configure xor-endian
2707 support used by some targets to implement bi-endian support.
2708
2709 Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2710
2711 * aclocal.m4 (--enable-sim-hostendian): New option. Allow the
2712 host endianness to be overridden.
2713 (--enable-sim-endian): Allow the target platform's byte order
2714 to be overridden.
2715 (--enable-sim-inline): Control the inlining of common components.
2716 (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
2717 (--enable-sim-warnings): Enable additional GCC compiler checks.
2718 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
2719 SIM_WARNINGS): Add.
2720
2721 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
2722 sim-*-n.h so that the names are uniq on dos machines
2723 * sim-core.c, sim-bits.c, sim-endian.c: Update.
2724
2725 Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
2726
2727 * run.c: #include "libiberty.h".
2728 (main): New locals sd,no_args,sim_argv.
2729 Run buildargv on -a option. Pass argv to sim_open, argv[0]
2730 is program name. Update call to sim_set_callbacks.
2731 Record result of sim_open, pass to other sim_foo routines.
2732
2733 Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
2734
2735 * callback.c (os_printf_filtered): Do not call exit(1) or print a
2736 final newline.
2737
2738 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2739
2740 * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
2741 Route stdout through buffered IO.
2742
2743 * callback.c: Add os_flush_stderr, os_write_stderr,
2744 os_evprintf_filtered functions to route error output through
2745 stderr.
2746
2747 * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
2748 Correct return type - should be void.
2749
2750 Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2751
2752 * sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
2753
2754 * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
2755 not provide a default value as undefined indicates disable code.
2756
2757 Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2758
2759 * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
2760 directory.
2761 * sim-events.h, sim-events.c: Ditto.
2762 * sim-io.h, sim-io.c: Ditto.
2763
2764 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2765
2766 * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
2767
2768 * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
2769 extract the tail or least signifiant bits from an integer of the
2770 specified size.
2771
2772 * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
2773 WITH_TARGET_BITSIZE so that the compilation will fail when an
2774 unsupported bitsize value is defined.
2775
2776 (INSERTED*): Convert to functions.
2777 (EXTRACTED*): Ditto.
2778
2779 (SIGN_EXTEND, SEXT): Change to more terse name.
2780
2781 Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2782
2783 * sim-inline.h: Allow explicit control over which .c files will be
2784 included by their header.
2785
2786 * sim-inline.h: Allow explicit control over which .c files use the
2787 alternative - REGPARM - parameter passing mechanism.
2788
2789 * sim-inline.h, sim-inline.c: Don't attempt to include any of
2790 icache.c, idecode.c, semantics.c or support.c. Those names are
2791 not generally applicable.
2792
2793 Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2794
2795 * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
2796 in a fashion similar to sim-endian-n.
2797
2798 * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
2799 both value and address macro's.
2800
2801 Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2802
2803 * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
2804
2805 * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
2806 generic L_word, H_word macro's.
2807
2808 Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
2809
2810 * sim-basics.h: Borrow code from ppc directory.
2811 * sim-bits.c: Ditto.
2812 * sim-bits.h: Ditto.
2813 * sim-config.h: Ditto.
2814 * sim-endian-n.h: Ditto.
2815 * sim-endian.c: Ditto.
2816 * sim-endian.h: Ditto.
2817 * sim-inline.c: Ditto.
2818 * sim-inline.h: Ditto.
2819 * sim-types.h: Ditto.
2820
2821 Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
2822
2823 * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
2824 all the ALU size alternatives and then auto-configure a default.
2825
2826 * sim-alu.h: Copy ppc/idecode_expression.h.
2827
2828 Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
2829
2830 * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
2831 sign extend a bit within a value.
2832
2833 * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
2834 a pointer into the middle of a host word.
2835 * sim-endian.h (MS2W_4, LS2W_4): Use this function.
2836
2837 Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
2838
2839 * callback.c: If HAVE_CONFIG_H is defined, include config.h from
2840 autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
2841 appropriate definitions of read, write, etc. Add prototype for
2842 system.
2843
2844 Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
2845
2846 * Makefile.in (libcommon.a): Delete.
2847 (callback.o,targ-map.o): Delete, moved to Make-common.in.
2848 (gentmap,targ-vals.h,targ-map.c): Likewise.
2849 (run-autoconf): Delete.
2850 * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
2851 (common makefile fragment): Moved back into ...
2852 * Make-common.in: Resurrect.
2853 * configure.in (AC_LINK_FILES): Delete, unnecessary now.
2854 * configure: Regenerated.
2855
2856 Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
2857
2858 * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
2859 (SIM_AC_OUTPUT): To here.
2860
2861 Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
2862
2863 * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
2864 comments and single quotes. Fixes a problem found on hpux.
2865
2866 Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
2867
2868 * aclocal.m4: Remove Make-common.in from dependencies.
2869 * (distclean): Remove targ-vals.def.
2870
2871 * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
2872 into here. Makes insertion into makefiles easier. Also, change
2873 the way that callback.o, gentmap, targ-vals.h, targ-map.c,
2874 targ-map.o, and run are built. They are now built in the
2875 individual simulator directories, taking sources from ../common as
2876 necessary. This replaces the merging of libcommon.a into
2877 linsim.a, which was problematic for the WinGDB build process.
2878 * run.c: Include config.h from . instead of ../common.
2879 * Make-common.in: Remove. It's no longer necessary.
2880
2881 Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
2882
2883 * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
2884 (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
2885
2886 Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
2887
2888 * run.c (main): Set target_byte_order before call to sim_open.
2889
2890 Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
2891
2892 * callback.c: #include <stdlib.h>
2893 (os_error): New function.
2894 (default_callback): Add os_error.
2895
2896 Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
2897
2898 * Make-common.in (Makefile): Set CONFIG_HEADERS="".
2899 * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
2900 specific.
2901 (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
2902
2903 Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
2904
2905 * run.c: #include ../common/config.h, tconfig.h.
2906 (myname): New static global.
2907 (main): Recognize new options -a, -c. Also recognize -h if h8/300.
2908 Only process -c ifdef SIM_HAVE_SIMCACHE.
2909 Only process -p/-s ifdef SIM_HAVE_PROFILE.
2910 Parse program name from argv[0] and use in error messages.
2911 Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
2912 Add support for incomplete h8/300 termination indicators.
2913 (usage): Make more verbose.
2914 * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
2915 * Makefile.in,Make-common.in,callback.c: New files.
2916 * nltvals.def,gentmap.c,gentvals.sh: New files.
2917
2918 Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
2919
2920 * run.c: Include stdarg.h if __STDC__.
2921
2922 Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
2923
2924 * run.c (main): Don't print out anything if the signal
2925 number is zero (ie no signal).
2926
2927 Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2928
2929 * run.c (main): Print out if the program raised a signal.
2930
2931 Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2932
2933 * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
2934 (main): Ditto.
2935
2936 Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
2937
2938 * run.c (main): Explicitly cast malloc() parameter.
2939
2940 Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2941
2942 * run.c (sim_bfd): New global to hold the bfd pointer for the
2943 executable.
2944 (main): Initialize sim_bfd.
2945
2946 Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
2947
2948 * run.c (main): Use new bfd_big_endian macro.
2949
2950 Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
2951
2952 * run.c (main): Removed SH specific comments, so source is
2953 generic. Also updated to only load relevant sections. Moved
2954 sim_open() to after callback attach (to match GDB).
2955
2956 * run.1: Removed SH specific comments.
2957
2958 Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
2959
2960 * run.c (main): Always return sigrc at end.
2961
2962 Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
2963
2964 * run.c (main): Print error diagnostic and exit if bfd_openr() or
2965 bfd_check_format() fails.
2966
2967 Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
2968
2969 * run.c, run.1: From sh directory.
2970
2971
This page took 0.093855 seconds and 5 git commands to generate.