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