import gdb-1999-08-30 snapshot
[deliverable/binutils-gdb.git] / sim / common / ChangeLog
CommitLineData
53a5351d
JM
11999-08-20 Doug Evans <devans@casey.cygnus.com>
2
3 * genmloop.sh: New args -parallel-generic-write, -parallel-only.
4 * cgen-engine.h (SEMANTIC_FN): Don't use version with PAREXEC
5 buffer arg if WITH_PARALLEL_GENWRITE.
6 (struct insn_sem): Handle WITH_PARALLEL_GENWRITE.
7 (struct idesc): Ditto.
8
9Wed Aug 18 18:17:28 1999 Doug Evans <devans@canuck.cygnus.com>
10
11 * sim-model.c (model_option_handler): Add \n to error message.
12
96baa820
JM
131999-08-08 Doug Evans <devans@casey.cygnus.com>
14
15 * cgen-engine.h (SEM_FN_NAME,SEMF_FN_NAME): Delete.
16 (insn_sem): Rewrite.
17 (sem_fn_desc): New struct.
18 (idesc): Rewrite.
19 * genmloop.sh (scache case,@cpu@_scache_lookup): Profile scache hit,
20 misses if ! FAST_P.
21 (scache case): Split into non-parallel/parallel versions.
22 (@cpu@_engine_run_{full,fast}): Call @cpu@_{sem,semf}_init_idesc_table
23 if not use semantic switch version.
24
251999-08-04 Doug Evans <devans@casey.cygnus.com>
26
27 * cgen-defs.h (SEM_BRANCH_TYPE): New enum.
28 * cgen-engine.h (SEM_BRANCH_UNTAKEN,SEM_BRANCH_UNCACHEABLE): Delete.
29 (SEM_BRANCH_INIT_EXTRACT): Delete.
30 (SEM_BRANCH_INIT): Replace npc_ptr with br_type.
31 (SEM_BRANCH_FINI): Ditto.
32 (SEM_BRANCH_VIA_ADDR): Ditto.
33 (SEM_BRANCH_VIA_CACHE): Ditto. Delete cachvarptr arg.
34 (SEM_BRANCH_ADDR_CACHE): Delete.
35 (SEM_SKIP_COMPILE,SEM_SKIP_INSN): New macros.
36 * cgen-scache.h (cpu_scache): Replace member pbb_pr_npc_ptr with
37 pbb_br_type.
38 * genmloop.sh (eng.hin): Update prototype of ${cpu}_pbb_cti_chain.
39 (@cpu@_pbb_begin): Initialize branch_target.
40 (@cpu@_pbb_cti_chain): Replace arg new_vpc_ptr with br_type.
41 (@cpu@_engine_run_full): Replace local pbb_br_npc_ptr with
42 pbb_br_type.
43 (@cpu@_engine_run_fast): Ditto.
44
adf40b2e
JM
45Fri Jul 16 14:47:53 1999 Dave Brolley <brolley@cygnus.com>
46
47 * cgen-utils.c (RORSI): New function.
48 (ROLSI): New function.
49
501999-07-14 Doug Evans <devans@casey.cygnus.com>
51
52 * Makefile.in (TAGS): Tweak TAGS regex.
53 * cgen-mem.h (*): Add TAGS markers.
54
43e526b9
JM
55Sun Jul 11 23:47:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
56
57 * sim-resume.c (sim_resume): Ensure that the siggnal [sic] is only
58 passed in when sim_resume is first entered - don't re-pass it
59 after a restart.
60
61Sun Jul 11 23:34:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
62
63 * sim-options.c (standard_option_handler): Add OPTION_LOAD_VMA and
64 OPTION_LOAD_LMA but only when is defined.
65 (standard_options): When SIM_HANDLES_LMA is defined include
66 options --load-lma and --load-vma.
67 (standard_install): Initialize STATE_LOAD_AT_LMA_P.
68
69 * sim-base.h (STATE_LOAD_AT_LMA_P): Define.
70 (struct sim_state_base): Add load_at_lma_p.
71 * sim-hload.c (sim_load): Replace SIM_HANDLES_LMA with
72 STATE_LOAD_AT_LMA_P.
73
74Sun Jul 11 12:03:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
75
76 * nrun.c (main): Re-format loop gnu style.
77
9846de1b
JM
78Wed Jul 7 19:56:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
79
80 * dv-sockser.c (connected_p): Initialize addrlen.
81
821999-07-06 Dave Brolley <brolley@cygnus.com>
83
84 * cgen-accfp.c (floatsidf): New function.
85 (fixdfsi): New function.
86
871999-07-06 Doug Evans <devans@casey.cygnus.com>
88
89 * sim-model.c (sim_model_init): Issue error if machine is unsupported.
90
43ff13b4
JM
911999-07-05 Doug Evans <devans@casey.cygnus.com>
92
93 * Make-common.in (CGEN_MAIN_CPU_DEPS): Add cgen-fpu.h.
94 (cgen-fpu.o,cgen-accfp.o): Add rules for.
95 * cgen-fpu.c: New file.
96 * cgen-fpu.h: New file.
97 * cgen-accfp.c: New file.
98 * cgen-cpu.h (CGEN_CPU): New member fpu.
99 * cgen-mem.h: Redo fp support.
100 * cgen-ops.h: Delete k&r support. Redo fp support.
101 * cgen-sim.h: Include cgen-fpu.h.
102 * cgen-types.h (SF,DF,XF,TF): Moved to cgen-fpu.h.
103
085dd6e6
JM
1041999-06-23 Doug Evans <devans@casey.cygnus.com>
105
106 * cgen-engine.h (TARGET_SEM_BRANCH_FINI): Remove cruft at end of
107 ifndef.
108 * genmloop.sh (@cpu@_scache_lookup): Delete unused local var.
109 (@cpu@_pbb_cti_chain): Minor clean up.
110
cd0fc7c3
SS
1111999-05-08 Felix Lee <flee@cygnus.com>
112
113 * aclocal.m4: Use AC_EXEEXT instead of AM_EXEEXT. Delete defn of
114 AM_CYGWIN32 and AM_EXEEXT.
115 * configure: Regenerate.
116
7a292a7a
SS
117Fri Apr 16 16:43:22 1999 Doug Evans <devans@charmed.cygnus.com>
118
119 * sim-core.c (device_error,device_io_read_buffer,
120 device_io_write_buffer): Delete decls.
121 * sim-core.h: Put them here.
122
123 * sim-core.c (sim_core_read_buffer): Pass sd to device_io_read_buffer.
124 (sim_core_write_buffer): Pass sd to device_io_write_buffer.
125 * sim-n-core.h (sim_core_read_aligned_N): Ditto.
126 (sim_core_write_aligned_N): Ditto.
127
1281999-04-14 Stephane Carrez <stcarrez@worldnet.fr>
129
130 * sim-memopt.c (sim_memory_uninstall): Don't look into
131 free()d memory.
132
1331999-04-14 Doug Evans <devans@casey.cygnus.com>
134
135 * cgen-utils.scm (virtual_insn_entries): Update attribute definition.
136
1371999-04-13 Doug Evans <devans@casey.cygnus.com>
138
139 * sim-core.c (sim_core_read_buffer): Handle NULL cpu when WITH_DEVICES.
140 (sim_core_write_buffer): Ditto.
141
1421999-04-02 Keith Seitz <keiths@cygnus.com>
143
144 * sim-io.c (sim_io_poll_quit): Only call the poll_quit callback
145 after the interval counter has expired.
146 (POLL_QUIT_INTERVAL): Define. Used to tweak the frequency of
147 poll_quit callbacks. May be overridden by Makefile.
148 (poll_quit_counter): New global.
149 * sim-events.c: Remove all mentions of ui_loop_hook. The
150 host callback "poll_quit" will serve the purpose.
151 * run.c: Add definition of ui_loop_hook when NEED_UI_LOOP_HOOK
152 is defined.
153 * nrun.c: Remove declaration of ui_loop_hook.
154
155Wed Mar 31 18:55:41 1999 Doug Evans <devans@canuck.cygnus.com>
156
157 * cgen-run.c (sim_resume): Don't tell main loop to run "forever"
158 if being used by gdb.
159
1601999-03-22 Doug Evans <devans@casey.cygnus.com>
161
162 * cgen-types.h (XF,TF): Tweak.
163 * cgen-ops.h: Redo inline support. Delete DI_FN_SUPPORT,
164 in cgen-types.h.
165 (SUBWORD*,JOIN*): Define.
166 * cgen-trace.c (sim_cgen_disassemble_insn): Update, base_insn_bitsize
167 moved into cpu descriptor.
168 * sim-model.h (MACH): New member `num'.
169
c906108c
SS
1701999-02-09 Doug Evans <devans@casey.cygnus.com>
171
c906108c
SS
172 * cgen-cpu.h (CGEN_DISASSEMBLER): New type.
173 (CGEN_CPU): Member opcode renamed to cpu_desc.
174 New members get_idata,disassembler.
175 * cgen-defs.h (CGEN_INSN_VIRTUAL_P): CGEN_INSN_ATTR renamed to
176 CGEN_INSN_ATTR_VALUE.
177 (CGEN_STATE): Delete member opcode_table.
178 (sim_disassemble_insn): Delete decl.
179 * cgen-engine.h (struct insn_sem): Moved to here from <cpu>-decode.c.
180 (struct idesc): Moved to here from <cpu>-decode.h.
181 * cgen-run.c (prime_cpu): Call prepare_run callback.
182 * cgen-trace.h (SFILE): New type.
183 (sim_disasm_sprintf): Declare.
184 (sim_disasm_read_memory,sim_disasm_perror_memory): Declare.
185 (sim_cgen_disassemble_insn): Declare.
186 * cgen-trace.c: Include errno.h,dis-asm.h. Don't include cpu-opc.h.
187 (insn_fields): Delete.
188 (trace_insn_fini): STATE_OPCODE_TABLE (sd) replaced with
189 CPU_CPU_DESC (cpu).
190 (trace_insn): Call CPU_DISASSEMBLER hook.
191 (sim_disasm_sprintf): New function.
192 (sim_disasm_read_memory): New function.
193 (sim_disasm_perror_memory): New function.
194 (sim_cgen_disassemble_insn): New function.
195 * cgen-utils.c: Don't include cpu-opc.h.
196 (virtual_insn_entries): New static local.
197 (cgen_virtual_insn_table): Renamed from cgen_virtual_opcode_table.
198 (cgen_insn_name): Rewrite.
199 (disasm_sprintf,sim_disassemble_insn): Moved to cgen-trace.c.
200 * cgen.sh (desc): New file generator handler.
201 * genmloop.sh: -parallel changed to -parallel-read/-parallel-write.
202 Define WITH_PARALLEL_READ/WITH_PARALLEL_WRITE appropriately.
203 Don't include cpu-opc.h,cpu-sim.h.
204 * sim-model.c (model_set): Delete SIM_DESC arg.
205 (sim_model_set): Update.
206 * sim-model.h (MACH): New member prepare_run.
207
2081999-01-28 Frank Ch. Eigler <fche@cygnus.com>
209
210 * sim-memopt.c (memory_option_handler): Avoid memset() calls
211 if redundant with allocator functions.
212
213Wed Jan 27 17:19:09 1999 Doug Evans <devans@canuck.cygnus.com>
214
215 * cgen-engine.h (EXTRACT_LSB0_{INT,UINT}): Fix.
216
217 * sim-profile.h: Make like sim-trace.h.
218 (PROFILE_USEFUL_MASK): New macro.
219 * sim-profile.c (profile_options): Make like trace_options, allow
220 optional on|off arg where applicable.
221 (set_profile_option_mask): New function.
222 (sim_profile_set_option): New function.
223 (profile_option_handler): Simplify.
224 Have -p only enable selected things, not everything.
225 Add missing break to OPTION_PROFILE_PC_RANGE.
226 * cgen-scache.c (scache_options): Allow optional on|off arg to
227 --profile-scache.
228 (scache_option_handler): Use sim_profile_set_option.
229
2301999-01-26 Frank Ch. Eigler <fche@cygnus.com>
231
232 * sim-memopt.c (memory_options): Add MEMORY_FILL option.
233 (memory_option_handler): Implement MEMORY_FILL option. Make
234 MEMORY_CLEAR an alias for MEMORY_FILL=0.
235 (parse_ulong_value): New function.
236 (do_memopt_add): Allocate all buffers. Optionally fill them.
237
2381999-01-15 Richard Henderson <rth@cygnus.com>
239
240 * hw-events.c (hw_event_queue_schedule): _vtracef takes a
241 va_list, not an integer.
242 * sim-events.c (sim_events_schedule): Likewise.
243
244 * sim-types.h (UNSIGNED32, UNSIGNED64): Properly cast to
245 the appropriate type.
246
2471999-01-14 Doug Evans <devans@casey.cygnus.com>
248
249 * cgen-defs.h (PCADDR,CIA): Define in terms of IADDR.
250 (sim_disassemble_insn): Update prototype.
251 (sim_engine_invalid_insn): Ditto.
252 * cgen-engine.h (SEMANTIC_FN): Add !WITH_SCACHE version.
253 (SEM_BRANCH_INIT): PCADDR->IADDR.
254 (SEM_NBRANCH_FINI): New macro for !WITH_SCACHE case.
255 * cgen-scache.c (scache_lookup,scache_lookup_or_alloc): PCADDR->IADDR.
256 * cgen-scache.h (*): Ditto.
257 * cgen-trace.c (*): Ditto.
258 * cgen-trace.h (*): Ditto.
259 * cgen-utils.c (*): Ditto.
260 * cgen-types.h (integer modes): Use signedNN/unsignedNN types.
261 (insn_t): Delete.
262 * genmloop.sh (@cpu@_fill_argbuf): Add !WITH_SCACHE support.
263 (simple engine framework): Rewrite.
264 * sim-module.c (modules): Install model module sooner (and in
265 particular before the profile module).
266
2671999-01-12 Doug Evans <devans@casey.cygnus.com>
268
269 * sim-model.h (sim_mach_lookup_bfd_name): Add prototype.
270 * sim-model.c (sim_mach_lookup_bfd_name): New function.
271 (sim_model_init): Call it.
272
273 * cgen-trace.c (trace_insn): Pass pc to trace_prefix for virtual insns.
274
2751999-01-05 Doug Evans <devans@casey.cygnus.com>
276
277 * Make-common.in (CGEN_INCLUDE_DEPS): Add cgen-defs.h, cgen-engine.h.
c906108c
SS
278 * cgen-engine.h (SEM_BRANCH_FINI): New arg pcvar, all uses updated.
279 (SEM_BRANCH_INIT_EXTRACT): New macro.
280 (SEM_BRANCH_INIT): Add taken_p.
281 (TARGET_SEM_BRANCH_FINI): Provide default definition.
282 (SEM_BRANCH_FINI): Use it.
283 (SEM_INSN): Update.
284 * cgen-run.c (sim_resume): Handle tracing of last insn.
285 * cgen-scache.h (WITH_SCACHE): Define as 0 if not defined.
286 * cgen-trace.c (current_abuf): New static global.
287 (trace_insn_init): Initialize it.
288 (trace_insn_fini): Use it.
289 (trace_insn): Set it.
290 * cgen.sh (arch case): Pass -m ${mach} to cgen.
291 * genmloop.sh (@cpu@_emit_before): Only define if WITH_SCACHE_PBB.
292 (@cpu@_emit_after): Ditto.
293 (simple @cpu@_engine_run_full): New local `pc'. Initialize semantic
294 labels if WITH_SEM_SWITCH_FULL.
295 * sim-model.c: Include bfd.h.
296 (sim_model_init): New function.
297 (sim_model_install): Record init fn.
298 * sim-model.h (MACH): New member bfd_name.
299 * sim-module.c (modules): Initialize model before scache.
300
3011998-12-24 Frank Ch. Eigler <fche@cygnus.com>
302
303 * dv-sockser.c (DEFAULT_TIMEOUT): Increase to 1 ms.
304
305 * nrun.c (main): Remain in simulation loop for traps and
306 exceptions when in operating environment mode.
307 (ui_loop_hook): New stub hook for standalone use.
308 * sim-events.c (sim_events_process): Call ui_loop_hook
309 periodically on CYGWIN host.
310
311 * sim-reason.c (sim_stop_reason): Return host signal numbers
312 to gdb on sim_stopped and sim_signalled cases.
313 * sim-engine.c (sim_engine_halt): Call SIM_CPU_EXCEPTION_SUSPEND
314 hook just before longjmp.
315 * sim-resume.c (sim_resume): Call SIM_CPU_EXCEPTION_RESUME
316 hook just before sim_engine_run.
317
318 * sim-n-core.h (sim_core_trace_M): Allay const warning.
319 * sim-trace.h (trace_generic): Ditto.
320 * sim-trace.c (trace_generic): Ditto.
321
3221998-12-14 Doug Evans <devans@casey.cygnus.com>
323
324 * Make-common.in (SIM_MAIN_DEPS): New var.
325 (CGEN_MAIN_CPU_DEPS): New var.
326 * aclocal.m4: Add --enable-cgen-maint option.
327 * cgen-mem.h (GETMEM*): New arg `pc'. Pass to sim_core routine.
328 (SETMEM*): Ditto.
329 (GETIMEM*): Pass pc value to sim_core routine.
330
331Fri Dec 11 16:58:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
332
333 * hw-handles.c (hw_handle_add_ihandle, hw_handle_add_phandle):
334 Compare with ZERO not NULL.
335
336Thu Dec 10 14:14:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
337
338 * hw-properties.c, hw-instances.c, hw-tree.c: Include
339 "sim-assert.h".
340
3411998-12-09 Doug Evans <devans@casey.cygnus.com>
342
343 * sim-arange.c: Include libiberty.h, and stdlib.h if present.
344 * sim-trace.c: Include stdlib.h if present.
345 * dv-sockser.c: Include unistd.h if present.
346 (dv_sockser_init): Add missing arg to call to sim_io_eprintf.
347 * cgen-scache.c (scache_flush): Delete unused locals i,sc.
348
3491998-12-08 James E Wilson <wilson@wilson-pc.cygnus.com>
350
351 * gennltvals.sh: Add i960.
352 * nltvals.def: Rebuild.
353
3541998-12-04 Doug Evans <devans@casey.cygnus.com>
355
356 * cgen-defs.h: New file, old cgen-sim.h.
357 * cgen-sim.h: Simple header that includes others.
358 * sim-arange.c: New file.
359 * sim-arange.h: New file.
360 * sim-basics.h: Include it.
361 * Make-common.in (SIM_NEW_COMMON_OBJS): Add sim-arange.o.
362 (sim-arange.o): Add rule for.
363 * sim-cpu.h (sim_cpu_msg_prefix): Add prototype.
364 (sim_io_eprintf_cpu): Add prototype.
365 * sim-inline.h (HAVE_INLINE): Define if GNUC.
366 (INLINE2): New macro.
367 (EXTERN_INLINE): New macro.
368 * sim-module.c (sim_post_argv_init): Initialize cpu backlink
369 before calling module init fns.
370 * sim-profile.c (OPTION_PROFILE_*): Move into enum.
371 (profile_init): New function.
372 (profile_options): New option --profile-range.
373 (profile_option_handler): Handle --profile-range.
374 (profile_print_insn): Qualify address range specific section titles.
375 (profile_print_addr_ranges): New function.
376 (profile_info): Print address ranges if specified.
377 (profile_install): Set profile_init init fn.
378 * sim-profile.h (PROFILE_DATA): New member `range'.
379 * sim-trace.c (trace_init): New function.
380 (trace_options): New option --trace-range.
381 (trace_option_handler): Handle --trace-range.
382 (trace_install): Set trace_init init fn.
383 * sim-trace.h (TRACE_DATA): New member `range'.
384 * sim-utils.c (sim_cpu_msg_prefix): New function.
385 (sim_io_eprintf_cpu): New function.
386 * cgen-engine.h (PC_IN_TRACE_RANGE_P): New macro.
387 (PC_IN_PROFILE_RANGE_P): New macro.
388 * cgen-trace.c (trace_insn_init): Set current_insn to NULL.
389 (trace_insn_fini): New arg abuf. All callers updated.
390 Exit early if trace_insn not called. Check ARGBUF_PROFILE_P before
391 printing cycle counts.
392 * cgen-trace.h (trace_insn_fini): Update prototype.
393 (TRACE_RESULT_P): New macro.
394 (TRACE_INSN_INIT,TRACE_INSN_FINI): New arg abuf. All callers updated.
395 (TRACE_INSN): Check ARGBUF_TRACE_P.
396 (TRACE_EXTRACT,TRACE_RESULT): New arg abuf. All callers updated.
397 * cgen-types.h (SIM_INLINE): Delete.
398 (SIM_HAVE_MODEL,SIM_HAVE_ADDR_RANGE): Define.
399 * cgen-utils.c: Don't include cgen-engine.h
400 * genmloop.sh (@cpu@_fill_argbuf): New function.
401 (@cpu@_fill_argbuf_tp): New function.
402 (@cpu@_emit_before,@cpu@_emit_after): New functions.
403 (@cpu@_pbb_begin): Prefix cti_sc,insn_count with '_'.
404 (SET_CTI_VPC,SET_INSN_COUNT): Update.
405 (@cpu@_pbb_before): Check ARGBUF_PROFILE_P before calling
406 doing profiling. Update call to TRACE_INSN_INIT,TRACE_INSN_FINI.
407 (@cpu@_pbb_after): Check ARGBUF_PROFILE_P before calling
408 doing profiling. Update call to TRACE_INSN_FINI.
409
410 * sim-memopt.c (sim_memory_uninstall): Result type is `void'.
411
4121998-12-03 Frank Ch. Eigler <fche@cygnus.com>
413
414 * sim-memopt.c (sim_memory_uninstall): Deallocate all memory
415 regions.
416
4171998-12-01 Doug Evans <devans@casey.cygnus.com>
418
419 * sim-inline.c (SIM_INLINE_P): Fix typo.
420
4211998-11-30 Doug Evans <devans@casey.cygnus.com>
422
423 * cgen-utils.c (cgen_virtual_opcode_table): Update.
424
425Tue Nov 24 18:40:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
426
427 * gennltvals.sh: Add v850 and d10v. Sort alphabetically.
428 * nltvals.def: Re-generate.
429
430Mon Nov 23 13:28:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
431
432 * sim-core.c (reverse_n, sim_core_uninstall, sim_core_init,
433 sim_core_map_attach, sim_core_map_detach, next_event_queue,
434 new_sim_core_mapping): Only define when EXTERN_SIM_CORE_P, pacify
435 GCC.
436 * sim-events.c (sim_events_uninstall, sim_events_suspend,
437 sim_events_resume, sim_events_zalloc, insert_sim_event): Ditto.
438
4391998-11-22 Doug Evans <devans@tobor.to.cygnus.com>
440
441 * genmloop.sh (${cpu}_pbb_chain): Watch for Ctrl-C's.
442 (${cpu}_pbb_cti_chain): Ditto.
443
4441998-11-18 Doug Evans <devans@casey.cygnus.com>
445
446 * Make-common.in (cgen-utils.o): Depend on cgen-engine.h.
c906108c
SS
447 * cgen-engine.h (EXTRACT_[ML]SB0_{INT,UINT}): New macros.
448 (EXTRACT_INT,EXTRACT_UINT): New macros.
449 (SEM_SEM_ARG): New macro.
450 (SEM_NEXT_VPC): New arg `pc'.
451 * cgen-sim.h (EXTRACT_SIGNED,EXTRACT_UNSIGNED): Delete.
452 (sim_disassemble_insn): Update prototype.
453 * cgen-trace.c (current_insn,insn_fields): New static locals.
454 (trace_insn): Set them.
b83266a0 455 * cgen-utils.c: #include cgen-engine.h.
c906108c
SS
456 (sim_disassemble_insn): New arg insn_fields.
457 Handle variable length insns.
458 * genmloop.sh: Only emit pbb decls if -pbb.
459 (${cpu}_scache_lookup): New arg `vpc'.
460 (scache support): Fetch pc before entering loop.
461
462 * gennltvals.sh: Add fr30 support.
463 * nltvals.def: Rebuild.
464
465Wed Nov 18 10:22:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
466
467 * sim-types.h: Re-do type system so that GCC's attribute and mode
468 are used to specify types. Handle case of ALPHA.
469
4701998-11-13 Frank Ch. Eigler <fche@elastic.org>
471
472 * aclocal.m4: Add tests for dlopen family.
473 * config.in: Regenerated.
474
475Wed Nov 11 14:02:25 1998 Doug Evans <devans@canuck.cygnus.com>
476
477 * sim-hload.c (sim_load): Pass `prog_name' to sim_load_file, not NULL.
478
479Wed Nov 4 23:51:19 1998 Doug Evans <devans@seba.cygnus.com>
480
481 * genmloop.sh (eng.hin): Rename HAVE_PARALLEL_EXEC to
482 HAVE_PARALLEL_INSNS, define as 0 or 1. Emit decls of fns in mloop.cin.
483 * cgen-engine.h: Typedefs of IADDR,CIA,SEM_ARG,SEM_PC moved ...
484 * cgen-sim.h: ... to here.
485
486Wed Oct 28 12:00:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
487
488 * aclocal.m4 (enable-build-warnings): Replace
489 enable-sim-warnings. Extend =LIST syntax so that prepend and
490 append of options is possible. Drop -Werror, add
491 -Wstrict-prototypes for GDB compatibility.
492 * Make-common.in (SIM_WARNINGS): Update.
493
494Mon Oct 19 13:56:32 1998 Doug Evans <devans@seba.cygnus.com>
495
496 * Make-common.in (CGEN_INCLUDE_DEPS): Define.
497 (sim-core.o): Delete duplicate dependence on $(SIM_EXTRA_DEPS).
498 (sim-cpu.o,sim-endian.o,sim-hw.o): Ditto.
499 (cgen-run.o,cgen-scache.o,cgen-trace.o,cgen-utils.o): Delete
500 explicit cgen header dependencies, require SIM_EXTRA_DEPS to include
501 CGEN_INCLUDE_DEPS.
502 * cgen-cpu.h: New file.
503 * cgen-engine.h: New file.
504 * cgen-scache.h: New file.
505 * cgen-sim.h: Delete portions moved to new files.
506 * genmloop.sh: Generate two files eng.hin,mloop.cin explicitly,
507 rather than sending result to stdout.
508
509Fri Oct 9 14:20:22 1998 Doug Evans <devans@seba.cygnus.com>
510
511 * Make-common.in (sim-reg.o): New rule.
512 (cgen-run.o): New rule.
513 * cgen-ops.h: Delete many BI macros. Change all UBI -> BI.
514 * cgen-run.c (prime_cpu): New function.
515 * cgen-scache.c: Add pseudo-basic-block (pbb) scaching support.
516 (scache_option_handler, case OPTION_PROFILE_SCACHE): Handle explicitly
517 mentioned cpu.
518 (scache_flush_cpu,scache_lookup,scache_lookup_or_alloc): New fns.
519 * cgen-sim.h (CGEN_INSN_VIRTUAL_TYPE): New enum.
520 (CGEN_INSN_VIRTUAL_P): New macro.
521 (SEM_PC): New typedef.
522 (SEMANTIC_FN): Change type of result to SEM_PC.
523 (SEM_SET_FULL_CODE,SEM_SET_FAST_CODE,SEM_SET_CODE): New macros.
524 (IDESC_CTI_P,IDESC_SKIP_P): New macros.
525 (SCACHE_MAP): New typedef.
526 (CPU_SCACHE): Add pbb support.
527 (scace_lookup,scache_lookup_or_alloc,scache_flush_cpu): Declare.
528 (SEM_BRANCH_INIT_EXTRACT,SEM_BRANCH_INIT,SEM_BRANCH_FINI): New macros.
529 (CGEN_CPU): New members running_p,insn_count,{fast,full}_engine_fn,
530 max_slice_insns.
531 (INSN_NAME): Delete.
532 (cgen_insn_name): Declare.
533 (sim_engine_invalid_insn): Renamed from sim_engine_illegal_insn.
534 * cgen-trace.c (trace_buf): Shrink from 1024 to 256 bytes.
535 (first_insn_p): Make static.
536 (trace_insn): Handle virtual insns specially.
537 (cgen_trace_printf): Ensure we haven't overflowed the buffer.
538 * cgen-types.h (UBI): Delete.
539 (MODE_TYPE): New enum.
540 (HOSTINT,HOSTUINT,HOSTPTR): Delete.
541 * cgen-utils.c (mode_names): Delete UBI. Add INT,UINT,PTR.
542 (cgen_virtual_opcode_table): New global.
543 (cgen_insn_name): New function.
544 (sim_disassemble_insn): Ignore virtual insns.
545 * genmloop.sh: Delete top level loop generation. Add pbb support.
546 * sim-cpu.h (CPU_INSN_NAME_FN): New typedef.
547 (sim_cpu_base): New members max_insns,insn_name,model_data.
548 (CPU_PC_GET,CPU_PC_SET): New macros.
549 (sim_pc_get,sim_pc_set): Declare.
550 * sim-model.c (model_set): Call model init fn.
551 * sim-model.h (MODEL_FN): New typedef.
552 (INSN_TIMING): New member model_fn.
553 (MODEL): New members num,init.
554 * sim-profile.c (sim_profile_print_bar): Renamed from print_bar.
555 All callers updated.
556 (profile_insn_init): New fn.
557 (profile_print_insn): Update, INSN_NAME -> CPU_INSN_NAME.
558 Exit early if insn profiling not supported.
559 (profile_print_memory): Update, MAX_MODES -> MODE_TARGET_MAX.
560 (profile_install): Record profile_insn_init as init fn.
561 (profile_uninstall): Free PROFILE_INSN_COUNT if non-null.
562 * sim-profile.h: Update, MAX_MODES -> MODE_TARGET_MAX.
563 (PROFILE_DATA): Delete member exec_time.
564 Change insn_count to pointer to array, rather than the array.
565 (sim_profile_print_bar): Declare.
566
567Wed Oct 7 16:56:42 1998 Doug Evans <devans@seba.cygnus.com>
568
569 * cgen-run.c: New file.
570 * sim-reg.c: New file.
571
572Mon Sep 14 10:58:19 1998 Frank Ch. Eigler <fche@cygnus.com>
573
574 * aclocal.m4: Add checks for -lsocket and -lnsl.
575
576 * dv-sockser.c (dv_sockser_init): Use SO_REUSEADDR to
577 allow local port reuse on listening socket.
578
579Tue Sep 1 15:36:52 1998 Frank Ch. Eigler <fche@cygnus.com>
580
581 * sim-config.h: Remove reference to linux kernel header.
582
583Tue Aug 25 12:45:27 1998 Frank Ch. Eigler <fche@cygnus.com>
584
585 * dv-sockser.c (sockser_addr): Make variable non-static.
586
587Mon Aug 24 11:47:37 1998 Joyce Janczyn <janczyn@cygnus.com>
588
589 * sim-hw.{c,h} (sim_hw_parse): Return struct hw pointer.
590
591Tue Aug 11 18:12:19 1998 Doug Evans <devans@canuck.cygnus.com>
592
593 * sim-events.c (sim_events_elapsed_time): Fix calculation.
594
595Tue Aug 4 20:36:46 1998 Jeff Holcomb <jeffh@cygnus.com>
596
597 * Make-common.in (install-common): Add $(EXEEXT) when installing
598 run.
599
600Mon Aug 3 11:46:01 1998 Doug Evans <devans@seba.cygnus.com>
601
602 * cgen-sim.h (cgen_state): New member opcode_table.
603 * cgen-utils.c (sim_disassemble_insn): Use it.
604
605Fri Jul 24 10:14:18 1998 Doug Evans <devans@canuck.cygnus.com>
606
607 * cgen-mem.h (DECLARE_SETT): Fix return type.
608 * cgen-sim.h (sim_engine_illegal_insn): Declare.
609 * cgen-scache.c: Include stdlib.h.
610 * cgen-trace.c (trace_extract): Use %lx for PCADDR.
611 * sim-model.c (model_option_handler): Remove unused variable `n'.
612
613Tue Jul 21 16:27:43 1998 Doug Evans <devans@seba.cygnus.com>
614
615 * cgen-utils.c: Include bfd.h.
616 (sim_disassemble_insn): Update call to CGEN_EXTRACT_FN.
617
618Wed Jul 8 18:24:10 1998 Jeffrey A Law (law@cygnus.com)
619
620 * sim-bits.h (EXTEND24): Fix typo.
621
622Wed Jul 8 17:41:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
623
624 * sim-events.c (ETRACE_P): New macro.
625 (struct _sim_event): Add member trace.
626 (sim_events_free): Reclaim trace message.
627
628 * sim-events.c, sim-events.h (sim_events_schedule_vtracef,
629 sim_events_schedule_tracef): New functions, include printf trace
630 information in argument list. If tracing, store asprintf'd trace
631 message in sim_event.
632
633 * hw-events.c, hw-events.h (hw_event_queue_schedule_tracef,
634 hw_event_queue_schedule_vtracef): New functions, mimic
635 sim_event_tracef.
636
637Mon Jul 6 15:51:14 1998 Jeffrey A Law (law@cygnus.com)
638
639 * sim-bits.h (EXTEND24): Define.
640
641Thu Jul 2 17:13:25 1998 Doug Evans <devans@seba.cygnus.com>
642
643 * cgen-sim.h (CPU_SCACHE): Make size unsigned.
644 (CPU_SCACHE_HASH_MASK): New macro.
645 (SCACHE_HASH_PC): Rewrite.
646 * genmloop.sh (engine_resume_{full,fast}): Move some of hash
647 computation out of main loop.
648
649Wed Jul 1 16:44:12 1998 Doug Evans <devans@seba.cygnus.com>
650
c906108c
SS
651 * cgen-sim.h (RECORD_IADDR): Delete.
652 * cgen-types.h (HOSTINT,HOSTUINT,HOSTPTR): New types.
653 * genmloop.sh (engine_resume_{full,fast}): Delete icount.
654
655Wed Jun 17 12:25:08 1998 Mark Alexander <marka@cygnus.com>
656
657 * gennltvals.def (mn10200): Add entry.
658 * nltvals.def: Regenerate with MN10200 additions.
659
660Wed Jun 17 13:18:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
661
662 * sim-inline.h (EXTERN_*): Replace with EXTERN_*_P. Correct
663 documentation on how it works.
664
665 * sim-core.h, sim-core.c (sim_core_install, sim_core_attach,
666 sim_core_detach, sim_core_read_buffer, sim_core_write_buffer,
667 sim_core_set_xor, sim_core_xor_read_buffer,
668 sim_core_xor_write_buffer): Update.
669
670 * sim-events.h, sim-events.c (sim_events_install,
671 sim_events_watch_clock, sim_events_schedule_after_signal,
672 sim_events_schedule, sim_events_watch_sim, sim_events_watch_core,
673 sim_events_deschedule): Update.
674
675 * sim-fpu.h, sim-fpu.c (sim_fpu_zero, sim_fpu_one, sim_fpu_two,
676 sim_fpu_max32, sim_fpu_max64): Update.
677
678Sat Jun 13 07:45:38 1998 Doug Evans <devans@fallis.cygnus.com>
679
680 * cgen-trace.c (trace_insn_fini): Redo cycle handling.
681 * sim-profile.h (PROFILE_DATA): Rename cycle handling members.
682 * sim-profile.c (profile_print_model): Update.
683
684Fri Jun 12 18:35:07 1998 Doug Evans <devans@seba.cygnus.com>
685
686 * gennltvals.def (m32r): Use common syscall.h now.
687 (mn10300): Add entry.
688 * nltvals.def: Regenerate.
689
690 * sim-engine.c (sim_engine_get_run_state): New function.
691 * sim-engine.h (sim_engine_get_run_state): Declare it.
692
693Thu Jun 11 00:50:03 1998 Doug Evans <devans@seba.cygnus.com>
694
695 * sim-core.h (SIM_CORE_SIGNAL_FN): New typedef.
696 * sim-core.c (sim_core_signal): Make extern, always define.
697
698Wed Jun 10 16:02:29 1998 Doug Evans <devans@seba.cygnus.com>
699
700 * Make-common.in (CGEN_FLAGS_TO_PASS): New variable.
701 * cgen-ops.h (ANDIF): New macro.
702 (ANDIF[BQHSD]I): Delete.
703
704Thu Jun 4 13:53:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
705
706 * hw-events.c (create_hw_event, delete_hw_event): Delete.
707 (hw_event_queue_schedule, hw_event_queue_deschedule,
708 bounce_hw_event): Fix hw-event memory corruptions found by Joyce
709 Janczyn.
710
711 * hw-alloc.h (HW_NZALLOC): Define.
712
713 * Make-common.in (test-hw-events): Add target for testing the
714 hw-event code.
715
716Mon May 25 21:11:26 1998 Andrew Cagney <cagney@b1.cygnus.com>
717
718 * Make-common.in (SIM_COMMON_HW_OBJS): Add hw-handles.o and
719 hw-instances.o.
720 hw-handles.c, hw-instances.c, hw-handles.h, hw-instances.h: New
721 files.
722 * hw-main.h: Include hw-handles.h, hw-instances.h.
723 * hw-base.h ({create,delete}_hw_{handles,instances}_data): Declare
724 * hw-base.c (hw_create, hw_delete): Call same.
725
726Mon May 25 18:55:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
727
728 * dv-core.c: Include hw-main.h and sim-main.h.
729 * dv-pal.c: Include hw-main.h and sim-io.h.
730 * dv-glue.c: Include hw-main.h.
731
732 * hw-main.h: New file. Move list of includes to here.
733 * hw-base.h: From here.
734 * Make-common.in (hw_base_headers): Rename to hw_main_headers.
735 (hw-*.o, dv-*.o): Update.
736 * hw-tree.c, hw-base.c, hw-properties.c, hw-ports.c, hw-device.c,
737 hw-events.c, hw-alloc.c, sim-hw.c: Include hw-main.h instead of
738 sim-main.h.
739
740 * hw-base.h (do_hw_attach_regs, do_hw_poll_read_method,
741 do_hw_poll_read): Move declarations from here.
742 * hw-main.h: To here.
743
744 * hw-base.h (struct hw_device_descriptor, hw_finish_callback):
745 Move from here.
746 * hw-main.h (struct hw_descriptor, hw_finish_method): To here,
747 rename.
748 * Make-common.in (hw-config.h): Update
749 * hw-base.c, dv-pal.c, dv-glue.c: Update
750
751 * dv-glue.c, hw-device.h, hw-base.h, hw-ports.c: Rename
752 `*_callback' to `*_method.
753
754Mon May 25 18:41:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
755
756 * hw-base.h (set_*): Move set method macros from here.
757 * hw-device.h: To here.
758
759Mon May 25 18:21:38 1998 Andrew Cagney <cagney@b1.cygnus.com>
760
761 * hw-base.h (create_hw_property_data, delete_hw_property_data):
762 Declare.
763
764 * hw-base.c (hw_create, hw_delete): Call
765 * hw-properties.c (create_hw_property_data,
766 delete_hw_property_data): Define.
767
768Mon May 25 17:40:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
769
770 * hw-device.c, hw-properties.c: Include hw-base.h
771
772 * hw-alloc.h, hw-alloc.c: New files. Move alloc code to here.
773 * hw-device.c: From here.
774 * hw-base.h: Include "hw-events.h".
775
776 * hw-base.h (create_hw_alloc_data, delete_hw_alloc_data): Declare.
777 * hw-base.c (hw_create, hw_delete): Call.
778 * hw-alloc.c (create_hw_alloc_data, delete_hw_alloc_data): Define.
779
780 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-alloc.o.
781 (hw-alloc.o): New target.
782
783Mon May 25 17:14:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
784
785 * hw-events.h, hw-events.c: New files. Move event code to here.
786 * sim-hw.c: From here.
787 * hw-base.h: Include "hw-events.h".
788 * Make-common.in (SIM_NEW_COMMON_OBJS): Add hw-events.o.
789 (hw-events.o): New target.
790
791 * hw-device.h (struct hw): Add struct hw_event_data events_of_hw.
792 * hw-events.h (struct hw_event): Replace typedef hw_event.
793
794 * hw-base.h (create_hw_event_data, delete_hw_event_data): Declare.
795 * hw-base.c (hw_create, hw_delete): Call.
796 * hw-events.c (create_hw_event_data, delete_hw_event_data): Define.
797
798 * dv-pal.c: Update.
799
800Mon May 25 16:55:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
801
802 * hw-base.c (panic_hw_port_event, empty_hw_ports): Move from here.
803 * hw-ports.c: To here.
804
805 * hw-base.h, hw-ports.c (create_hw_port_data,
806 delete_hw_port_data): New functions.
807 * hw-base.c (hw_delete, hw_create): Call same.
808
809 * hw-base.h (set_hw_ports, set_hw_port_event): Move set functions
810 from here.
811 * hw-ports.h: To here.
812
813Mon May 25 16:42:48 1998 Andrew Cagney <cagney@b1.cygnus.com>
814
815 * hw-device.c (hw_ioctl), hw-device.h (hw_ioctl_callback): Drop
816 PROCESSOR and CIA arguments.
817
818Fri May 22 12:16:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
819
820 * aclocal.m4 (SIM_AC_OPTION_HW): Add enable / disable argument.
821 Move common object files from here.
822 * Make-common.in (SIM_COMMON_HW_OBJS): To here.
823
824Thu May 21 17:57:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
825
826 * sim-hw.c: Include ctype.h.
827 (do_hw_poll_read): Do not assume EAGAIN.
828
829Wed May 20 04:37:57 1998 Doug Evans <devans@seba.cygnus.com>
830
831 * cgen-trace.c (first_insn_p): New static local.
832 (trace_insn_init): Set it.
833 (trace_insn_fini): Use TRACE_PREFIX.
834 (trace_insn): Rewrite to use trace_prefix.
835 * sim-trace.c (trace_prefix): Don't print filename arg if NULL.
836 Adjust width accordingly.
837
838 * sim-profile.h (PROFILE_DATA): New member profile_any_p.
839 (PROFILE_ANY_P,PROFILE_INSN_P,PROFILE_MEMORY): New macros.
840 (PROFILE_SCACHE_P,PROFILE_PC_P,PROFILE_CORE_P): New macros.
841 (PROFILE_COUNT_INSN,PROFILE_COUNT_READ,PROFILE_COUNT_WRITE): Simplify.
842 (PROFILE_COUNT_CORE): Simplify.
843 * sim-profile.c (profile_option_handler): Compute profile_any_p.
844
845Tue May 19 23:55:30 1998 Doug Evans <devans@seba.cygnus.com>
846
847 * cgen-ops.h (ADDCFSI): Fix typo.
848
849Sat May 16 12:44:52 1998 Doug Evans <devans@seba.cygnus.com>
850
851 * cgen-sim.h (CGEN_CPU): New members idesc_{read,sem}_init_p.
852 * genmloop.sh: Use them rather than static locals.
853
854 * sim-engine.c (sim_engine_set_run_state): New function.
855 * sim-engine.h (sim_engine_set_run_state): Declare.
856 * genmloop.sh (pending_reason,pending_sigrc): New static locals.
857 (@cpu@_engine_stop): New args reason,sigrc. All callers updated.
858 (engine_resume): Reorganize. Allow synchronous exit from main loop.
859
860Fri May 15 16:06:05 1998 Doug Evans <devans@seba.cygnus.com>
861
862 * cgen-trace.c (trace_insn_init): New arg first_p.
863 All callers updated.
864 (trace_insn_fini): New arg last_p. All callers updated.
865 * cgen-trace.h (trace_insn_init,trace_insn_fini): Update.
866 (TRACE_INSN_INIT,TRACE_INSN_FINI): Update.
867 * genmloop.sh (engine_resume): Update.
868
869Fri May 15 15:59:00 1998 Joyce Janczyn <janczyn@cygnus.com>
870
871 * Make-common.in (install-common): Run ranlib on installed copy of
872 libsim.a.
873
874Fri May 15 15:03:00 1998 Joyce Janczyn <janczyn@cygnus.com>
875
876 * Make-common.in (install-common): Rename and install libsim.a.
877
878Tue May 12 15:23:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
879
880 * sim-io.c (unistd.h): Include.
881
882Wed May 6 16:04:18 1998 Doug Evans <devans@seba.cygnus.com>
883
884 * Make-common (sim_main_headers): Sort.
885 (cgen-*.o): Add cgen-sim.h dependency.
886
887 * cgen-scache.c (scache_init): Only allocate space if scache element
888 size is non-zero.
889 (scache_flush,scache_print_profile): Check if scache in use first.
890
891 * cgen-sim.h (IDESC): Provide forward declaration.
892 (DECODE): Delete.
893 (CGEN_CPU): Always define scache member. New members idesc,opcode.
894 (cgen_cpu_max_extra_bytes): Declare.
895 * cgen-utils.c (cgen_cpu_max_extra_bytes): New function.
896
c906108c
SS
897 * sim-cpu.h: New file. sim_cpu_base moved here.
898 Move sim_cpu_lookup decl here.
899 * sim-base.h: #include "sim-cpu.h".
900 * sim-cpu.c: New file.
901 * Make-common (sim_main_headers): Add sim-cpu.h.
902 (sim-cpu.o): Add rule for.
903
904 * sim-model.c (set_model): Delete.
905 (sim_model_set,model_set): New functions.
906 (sim_model_install): Renamed from model_install.
907 Don't set default model here.
908 (model_option_handler): Rewrite --model processing.
909 (sim_model_lookup,sim_mach_lookup): New functions.
910 * sim-model.h (MAX_MODELS,MAX_INSNS): Delete.
911 (insn_timing): Delete.
912 (INSN_TIMING): New member `num'.
913 (IMP_PROPERTIES): Always define scache_elm_size member.
914 (MACH): New member init_cpu.
915 (sim_machs): Renamed from machs.
916 (sim_model_install): Renamed from model_install.
917 (sim_model_set,sim_model_lookup,sim_mach_lookup): Declare.
918 * sim-module.c (modules): Update.
919
920 * sim-profile.c (profile_print_insn): Add cpu arg to INSN_NAME macro.
921
922 * sim-io.c: #include <errno.h>.
923
924Wed May 6 12:39:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
925
926 * dv-pal.c (struct hw_pal_device): Add reader.
927 (hw_pal_finish): Initialize reader.
928 (scan_hw_pal): Use reader.
929
930 * hw-base.h, sim-hw.c (do_hw_poll_read): New function.
931 (HW_IO_EOF, HW_IO_NOT_READY): Define.
932 * dv-pal.c: Use.
933
934 * sim-io.h, sim-io.c (sim_io_poll_read): New function. Copy from
935 ../ppc/main.c sim_io_read_stdin.
936
937Fri May 1 12:11:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
938
939 * hw-tree.h (hw_tree_print): Paramaterize with print and file
940 arguments.
941 * hw-tree.c: Update.
942
943 * hw-base.h (hw_port_event_callback): Delete CPU/CIA args.
944 * hw-device.h (hw_io_read_buffer, hw_io_write_buffer): Delete
945 CPU/CIA args.
946 * hw-ports.h (hw_port_event): Ditto.
947 * hw-ports.c (hw_port_event): Update.
948 * hw-base.c (panic_hw_io_read_buffer, panic_hw_io_write_buffer):
949 Update.
950 * dv-pal.c (hw_pal_io_read_buffer, hw_pal_io_write_buffer):
951 Update.
952 (hw_pal_io_write_buffer): Call hw_halt not sim_engine_halt.
953 (do_counter_event): Update.
954 * dv-glue.c (hw_glue_io_read_buffer): Update.
955 (hw_glue_port_event): Update.
956
957 * hw-device.h (SIM_DESC): Replace with struct sim_state.
958 * hw-base.h (hw_create): Ditto.
959 * hw-base.c (hw_create): Ditto.
960
961 * hw-device.c (hw_abort, hw_trace, hw_hw_event_queue_schedule,
962 hw_event_queue_deschedule, hw_event_queue_time): Delete, moved
963 from here to.
964 * sim-hw.c: Here.
965 * hw-device.h (hw_system_cpu): Declare.
966 * sim-hw.c (hw_system_cpu): New function.
967
968 * sim-core.c (sim_core_map_attach, sim_core_attach): Call
969 sim_hw_abort not hw_abort.
970 (sim-hw.h): Include.
971 (sim_core_read_buffer, sim_core_write_buffer): Call
972 sim_hw_io_read_buffer and sim_hw_io_write_buffer. Do not pass CPU
973 argument.
974 (sim_core_set_xor): Do not pass CPU when aborting.
975
976 * sim-n-core.h (sim_core_read_aligned_N,
977 sim_core_write_aligned_N): Call sim_hw_abort not hw_abort.
978 (sim_core_read_aligned_N, sim_core_write_aligned_N): Call
979 sim_cpu_hw_io_read_buffer and sim_cpu_hw_io_write_buffer. Does not
980 return length.
981
982 * sim-hw.h: Declare sim_hw_io_{read,write}_buffer. Declare
983 sim_hw_print.
984 * sim-hw.c (sim_hw_io_read_buffer, sim_hw_io_write_buffer,
985 sim_cpu_hw_io_read_buffer, sim_cpu_hw_io_write_buffer): New
986 functions.
987 (sim_hw_print): New function.
988
989 * sim-engine.h (sim_engine_vabort): Declare.
990 * sim-engine.c (sim_engine_vabort): New function.
991
992Wed Apr 29 23:58:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
993
994 * sim-trace.c (print_data): For floating-point numbers trace raw
995 hex value.
996 (trace_result_fp2): New function.
997 * sim-trace.h (trace_result_fp2): New declaration.
998 (TRACE_FP_RESULT2): New macro.
999
1000Tue Apr 28 18:28:58 1998 Geoffrey Noer <noer@cygnus.com>
1001
1002 * common/aclocal.m4: call AM_EXEEXT in SIM_AC_COMMON, define
1003 AM_CYGWIN32 and AM_EXEEXT.
1004 * common/Make-common.in: set EXEEXT, add missing EXEEXTs
1005 to run and install-common rules.
1006 * common/configure: regenerate
1007
1008Sat Apr 25 17:45:01 1998 Andrew Cagney <cagney@b1.cygnus.com>
1009
1010 * sim-types.h (cell_word): New type.
1011 (natural_cell): Delete type.
1012
1013Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
1014
1015 * configure: Regenerated to track ../common/aclocal.m4 changes.
1016 * config.in: Ditto.
1017
1018Sun Apr 26 15:25:07 1998 Tom Tromey <tromey@cygnus.com>
1019
1020 * acconfig.h (NEED_DECLARATION_PRINTF): Removed.
1021
1022Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
1023
1024 * configure: Regenerated to track ../common/aclocal.m4 changes.
1025 * config.in: Ditto.
1026
1027Fri Apr 24 11:38:08 1998 Tom Tromey <tromey@cygnus.com>
1028
1029 * acconfig.h: New file.
1030 * Make-common.in (top_builddir): New macro.
1031 (INTL_LIB): Removed.
1032 (INTLLIBS): New macro.
1033 (INTLDEPS): Likewise.
1034 (LIBDEPS): Use INTLDEPS.
1035 (EXTRA_LIBS): Use INTLLIBS.
1036 * aclocal.m4 (SIM_AC_COMMON): Call CY_GNU_GETTEXT.
1037 (CY_WITH_NLS, CY_GNU_GETTEXT, AM_PATH_PROG_WITH_TEST,
1038 AM_LC_MESSAGES): New macros from GNU gettext.
1039
1040Fri Apr 24 19:57:59 1998 Andrew Cagney <cagney@b1.cygnus.com>
1041
1042 * sim-config.h: Discard leading _ from macros.
1043 * sim-types.h: Ditto.
1044
1045Wed Apr 22 14:14:19 1998 Michael Meissner <meissner@cygnus.com>
1046
1047 * Make-common.in (CSEARCH): Add -I to intl directories.
1048 (INTL_LIB): Point to libintl.a.
1049 (LIBDEPS): Add $(INTL_LIB).
1050 (EXTRA_LIBS): Ditto.
1051
1052Tue Apr 21 12:44:27 1998 Doug Evans <devans@canuck.cygnus.com>
1053
1054 * cgen-types.h (GETHIDI,MAKEDI): Tweak.
1055
1056 * cgen-ops.h (ADDCFSI): Fix.
1057 (SUBCFSI): Tweak.
1058
1059Tue Apr 21 13:18:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
1060
1061 * sim-types.h (signed_address, unsigned_address): Define.
1062
1063Mon Apr 20 21:47:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
1064
1065 * sim-fpu.c (sim_fpu_2d): Don't return an SNaN, convert it into a
1066 QNaN.
1067
1068Thu Apr 16 10:30:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
1069
1070 * sim-fpu.c, sim-fpu.h (sim_fpu_fractionto, sim_fpu_tofraction):
1071 New functions, pack / unpack sim_fpu struct using raw values.
1072 (sim_fpu_is): Differentiate between negative and positive
1073 infinity.
1074
1075Tue Apr 14 18:49:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
1076
1077 * sim-bits.h (EXTEND4): Define.
1078 (EXTEND4, EXTEND15, EXTEND11): Ditto.
1079
1080Tue Apr 14 16:31:35 1998 John Metzler <jmetzler@cygnus.com>
1081
1082 * sim-memopt.c (parse_addr): Sunos 4.5 does not have strtol
1083 declared so we need this cast to prevent long long addresses
1084 from being misconfigures. Results in access to unmapped memory.
1085
1086Tue Apr 14 13:19:14 1998 Doug Evans <devans@canuck.cygnus.com>
1087
1088 * Make-common.in (RUNTESTFLAGS): Define.
1089 (check): Pass RUNTESTFLAGS to recursive make.
1090
1091Tue Apr 14 15:09:19 1998 Andrew Cagney <cagney@b1.cygnus.com>
1092
1093 * sim-info.c (sim_info): Be verbose when either VERBOSE or
1094 STATE_VERBOSE_P.
1095
1096Sat Apr 4 23:24:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
1097
1098 * aclocal.m4 (sim-inline): By default, disable sim-inline when
1099 cross compiling.
1100
1101Sat Apr 4 20:36:25 1998 Andrew Cagney <cagney@b1.cygnus.com>
1102
1103 * aclocal.m4 (sim-cflags): Add -fomit-frame-pointer to defaults.
1104 (sim-inline): Update to match sim-inline.[hc]
1105 * configure: Regenerated to track ../common/aclocal.m4 changes.
1106
1107 * Make-common.in (sim_main_headers): Add sim-inline.h
1108
1109 * sim-bits.h (sim-bits.c): Include when H_REVEALS_MODULE_P.
1110 selected.
1111 * sim-endian.h (sim-endian.c): Ditto.
1112
1113 * sim-events.h (_SIM_EVENTS_H_): Replace with SIM_EVENTS_H.
1114 (sim_events_set_trace): Delete unused prototype.
1115
1116 * sim-core.h (_SIM_CORE_H_): Replace with SIM_CORE_H.
1117 * sim-core.c (_SIM_CORE_C_): Ditto for SIM_CORE_C.
1118
1119 * sim-fpu.h (sim-fpu.c): Include when H_REVEALS_MODULE_P.
1120 (sim_fpu_to232i, sim_fpu_to232u, sim_fpu_i232to, sim_fpu_u232to):
1121 Comment out, not yet implemented in sim-fpu.c.
1122 (sim_fpu_zero, sim_fpu_one, sim_fpu_two, sim_fpu_qnan,
1123 sim_fpu_max32, sim_fpu_max64): Mark as EXTERN_SIM_FPU.
1124
1125 * sim-inline.h: Rewrite description.
1126 (H_REVEALS_MODULE_P, C_REVEALS_MODULE_P): Define.
1127 (SIM_MAIN_INLINE): Add inline option.
1128
1129 * sim-inline.c (semantics.c, idecode.c, engine.c, ...): Do not
1130 include generated files. Handled by generator directly.
1131
1132Sat Apr 4 01:07:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
1133
1134 * sim-trace.c (set_trace_option_mask): Keep TRACE_ANY_P
1135 up-to-date.
1136
1137 * sim-trace.h (TRACE_ANY_P): Define.
1138 (struct _trace_data): Add trace_any_p.
1139
1140Mon Mar 30 17:11:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
1141
1142 * run.c (main): Handle all alternatives of enum sim_stop.
1143 (main): Delete unused `asection *s'.
1144
1145Fri Mar 27 16:15:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
1146
1147 * hw-tree.h, hw-tree.c (hw_tree_vparse): New function
1148
1149 * configure: Regenerated to track ../common/aclocal.m4 changes.
1150
1151 * sim-hw.c: New file.
1152 * sim-hw.h (sim_hw_parse): Declare function.
1153 (hw-tree.h): Do not include.
1154
1155 * sim-base.h (STATE_HW): Define.
1156 (struct sim_state_base): Add member struct *hw.
1157
1158 * sim-module.c (sim-hw.h): Include.
1159 (modules): Add sim_hw_install.
1160
1161 * aclocal.m4 (sim_hw_obj): Add sim-hw.o
1162
1163Fri Mar 27 14:55:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
1164
1165 * sim-base.h (CPU_INDEX): Define.
1166
1167 * sim-utils.c (sim_state_alloc): Initialize.
1168 * sim-module.c (sim_post_argv_init): Ditto.
1169
1170Thu Mar 26 10:07:57 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
1171
1172 * aclocal.m4 (sim_hw_obj): Fix sed expression to generate
1173 properly formatted lists.
1174
1175Thu Mar 26 10:37:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
1176
1177 * dv-pal.c (enum hw_pal_address_mask): From Stu Grossman, was
1178 0x2f needs to be 0x3f.
1179
1180Thu Mar 26 09:10:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
1181
1182 * hw-tree.c (hw_tree_find_property): Return NULL when device is
1183 not found.
1184 (hw_tree_find_*_property): Clean up error message when property is
1185 not found.
1186
1187 * dv-pal.c (hw_pal_io_read_buffer): Check the smp property is
1188 present before looking for it.
1189
1190Wed Mar 25 16:17:38 1998 Ian Carmichael <iancarm@cygnus.com>
1191
1192 * aclocal.m4 (AC_CHECK_HEADERS): Add check for fpu_control.h.
1193 (AC_CHECK_FUNCS): Add check for __setfpucw.
1194 * configure: Regenerated.
1195
1196Wed Mar 25 09:18:34 1998 Andrew Cagney <cagney@b1.cygnus.com>
1197
1198 * dv-pal.c (hw_pal_countdown, hw_pal_countdown_value,
1199 hw_pal_timer, hw_pal_timer_value): Define.
1200 (hw_pal_io_read_buffer, hw_pal_io_write_buffer): Add timer support
1201 (do_counter_event, do_counter_read, do_counter_value,
1202 do_counter_write): new functions.
1203
1204Tue Mar 24 12:24:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
1205
1206 * hw-tree.c (hw_printf): Send tree dump to stderr, same as other
1207 trace output.
1208
1209 * hw-base.c (hw_create): Stop searching for a device when one is
1210 found.
1211
1212Wed Mar 25 12:35:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
1213
1214 * configure: Regenerated to track ../common/aclocal.m4 changes.
1215
1216Mon Mar 23 10:25:08 1998 Andrew Cagney <cagney@b1.cygnus.com>
1217
1218 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Add second argument,
1219 appends extra devices.
1220 (SIM_AC_OPTION_HARDWARE): Substute sim_hw, a non-duplicate list of
1221 the device names.
1222
1223 * Make-common.in (hw-config.h): New target, create hw-config.h
1224 file.
1225 (SIM_HW): Definition from @sim_hw@.
1226 (hw-base.o): Depend on hw-config.h
1227
1228Tue Mar 24 17:41:35 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
1229
1230 * Make-common.in: Get SHELL from configure.
1231 * (stamp-tvals sim-inline.c): Use $(SHELL) when invoking
1232 move-if-change. Fixes NT native build problem.
1233 * Makefile.in (nltvals.def): Use $(SHELL) when invoking
1234 move-if-change. Fixes NT native build problem.
1235 * configure: Regenerate with autoconf 2.12.1 to fix shell issues for
1236 NT native builds.
1237
1238Sun Mar 22 16:54:40 1998 Andrew Cagney <cagney@b1.cygnus.com>
1239
1240 * hw-device.h, hw-device.c (hw_strdup): New function.
1241
1242 * hw-base.c (hw_create): Use hw_strdup when saving a copy of the
1243 strings name, family and args.
1244 (full_name_of_hw): Use hw_strdup when returning the full path.
1245
1246 * hw-properties.c: Clean up property not found / wrong type error
1247 messages.
1248
1249 * hw-tree.c (hw_tree_parse): Finish a devices initialization
1250 before attaching any ports.
1251
1252 * hw-base.c (hw-config.): Include. Replace hardwired table.
1253
1254 * dv-glue.c: Copy over ../ppc/hw_glue.c. Update to new framework.
1255
1256 * Make-common.in: Add rule for dv-glue.o.
1257
1258Sun Mar 22 16:45:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
1259
1260 * hw-base.c (hw_finish): Move setting of trace level to here.
1261 (hw_create): From here.
1262
1263 * hw-base.h, hw-base.c (do_hw_attach_regs): Copy function from
1264 ../ppc/device_table.c.
1265
1266 * dv-pal.c (hw_pal_finish): Attach PAL device to parent bus.
1267
1268 * hw-tree.c (print_properties): Supress path when printing
1269 properties of root node.
1270
1271Sun Mar 22 16:21:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
1272
1273 * hw-device.h (HW_TRACE): Define.
1274 (hw_trace): Declare.
1275 * hw-device.c (hw_trace): Implement function.
1276
1277 * hw-base.c (hw_create): Set hw trace level from "trace?"
1278 property.
1279
1280 * dv-core.c (dv_core_attach_address_callback): Add trace.
1281
1282 * dv-pal.c: Replace DTRACE with HW_TRACE.
1283
1284Sun Mar 22 15:23:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
1285
1286 * hw-device.h (HW_ZALLOC, HW_MALLOC): New macros.
1287 (hw_alloc_data): Delcare.
1288 (struct hw): Add member alloc_of_hw.
1289
1290 * hw-device.c (hw_zalloc, hw_malloc, hw_free, hw_free_all): New
1291 functions. Assocate memory with a device.
1292 (stdlib.h): Include.
1293
1294 * hw-base.h (set_hw_delete): Define.
1295 (hw_delete_callback): Declare.
1296 (hw_delete): Declare.
1297
1298 * hw-base.c (hw_delete): Implement function.
1299 (struct hw_base_data): Add member to_delete.
1300 (ignore_hw_delete): New function, does nothing.
1301 (hw_create): Set the hw_delete method.
1302 (hw_create): Allocate the base type using HW_ZALLOC before setting
1303 any methods.
1304
1305 * hw-tree.h, hw-tree.c (hw_tree_delete): New function.
1306
1307 * hw-properties.c: Replace zalloc/zfree with hw_zalloc/hw_free.
1308
1309 * hw-ports.c: Replace zalloc/zfree with hw_zalloc/hw_free.
1310 (attach_hw_port_edge): Add struct hw argument
1311
1312 * dv-pal.c (hw_pal_finish): Replace zalloc/zfree with
1313 hw_zalloc/hw_free.
1314
1315Sun Mar 22 15:09:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
1316
1317 * hw-device.h (hw_attach_address_callback,
1318 hw_detach_address_callback): Attach to a single space not a space
1319 mask. Clarify interpretation of SPACE:ADDR parameters.
1320
1321 * hw-base.c (passthrough_hw_attach_address,
1322 passthrough_hw_detach_address): Update.
1323 * dv-core.c (dv_core_attach_address_callback): Ditto.
1324 * dv-pal.c (hw_pal_attach_address): Ditto.
1325
1326Thu Mar 19 00:41:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
1327
1328 * sim-options.h: Document additional CPU arg to OPTION_HANDLER.
1329
1330Wed Mar 18 14:13:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
1331
1332 * Make-common.in (SIM_HW_OBJS, SIM_HW_SRC, SIM_DV_OBJS): Define.
1333 (hw-base_h, hw-device_h, hw-handles_h, hw-instances_h, hw_ports_h,
1334 hw-properties_h, hw-tree_h): Define, point at corresponding
1335 header.
1336 (hw_base_headers): Define list of headers included by hw-base.h
1337 (hw-base.o, hw-device.o, hw-instances.o, hw-handles.o, hw-ports.o,
1338 hw-properties.o, hw-tree.o): Specify dependencies.
1339 (dv-core.o, dv-pal.o): Ditto.
1340
1341 * sim-hw.h: New file.
1342
1343 * hw-device.h, hw-device.c, hw-properties.h, hw-properties.c,
1344 hw-ports.h, hw-ports.c: New files. Copied from ../ppc/device.[ch].
1345
1346 * hw-tree.h, hw-tree.c: New files. Copied from ../ppc/tree.[hc].
1347
1348 * hw-base.h, hw-base.c: new files. Copied from
1349 ../ppc/device_table.[hc].
1350
1351 * dv-core.c, dv-pal.c: New files. Copied from
1352 ../ppc/hw_{core,pal}.c
1353
1354 * sim-basics.h (struct hw): Declare.
1355 (enum port_direction, enum object_disposition): Declare.
1356
1357Wed Mar 18 12:38:12 1998 Andrew Cagney <cagney@b1.cygnus.com>
1358
1359 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Set sim_hw_obj, sim_dv_obj,
1360 sim_dv_src in Makefile. Take list of devices as parameter to m4
1361 macro..
1362
1363 * configure: Regenerated to track ../common/aclocal.m4 changes.
1364
1365Mon Mar 16 12:37:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
1366
1367 * sim-trace.h, sim-trace.c (trace_prefix): Pass in sim_cia so that
1368 trace_prefix can abort cleanly.
1369
1370Sat Mar 14 18:36:12 1998 Doug Evans <devans@seba.cygnus.com>
1371
1372 * dv-sockser.c, dv-sockser.h: New files.
1373 * Make-common.in (dv-sockser.o): Add rule for.
1374 * aclocal.m4: Check for fcntl.h.
1375 * config.h: Add HAVE_FCNTL_H.
1376
1377 * sim-break.c (remove_breakpoint): Fix thinko.
1378
1379 * sim-hload.c (sim_load): Provide default value of SIM_HANDLES_LMA.
1380 Use SIM_HANDLES_LMA for lma_p arg to sim_load_file.
1381
13821998-03-13 Fred Fish <fnf@cygnus.com>
1383
1384 * sim-base.h (struct sim_state_base): Add prog_syms and
1385 define macro STATE_PROG_SYMS.
1386 * sim-trace.c (trace_prefix): Add variables abfd, symsize,
1387 symbol_count, and asymbols. Call bfd_get_symtab_upper_bound
1388 and bfd_canonicalize_symtab, to get symbol table on first use
1389 and preserve it via STATE_PROG_SYMS for future calls to
1390 bfd_find_nearest_line.
1391
1392Wed Mar 11 14:02:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
1393
1394 * sim-core.h, sim-core.c (sim_core_map_to_str): Delete.
1395
1396 * sim-core.c (sim_core_attach): Handle a generic number of maps -
1397 up to nr_maps, not just access_* maps.
1398
1399 * sim-profile.h (struct PROFILE_DATA): Track nr_maps different
1400 maps.
1401
1402 * sim-profile.c (profile_print_core): Make map unsigned. Iterate
1403 over nr_maps not sim_core_nr_maps.
1404
1405 * sim-events.h, sim-events.c (sim_events_watch_core): Change
1406 core_map argument to unsigned.
1407 (struct _sim_core): Ditto for struct member core_map.
1408
1409 * sim-core.h (nr_sim_core_maps, sim_core_*_map): Delete
1410
1411 * sim-basics.h (access_io, access_*_io): Define.
1412 (map_read, map_write, map_exec, map_io): Define.
1413
1414 * sim-core.c, sim-core.h (sim_core_attach): Replace argument
1415 attach with more generic mapmask.
1416 (sim_core_{read,write}_*): Change map argument to unsigned.
1417
1418 * sim-core.c (sim_core_uninstall, sim_core_attach,
1419 sim_core_detach): Iterate over nr_maps instead of
1420 sim_core_nr_maps.
1421
1422 * sim-break.c (insert_breakpoint): Write breakpoints to exec_map
1423 instead of the write_map.
1424 (remove_breakpoint): Ditto.
1425
1426 * genmloop.sh (engine_resume_full): Replace sim_core_*_map
1427 with read_map, write_map, exec_map resp.
1428
1429 * cgen-mem.h (DECLARE_GETMEM, DECLARE_SETMEM, DECLARE_GETIMEM):
1430 Ditto.
1431
1432 * cgen-utils.c (sim_disassemble_insn): Ditto.
1433
1434 * sim-hrw.c (sim_write, sim_write): Ditto.
1435
1436 * sim-utils.h, sim-utils.c (access_to_str, map_to_str,
1437 transfer_to_str): New functions.
1438
1439Mon Mar 9 12:50:59 1998 Doug Evans <devans@seba.cygnus.com>
1440
1441 * sim-base.h (sim_state_base): New member environment.
1442 (STATE_ENVIRONMENT): New macro.
1443 * sim-config.c (current_environment): Delete.
1444 (sim_config_default): New function.
1445 (sim_config): Set STATE_ENVIRONMENT, not current_environment.
1446 * sim-config.h (current_environment,CURRENT_ENVIRONMENT): Delete.
1447 (sim_config_default): Add prototype.
1448 * sim-module.c (sim_pre_argv_init): Call sim_config_default.
1449 * sim-options.c (standard_option_handler, case OPTION_ENVIRONMENT):
1450 Set STATE_ENVIRONMENT, not current_environment.
1451
1452Mon Mar 9 11:59:03 1998 Jim Wilson <wilson@cygnus.com>
1453
1454 * sim-fpu.c (NR_GUARDS64): Change NR_PAD32 to NR_PAD64.
1455
1456Tue Mar 3 10:53:05 1998 Andrew Cagney <cagney@b1.cygnus.com>
1457
1458 * sim-types.h (SIGNED32, SIGNED64): Pacify GCC.
1459
1460 * sim-alu.h (ALU64_BEGIN): Make alu64_r unsigned.
1461
1462Mon Mar 2 10:20:06 1998 Doug Evans <devans@seba.cygnus.com>
1463
1464 * Make-common.in (TAGS): Make smarter.
1465 * Makefile.in (TAGS): Ditto.
1466
1467Fri Feb 27 19:09:57 1998 Doug Evans <devans@canuck.cygnus.com>
1468
1469 * sim-module.c (*): Fix typos in assertion tests.
1470
1471Sat Feb 28 13:54:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
1472
1473 * sim-module.c (sim_pre_argv_init): String passed to asprintf
1474 can't be constant.
1475
1476 * sim-options.c (sim_parse_args): Ditto.
1477 (sim_args_command): Return OK, instead of nothing, for an empty
1478 command.
1479
1480Fri Feb 27 13:29:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
1481
1482 * sim-profile.c (profile_info): Rename from profile_print. Drop
1483 misc and misc_cpu callback arguments. Use
1484 PROFILE_INFO_CPU_CALLBACK and STATE_PROFILE_INFO_CALLBACK instead.
1485 (profile_install): Install profile_info function.
1486
1487 * sim-profile.h (PROFILE_INFO_CPU_CALLBACK,
1488 STATE_PROFILE_INFO_CALLBACK): Define.
1489 (struct PROFILE_DATA): Add field info_cpu_callback.
1490 (profile_print): Delete function.
1491
1492 * sim-base.h (STATE_MODULES): Define. Replace individual
1493 STATE_*_LIST with single struct module_list.
1494
1495 * sim-module.h (MODULE_INFO_FN, MODULE_INFO_LIST): Declare.
1496 (struct module_list): Declare.
1497
1498 * sim-module.h, sim-module.c (sim_module_add_info_fn,
1499 sim_module_info): New functions.
1500 (sim_module_install): Clean up module data structures.
1501
1502 * sim-info.c (sim_info): New file. New function. Call
1503 sim_module_info.
1504
1505 * Make-common.in (sim-info.o): Define rule.
1506 (SIM_NEW_COMMON_OBJS): Add sim-info.o.
1507
1508
1509Fri Feb 27 18:26:16 1998 Doug Evans <devans@canuck.cygnus.com>
1510
1511 * sim-base.h (sim_cpu_base): New members name, options.
1512 (sim_cpu_lookup): Add prototype.
1513 * sim-module.c (sim_pre_argv_init): Provide default names for cpus.
1514 * sim-options.h (DECLARE_OPTION_HANDLER): New argument `cpu'.
1515 (sim_add_option_table): Update prototype.
1516 * sim-options.c (sim_add_option_table): New argument `cpu'.
1517 (standard_option_handler,standard_install): Update.
1518 (sim_parse_args): Handle cpu specific options.
1519 (print_help): New static function.
1520 (sim_print_help): Call it. Print cpu specific options.
1521 (find_match): New static function.
1522 (sim_args_command): Call it. Handle cpu specific options.
1523 * sim-utils.c (sim_cpu_lookup): New function.
1524 * sim-memopt.c (memory_option_handler): Update.
1525 (sim_memopt_install): Update.
1526 * sim-model.c (model_option_handler): Update.
1527 (model_install): Update.
1528 * sim-profile.c (profile_option_handler): Update.
1529 (profile_install): Update.
1530 * sim-trace.c (trace_option_handler): Update.
1531 (trace_install): Update.
1532 * sim-watch.c (watchpoint_option_handler): Update.
1533 (sim_watchpoint_install): Update.
1534 * cgen-scache.c (scache_option_handler): Update.
1535 (scache_install): Update.
1536
1537Wed Feb 25 11:00:26 1998 Doug Evans <devans@canuck.cygnus.com>
1538
1539 * Make-common.in (check): Run `make check' in testsuite dir.
1540
1541Wed Feb 25 14:40:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
1542
1543 * sim-trace.c (trace_result0): New function.
1544
1545 * sim-trace.h (TRACE_FP_*, TRACE_FPU_*): Rename TRACE_FPU_*
1546 macro's to TRACE_FP_*. TRACE_FPU_* should be defined and used when
1547 tracing sim_fpu variables.
1548 (TRACE_ALU_RESULT0): Define.
1549 (TRACE_FP_RESULT_WORD): Define.
1550 (TRACE_FP_INPUT_WORD1): Define.
1551
1552 * sim-fpu.c, sim-fpu.h (sim_fpu_max32, sim_fpu_max64, sim_fpu_one,
1553 sim_fpu_two): New constants.
1554 (sim_fpu_op1, sim_fpu_op2): New types.
1555 (struct _sim_fpu): Delete member result. Re-order other members.
1556 (sim_fpu_sign, sim_fpu_exp): New functions.
1557 (sim_fpu_max, sim_fpu_min): new functions.
1558 (EXPMAX32, EXPMAX64, NR_PAD32, NR_PAD64, NR_GUARDS32, NR_GUARDS64,
1559 NORMAL_EXPMAX32, NORMAL_EXPMAX64): Define.
1560
1561Tue Feb 24 22:45:39 1998 Doug Evans <devans@seba.cygnus.com>
1562
1563 * sim-profile.c (profile_print): Delete duplicate test of
1564 PROFILE_INSN_IDX.
1565 (profile_print_pc): Exit early if data collection not set up.
1566 (profile_print_core): Simplify by calling sim_core_map_to_str.
1567 * sim-core.h (sim_core_map_to_str): Declare.
1568 * sim-core.c (sim_core_map_to_str): Make non-static.
1569
1570 * genmloop.sh (engine_resume): Update insn_count before exiting.
1571 (engine_resume_full): Keep accurate core profile data.
1572
1573 * cgen-utils.c (sim_disassemble_insn): Don't use
1574 sim_core_read_aligned_N, it messes up profiling results.
1575
1576Mon Feb 23 20:45:57 1998 Mark Alexander <marka@cygnus.com>
1577
1578 * nltvals.def: Regenerate with MN10300 additions.
1579
1580Tue Feb 24 13:18:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
1581
1582 * sim-trace.h (TRACE_ALU_RESULT2): Define.
1583
1584 * sim-trace.h, sim-trace.c (trace_result_word2,
1585 trace_input_word4, trace_result_word4): New function.
1586
1587Mon Feb 23 13:08:35 1998 Doug Evans <devans@canuck.cygnus.com>
1588
1589 * cgen-sim.h (SEM_NEXT_PC): New arg `len'.
1590
1591 * sim-xcat.h: Delete.
1592 * cgen-mem.h: Delete inclusion of sim-xcat.h.
1593 * cgen-sim.h: Ditto.
1594 * sim-alu.h: Replace sim-xcat.h with symcat.h.
1595 * sim-n-bits.h: Ditto.
1596 * sim-n-core.h: Ditto.
1597 * sim-n-endian.h: Ditto.
1598
1599Mon Feb 23 13:19:58 1998 Michael Meissner <meissner@cygnus.com>
1600
1601 * syscall.c (cb_syscall): Handle short reads, and EOF.
1602
1603Tue Feb 24 00:29:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
1604
1605 * sim-trace.c (print_data): case trace_fmt_fp missing break. Use
1606 sim_fpu to safely print fp_word values.
1607 (print_data): Add trace_fmt_bool and trace_fmt_addr.
1608 (trace_result_bool1, trace_result_addr1): New functions.
1609 (trace_input_bool1, trace_input_addr1): New functions.
1610
1611 * sim-trace.h (TRACE_FPU_*): Define.
1612
1613Mon Feb 23 13:24:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
1614
1615 * sim-fpu.h (enum sim_fpu_class): Add sim_fpu_class_denorm.
1616 (sim_fpu_fpto, sim_fpu_tofp): Define.
1617
1618Fri Feb 20 18:08:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
1619
1620 * sim-fpu.c (sim_fpu_cmp): New function.
1621
1622Wed Feb 18 16:29:21 1998 Doug Evans <devans@canuck.cygnus.com>
1623
1624 * cgen-utils.h (sim_disassemble_insn): Use CGEN_INSN_BITSIZE
1625 instead of abuf->length.
1626 * sim-trace.c (trace_options): Have -t only trace a few useful things.
1627 (set_trace_option_mask): Renamed from set_trace_options.
1628 (set_trace_option): New function.
1629 (trace_option_handler): Update calls to set_trace_option{,_mask}.
1630 * sim-trace.h (TRACE_USEFUL_MASK): New macro.
1631
1632Wed Feb 18 12:42:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
1633
1634 * sim-basics.h: Declare struct _sim_fpu.
1635
1636Tue Feb 17 16:27:46 1998 Andrew Cagney <cagney@b1.cygnus.com>
1637
1638 * sim-trace.h (TRACE_ALU_INPUT*, TRACE_ALU_RESULT): Define.
1639 (trace_prefix, trace_input*, trace_result*): Declare.
1640 (trace_one_insn): Change declaration, assume trace_prefix called.
1641 (trace_generic): Like trace_one_insn.
1642 (TRACE_ALU_IDX, TRACE_*_IDX): Change #define's to enum.
1643 (TRACE_alu, TRACE_[a-z]*): Update.
1644
1645 * sim-trace.c (trace_prefix, trace_input*, trace_result*,
1646 trace_insn, save_data, trace_idx_to_str, print_data): New
1647 functions.
1648 (trace_one_insn): Rewrite.
1649 (trace_generic): New function.
1650
1651Tue Feb 17 17:27:30 1998 Doug Evans <devans@seba.cygnus.com>
1652
c906108c
SS
1653 * aclocal.m4 (USE_MAINTAINER_MODE): New variable.
1654
1655 * cgen-sim.h (SEMANTIC_CACHE_FN): Delete.
1656 (SEMANTIC_FN): Rewrite declaration.
1657 (DECODE): Update type of semantic_fast member.
1658 ({EX,SEM}_FN_NAME): Have only one version.
c906108c
SS
1659 * sim-base.h (sim_state_base): Delete conditionals surrounding
1660 member scache_size.
1661
1662Tue Feb 10 18:31:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
1663
1664 * sim-load.c (sim_load_file): Print LMA/VMA according to value
1665 used.
1666
1667Tue Feb 10 14:56:23 1998 Ian Carmichael <iancarm@cygnus.com>
1668
1669 * sim-core.c: Add missing prototypes for WITH_DEVICES.
1670 Add missing parameters to device_io calls.
1671 * sim-core.h: Add missing parameters to device_io calls.
1672
1673Mon Feb 9 14:48:37 1998 Doug Evans <devans@canuck.cygnus.com>
1674
1675 * cgen-sim.h (DECODE): Always use switch for `read' for now.
1676 (PAREXEC): Renamed from PARALLEL_EXEC. All uses updated.
1677 (SEMANTIC{,_CACHE}_FN): Fix return type.
c906108c
SS
1678 * genmloop.sh (@cpu@_engine_run): Delete `current_state'.
1679 (engine_resume): Likewise. Make `engine' volatile. Save copy
1680 of cpu pointer in volatile object. Initialize read switch if
1681 -parallel.
1682
1683Thu Feb 5 13:27:04 1998 Doug Evans <devans@seba.cygnus.com>
1684
1685 * cgen-sim.h (EX_FN_NAME): _exc_ -> _ex_.
1686 (SEM_INSN): New macro.
1687
1688Tue Feb 3 16:31:56 1998 Andrew Cagney <cagney@b1.cygnus.com>
1689
1690 * sim-run.c (sim_engine_run): Assume IMEM is 32 bit.
1691
1692Sun Feb 1 16:47:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
1693
1694 * configure: Regenerated to track ../common/aclocal.m4 changes.
1695
1696Sun Feb 1 16:16:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
1697
1698 * sim-types.h (fp_word): New type, define according to
1699 WITH_TARGET_FLOATING_POINT_BITSIZE.
1700
1701 * aclocal.m4 (default_sim_floating_point_bitsize): Add
1702 configuration of size of floating point registers.
1703
1704Sun Feb 1 14:02:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
1705
1706 * sim-profile.c (profile_print): Only print CPU <N> if other
1707 output is going to appear.
1708
1709Sat Jan 31 18:15:41 1998 Andrew Cagney <cagney@b1.cygnus.com>
1710
1711 * configure: Regenerated to track ../common/aclocal.m4 changes.
1712
1713Sat Jan 31 18:03:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
1714
1715 * sim-types.h (address_word): Typedef according to
1716 WITH_TARGET_ADDRESS_BITSIZE.
1717 (signed_cell, unsigned_cell, natural_cell): Ditto using
1718 WITH_TARGET_CELL_BITSIZE.
1719
1720 * sim-config.h (WITH_TARGET_ADDRESS_BITSIZE): Define.
1721 (WITH_TARGET_CELL_BITSIZE): Define.
1722 (WITH_HOST_WORD_BITSIZE): Delete.
1723
1724 * sim-config.c (print_sim_config): Update.
1725
1726 * aclocal.m4 (SIM_AC_OPTION_BITSIZE): Add support for
1727 configuration of address and OpenFirmware cell sizes.
1728
1729Fri Jan 30 09:36:33 1998 Andrew Cagney <cagney@b1.cygnus.com>
1730
1731 * sim-engine.h (sim_engine_run): Add argument nr_cpus.
1732 * sim-run.c (sim_engine_run): Update.
1733
1734 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use SET_CPU_CIA instead of
1735 CPU_CIA.
1736 * sim-run.c (sim_engine_run): Ditto.
1737
1738 * sim-resume.c (sim_resume): Obtain nr_cpus from sim_engine.
1739 (sim_resume): Pass nr_cpus to sim_engine_run.
1740
1741 * sim-engine.h (struct _sim_engine): Add member nr_cpus.
1742
1743 * sim-engine.c (sim_engine_init): Hardwire nr_cpus to
1744 MAX_NR_PROCESSORS.
1745 (sim_engine_nr_cpus) sim-engine.c, sim-engine.h: New function
1746
c906108c
SS
1747Fri Jan 23 14:20:54 1998 Doug Evans <devans@seba.cygnus.com>
1748
1749 * Make-common.in (stamp-tvals): New rule.
1750 (targ-vals.h,targ-map.c): Depend on it.
1751 (clean): Remove stamp-tvals.
1752
1753Tue Jan 20 21:35:13 1998 Michael Meissner <meissner@cygnus.com>
1754
1755 * sim-utils.c (sim_state_alloc): #if 0 variable that is only used
1756 in code also #if 0'ed.
1757
1758Mon Jan 19 22:26:29 1998 Doug Evans <devans@seba>
1759
1760 * configure: Regenerated to track ../common/aclocal.m4 changes.
1761 * aclocal.m4: Recognize --enable-maintainer-mode.
1762
1763Mon Jan 19 12:45:45 1998 Doug Evans <devans@seba.cygnus.com>
1764
1765 * cgen-scache.h: Deleted.
1766 * Make-common.in (cgen-run.o,cgen-scache.o): Delete cgen-scache.h dep.
c906108c
SS
1767 * cgen-scache.c: Only compile contents if WITH_SCACHE.
1768 (scache_init): Use runtime computed size of SCACHE.
1769 (scache_flush): Likewise.
1770 * cgen-mem.h (GETIMEMU[QHSD]I): Declare.
1771 ([GS]ETT{QI,UQI,HI,UHI,SI,USI,DI,UDI}): Declare.
1772 * cgen-sim.h: Scache support moved here.
1773 (PC): Redo definition.
1774 (ARGBUF,SCACHE,PARALLEL_EXEC): Provide forward decls.
1775 (DECODE): Add parallel execution support.
1776 Only include semantic label members if using switch.
1777 (SWITCH,CASE,BREAK,DEFAULT,ENDSWITCH): Portable computed goto support.
1778 (CGEN_CPU): Delete members exec_state, halt_sigrc, halt_jmp_buf.
1779 (IADDR,CIA,SEM_ARG,EX_FN_NAME,SEM_FN_NAME,RECORD_IADDR,SEM_ARGBUF,
1780 SEM_NEXT_PC,SEM_BRANCH_VIA_{CACHE,ADDR},SEM_NEW_PC_ADDR): Moved here
1781 from cgen-types.h.
1782 (engine_{stop,run,resume,halt,signal}): Delete decls.
1783 * cgen-types.h (CGEN_{XCAT3,CAT3}): Delete.
1784 (argbuf,scache): Delete forward decls.
1785 (STATE): Delete decl.
1786 * cgen-utils.c: Don't include decode.h, mem-ops.h, sem-ops.h.
1787 Include cgen-mem.h, cgen-ops.h.
1788 (engine_halt,engine_signal): Delete.
1789 ({ex,exc,sem,semc}_illegal): Delete.
1790 (sim_disassemble_insn): Result of extract fn is in bits.
1791 * genmloop.sh: Rewrite.
1792
1793 * cgen-trace.c (trace_insn): Set printed_result_p=0 if not tracing
1794 line numbers.
1795
1796 * sim-base.h (sim_state_base): Delete member `model'.
1797 (sim_cpu_base): Add member `model'.
1798 * sim-model.h (IMP_PROPERTIES): New type.
1799 (MACH): New members imp_props, models.
1800 (models): Delete decl.
1801 * sim-model.c (set_model): Update.
1802 * sim-profile.c (profile_print_model): Update.
1803
1804 * sim-utils.c (sim_state_alloc): Delete setting of cpu backlink here.
1805
1806Fri Jan 16 12:33:09 1998 Nick Clifton <nickc@cygnus.com>
1807
1808 * cgen-trace.c (trace_insn): Call CGEN_INSN_MNEMONIC() rather than
1809 CGEN_INSN_SYNTAX().
1810
1811Mon Dec 15 23:17:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
1812
1813 * configure: Regenerated to track ../common/aclocal.m4 changes.
1814 * config.in: Ditto.
1815
1816Mon Dec 15 23:16:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
1817
1818 * aclocal.m4 (AR): Check for sigaction.
1819
1820Thu Dec 4 09:21:05 1997 Doug Evans <devans@canuck.cygnus.com>
1821
1822 * Make-common.in (sim-core.o): Depend on $(sim_main_headers).
1823
1824 * sim-config.h (WITH_TREE_PROPERTIES): Define as 0.
1825 * sim-config.c (sim_config): Replace WITH_DEVICES with
1826 WITH_TREE_PROPERTIES.
1827
1828 * configure: Regenerated to track ../common/aclocal.m4 changes.
1829
1830Wed Dec 3 17:56:02 1997 Doug Evans <devans@canuck.cygnus.com>
1831
1832 * Make-common.in (SIM_ENVIRONMENT): New variable.
1833 (CONFIG_CFLAGS): Add it.
1834 * aclocal.m4 (SIM_AC_OPTION_ENVIRONMENT): Handle
1835 --enable-sim-environment option.
1836 * configure: Regenerated.
1837 * sim-config.h (environment support): Rewrite.
1838 * sim-config.c (current_environment): Define as enum, unconditionally.
1839 (current_alignment): Define unconditionally.
1840 (config_environment_to_a): Update.
1841 (config_alignment_to_a): Fix type of argument. Define unconditionally.
1842 (sim_config): Handle environment and alignment determination
1843 unconditionally. Delete sanity checks of current_environment,
1844 unnecessary.
1845 (print_sim_config): Update.
1846 * sim-options.c (STANDARD_OPTIONS enum): Add OPTION_ENVIRONMENT.
1847 (standard_options): Add --environment.
1848 (standard_option_handler): Likewise.
1849
1850Fri Nov 28 12:21:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
1851
1852 * sim-alu.h: Add notes on carry vs borrow for subtraction.
1853 (ALU{,8,16,32,64}ADD): Redefine ADD macro as add overflowing.
1854 (ALU{,8,16,32,64}ADDC): Define - add carrying.
1855 (ALU{,8,16,32,64}SUB): Redefine SUB macro as subtract overflowing.
1856 (ALU{,8,16,32,64}SUBB): Define - subtract borrowing.
1857 (ALU{,8,16,32,64}SUBC): Define - tract carrying.
1858 (ALU{,8,16,32,64}ADD_CA, ALU{,8,16,32,64}ADDC_C): Replace single
1859 argument ADD_CA macro with two argument ADDC_C - add carrying with
1860 carry in.
1861 (ALU{,8,16,32,64}SUB_CA, ALU{,8,16,32,64}SUBC_X): Replace single
1862 argument SUB_CA macro with two argument SUBC_X - subtract
1863 carrying, extended.
1864 (ALU{,8,16,32,64}SUBB_B): Define - subtract borrowing with
1865 borrow-in.
1866 (ALU{,8,16,32,64}NEGC, ALU{,8,16,32,64}NEGB): Define.
1867
1868Sun Nov 30 17:40:57 1997 Michael Meissner <meissner@cygnus.com>
1869
1870 * sim-io.c (sim_io_{syscalls,getstring}): Delete. No longer used.
1871 * sim-io.h (sim_io_syscalls): Delete.
1872
1873Fri Nov 28 20:10:09 1997 Michael Meissner <meissner@cygnus.com>
1874
1875 * syscall.c (cb_syscall): Add missing else, so write to stdout
1876 isn't doubled.
1877
1878 * sim-alu.h (ALU{,8,16,32,64}_SET_CARRY): Provide macros to import
1879 the carry bit from the CPU's psw.
1880
1881Fri Nov 28 11:15:05 1997 Doug Evans <devans@canuck.cygnus.com>
1882
1883 * gennltvals.sh: Redo syscall support.
1884 * nltvals.def: Regenerated.
1885
1886Wed Nov 26 16:49:38 1997 Michael Meissner <meissner@cygnus.com>
1887
1888 * syscall.c (cb_syscall): If writing to stdout or stderr, flush
1889 the stream immediately.
1890
1891Wed Nov 26 12:32:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
1892
1893 * sim-io.c (sim_io_getstring): Delete unused len2.
1894 (sim_io_syscalls): Ditto for sys_errno.
1895
1896Wed Nov 26 11:18:40 1997 Doug Evans <devans@canuck.cygnus.com>
1897
1898 * syscall.c (cb_syscall): Test CB_SYSCALL struct magic number.
1899
1900 * Make-common.in (run.o): Depend on remote-sim.h.
1901 (nrun.o,sim-hload.o,sim-hrw.o): Likewise.
1902 (sim-io.o,sim-reason.o,sim-resume.o): Likewise.
1903
1904Tue Nov 25 20:12:46 1997 Michael Meissner <meissner@cygnus.com>
1905
1906 * sim-io.c (sim_io_syscalls): Disable lseek.
1907
1908Tue Nov 25 00:12:38 1997 Doug Evans <devans@seba.cygnus.com>
1909
1910 * gennltvals.sh: Generate syscall values for d30v.
1911
1912 * gennltvals.sh: Use libgloss/syscall.h for sparc.
1913 * nltvals.def: Regenerate.
1914
1915 * callback.c (os_stat): Make 3rd arg a host struct stat ptr.
1916 (os_fstat): Likewise. Validate fd argument.
1917 (cb_host_to_target_stat): Delete big_p arg. If HS arg is NULL,
1918 just compute target stat struct length.
1919 * syscall.c: #include "libiberty.h", <sys/types.h>, <sys/stat.h>.
1920 (ENOSYS,ENAMETOOLONG): Provide definitions if missing.
1921 (get_string): Return host errno values so they can be properly
1922 translated later.
1923 (cb_syscall): Likewise.
1924 (cb_syscall, cases open,unlink): Use get_path instead of get_string.
1925 (cb_syscall, case read): Use read_stdin for file descriptor 0.
1926 (cb_syscall, case write): Use write_stderr for file descriptor 2.
1927 (cb_syscall): Add cases for lseek, unlink, stat, fstat, time.
1928 (get_path): New function.
1929
1930Mon Nov 24 18:56:07 1997 Michael Meissner <meissner@cygnus.com>
1931
1932 * sim-io.c (sim_io_syscalls): New function to provide system call
1933 emulation. Provide exit, open, close, read, write, lseek, and
1934 unlink.
1935 (sim_io_getstring): New function to return a string from a
1936 simulated memory location.
1937
1938 * sim-io.h (sim_io_syscalls): Add declaration.
1939
1940Mon Nov 24 12:09:59 1997 Doug Evans <devans@seba.cygnus.com>
1941
1942 * sim-core.c (sim_core_signal): Fix spelling error in message.
1943
1944 * sim-hrw.c (sim_read): Use read map, not write map.
1945
1946 * Make-common.in (all): Add .gdbinit.
1947 * gdbinit.in: Add dump command.
1948
1949 * sim-model.c (model_options): Use '\0' for `shortopt'.
1950
1951 * sim-trace.c (trace_option_handler): Set state trace file
1952 for --trace-file in addition to cpu's values.
1953 (trace_vprintf): If cpu == NULL, try state's trace file.
1954 (trace_options): Reorganize table, reword some descriptions.
1955
1956Sun Nov 23 10:57:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
1957
1958 * sim-fpu.c (sim_fpu_abs, sim_fpu_neg, sim_fpu_inv), sim-fpu.h:
1959 New functions.
1960
1961Sat Nov 22 19:16:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
1962
1963 * sim-reason.c (sim_stop_reason): For sim_signalled, return the
1964 signal untranslated, document problem with this.
1965
1966 * nrun.c (main): Check for a prog name of `*step'. If present,
1967 step the simulator instead of allowing it to run free.
1968
1969 * sim-signal.c (SIGQUIT): Define on _MSC_VER hosts.
1970
1971 * Make-common.in (sim_main_headers): Add sim-signal.h.
1972
1973Fri Nov 21 09:32:32 1997 Andrew Cagney <cagney@b1.cygnus.com>
1974
1975 * sim-signal.c (sim_signal_to_host): Return 0 for SIM_SIGNONE.
1976
1977Thu Nov 20 20:35:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
1978
1979 * sim-signal.h: Start simulator signals at 64 so that host signal
1980 numbers can be detected and reported.
1981
1982 * sim-signal.h (SIM_SIGFPE), sim-signal.h: Add signal.
1983
1984Wed Nov 19 12:02:41 1997 Doug Evans <devans@seba.cygnus.com>
1985
1986 * callback.c (cb_host_to_target_stat): Fix return values.
1987
1988 * cgen-sim.h (enum_signal_type): Delete.
1989 (engine_signal): Update prototype.
1990 * cgen-utils.c: Don't include <signal.h>.
1991 (sim_signal_to_host): Delete, lives in sim-signal.c now.
1992 (engine_signal): Update.
1993
1994 * sim-utils.c (sim_state_alloc): Call SIM_STATE_ALLOC if defined.
1995 (sim_state_free): Call SIM_STATE_FREE if defined.
1996
1997 * sim-module.c (sim_module_install): Don't leave any modules
1998 installed if one fails to install.
1999
2000Wed Nov 19 13:25:48 1997 Michael Meissner <meissner@cygnus.com>
2001
2002 * sim-options.c: Don't include ../libiberty/alloca-conf.h any
2003 more, since alloca is not used in this file.
2004
2005 * sim-alu.h (ALU{32,64}_*): Rewrite 32 and 64 bit ALU support to
2006 correctly set the carry and overflow bits for those types.
2007 (ALU{8,16,32,64}_{ADD,SUB}_CA): Take VAL argument to add along
2008 with carry, so carry is correct after doing both adds.
2009 (ALU*): Space out '\' to make it easier to read.
2010
2011Tue Nov 18 15:53:45 1997 Doug Evans <devans@canuck.cygnus.com>
2012
2013 * sim-core.c (sim_core_signal): Use sim_stopped instead of
2014 sim_signalled.
2015
2016 * sim-signal.c, sim-signal.h: New files.
2017 * Make-common.in (sim-signal.o): Add rule for.
2018 (SIM_NEW_COMMON_OBJS): Add sim-signal.o.
2019 * sim-abort.c: Don't include <signal.h>.
2020 * sim-basics.h: #include "sim-signal.h".
2021 * sim-break.c: Don't include <signal.h>.
2022 (sim_handle_breakpoint): Replace SIGTRAP with SIM_SIGTRAP.
2023 * sim-core.c: Don't include <signal.h>.
2024 (SIGBUS): Delete definition.
2025 (sim_core_signal): Replace SIGSEGV,SIGBUS with SIM_SIGSEGV,SIM_SIGBUS.
2026 * sim-engine.c: Don't include <signal.h>.
2027 (sim_engine_abort): Replace SIGABRT with SIM_SIGABRT.
2028 * sim-reason.c (sim_stop_reason): Call sim_signal_to_host.
2029 * sim-resume.c: Don't include <signal.h>.
2030 (SIGTRAP): Delete definition.
2031 (has_stepped): Replace SIGTRAP with SIM_SIGTRAP.
2032 * sim-stop.c: Don't include <signal.h>.
2033 (control_c_simulation): Replace SIGINT with SIM_SIGINT.
2034 * sim-watch.c: Don't include <signal.h>.
2035 (handle_watchpoint): Replace SIGINT with SIM_SIGINT.
2036
2037 * Make-common.in (SIM_NEW_COMMON_OBJS): New variable.
2038
2039 * sim-base.h (CIA_ADDR): Provide default definition.
2040 * sim-core.c (sim_core_signal): Use CIA_ADDR to fetch value.
2041 * sim-break.c (sim_handle_breakpoint): Likewise.
2042
2043Mon Nov 17 14:15:31 1997 Doug Evans <devans@seba.cygnus.com>
2044
2045 * Make-common.in (srccom): New variable.
2046
2047 * Make-common.in (DEP, COMMON_DEP_CFLAGS): Define.
2048 (LIB_OBJS): Add syscall.o.
2049 (gentmap): Pass $(NL_TARGET) to $(CC).
2050 (syscall.o): Add rule for.
2051 (sim_main_headers): Add $(SIM_EXTRA_DEPS).
2052 (sim-bits.o): Depend on $(sim-n-bits_h).
2053 (sim-load.o): Depend on callback.h.
2054
2055 * Make-common.in (cgen-*.o): Update dependencies, mem-ops.h renamed to
2056 cgen-mem.h, sem-ops.h renamed to cgen-ops.h.
2057 * cgen-mem.h, cgen-ops.h: New files.
2058
2059 * aclocal.m4 (--enable-sim-scache): Pass -DWITH_SCACHE=0 for "=no".
2060
2061 * Makefile.in (nltvals.def): Depend on gennltvals.sh.
2062 Rewrite build rule.
2063 * callback.c: #include string.h or strings.h.
2064 #include sys/types.h and sys/stat.h.
2065 (cb_init_syscall_map,cb_init_errno_map,cb_init_open_map): Declare.
2066 (os_get_errno,os_open): Update.
2067 (os_stat,os_fstat): New functions.
2068 (os_init): Initialize syscall_map, errno_map, open_map.
2069 (default_callback): Add entries for os_stat, os_fstat, syscall_map,
2070 errno_map, open_map, signal_map, stat_map.
2071 (cb_read_target_syscall_maps): New function.
2072 (cb_target_to_host_syscall): New function.
2073 (cb_host_to_target_errno): Renamed from host_to_target_errno.
2074 (cb_target_to_host_open): Renamed from target_to_host_open.
2075 (store): New function.
2076 (cb_host_to_target_stat): New function.
2077 * syscall.c: New file.
2078 * gentmap.c (sys_tdefs): New global.
2079 (gen_targ_vals_h): Output target syscall numbers.
2080 (gen_targ_map_c): Update. Output target syscall translation map.
2081 * gentvals.sh: New first argument `target'. Preface table with
2082 #ifdef NL_TARGET_$target if non-null target passed.
2083 * gennltvals.sh: New file.
2084 * nltvals.def: Regenerated.
2085
2086Fri Nov 14 11:33:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
2087
2088 * sim-n-core.h (sim_core_read_unaligned_N): Return static
2089 sim_core_dummy_M.
2090 (sim_core_dummy_M): Declare.
2091
2092Wed Nov 12 18:16:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
2093
2094 * sim-core.c (sim_core_signal): Print the address of the
2095 instruction.
2096
2097Thu Nov 13 11:49:41 1997 Doug Evans <devans@seba.cygnus.com>
2098
2099 * sim-base.h (sim_state_base): Move `magic' to end of struct.
2100
2101 * sim-base.h (sim_state_base): Add member trace_data.
2102 (STATE_TRACE_DATA): New macro.
2103 * sim-trace.h (TRACE_DEBUG_IDX,TRACE_debug): New macros.
2104 ({WITH_,}TRACE_DEBUG_P): New macros.
2105 (STATE_TRACE_FLAGS,STRACE_P,STRACE_DEBUG_P): New macros.
2106 (_sim_cpu): Delete forward reference.
2107 (debug_printf): Update.
2108 * sim-trace.c (OPTION_TRACE_DEBUG): Define.
2109 (trace_options): Add --trace-debug.
2110 (set_trace_options): Handle it.
2111 (trace_option_handler): Likewise.
2112 (trace_install): Init state trace_data struct.
2113 (trace_uninstall): Close state trace file.
2114 * sim-events.c (ETRACE): Only print source file and line number if
2115 --trace-debug.
2116 * sim-n-core.h (sim_core_trace_M): Likewise.
2117
2118 * sim-core.c (sim_core_signal): Add missing "\n" in message.
2119
21201997-11-13 Felix Lee <flee@cygnus.com>
2121
2122 * sim-n-core.h (sim_core_read_unaligned_N): illegal empty
2123 initializer.
2124 * sim-types.h (unsigned128,signed128): fix typo for MSVC.
2125
2126Wed Nov 12 12:18:08 1997 Doug Evans <devans@canuck.cygnus.com>
2127
2128 * aclocal.m4 (SIM_AC_OPTION_SCACHE): Fix typo.
2129
2130 * Make-common.in (BUILT_SRC_FROM_COMMON): Remove files no longer
2131 built this way.
2132 (sim-config.o): Remove non-existent $(sim-nconfig_h) dependency.
2133 (clean): Don't delete $(BUILT_SRC_FROM_COMMON) if building in
2134 source tree.
2135
2136Tue Nov 11 13:28:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
2137
2138 * sim-events.c (sim_events_process): Re-compute the time -
2139 update_time_from_event - as each event is processed. Reverses
2140 previous change.
2141
2142Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
2143
2144 * callback.c (os_poll_quit): Replace _WIN32 with _MSC_VER.
2145
2146Fri Nov 7 00:37:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
2147
2148 * sim-events.c (sim_events_process): Delete redundant call to
2149 update_time_from_event.
2150 (sim_events_slip): Always decrement time_from_event.
2151 (sim_events_tick, sim_events_deschedule, update_time_from_event):
2152 Delete assertion that time_from_event >=0 when work in queue, no
2153 longer applicable.
2154
2155Thu Nov 6 12:06:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
2156
2157 * sim-options.c (STANDARD_OPTIONS): Change OPTION_* to an enum.
2158 (standard_option_handler): Update.
2159
2160 * sim-options.h: Clarify documentation.
2161 (OPTION_LONG_ONLY_P): Delete definition.
2162 (OPTION_VALID_P): Define.
2163
2164 * sim-options.c (sim_print_help): Allow short only options.
2165 (sim_parse_args): Ditto.
2166 (sim_args_command): Skip short only options.
2167 (sim_parse_args): Allocate space for NUM_OPTS not just 256. Make
2168 separate entries for short and long options in the HANDLERS and
2169 ORIG_VAL tables.
2170 (sim_parse_args): Disable argument permutation.
2171
2172Wed Nov 5 13:40:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
2173
2174 * sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N):
2175 Add argument M, size of data type.
2176 (sim_core_read_misaligned_3, sim_core_write_misaligned_3):
2177 Declare, ditto for 5, 6 & 7 byte transfers.
2178 (sim_core_write_unaligned_1, sim_core_write_unaligned_1): Define
2179 as aligned variant.
2180
2181 * sim-n-core.h (sim_core_trace_M): Rename from
2182 sim_core_trace_N. Add nr_bytes argument. Replace transfer argument
2183 with transfer type. Print transfer direction. Handle 1 and 2 byte
2184 transfers.
2185 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Trace
2186 unaligned accesses.
2187 (unsigned_M, T2H_M, H2T_M): Rename from unsigned_N, T2H_N, H2T_N.
2188 Update all functions.
2189
2190 * sim-core.c: Generate functions starting with 16 not 1.
2191 (sim_core_read_unaligned_3): Generate. Ditto for 3 byte write and
2192 all 5, 6 & 7 byte transfers.
2193
2194 * sim-n-core.h (sim_core_read_misaligned_N,
2195 sim_core_write_misaligned_N): Implement.
2196
2197Mon Nov 3 15:03:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
2198
2199 * sim-endian.h (U16_8): Implement
2200
2201 * sim-endian.c (sim_endian_split_16, sim_endian_join_16): New functions
2202
2203 * sim-endian.h (VL8_16, VH8_16): Implement.
2204
2205 * sim-memopt.c (memory_option_handler): Typecast 64bit value to
2206 long in printf.
2207 (memory_option_handler): Only zalloc modulo bytes when non-zero.
2208 (memory_option_handler): Skip comma in alias address list
2209
2210Fri Oct 31 13:03:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
2211
2212 * sim-memopt.c (do_memopt_add, do_memopt_delete): Add level and
2213 space params.
2214 (parse_size, parse_addr): New functions
2215 (memory_option_handler, memory_options): Parse address & size
2216 using new functions. Pass level, space, modulo to do_memopt_add &
2217 do_memopt_del.
2218
2219 * sim-memopt.h (struct _sim_memopt): Add level & space fields.
2220
2221 * sim-core.h (sim_core_arrach, sim_core_detach): Replace
2222 `attach_type attach' argument with `unsigned level' argument.
2223 Document.
2224
2225 * sim-core.c (new_sim_core_mapping, sim_core_map_attach,
2226 sim_core_attach): Replace argument attach with level. Update
2227 verification of arguments.
2228 (sim_core_map_detach, sim_core_detach): Replace argument attach
2229 with level.
2230
2231 * sim-basics.h (enum _attach_type): Delete.
2232
2233Thu Oct 30 13:45:00 1997 Doug Evans <devans@seba.cygnus.com>
2234
2235 * sim-core.h (sim_core_write_8): Define.
2236
2237Tue Oct 28 12:29:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
2238
2239 * sim-bits.h: Document ROTn macro.
2240
2241 * sim-endian.h (H2T): Handle 16 byte variables.
2242
2243 * sim-n-core.h (sim_core_read_unaligned_N): Return a dummy when an
2244 error.
2245
2246 * sim-core.c: Do not generate sim_core_*_word.
2247
2248 * sim-n-core.h (sim_core_trace_N): Add line_nr argument.
2249 (sim_core_write_aligned_N, sim_core_read_aligned_N): Update.
2250
2251 * sim-core.h (sim_core_read_unaligned_word,
2252 sim_core_read_aligned_word, sim_core_read_word,
2253 sim_core_write_unaligned_word, sim_core_write_aligned_word,
2254 sim_core_write_word): Change to macros that map onto sim_core_*_N.
2255
2256Mon Oct 27 11:25:10 1997 Doug Evans <devans@canuck.cygnus.com>
2257
2258 * sim-n-endian.h: Add TAGS entrys for 16 byte versions.
2259
2260 * sim-endian.h: Disable 16 byte support.
2261
2262Mon Oct 27 12:00:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
2263
2264 * sim-endian.c (_SWAP_16): Define. Generate 126 bit swap code.
2265
2266 * sim-n-core.h (sim_core_trace_N): New function.
2267 (sim_core_read_aligned_N, sim_core_write_aligned_N): Use,
2268 (sim_core_read_unaligned_N): Do not retyrn bogus value wden error.
2269
2270 * sim-endian.h: Add 128 bit variant.
2271
2272 * sim-core.h, sim-core.c: Add 128 bit variant.
2273
2274 * sim-types.h: Add signed128 and unsigned128 types using a struct.
2275
2276Fri Oct 24 11:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
2277
2278 * sim-events.c (sim_events_process): Clear events->work_pending.
2279 (sim_events_tickn, sim_events_tick): Accumulate, instead of
2280 setting, nr_ticks_to_process.
2281 (sim_events_preprocess): Allow nr_ticks_to_process to be non-zero
2282 when the event queue isn't next.
2283
2284 * sim-events.h, sim-events.c (sim_events_slip): New function.
2285
2286Wed Oct 22 14:18:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
2287
2288 * sim-hload.c (sim_load): Pass lma_p==0 and do_load=sim_load.
2289
2290 * sim-utils.h, sim-load.c (sim_load_file): Add lma_p and do_load
2291 arguments.
2292
2293Tue Oct 21 18:37:57 1997 Doug Evans <devans@canuck.cygnus.com>
2294
2295 * nrun.c (main): Remove useless test of name != NULL.
2296 Exit if bfd_openr fails. Call bfd_check_format after bfd_openr.
2297
2298Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
2299
2300 * sim-fpu.c (EXPMAX): Type is unsigned.
2301 (MIN_INT, MAX_INT): Type is signed64.
2302 (i2fpu): Type of val is signed64.
2303
2304Tue Oct 21 10:42:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
2305
2306 * sim-profile.h (PROFILE_PC_BUCKET_SIZE): Treat a shift of zero as
2307 a bucket size of zero.
2308
2309 * sim-profile.c (OPTION_PROFILE_PC_GRANULARITY,
2310 OPTION_PROFILE_PC): Define.
2311 (profile_option_handler): Add support for --profile-pc and
2312 --profile-pc-granularity options.
2313 (profile_pc_init): When possible, compute nr buckets from bucket
2314 size.
2315
2316 * sim-profile.c (profile_pc_init): Align the profile-pc end
2317 address with the profile-pc bucket size.
2318
2319 * sim-profile.h (PROFILE_PC_NR_BUCKETS): Rename PROFILE_PC_SIZE to
2320 something less ambiguous.
2321 (PROFILE_PC_BUCKET_SIZE): Ditto for PROFILE_PC_SAMPLE_SIZE.
2322
2323 * sim-profile.c (profile_pc_cleanup): New function. Move
2324 profile_pc_uninstall code to here.
2325 (profile_pc_uninstall): Call.
2326 (profile_pc_init): Call.
2327
2328Mon Oct 20 17:23:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
2329
2330 * sim-profile.c (profile_print_pc): Dump pc profile to dmon.out
2331 file using BSD gprof format.
2332
2333 * sim-bits.h (LSBIT, MSBIT, BIT): Force result to type
2334 unsigned_word.
2335 (LSBIT8, LSBIT16, LSBIT32, LSBIT64, MSBIT8, MSBIT16, MSBIT32,
2336 MSBIT64): Force result to unsignedN.
2337
2338Thu Oct 16 11:38:56 1997 Andrew Cagney <cagney@b1.cygnus.com>
2339
2340 * sim-alu.h (ALU16_BEGIN, ALU32_BEGIN, ALU64_BEGIN): Drop opening
2341 brace from macro.
2342 (ALU8_BEGIN, ALU8_SET, ALU8_ADD, ALU8_SUB, ALU8_NEGATE): Define.
2343 (ALU16_ADD, ALU16_SUB, ALU16_NEGATE): Simplify arrithmetic.
2344 (ALU32_ADD, ALU32_SUB, ALU32_NEGATE): Simplify arrithmetic.
2345 (ALU64_ADD, ALU64_SUB, ALU64_NEGATE): Simplify arrithmetic.
2346
2347Wed Oct 15 09:24:19 1997 Andrew Cagney <cagney@b1.cygnus.com>
2348
2349 * sim-core.h (struct _sim_core_mapping): Change free_buffer to
2350 type void*.
2351
2352 * sim-core.c (sim_core_uninstall, new_sim_core_mapping,
2353 sim_core_map_attach, sim_core_map_detach): Change free_buffer to
2354 type void*.
2355 (sim_core_attach): Rename buffer_freed to free_buffer, type
2356 void*. Ensure that allocated buffer is alligned according to
2357 region's address.
2358
2359Mon Oct 13 11:34:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
2360
2361 * sim-alu.h (ALU64_HAD_OVERFLOW): Define.
2362 (ALU64_SUB): Define.
2363
2364 * Make-common.in (all): Build SIM_EXTRA_ALL first.
2365 (.gdbinit): Remove dependencies, generate once per build.
2366
2367Tue Oct 14 19:20:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
2368
2369 * sim-n-core.h (sim_core_read_aligned_N,
2370 sim_core_write_aligned_N): Make xaddr param type address_word not
2371 unsigned_word.
2372
2373Fri Oct 3 09:49:18 1997 Andrew Cagney <cagney@b1.cygnus.com>
2374
2375 * sim-fpu.h, sim-fpu.c: Rewrite. Change sim_fpu object to an
2376 unpacked floating point struct. Pass sim_fpu object by reference.
2377 Add preliminary support for rounding modes.
2378
2379Fri Oct 3 09:28:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
2380
2381 * configure: Regenerated to track ../common/aclocal.m4 changes.
2382
2383Thu Oct 2 19:43:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
2384
2385 * aclocal.m4 (sim-bitsize): Fix typo, WITH_TARGET_WORD_BITSIZE not
2386 WITH_TARGET_BITSIZE.
2387
2388Thu Sep 25 23:20:20 1997 Felix Lee <flee@yin.cygnus.com>
2389
2390 * sim-profile.c (profile_print_core): label needs empty statement.
2391
2392Thu Sep 25 11:20:47 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
2393
2394 * sim-break.c (sim_set_breakpoint sim_clear_breakpoint): Use ZALLOC
2395 and zfree instead of xmalloc and free. Prevents warnings.
2396
2397Wed Sep 24 17:38:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
2398
2399 * configure: Regenerated to track ../common/aclocal.m4 changes.
2400
2401Wed Sep 24 17:23:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
2402
2403 * Make-common.in (SIM_BITSIZE): Assign from configured value.
2404 (CONFIG_CFLAGS): Add SIM_BITSIZE.
2405
2406 * aclocal.m4 (--enable-sim-bitsize): Developer option for
2407 controling the bitsize/msb of the target.
2408
2409Wed Sep 24 17:41:40 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
2410
2411 * Make-common.in: New files sim-break.c, sim-break.h.
2412 * sim-base.h: Add point to breakpoint list to sim_state_base.
2413 * sim-break.c sim-break.h: New modules that implement intrinsic
2414 breakpoint support.
2415 * sim-module.c: Add breakpoint module.
2416
2417Tue Sep 23 00:26:39 1997 Felix Lee <flee@yin.cygnus.com>
2418
2419 * sim-events.c (SIM_EVENTS_POLL_RATE): poll more often than once
2420 an hour.
2421 * sim-n-core.h (WITH_XOR_ENDIAN): MSVC barfs on
2422 if (0) { 1 % 0; }
2423 * sim-core.c (sim_core_xor_write_buffer): WITH_XOR_ENDIAN + 1.
2424 (SIGBUS) define for Windows.
2425 * sim-trace.c (trace_printf,debug_printf): added ALMOST_STDC.
2426 * sim-resume.c: define SIGTRAP for windows.
2427 * sim-xcat.h: use token pasting if ALMOST_STDC.
2428
2429Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
2430
2431 * Make-common.in (SIM_SCACHE, SIM_DEFAULT_MODEL): Assign
2432 configured values.
2433 (CONFIG_CFLAGS): Add same.
2434
2435Mon Sep 22 17:20:27 1997 Felix Lee <flee@cygnus.com>
2436
2437 * sim-types.h (SIGNED64): ##i64 when _MSC_VER, not _WIN32.
2438 (SIGNED32): use ##i32.
2439
2440Tue Sep 23 11:04:38 1997 Andrew Cagney <cagney@b1.cygnus.com>
2441
2442 * configure: Regenerated to track ../common/aclocal.m4 changes.
2443
2444Tue Sep 23 10:07:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
2445
2446 * aclocal.m4 (sim-endian): Simplify logic determining [default]
2447 endian of target.
2448
2449 * Make-common.in (SIM_WARNINGS, SIM_ALIGNMENT, SIM_ENDIAN,
2450 SIM_HOSTENDIAN, SIM_RESERVED_BITS, SIM_ASSERT, SIM_FLOAT,
2451 SIM_HARDWARE, SIM_INLINE, SIM_PACKAGES, SIM_REGPARM, SIM_SMP,
2452 SIM_STDCALL, SIM_XOR_ENDIAN): Assign configured values.
2453 (CONFIG_CFLAGS): Add same.
2454
2455 * aclocal.m4: Perform AC_SUBST on optional options.
2456
2457Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
2458
2459 * sim-config.h (WITH_DEFAULT_ALIGNMENT): Don't hardwire any alignment.
2460
2461 * sim-options.c (standard_option_handler): Typo in warning message.
2462
2463 * sim-base.h (STATE_MODEL): Make conditional on SIM_HAVE_MODEL.
2464
2465 * sim-profile.c (profile_print_insn): Check 0 .. MAX_INSN for any
2466 insn count. Make count conditional on there being a valid
2467 INSN_NAME.
2468 (profile_pc_init): Make default PC profile frequency an arbitrary
2469 256.
2470
2471 * sim-base.h: Ditto.
2472
2473 * sim-profile.h (WITH_PROFILE_MODEL_P): Only enable modeling when
2474 SIM_HAVE_MODEL.
2475
2476 * sim-model.h (struct MACH): Depreciate, to be replaced by bfd
2477 archure struct.
2478
2479Mon Sep 22 11:46:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
2480
2481 * configure: Regenerated to track ../common/aclocal.m4 changes.
2482
2483Mon Sep 22 11:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
2484
2485 * aclocal.m4 (sim_alignment): Simplify logic for selecting the
2486 configured alignment.
2487
2488Fri Sep 19 17:45:25 1997 Andrew Cagney <cagney@b1.cygnus.com>
2489
2490 * configure: Regenerated to track ../common/aclocal.m4 changes.
2491
2492Fri Sep 19 17:26:14 1997 Andrew Cagney <cagney@b1.cygnus.com>
2493
2494 * sim-config.c (sim_config): Check for default alignment.
2495
2496 * sim-options.c (standard_option_handler): Add alignment option.
2497
2498 * aclocal.m4 (sim_alignment): Allow configuration of hardwired and
2499 default alignment requirements on memory accesses.
2500
2501Fri Sep 19 11:51:35 1997 Jeffrey A Law (law@cygnus.com)
2502
2503 * sim-load.c (sim_load_file): Return failure if the executable
2504 had no loadable sections.
2505
2506Wed Sep 17 13:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
2507
2508 * sim-events.c (ETRACE): Use trace_printf not sim_io_printf for
2509 trace output.
2510
2511 * sim-core.c (sim_core_signal): When bad access halt simulator
2512 SIGSEGV / SIGBUS instead of aborting.
2513 (signal.h): Include.
2514
2515 * sim-watch.c (sim_watchpoint_install): Handler for watchpoint
2516 options was missing.
2517
2518 * sim-bits.h (MOVED): Define
2519
2520Wed Sep 17 10:33:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
2521
2522 * sim-alu.h (ALU32_HAD_OVERFLOW): Pacify GCC, Use MSBIT instead of
2523 BIT.
2524
2525 * sim-bits.h (LSBIT, MSBIT): Check for overflow of shift value.
2526
2527 * sim-bits.c: Add 8 bit versions of bit macros.
2528
2529 * sim-bits.h: Ditto.
2530
2531Tue Sep 16 16:15:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
2532
2533 * sim-bits.c (LSSEXT, MSSEXT): Replace SEXT.
2534 (LSINSERTED, MSINSERTED): Ditto for INSERTED.
2535
2536 * sim-n-bits.h (MSSEXTn, LSSEXTn): Replace SEXTn.
2537 (LSINSERTDn, MSINSERTEDN): Ditto for INSERTEDn.
2538
2539 * sim-bits.h (SEXT*): Define as MSEXT/LSEXT.
2540 (INSERTED*): Ditto for LSINSERTED/MSINSERTED.
2541
2542Mon Sep 15 17:36:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
2543
2544 * aclocal.m4 (SIM_AC_COMMON): Add optional config.h file argument.
2545 configure.in: Output to cconfig.h instead of config.h.
2546
2547 * configure: Regenerated to track ../common/aclocal.m4 changes.
2548
2549Mon Sep 15 15:39:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
2550
2551 * sim-utils.c (sim_analyze_program): Set STATE_ARCHITECTURE from
2552 BFD if known.
2553
2554Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
2555
2556 * callback.c (os_write): divert stdout and stderr to their
2557 respective hooks.
2558
2559Thu Sep 11 10:08:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
2560
2561 * sim-profile.c (profile_print_speed): Call
2562 sim_events_elapsed_time instead of PROFILE_EXEC_TIME for moment.
2563
2564 * sim-events.c (sim_events_elapsed_time): New function return nr
2565 host MS consumed by the simulator.
2566 (sim_watch_valid): Use.
2567
2568 * sim-module.c (modules): Install sim_events very very early.
2569
2570 * sim-profile.c (profile_print): Call profile_print_pc.
2571 (print_bar):
2572 (profile_pc_init): New function, set up processor for PC
2573 profiling.
2574 (profile_print_pc): New function, print a PC profile.
2575 (profile_pc_event): New function, sample PC.
2576
2577 * sim-profile.h (PROFILE_PC_COUNT, PROFILE_PC_START,
2578 PROFILE_PC_END, PROFILE_PC_SHIFT, PROFILE_PC_SAMPLE_SIZE): Add to
2579 profile struct.
2580
2581 * sim-options.c (sim_print_help): Pacify GCC.
2582
2583 * sim-n-core.h (sim_core_read_aligned_N,
2584 sim_core_write_aligned_N): Add un-conditional profile call.
2585 (sim_core_read_unaligned_N, sim_core_write_unaligned_N): Add
2586 profile call when aligned read/write isn't used.
2587
2588 * sim-base.h: Include sim-profile, sim-model after sim-core &
2589 sim-events allow sim-core to define useful values.
2590
2591 * sim-profile.c (OPTION_PROFILE_CORE): Define.
2592 (profile_option_handler, profile_options): Add support for
2593 --profile-core option.
2594 (print_bar): Include when core profiling.
2595 (profile_print_core): New function, print core profile.
2596
2597 * sim-config.c (print_sim_config): Print profile status.
2598
2599 * sim-profile.h (PROFILE_NEXT_IDX, PROFILE_core,
2600 WITH_PROFILE_PC_P): Define.
2601 (PROFILE_CORE_COUNT): Count each core-map/size separatly.
2602 (PROFILE_COUNT_CORE): Define.
2603
2604Thu Sep 11 08:44:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
2605
2606 * sim-watch.c (handle_watchpoint): Pass a char** index into the
2607 interrupt_names array as the data.
2608 (sim-watch.h): Document.
2609
2610Wed Sep 10 16:15:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
2611
2612 * sim-options.c (sim_print_help): When the doc string is to long
2613 word wrap it.
2614
2615 * sim-watch.c (sim_watchpoint_install): Use option.doc_name so
2616 that only the first few the watch options are listed. Generate
2617 meanginful usage messages.
2618
2619 * sim-options.h (struct OPTION): Clarify use of doc_name field
2620
2621Wed Sep 10 13:23:24 1997 Andrew Cagney <cagney@b1.cygnus.com>
2622
2623 * sim-options.c (OPTION_ARCHITECTURE_INFO): New option.
2624 (standard_option_handler): Handle --architecture-info.
2625
2626Tue Sep 9 21:46:46 1997 Felix Lee <flee@cygnus.com>
2627
2628 * sim-core.h (sim_cpu_core): [WITH_XOR_ENDIAN + 1], to avoid
2629 illegal zero-sized array.
2630 * sim-core.c (sim_core_xor_read_buffer): same.
2631
2632Tue Sep 9 11:20:35 1997 Doug Evans <dje@canuck.cygnus.com>
2633
2634 * nltvals.def: Regenerate.
2635
2636Tue Sep 9 02:10:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
2637
2638 * sim-fpu.c (DP_FRACHIGH2): Define LL using SIGNED64.
2639
2640Mon Sep 8 12:22:20 1997 Andrew Cagney <cagney@b1.cygnus.com>
2641
2642 * sim-bits.c (MASKED): Delete.
2643 (EXTRACTED): Delete.
2644 (LSEXTRACTED, MSEXTRACTED): New functions.
2645
2646 * sim-n-bits.h (MASKEDn): Delete, define as MSMASKED or LSMASKED.
2647 (MSMASKEDn, LSMASKEDn): Add last argument.
2648 (MSMASK*): Ditto.
2649
2650 * sim-bits.h (EXTEND8, EXTEND16): Define.
2651 (EXTRACTED64): Define as 64 bit extract, not 32 bit.
2652
2653 * sim-run.c (sim_engine_run): Use CPU_CIA macro.
2654
2655 * sim-engine.h (SIM_ENGINE_HALT_HOOK): Use CPU_CIA to get at
2656 current instruction address.
2657
2658 * sim-inline.h (*_ENGINE): Define.
2659
2660Fri Sep 5 08:39:02 1997 Andrew Cagney <cagney@b1.cygnus.com>
2661
2662 * sim-core.c (sim_core_attach): Fix checks of modulo/mask.
2663
2664 * sim-watch.c (delete_watchpoint): Delete by ident and type.
2665 (watch_option_handler): Call delete_watchpoint with ident or type.
2666 (sim_watchpoint_install): Create interrupt specific watchpoint
2667 commands on the fly.
2668 (do_watchpoint_create): New function, create a watch point using
2669 type/int-nr info encoded in the option nr.
2670 (do_watchpoint_info): New function. List active watchpoints.
2671
2672 * sim-watch.h: Change data structure to a list.
2673
2674 * sim-memopt.c (memory_option_handler): Require explicit "all"
2675 before deleting all memory regions.
2676
2677 * sim-utils.c (sim_do_commandf): New function, printf version of
2678 sim_do_command.
2679
2680 * sim-basics.h (asprintf, vasprintf): Hack, define for CYGWIN32.
2681
2682 * sim-alu.h (ALU64_ADD): Use explicit MSEXTRACTED64, do not assume
2683 bit endianness.
2684 (SIGNED64, UNSIGNED64): Delete.
2685 (ALU64_ADD): Don't rely on bit endianness.
2686 (ALU64_BEGIN): Define.
2687
2688 * sim-n-bits.h (MSEXTRACTEDn, LSEXTRACTED): New functions.
2689 (EXTRACTEDn): Delete, define as either LSEXTRACTED or MSEXTRACTED.
2690
2691 * sim-types.h (SIGNED64, UNSIGNED64): New macros, attach relevant
2692 suffix - u64, LL - to 64 bit constants.
2693
2694Thu Sep 4 09:27:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
2695
2696 * sim-config.c (sim_config): Add assert for SIM_MAGIC_NUMBER.
2697
2698 * sim-utils.h (NZALLOC): Define - zalloc * N.
2699
2700 * sim-hrw.c (sim_read, sim_write): New file. Provide generic
2701 implementation of read/write functions.
2702
2703 * Make-common.in (sim-hrw.o): New target.
2704
2705 * sim-base.h (STATE_MEMOPT_P): Delete, simulators _always_ add
2706 memory.
2707
2708 * sim-memopt.c (memory_option_handler): Implement memory-size
2709 command. Implement memory-alias command. Let memory-delete delete
2710 all memory regions.
2711 (add_memopt): New function. Add a memory region.
2712 (do_memopt_delete): New function. Delete a memory region.
2713
2714 * sim-utils.c (sim_elapsed_time_get): Never return zero.
2715
2716 * sim-core.c (sim_core_detach): New function.
2717 (sim_core_map_detach): New function. Perform the actual detach.
2718 (sim_core_init): Move initialization code from here.
2719 (sim_core_install): To here.
2720 (sim_core_uninstall): And here.
2721
2722 * sim-module.c: Add memopt module.
2723
2724 * sim-base.h (STATE_MEMOPT, STATE_MEMOPT_P): Add memopt to
2725 simulator base type.
2726
2727 * Make-common.in (sim_main_headers): Add sim-memopt.h
2728 (sim-memopt.o): New target.
2729
2730 * sim-core.c (sim_core_install): Add core_options to the option
2731 table.
2732
2733 * sim-watch.c (watch_options): Make --delete-watch a synonym for
2734 --watch-delete.
2735
2736 * sim-config.h (WITH_MODULO_MEMORY): Define as 0. Update
2737 comments.
2738
2739 * sim-core.h (struct _sim_core_mapping): Change nr_bytes to type
2740 address_word, add mask member.
2741
2742 * sim-core.h, sim-core.c (sim_core_attach): Make nr_bytes of type
2743 address_word, allow for 64bit targets in 32bit host. Add modulo
2744 argument.
2745 (sim_core_map_attach): Ditto.
2746 (new_sim_core_mapping): Ditto.
2747 (sim_core_translate): Mask address when modulo memory.
2748
2749Wed Sep 3 17:32:54 1997 Doug Evans <dje@seba.cygnus.com>
2750
2751 * sim-hload.c (sim_load): Add assert for SIM_MAGIC_NUMBER.
2752
2753 * gdbinit.in: New file.
2754 * aclocal.m4 (SIM_AC_OUTPUT): Build .gdbinit.
2755 * Make-common.in (distclean): Delete .gdbinit.
2756 (.gdbinit): Add rule for.
2757 * configure: Regenerated to track ../common/aclocal.m4 changes.
2758
2759 * Make-common.in (cgen-run.o): Add rule for.
2760
2761Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
2762
2763 * sim-resume.c (sim_resume): Suspend/resume the simulator.
2764
2765 * sim-events.c (sim_watch_valid): Compute total elapsed time from
2766 both resumed and previous elapsed time.
2767 (sim_events_init): Set initial_wallclock and current_wallclock to
2768 zero.
2769 (sim_events_install): Install sim_events_suspend and
2770 sim_events_resume.
2771 (sim_events_watch_clock): Allow for suspended simulator when
2772 computing the time of the clock event.
2773
2774 * sim-events.h (struct _sim_event): Add resume_wallclock, rename
2775 initial_wallclock to elapsed_wallclock, set both to zero.
2776 (sim_events_init, sim_events_uninstall): Delete prototypes.
2777
2778 * sim-module.h (MODULE_SUSPEND_FN, MODULE_RESUME_FN): Define types.
2779
2780 * sim-module.c(sim_module_resume, sim_module_suspend): New
2781 functions.
2782
2783Wed Sep 3 10:08:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
2784
2785 * sim-core.c (sim_core_map_attach): Clarify memory overlap error
2786 message.
2787
2788Tue Sep 2 14:57:06 1997 Doug Evans <dje@canuck.cygnus.com>
2789
2790 * Makefile.in (TAGS): Add support for "/* TAGS: foo */" marker.
2791 * Make-common.in (TAGS): Likewise.
2792 * sim-n-bits.h: Add TAGS comments for all functions.
2793 * sim-n-core.h: Likewise.
2794 * sim-n-endian.h: Likewise.
2795
2796Mon Sep 1 10:50:11 1997 Andrew Cagney <cagney@b1.cygnus.com>
2797
2798 * sim-utils.c (sim_state_alloc): Set CPU backlinks, callback and
2799 kind.
2800
2801 * sim-base.h (sim_state_alloc): Add callback and kind arguments.
2802
2803 * sim-base.h (INVALID_INSTRUCTION_ADDRESS): Add default
2804 definition.
2805
2806Sat Aug 30 09:47:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
2807
2808 * sim-fpu.c (DP_GARDMSB, ...): Make unsigned.
2809 (DP_FRACHIGH, DP_FRACHIGH2, ..): Use MSMASK to avoid LL.
2810
2811Fri Aug 29 13:37:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
2812
2813 * sim-core.c (sim_core_map_attach): Cast attach enum to int.
2814 (sim_core_xor_read_buffer, sim_core_xor_write_buffer): Make
2815 nr_transfered and nr_this_transfer unsigned.
2816
2817 * sim-events.c (sim_events_tickn): N is signed, as limited to
2818 MAXINT.
2819
2820 * sim-n-endian.h (offset_N): Change size to unsigned.
2821
2822 * callback.c (os_poll_quit): Add prototypes for kbhit and getkey.
2823
2824Fri Aug 29 10:10:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
2825
2826 * sim-utils.c (sim_copy_argv): Delete, replaced by dupargv.
2827
2828 * sim-options.c (sim_parse_args): Use dupargv.
2829
2830Thu Aug 28 10:36:34 1997 Doug Evans <dje@canuck.cygnus.com>
2831
2832 * sim-options.c (standard_option_handler): Use xstrdup, not strdup.
2833
2834Thu Aug 28 12:09:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
2835
2836 * sim-base.h (STATE_ARCHITECTURE, STATE_TARGET): Add to simulator
2837 base type.
2838
2839 * sim-options.c (standard_options): Add --architecture=MACHINE and
2840 --target=TARGET options.
2841 (OPTION_ARCHITECTURE, OPTION_TARGET): Define.
2842 (standard_option_handler): Handle architecture and target options.
2843 (bfd.h): Include.
2844
2845 * sim-utils.c (sim_analyze_program): Pass STATE_TARGET to
2846 bfd_openr.
2847 (sim_analyze_program): Set prog_bfd architecture from
2848 STATE_ARCHITECTURE if known.
2849
2850Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
2851
2852 * configure: Regenerated to track ../common/aclocal.m4 changes.
2853 * config.in: Ditto.
2854
2855Wed Aug 27 18:11:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
2856
2857 * aclocal.m4 (enable-sim-warnings): Remove comment stating
2858 that option does not apply to certain files.
2859
2860Wed Aug 27 15:13:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
2861
2862 * sim-bits.h (LSBIT8, LSBIT16, LSBIT32, LSBIT64, LSBIT, MSBIT8,
2863 MSBIT16, MSBIT32, MSBIT64, MSBIT): New macros - single bit as
2864 offset from MSB/LSB.
2865
2866 * sim-endian.h (A1_8, A2_8, A4_8, A1_4, A2_4, A1_2): New macro,
2867 access address of sub word quantity of a hosts 16, 32, 64 bit word
2868 type.
2869 (V1_2, V1_4, V2_4, V1_8, V2_8, V4_8): Ditto for values.
2870 (U8_1, U8_2, U8_4, U4_1, U4_2, U2_1): Ditto for set of values.
2871 (V2_H1, V2_L1, V4_H2, V4_L2, V8_L4, V8_H4): Given N byte argument,
2872 return N*2 byte value with argument in Hi/Lo word. Renamed from
2873 V1_H2, V1_L2, V2_H4, V2_L4, V4_H8, V4_L8.
2874
2875 * sim-alu.h (ALU32_HAD_OVERFLOW): Use 64 bit mask not 32bit.
2876 (ALU16_HAD_CARRY, ALU32_HAD_CARRY, ALU16_HAD_OVERFLOW): Use MSBIT
2877 so that bit offset is explicit.
2878
2879Wed Aug 27 11:55:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
2880
2881 * sim-utils.c (sim_analyze_program): Add prog_name argument.
2882 Update STATE_PROG_BFD when needed with a dup'd copy of the
2883 program.
2884
2885 * sim-config.c (sim_config): Delete ABFD argument, use
2886 STATE_PROG_BFD directly.
2887
2888Tue Aug 26 12:55:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
2889
2890 * run.c (main): Pass the open ABFD to sim_create_inferior.
2891
2892 * nrun.c (main): Determine prog_bfd. Pass to sim_create_inferior
2893 and sim_load.
2894 (bfd.h): Include.
2895
2896 * sim-hload.c (sim_load): New file. Implement generic sim_load for
2897 hardware only simulator targets.
2898
2899 * Make-common.in (sim-hload.o): Add rule.
2900
2901Wed Aug 27 09:51:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
2902
2903 * sim-utils.c (sim_copy_argv): Rewrite to match malloc strategy
2904 used by copyargv and freeargv.
2905
2906 * sim-options.c (sim_parse_args): Save a copy of PROG-ARGS in
2907 STATE_PROG_ARGV, not just a pointer.
2908
2909Mon Aug 25 17:50:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
2910
2911 * configure: Regenerated to track ../common/aclocal.m4 changes.
2912 * config.in: Ditto.
2913
2914Mon Aug 25 12:11:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
2915
2916 * aclocal.m4 (sim-endian): Add second argument to
2917 SIM_AC_OPTION_ENDIAN. First is hardwired endian, second is
2918 default endian when not hardwired.
2919
2920 * sim-config.h (WITH_DEFAULT_TARGET_BYTE_ORDER): New macro, if all
2921 else failes value for target byte order.
2922
2923 * sim-config.c (sim_config): Add abfd arguments. Set
2924 STATE_PROG_BFD accordingly. Determine prefered_target_byte_order
2925 from same.
2926 (sim_config): Return SIM_RC, don't abort.
2927 (bfd.h): Include.
2928
2929 * run.c (main): Update call to sim_open - add ABFD argument.
2930 * nrun.c (main): Add NULL ABFD argument.
2931
2932Thu Aug 14 12:48:57 1997 Doug Evans <dje@canuck.cygnus.com>
2933
2934 * callback.c (os_poll_quit): Make static.
2935 Call sim_cb_eprintf, not p->eprintf.
2936 (sim_cb_printf, sim_cb_eprintf): New functions.
2937 * sim-utils.h (sim_cb_printf, sim_cb_eprintf): Declare.
2938
2939 * sim-basics.h (zalloc,zfree,sim_add_commas,SIM_ELAPSED_TIME,
2940 sim_elapsed_time_get,sim_elapsed_time_since): Move decls to
2941 sim-utils.h. #include sim-utils.h.
2942 * sim-utils.h: Above decls moved here.
2943 (sim_analyze_program,sim_load_file): Use `struct _bfd', not `bfd'.
2944
2945 * sim-watch.c (action_watchpoint): Fix thinkos.
2946
2947Thu Jul 24 08:48:05 1997 Stu Grossman (grossman@critters.cygnus.com)
2948
2949 * sim-types.h: Fix defs of 64 bit data types for MSVC.
2950
2951Tue Jul 22 10:35:37 1997 Doug Evans <dje@canuck.cygnus.com>
2952
2953 * sim-n-core.h (sim_core_write_unaligned_N): Add missing break
2954 to FORCED_ALIGNMENT case.
2955
2956Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
2957
2958 * callback.c (target_to_host_open): Handle hosts with O_BINARY.
2959
2960Thu Jun 5 08:47:10 1997 Jeffrey A Law (law@cygnus.com)
2961
2962 * Make-common.in (libsim.a): Fix typo.
2963
2964Thu Jun 5 13:48:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
2965
2966 * nrun.c (main): Verify the structure returned before using it.
2967
2968Wed Jun 4 11:44:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
2969
2970 * sim-config.h (WITH_ENGINE): Enable the sim-engine module by
2971 default.
2972
2973 * sim-engine.c (sim_engine_install): New function. Install the
2974 engine init functions.
2975 (sim_engine_init): [Re]initialize the simulator engine.
2976
2977 * sim-module.c: Add sim_engine to list of modules that always
2978 install.
2979
2980Tue Jun 3 04:52:04 1997 Andrew Cagney <cagney@b1.cygnus.com>
2981
2982 * sim-watch.c (schedule_watchpoint): Use sim_unschedule_watchpoint
2983 to remove the old watchpoint, not delete_watchpoint.
2984 (watch_option_handler): Action the correct watchpoint, not just
2985 cycles.
2986
2987Wed May 28 14:47:41 1997 Andrew Cagney <cagney@b1.cygnus.com>
2988
2989 * sim-n-core.h (sim_core_write_aligned_N): For 8byte reads, output
2990 both low and high word.
2991 (sim_core_write_aligned_N): Ditto.
2992
2993 * sim-trace.c (set_trace_options): Delete code explicitly setting
2994 core->trace.
2995
2996 * sim-options.c (sim_print_help): Call the list commands if not a
2997 standalone simulator.
2998 (sim_print_help): Advise that some options may not be applicable.
2999
3000 * sim-trace.c (set_trace_options): Assume core present.
3001
3002 * sim-events.c (sim_events_schedule_after_signal): Overflow signal
3003 buffer when full not almost full.
3004
3005Tue May 27 14:32:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
3006
3007 * sim-events.c (sim_events_process): Don't blat the event queue
3008 when processing watchpoints.
3009
3010 * sim-watch.h: Make arg unsigned long - stop sign extension.
3011
3012 * sim-events.c (sim_watch_valid): rewrite so debugable.
3013
3014 * sim-config.h (WITH_XOR_ENDIAN): Default to zero.
3015
3016 * sim-watch.c (schedule_watchpoint): Add is_within option so that
3017 inequality test is possible.
3018 (handle_watchpoint): Re-pass is_within arg.
3019 (watch_option_handler): When `!' prefix to pc-watchpoint arg pass
3020 0 to schedule_watchpoint's is_within arg.
3021 (sim_watchpoint_init): Re-pass is_within arg.
3022
3023 * sim-options.c (sim_print_help): Add is_command argument. Don't
3024 include -- prefix when called from the command line interpreter.
3025
3026 * sim-watch.c (schedule_watchpoint): Pass true is_within argument.
3027
3028 * sim-events.c (sim_events_watch_sim): Add is_within argument,
3029 zero indicates that the test should be reversed.
3030 (sim_events_watch_core): Ditto.
3031 (WATCH_CORE): Compare range against is_within.
3032 (WATCH_SIM): Ditto.
3033
3034Tue May 27 12:48:03 1997 Andrew Cagney <cagney@b2.cygnus.com>
3035
3036 * sim-events.c (WATCH_CORE): Pass NULL cpu argument to
3037 sim_core_read_buffer. Check nr-bytes transfered.
3038
3039 * sim-core.h (sim_core_common): Define a new struct that contains
3040 the common data. to sd and cpu structures.
3041 * sim-core.c (sim_core_attach): Update.
3042 (sim_core_init): Update. Remember to copy initialized data to each
3043 cpu.
3044 (sim_core_find_mapping): Ditto.
3045
3046 * sim-core.c (sim_core_read_buffer): Add cpu argument.
3047 (sim_core_write_buffer): Ditto.
3048
3049 * sim-n-core.h (sim_core_read_unaligned_N): When mis-aligned
3050 transfer use xor version of read buffer.
3051 (sim_core_write_unaligned_N): Ditto for write.
3052
3053 * sim-core.c (sim_core_xor_read_buffer): New function implement
3054 xor-endian data read breaking transfer up into xor-endian sized
3055 blocks.
3056 (sim_core_xor_write_buffer): Ditto for write.
3057 (reverse_n): Reverse order of arbitrary number of bytes in buffer
3058 - needed for xor-endian transfers.
3059
3060Fri May 23 14:24:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
3061
3062 * sim-inline.h: Review description.
3063
3064 * sim-core.h, sim-core.c: Reduce number of functions being inlined
3065 to just those involved in data transfers and configuration.
3066
3067 * sim-xcat.h (XSTRING): New macro, map macro definition onto
3068 string.
3069 * sim-n-core.h (sim_core_read_aligned_N): Use.
3070 (sim_core_read_unaligned_N): Ditto.
3071 (sim_core_read_unaligned_N): Ditto..
3072 (sim_core_write_unaligned_N): Ditto.
3073
3074 * sim-core.h: Add xor endian bitmap to main structure. *
3075
3076 sim-n-core.h (sim_core_write_aligned_N): Add suport for xor
3077 endian.
3078 (sim_core_read_aligned_N): Ditto.
3079
3080 * sim-core.c (sim_core_set_xor_endian): New function.
3081 (sim_core_attach): Don't overwrite the per-cpu xor map when
3082 cloning the global core.
3083
3084Fri May 23 10:53:13 1997 Andrew Cagney <cagney@b1.cygnus.com>
3085
3086 * sim-engine.h: Update below so that it is using an enumerated
3087 type.
3088
3089Thu May 22 09:12:16 1997 Gavin Koch <gavin@cygnus.com>
3090
3091 * sim-engine.c (sim_engine_restart):
3092 * sim-resume.c (sim_resume): Change longjmp param/setjmp
3093 return value used for simulator restart from 0 to 2.
3094
3095Wed May 21 08:47:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
3096
3097 * cgen-scache.c (scache_option_handler): Add is_command arg.
3098
3099 * sim-model.c (model_option_handler): Add is_command argument.
3100
3101 * sim-profile.c (profile_option_handler): Add is_command arg.
3102
3103 * sim-events.c (sim_watch_valid): Use ub64, lb64 when 64bit value
3104 involved.
3105
3106 * sim-module.c (sim_module_add_init_fn): Call init fn in the same
3107 order that they are registered.
3108
3109 * sim-options.h (OPTION_HANDLER): Add argument to differentiate
3110 between option and command line processing.
3111
3112 * sim-options.c: Include stdlib.h, ctype.h.
3113
3114 * Make-common.in (sim-watch.o): Add rule.
3115 (sim_main_headers): Assume sim-assert.h included.
3116 (sim-*.o): Simplify make rule.
3117
3118 * sim-module.c: Add sim_watch_install to module list.
3119
3120Tue May 20 14:15:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
3121
3122 * sim-base.h (STATE_LOADED_P): New predicate. Set once everything
3123 has been loaded.
3124
3125 * sim-trace.c (trace_install): Check magic. Include sim-assert.h.
3126 * sim-events.c (sim_events_install): Ditto.
3127 * sim-core.c (sim_core_install): Ditto.
3128 * sim-model.c (model_install): Ditto.
3129 * sim-options.c (standard_install): Ditto.
3130 * sim-profile.c (profile_install): Ditto.
3131 * sim-reason.c (sim_stop_reason): Ditto.
3132 * sim-run.c (sim_engine_run): Ditto.
3133 * sim-utils.c (sim_analyze_program): Ditto.
3134
3135 * sim-module.c (modules): Make profile_install and trace_install
3136 optional.
3137
3138 * sim-base.h (STATE_MEM_BASE): Define for flat memory systems.
3139
3140 * sim-options.c (standard_option_handler): Set the byte order.
3141
3142 * sim-events.c (sim_events_process): Allow multi tick processing.
3143 (sim_events_tickn): New function - multi cycle tick.
3144
3145 * sim-events.h (sim_events_tickn, sim_events_timewarp): Add
3146 prototypes. Under development.
3147 (sim_events): Replace processing with nr_ticks_to_process.
3148
3149Tue May 20 09:39:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
3150
3151 * nrun.c (main): Pass callbacks to sim_open instead of using
3152 sim_set_callbacks.
3153
3154 * run.c (main): Ditto.
3155
3156Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
3157
3158 * sim-events.c (sim_events_zalloc): Signal save memory allocator -
3159 stop tk interrupting malloc calls.
3160 (sim_events_zalloc): Converse.
3161
3162 * Make-common.in (sim_main_headers): Add sim-events.h.
3163
3164 * sim-events.c (sim_events_schedule_after_signal): Change return
3165 type to void - signal events are strictly internal.
3166 (sim_events_init): Allocate a finite buffer for signal events.
3167 (sim_events_schedule_after_signal): Enter signal events into the
3168 signal buffer.
3169
3170 * sim-engine.c (sim_engine_halt): Check SIM_DESC magic.
3171 (sim_engine_restart): Ditto.
3172 (sim_engine_abort): Ditto.
3173 * sim-stop.c (sim_stop): Ditto.
3174 (control_c_simulation): Ditto.
3175 * sim-resume.c (sim_resume): Ditto.
3176 (has_stepped): Ditto.
3177 * sim-abort.c (sim_engine_abort): Ditto.
3178
3179 * sim-basics.h (transfer_type): New type.
3180
3181 * sim-core.c (sim_core_signal): New function. Print core signal
3182 information.
3183 (sim_core_find_mapping): Add transfer argument.
3184
3185 * sim-n-core.h (sim_core_{write,write}_unaligned_N): Call
3186 SIM_CORE_SIGNAL if a recoverable abort.
3187 * sim-core.c (sim_core_find_mapping): Ditto.
3188
3189Fri May 16 15:13:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
3190
3191 * sim-core.c (sim_core_find_mapping): Replace calls to
3192 sim_io_error to more resiliant sim_engine_abort.
3193
3194 * sim-n-core.h (sim_core_read_unaligned_N): Ditto.
3195 (sim_core_write_unaligned_N): Ditto.
3196
3197Tue May 13 13:50:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
3198
3199 * sim-module.c: Add sim_events_install to list.
3200
3201 * sim-events.c (sim_events_install, sim_events_uninstall): Clonse
3202 from sim_core_*.
3203 (sim_events_init): Now returns SIG_RC.
3204
3205 * sim-run.c: New file. Generic sim_engine_run.
3206 * sim-reason.c: New file. Generic sim_stop_reason.
3207 * sim-stop.c: New file. Generic sim_stop.
3208 * sim-resume.c: New file. Generic sim_resume.
3209
3210 * Make-common.in (sim-engine.o): Add rule.
3211 (sim-run.o, sim-reason.o, sim-stop.o, sim-resume.o): Ditto.
3212
3213 * sim-engine.h, sim-engine.c: New file. Provide generic
3214 implementation of sim_engine_halt, sim_engine_error. et.al.
3215
3216 * sim-base.h (sim_state_base): Add member halt.
3217 (sim-engine.h): Include.
3218
3219 * sim-events.h (sim_event_handler): Always pass SIM_DESC to event
3220 handlers.
3221 * sim-events.c (sim_events_poll): Update event handler.
3222
3223Tue May 13 09:57:49 1997 Andrew Cagney <cagney@b2.cygnus.com>
3224
3225 * sim-events.h, sim-events.c (sim_events_watch_clock): New
3226 function.
3227 (sim_events_watch_sim): New function.
3228 (sim_events_watch_core): New function.
3229 (sim_watch_valid): New function.
3230 (sim_events_preprocess): New function.
3231 (sim_events_process): Process the watchpoints as well as the timer
3232 queue.
3233 (sim_events_tick): Check WORK_PENDING instead of the hold queue.
3234 (sim_events_deschedule): Check all the queues when removing an
3235 event.
3236 (sim_events_init): Ditto for cleaning.
3237
3238Mon May 19 12:07:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
3239
3240 * sim-fpu.c (is_ufpu_number): Comment out - currently unused.
3241
3242Mon May 19 11:23:03 1997 Andrew Cagney <cagney@b1.cygnus.com>
3243
3244 * callback.c (os_open): Type of arg flags is int.
3245
3246Fri May 16 22:26:43 1997 Michael Meissner <meissner@cygnus.com>
3247
3248 * sim-fpu.c (sim_fpu_is_{eq,ne,lt,le,gt,ge}): Compare Infinities
3249 just like normal numbers as per IEEE rules.
3250
3251Wed May 14 21:20:38 1997 Bob Manson <manson@charmed.cygnus.com>
3252
3253 * callback.c (os_close): Mark the descriptor as being
3254 available if the close succeeded.
3255 (os_open): Pass 0644 as the mode of the file being created.
3256
3257Thu May 15 10:58:52 1997 Andrew Cagney <cagney@b1.cygnus.com>
3258
3259 * sim-fpu.c (pack_fpu, unpack_fpu): New functions - decode a
3260 float.
3261
3262 * sim-inline.c (SIM_INLINE_C): Rename from _SIM_INLINE_C_.
3263 * sim-lnline.h: Update.
3264
3265 * sim-fpu.h, sim-fpu.c (sim_fpu_[iu]{32,64}to): New int2fp
3266 conversion functions.
3267 (sim_fpu_to{32,64}[iu]): New fp2int functions.
3268
3269 * sim-fpu.h, sim-fpu.c (sim_fpu_is_{lt,le,eq,ne,ge,gt}): New fp
3270 compare functions. Replacing.
3271 (sim_fpu_cmp): This. Delete.
3272
3273Mon May 12 14:49:05 1997 Andrew Cagney <cagney@b1.cygnus.com>
3274
3275 * sim-core.c (sim_core_find_mapping): Call engine_error not
3276 sim_io_error when possible.
3277
3278Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b2.cygnus.com>
3279
3280 * sim-endian.h (V1_H2): Add macro's to insert a word into a
3281 high/low double word.
3282
3283 * sim-trace.h: Remove definition of attribute - defined in
3284 sim_basics.h.
3285
3286Mon May 12 08:55:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
3287
3288 * sim-options.h (struct OPTION): Add doc_opt as the documenting
3289 name of the option - or family of options.
3290
3291 * sim-options.c (sim_args_command): Match command `a-b c' with
3292 option `--a-b-c' from option table.
3293
3294Thu May 8 12:40:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
3295
3296 * sim-options.c (sim_print_help): For optional arguments, wrap
3297 them in [].
3298
3299 * sim-trace.c (set_trace_options): New function, handle optional
3300 argument and multiple assignment.
3301 (trace_option_handler): Update.
3302
3303 * sim-trace.c (trace_option_handler): Trace branch and not fpu
3304 when branch tracing selected.
3305
3306Wed May 7 15:19:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
3307
3308 * sim-trace.c (trace_one_insn): Make a va-args function.
3309
3310 * sim-trace.c (trace_vprintf): New function, va-arg version of
3311 trace_printf.
3312
3313Tue May 6 16:38:16 1997 Doug Evans <dje@canuck.cygnus.com>
3314
3315 * sim-trace.c (trace_uninstall): Don't close a file twice.
3316 * sim-profile.c (profile_uninstall): Likewise.
3317
3318Tue May 6 06:14:01 1997 Mike Meissner <meissner@cygnus.com>
3319
3320 * sim-trace.c (toplevel): Include bfd.h.
3321 (trace_options): Note that --trace-linenum also turns on
3322 --trace-insn. Add --trace-{branch,semantics}.
3323 (trace_option_handler): If --trace-linenum, also turn on
3324 --trace-insn. Add --trace-branch support. If --trace-semantics,
3325 turn on ALU, FPU, branch, and memory tracing.
3326 (trace_one_insn): New function to trace an instruction. Support
3327 --trace-linenum.
3328 (OPTION_TRACE_*): Use an enum, rather than lots of defines.
3329
3330 * sim-trace.h (TRACE_{SEMANTICS,BRANCH}_IDX): Add new macros.
3331 (MAX_TRACE_VALUES): Use 32, not 12 by default.
3332 (TRACE_branch): Add new mask.
3333 (TRACE_*_P): Define all possible trace_p macros.
3334 (trace_one_insn): Declare function.
3335
3336Mon May 5 14:08:34 1997 Mike Meissner <meissner@cygnus.com>
3337
3338 * sim-trace.h (__attribute__): Define as nothing if not GNU C or
3339 GNU C doesn't support __attributes__.
3340 ({trace,debug}_printf): Add attribute's so -Wformat can check the
3341 format strings.
3342
3343Mon May 5 11:16:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
3344
3345 * sim-config.h (FORCED_ALIGNMENT): New alignment option -
3346 addresses are masked forcing them to be correctly aligned.
3347 (WITH_ALIGNMENT): Make NONSTRICT_ALIGNMENT the default.
3348 * sim-config.c (config_alignment_to_a): Update.
3349
3350 * sim-core.h (sim_cpu_core): New data type contains cpu specific
3351 core data.
3352 * sim-base.h (CPU_CORE): Add cpu specific core data to cpu base
3353 type.
3354 * sim-core.c (sim_core_attach): Add CPU argument. Ready for
3355 processor specific core maps.
3356 (sim_core_map_attach): Copy the core map data to each of the
3357 processor specific core data structures.
3358 * sim-core.c (sim_core_find_mapping): Update.
3359
3360 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Rename.
3361 (sim_core_write_aligned_N, sim_core_write_aligned_N): New names.
3362 (sim_core_write_unaligned_N, sim_core_write_unaligned_N): New
3363 alternatives that handle unaligned addresses.
3364 (sim_core_{read,write}_{,un}aligned_N): Drop SIM_DESC arg, replace
3365 with just CPU arg.
3366 * cgen-utils.c (sim_disassemble_insn): Update.
3367
3368Mon May 5 13:19:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
3369
3370 * sim-trace.h (TRACE_FPU_IDX): Add Floating-point specific
3371 tracing.
3372
3373 * sim-fpu.h, sim-fpu.c: New files - prototype for generic target
3374 fpu support.
3375
3376 * sim-inline.h, sim-inline.c: Add support for SIM_FPU.
3377
3378Fri May 2 17:59:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
3379
3380 * sim-core.c (sim_core_map_to_str): New function ascii equivalent
3381 to map type.
3382
3383 * sim-n-core.h (sim_core_read_N, sim_core_write_N): Use in trace
3384 statement.
3385
3386Fri May 2 17:28:02 1997 Andrew Cagney <cagney@b2.cygnus.com>
3387
3388 * cgen-trace.c: Prepend additional trace_printf argument.
3389
3390 * cgen-utils.c (sim_disassemble_insn): Add additional core
3391 arguments.
3392
3393Fri May 2 11:40:23 1997 Andrew Cagney <cagney@b1.cygnus.com>
3394
3395 * nrun.c (main): Catch/report errorenous simulator states.
3396
3397 * sim-module.c: #include "libiberty.h" so that xmalloc is defined.
3398 * sim-trace.c: #include string.h/strings.h so that memset is
3399 defined.
3400 * sim-utils.c: Ditto.
3401 * sim-profile.c: Ditto. And stdlib.h.
3402 (print_bar): Only define when used by instruction or memory profiler.
3403
3404 * sim-options.c (standard_option_handler): Make ul more local.
3405
3406 * sim-load.c (sim_load_file): Make the name constant.
3407 (sim_load_file): Passify gcc.
3408
3409 * sim-utils.h: New file, pre-declare utilites in corresponding .c
3410 file.
3411 * sim-utils.c, sim-load.c: Include sim-utils.h.
3412
3413 * sim-base.h (sim_cpu): Pre define here so available to all.
3414
3415 * sim-core.h (DECLARE_SIM_CORE_WRITE_N, DECLARE_SIM_CORE_READ_N):
3416 Restore the sim_cpu and instruction_address arguments so that full
3417 information is available to the abort function.
3418 * sim-core.c (sim_core_find_mapping, sim_core_write_buffer): Ditto.
3419 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
3420
3421 * sim-trace.h, sim-trace.c (trace_option_handler): Add interim
3422 tracing support for sim-events and sim-core.
3423 (trace_option_handler): Convert #if to if where possible so always
3424 compiled/checked by C compiler.
3425 * sim-n-core.h (sim_core_write_N, sim_core_read_N): Update.
3426
3427 * sim-base.h: Adjust comment documenting how to define the cpu
3428 structure.
3429 (sim_state_base): Add sim_core and sim_events to simulator base
3430 object.
3431
3432 * sim-trace.h, sim-trace.c (trace_printf): Add SIM_DESC argument.
3433 * sim-core.c (sim_core_init, sim_core_attach,
3434 sim_core_find_mapping): Update.
3435 * sim-events.c (ETRACE, sim_events_init, sim_events_time,
3436 update_time_from_event, insert_sim_event,
3437 sim_events_schedule_after_signal, sim_events_deschedule,
3438 sim_events_tick): Ditto.
3439
3440 * sim-basics.h (sim-module.h, sim-trace.h, sim-profile.h,
3441 sim-model.h): Move #includes from here.
3442 * sim-base.h: To here.
3443 (sim-core.h, sim-events.h, sim-io.h): Include also
3444
3445Wed Apr 30 15:37:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
3446
3447 * callback.c (default_callback): Missing initialisers.
3448
3449Thu May 1 10:40:47 1997 Doug Evans <dje@canuck.cygnus.com>
3450
3451 * sim-utils.c (sim_add_commas): New function.
3452 * sim-basics.h (sim_add_commas): Add prototype.
3453 * cgen-scache.c (scache_print_profile): Print commas in numbers.
3454 * sim-profile.c (COMMAS): New macro.
3455 (print_*): Use it to print commas in numbers.
3456
3457 * configure: Regenerated.
3458
3459 * cgen-sim.h (sim_signal_type): Add SIM_SIGINT.
3460 (cgen_state): New member run_fast_p.
3461 (cgen_init): Add prototype.
3462 (sim_disassemble_insn): New arg `cpu'.
3463 * cgen-trace.c (trace_insn): Update call to sim_disassemble_insn.
3464 * cgen-utils.c (cgen_init): New function.
3465 (sim_disassemble_insn): New arg `cpu'. Rewrite fetching of insn.
3466 * genmloop.sh: Call engine_halt if loop exits.
3467
3468 * Makefile.in (sim-options_h): Define.
3469 (sim-{module,options,trace,profile,utils}.o): Clean up dependencies.
3470 (sim-model.o): Add new rule.
3471 (cgen-{scache,trace,utils}.o): Add new rules.
3472 * aclocal.m4 (SIM_AC_OPTION_{SCACHE,DEFAULT_MODEL}): Add.
3473 * cgen-scache.c (scache_print_profile): Change `sd' arg to `cpu'.
3474 Indent output by 2 spaces.
3475 * cgen-scache.h (scache_print_profile): Update.
3476 * cgen-trace.c (trace_insn_fini): Indent output by 2 spaces.
3477 Use trace_printf, not fprintf.
3478 (trace_extract): Use trace_printf, not cgen_trace_printf.
3479 * genmloop.sh (!FAST case): Increment `insn_count'.
3480 * sim-base.h (sim_state_base): Only include scache_size if WITH_SCACHE.
3481 (sim_cpu_base): Rename member `sd' to `state' to be consistent with
3482 access macro's name.
3483 * sim-core.c (sim_core_init): Use EXTERN_SIM_CORE to define it.
3484 Change return type to SIM_RC.
3485 (sim_core_{install,uninstall}): New functions.
3486 * sim-core.h (sim_core_{install,uninstall}): Declare.
3487 (sim_core_init): Use EXTERN_SIM_CORE to define it.
3488 Change return type to SIM_RC.
3489 * sim-model.h (models,machs,model_install): Declare.
3490 * sim-module.c (modules): Add scache_install, model_install.
3491 (sim_post_argv_init): Set cpu->state backlinks.
3492 * sim-options.c (standard_options): Delete --simcache-size,--max-insns.
3493 (standard_option_handler): Likewise.
3494 * sim-profile.c (PROFILE_{HISTOGRAM,LABEL}_WIDTH): Move to
3495 sim-profile.h.
3496 (*): Assume ANSI C.
3497 (profile_options): Delete --profile-simcache.
3498 (profile_option_handler): Likewise.
3499 (profile_print_insn): Change `sd' arg to `cpu'. Indent output 2
3500 spaces.
3501 (profile_print_{memory,model}): Likewise.
3502 (profile_print_simcache): Delete.
3503 (profile_print_speed): New function.
3504 (profile_print): Rewrite.
3505 * sim-profile.h (PROFILE_scache): Renamed from PROFILE_simcache.
3506 (WITH_PROFILE_SCACHE_P): Renamed from WITH_PROFILE_SIMCACHE_P.
3507 (PROFILE_DATA): Delete members simcache_{hits,misses}.
3508 (PROFILE_COUNT_SIMCACHE_{HIT,MISS}): Delete.
3509 (PROFILE_{CALLBACK,CPU_CALLBACK}): New types.
3510 (profile_print): Update prototype.
3511
3512Wed Apr 30 11:34:14 1997 Doug Evans <dje@canuck.cygnus.com>
3513
3514 * cgen-scache.[ch], cgen-sim.h: New files.
3515 * cgen-trace.[ch], cgen-types.h, cgen-utils.c, genmloop.sh: New files.
3516 * sim-model.c: New file.
3517
3518 * Make-common.in (clean targets): Undo patch of Apr. 22.
3519
3520Fri Apr 25 15:28:32 1997 Mike Meissner <meissner@cygnus.com>
3521
3522 * sim-n-bits.h (signed): If we have a standard compiler, undef
3523 signed, so that signedN is defined correctly.
3524
3525Thu Apr 24 00:00:07 1997 Doug Evans <dje@canuck.cygnus.com>
3526
3527 * sim-module.h, sim-model.h, sim-profile.h: New files.
3528 * sim-module.c, sim-profile.c: New files.
3529 * Make-common.in (SIM_PROFILE): Define
3530 (CONFIG_CFLAGS): Add $(SIM_PROFILE).
3531 (sim_main_headers): Add sim-module.h, sim-model.h, sim-profile.h.
3532 (sim_module.o,sim-profile.o): Add rules for.
3533 * aclocal.m4 (--enable-sim-trace): Allow symbolic arguments.
3534 (--enable-sim-profile): Add.
3535 * configure: Regenerated.
3536 * sim-base.h (sim_state_base): New members init_list, uninstall_list,
3537 model. Move trace and profile support to sim-{trace,profile}.h.
3538 New members trace_data, profile_data.
3539 * sim-basics.h: #include sim-module.h, sim-model.h, sim-profile.h.
3540 * sim-config.h: Provide default definition of WITH_PROFILE.
3541 (WITH_TRACE): Change default to -1.
3542 (MAX_NR_PROCESSORS): Always define.
3543 * sim-options.c: Move trace and profile support to
3544 sim-{trace,profile}.h.
3545 (sim_pre_argv_init): Moved to sim-model.c.
3546 (standard_install): New function.
3547 * sim-options.h (sim_pre_argv_init): Move decl to sim-model.c.
3548 (standard_install): Declare.
3549 * sim-trace.c: Tracing option handling moved here from sim-options.c.
3550 (trace_install, trace_uninstall): New functions.
3551 (trace_printf): Update reference to TRACE_FILE.
3552 * sim-trace.h (TRACE_FOO_IDX): Moved here from sim-base.h.
3553 (TRACE_foo): Bit masks for symbolic arguments to --enable-sim-trace.
3554 (WITH_TRACE_FOO_P): Define.
3555 (trace_install): Declare.
3556 (TRACE_DATA): New struct.
3557
3558Wed Apr 23 17:23:15 1997 Doug Evans <dje@canuck.cygnus.com>
3559
3560 * run.c: Undo last exec_bfd patch.
3561 (main): Only pass -E ifdef SIM_HAVE_BIENDIAN.
3562
3563Wed Apr 23 17:54:27 1997 Mike Meissner <meissner@cygnus.com>
3564
3565 * run.c (exec_bfd): Add back in.
3566 (main): Set exec_bfd.
3567
3568Tue Apr 22 14:43:46 1997 Doug Evans <dje@canuck.cygnus.com>
3569
3570 * sim-load.c (sim_load_file): #include <stdio.h> for NULL.
3571
3572Wed Apr 23 02:55:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
3573
3574 * sim-events.c (insert_sim_event): Call sim_io_error instead of
3575 less well defined engine_error.
3576 * sim-core.c: Ditto.
3577
3578Tue Apr 22 08:48:16 1997 Stu Grossman (grossman@critters.cygnus.com)
3579
3580 * Make-common.in: Change clean targets to use :: so that other
3581 Makefiles can have their own clean targets.
3582 * sim-load.c (xprintf eprintf): Use ANSI_PROTOTYPES instead of
3583 __STDC__ to control use of stdarg vs. varargs syntax. Some
3584 systems can't use __STDC__, but require stdarg.
3585
3586Fri Apr 18 11:14:43 1997 Doug Evans <dje@canuck.cygnus.com>
3587
3588 * sim-options.c (standard_options): Add --endian.
3589 (standard_option_handler): Likewise.
3590
3591 * nrun.c: #include <signal.h>.
3592 (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
3593 handler that calls sim_stop ().
3594
3595Fri Apr 18 13:11:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
3596
3597 * run.c (main, cntrl_c): Wrap calls to sim_resume in a SIGINT
3598 handler that calls sim_stop (). Simulators may still be
3599 establishing their own handler.
3600
3601 * sim-events.c (sim_events_poll): Rename from
3602 sim_events_at_large_int. Poll IO.
3603
3604 * sim-io.c (sim_io_poll_quit): New function - pass on a polling
3605 request.
3606
3607 * callback.c (os_poll_quit): New function poll for quit signal
3608 where needed.
3609 (default_callback): Include magic number.
3610
3611Thu Apr 17 02:25:11 1997 Doug Evans <dje@canuck.cygnus.com>
3612
3613 * aclocal.m4: Check for headers time.h, sys/time.h, sys/resource.h.
3614 Check for functions getrusage, time.
3615 * sim-basics.h (SIM_ELAPSED_TIME): New typedef.
3616 (sim_elapsed_time_get, sim_elapsed_time_since): Add prototypes.
3617 * sim-utils.c: #include time.h, sys/time.h, sys/resource.h if able.
3618 (sim_elapsed_time_get, sim_elapsed_time_since): New functions.
3619
3620 * sim-utils.c (sim_copy_argv, sim_analyze_program): New functions.
3621
3622 * sim-options.c, sim-options.h: New files.
3623 * sim-config.h (WITH_DEBUG): Provide default value of zero.
3624 * Make-common.in (nrun.o): Add rules for.
3625 * nrun.c: New file.
3626
3627 * run.c (main): Check return value of sim_open.
3628
3629 * Make-common.in (sim-options.o, sim-load.o, sim-trace.o): Add rules.
3630 (sim_main_headers): Add sim-trace.h.
3631 * run.c (exec_bfd, target_byte_order): Delete.
3632 (main): Pass -E <endian> to sim_open. Delete code to load sections,
3633 call sim_load instead. Check return code of sim_create_inferior.
3634 * sim-base.h (CURRENT_STATE): Define.
3635 (sim_state_base): Make typedef. New members options, prog_argv,
3636 prog_bfd, text_{section,start,end}, start_addr, simcache_size,
3637 mem_size, memory [+ corresponding access macros].
3638 (sim_cpu_base): New typedef.
3639 * sim-trace.h: New file.
3640 * sim-trace.c: New file.
3641 * sim-basics.h: #include it.
3642 * sim-load.c: New file.
3643
3644Tue Apr 15 15:10:13 1997 Ian Lance Taylor <ian@cygnus.com>
3645
3646 * Make-common.in (INSTALL): Set to @INSTALL@.
3647 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
3648 (install-common): Depend upon installdirs. Use
3649 $(program_transform_name) directly, rather than using
3650 $(INSTALL_XFORM).
3651 (installdirs): New target.
3652 * Makefile.in (INSTALL): Set to @INSTALL@.
3653 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
3654 (install-man): Depend upon installdirs. Use
3655 $(program_transform_name) directly, rather than using
3656 $(INSTALL_XFORM).
3657 (installdirs): New target.
3658
3659Tue Apr 15 15:08:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
3660
3661 * sim-assert.h (SIM_ASSERT, ASSERT): Allow these macros to
3662 be overriden.
3663
3664Wed Apr 9 16:06:44 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3665
3666 * sim-basics.h: Only bring in config.h and tconfig.h if
3667 HAVE_CONFIG_H.
3668
3669Mon Apr 7 11:39:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3670
3671 * sim-config.h (WITH_TARGET_WORD_MSB): New Macro. Define the bit
3672 numbering convention of the target.
3673 * sim-config.c (print_sim_config): Print WITH_TARGET_WORD_BITSIZE
3674 and WITH_TARGET_WORD_MSB.
3675 (sim_config): When possible, check for consistency with bitsize
3676 and msb.
3677
3678 * sim-bits.h: Allow MSB to be other than zero.
3679 * sim-bits.c: Ditto.
3680 * sim-n-bits.h: Ditto.
3681
3682 * sim-bits.h (MSMASK*): New macros - converce to LSMASK*.
3683 * sim-n-bits.h (MSMASKEDn): Ditto.
3684
3685Mon Apr 14 16:29:21 1997 Ian Lance Taylor <ian@cygnus.com>
3686
3687 * Makefile.in (INSTALL): Change install.sh to install-sh.
3688
3689Mon Apr 7 10:46:38 1997 Doug Evans <dje@canuck.cygnus.com>
3690
3691 * sim-base.h (sim_state_base): Move `magic' to end of struct.
3692
3693Mon Apr 7 15:53:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3694
3695 * run.c (main): Check that a program to run was specified.
3696
3697Mon Apr 7 15:45:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3698
3699 * aclocal.m4 (AC_TYPE_SIGNAL): Add check.
3700
3701 * configure: Regenerated to track ../common/aclocal.m4 changes.
3702 * config.in: Ditto.
3703
3704Wed Apr 2 15:06:28 1997 Doug Evans <dje@canuck.cygnus.com>
3705
3706 * sim-endian.h: Move host {LITTLE,BIG}_ENDIAN support from here,
3707 * sim-config.h: To here.
3708
3709 * Make-common.in (SIM_EXTRA_DEPS): New config var.
3710 (sim_main_headers): Define.
3711 (sim-*.o): Depend on $(SIM_EXTRA_DEPS).
3712 (BUILT_SRC_FROM_COMMON): Move here from ../d30v/Makefile.in.
3713 (clean): Use it.
3714 (sim-utils.o): Add rule for.
3715 * sim-utils.o: New file.
3716 * sim-basics.h: #include sim-base.h.
3717 (zalloc): Make argument unsigned long.
3718 * sim-base.h: New file.
3719 * sim-inline.h (SIM_IO support): Delete.
3720 * sim-io.h: Delete inline support.
3721 * sim-io.c: Likewise. sim-state.h renamed to sim-main.h.
3722 * sim-config.c: sim-state.h renamed to sim-main.h.
3723 * sim-core.c: Likewise.
3724 * sim-events.c: Likewise.
3725
3726 * run.c (main): Pass SIM_OPEN_STANDALONE to sim_open.
3727
3728 * aclocal.m4: Check for stdlib.h, string.h, strings.h, unistd.h.
3729 (sim-debug): Allow arguments. Define WITH_DEBUG in addition to
3730 -DDEBUG.
3731 * configure: Regenerated to track ../common/aclocal.m4 changes.
3732
3733Wed Apr 2 14:34:19 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3734
3735 * configure: Regenerated to track ../common/aclocal.m4 changes.
3736
3737Wed Apr 2 11:08:11 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3738
3739 * sim-config.h (WITH_ALIGNMENT, WITH_FLOATING_POINT,
3740 WITH_XOR_ENDIAN, WITH_SMP, WITH_RESERVED_BITS): Assume that these
3741 are defined by the configure.
3742
3743 * aclocal.m4 (sim-stdio): Add option stdio from ../ppc configure.
3744
3745 * aclocal.m4 (floating-point, xor-endian, alignment, smp,
3746 reserved-bits): Always define.
3747
3748 * sim-config.h, sim-config.c (sim_config): New function - and new
3749 file - co-ordinate the setting/checking of the common simulator
3750 configuration options.
3751
3752 * Make-common.in (sim-config.o): Add rule.
3753
3754Fri Mar 28 15:32:00 1997 Mike Meissner <meissner@cygnus.com>
3755
3756 * callback.c (os_{,e}vprintf_filtered): Change stdarg type to
3757 va_list from void *, since va_list might not be a pointer type.
3758
3759Mon Mar 24 15:27:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3760
3761 * sim-n-endian.h (offset_N): Correct assertion - word and sub word
3762 in wrong order.
3763 (offset_N): Correct computation of LE offset.
3764
3765 * sim-io.c (sim_io_error): Include a new line when reporting
3766 errors.
3767
3768 * sim-assert.h (SIM_FILTER_PATH): Out by one when locating last
3769 `/'.
3770
3771Thu Mar 20 22:31:06 1997 Jeffrey A Law (law@cygnus.com)
3772
3773 * run.c: Include alloca-conf.h.
3774
3775 * callback.c (os_evprintf_filtered): Fix typo.
3776
3777Fri Mar 21 13:36:20 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3778
3779 * run.c (string.h, strings.h, stdlib.h): Include.
3780
3781 * sim-events.c (sim_events_tick): Recent cleanup failed to return
3782 0 when nothing pending.
3783
3784 * run.c (sim_size, sim_trace): Plicate GCC - these two functions
3785 will soon be going away.
3786 (getopt): Plicate GCC.
3787
3788 * sim-endian.c (sim-io.h): Plicate GCC.
3789 * sim-bits.c (sim-io.h): Ditto.
3790 * sim-n-bits.h (ROTn): Ditto.
3791
3792 * sim-io.c (sim_io_error): Correct check for NULL.
3793
3794 * sim-assert.h (SIM_FILTER_PATH): Separate out the code filtering
3795 the __FILE__.
3796 * sim-events.c: Use SIM_FILTER_PATH to filter out the filename
3797 path.
3798
3799Wed Mar 19 01:12:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3800
3801 * aclocal.m4 (SIM_AC_OPTION_*: Move so that they are outside of
3802 SIM_AC_COMMON - SIM_AC_COMMON was gobling arguments.
3803
3804Tue Mar 18 20:48:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3805
3806 * sim-alu.h: Include sim-xcat.h.
3807
3808Tue Mar 18 13:58:18 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3809
3810 * Make-common.in (sim-bits.c, sim-core.c, sim-endian.c,
3811 sim-events.c, sim-inline.c, sim-io.c): Define rules for building
3812 these.
3813
3814 * sim-events.c (sim_events_at_large_int): New function. Just
3815 schedules an event every large-int ticks.
3816 (sim_events_init): Call.
3817 (sim_events_tick, sim_events_process): Move async handing to
3818 sim_events_process. Move timer decrement so that it occures after
3819 events have been processed.
3820
3821 * sim-basics.h (struct _engine): Remove declaration.
3822
3823 * sim-events.h, sim-events.c: Rename type to sim_events. Prefix
3824 everything with same. Rename global struct to SIM_DESC.
3825 * sim-core.h, sim-core.c, sim-n-core.c: Ditto for sim_core.
3826 * sim-io.h, sim-io.c: Ditto.
3827
3828 * sim-assert.h: New file. Optional assertion checking macros.
3829 * sim-io.c (sim_io_error): Make just this function tolerant to
3830 null pointers.
3831
3832 * sim-xcat.h: New file. Define concatenate macros.
3833 * sim-basics.h (XCONCAT*): Move to sim-xcat.h.
3834 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Explicitly include
3835 concat macros.
3836
3837
3838Tue Mar 18 12:44:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3839
3840 * sim-bits.h (LSMASK): New macro. Create mask of LS bits.
3841
3842Mon Mar 17 18:10:05 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3843
3844 * sim-inline.h: Add definitions for sim-types.
3845 (ALL_BY_MODULE): New macro, encapsulate full inlining by the
3846 module.
3847
3848Mon Mar 17 15:38:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3849
3850 * sim-events.h: Remove defunct reference to callback struct.
3851
3852Mon Mar 17 15:10:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3853
3854 * configure: Re-generate.
3855
3856Mon Mar 17 15:04:47 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3857
3858 * Make-common.in (CSEARCH): Do not include the gdb directory in
3859 the search path.
3860
3861Mon Mar 17 13:16:26 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3862
3863 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
3864 SIM_WARNING): Drop, requiring the simulator specific Makefile.in
3865 to explicitly incorporate these.
3866
3867 * aclocal.m4 (--enable-sim-alignment); New option. Strongly
3868 specify the alignment restrictions of the target architecture -
3869 without this option all alignment restrictions are accomodated.
3870 (--enable-sim-assert): New option. Conditionally compile in
3871 assertion statements.
3872 (--enable-sim-float): New option. Strongly specify the target's
3873 floating point support.
3874 (--enable-sim-hardware): New option. Specify the hardware devices
3875 included in the simulation.
3876 (--enable-sim-packages): New option. Specify the hardware
3877 packages included in the simulation.
3878 (--enable-sim-regparm): New option. Specify that parameters be
3879 passed in registers instead of on the stack.
3880 (--enable-sim-reserved-bits): New option. Specify that reserved
3881 bits within an instruction are are correctly set.
3882 (--enable-sim-smp): New option. Specify the level of SMP support
3883 to be included in the simulator.
3884 (--enable-sim-stdcall): New option. Specify an alternative
3885 function call convention.
3886 (--enable-sim-xor-endian): New option. Configure xor-endian
3887 support used by some targets to implement bi-endian support.
3888
3889Fri Mar 14 19:51:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3890
3891 * aclocal.m4 (--enable-sim-hostendian): New option. Allow the
3892 host endianness to be overridden.
3893 (--enable-sim-endian): Allow the target platform's byte order
3894 to be overridden.
3895 (--enable-sim-inline): Control the inlining of common components.
3896 (--enable-sim-bswap): For compatibility, also define WITH_BSWAP.
3897 (--enable-sim-warnings): Enable additional GCC compiler checks.
3898 * Make-common.in (SIM_ENDIAN, SIM_HOSTENDIAN, SIM_INLINE,
3899 SIM_WARNINGS): Add.
3900
3901 * sim-n-core.h, sim-n-bits.h, sim-n-endian.h: Rename from
3902 sim-*-n.h so that the names are uniq on dos machines
3903 * sim-core.c, sim-bits.c, sim-endian.c: Update.
3904
3905Thu Mar 13 12:32:42 1997 Doug Evans <dje@canuck.cygnus.com>
3906
3907 * run.c: #include "libiberty.h".
3908 (main): New locals sd,no_args,sim_argv.
3909 Run buildargv on -a option. Pass argv to sim_open, argv[0]
3910 is program name. Update call to sim_set_callbacks.
3911 Record result of sim_open, pass to other sim_foo routines.
3912
3913Thu Mar 13 10:24:05 1997 Michael Meissner <meissner@cygnus.com>
3914
3915 * callback.c (os_printf_filtered): Do not call exit(1) or print a
3916 final newline.
3917
3918Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3919
3920 * callback.c: Add os_flush_stdout and vprintf_filtered callbacks.
3921 Route stdout through buffered IO.
3922
3923 * callback.c: Add os_flush_stderr, os_write_stderr,
3924 os_evprintf_filtered functions to route error output through
3925 stderr.
3926
3927 * sim-io.h, sim-io.c (sim_io_flush_stderr, sim_io_flush_stdout):
3928 Correct return type - should be void.
3929
3930Fri Mar 7 20:14:37 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3931
3932 * sim-basics.h: Clean up. Many macro's moved to sim-inline.h.
3933
3934 * sim-config.h: Ditto. For some options - eg WITH_DEVICES - do
3935 not provide a default value as undefined indicates disable code.
3936
3937Thu Mar 6 15:50:28 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3938
3939 * sim-core.h, sim-core-n.h, sim-core.c: Borrow code from ppc
3940 directory.
3941 * sim-events.h, sim-events.c: Ditto.
3942 * sim-io.h, sim-io.c: Ditto.
3943
3944Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3945
3946 * sim-alu.h (ALU_SUB_CA, ALU*_SUB_CA): New alu operation.
3947
3948 * sim-bits.h, sim-bits-n.h, sim-bits.c (LSMASKED*): New macro's
3949 extract the tail or least signifiant bits from an integer of the
3950 specified size.
3951
3952 * sim-bits.h, sim-bits.c: Clean up conditionally compiled #if
3953 WITH_TARGET_BITSIZE so that the compilation will fail when an
3954 unsupported bitsize value is defined.
3955
3956 (INSERTED*): Convert to functions.
3957 (EXTRACTED*): Ditto.
3958
3959 (SIGN_EXTEND, SEXT): Change to more terse name.
3960
3961Tue Mar 4 09:35:56 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3962
3963 * sim-inline.h: Allow explicit control over which .c files will be
3964 included by their header.
3965
3966 * sim-inline.h: Allow explicit control over which .c files use the
3967 alternative - REGPARM - parameter passing mechanism.
3968
3969 * sim-inline.h, sim-inline.c: Don't attempt to include any of
3970 icache.c, idecode.c, semantics.c or support.c. Those names are
3971 not generally applicable.
3972
3973Thu Feb 27 10:17:23 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3974
3975 * sim-bits.c, sim-bits-n.h (new): Split sim-bits.c into two parts
3976 in a fashion similar to sim-endian-n.
3977
3978 * sim-endian.h: (H_word, L_word, AL_*, VL_*): Extend to include
3979 both value and address macro's.
3980
3981Tue Feb 25 18:51:57 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
3982
3983 * sim-alu.h (ALU16_BEGIN, ALU16_SET, ...): Fill in.
3984
3985 * sim-endian.h (L_word, H_word): Replace MS2W_4, LS2W_4 with more
3986 generic L_word, H_word macro's.
3987
3988Thu Feb 20 18:36:55 1997 Andrew Cagney <cagney@critters.cygnus.com>
3989
3990 * sim-basics.h: Borrow code from ppc directory.
3991 * sim-bits.c: Ditto.
3992 * sim-bits.h: Ditto.
3993 * sim-config.h: Ditto.
3994 * sim-endian-n.h: Ditto.
3995 * sim-endian.c: Ditto.
3996 * sim-endian.h: Ditto.
3997 * sim-inline.c: Ditto.
3998 * sim-inline.h: Ditto.
3999 * sim-types.h: Ditto.
4000
4001Wed Feb 19 12:40:50 1997 Andrew Cagney <cagney@critters.cygnus.com>
4002
4003 * sim-alu.h (ALU_SET16, ALU_SET32, ALU_SET64, etc): Make available
4004 all the ALU size alternatives and then auto-configure a default.
4005
4006 * sim-alu.h: Copy ppc/idecode_expression.h.
4007
4008Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
4009
4010 * bits.h, bits.c (SIGN_EXTEND32, SIGN_EXTEND64): New functions,
4011 sign extend a bit within a value.
4012
4013 * sim-endian.h, sim-endian-n.h (offset_N): New functions - return
4014 a pointer into the middle of a host word.
4015 * sim-endian.h (MS2W_4, LS2W_4): Use this function.
4016
4017Tue Feb 11 13:46:49 1997 Michael Meissner <meissner@tiktok.cygnus.com>
4018
4019 * callback.c: If HAVE_CONFIG_H is defined, include config.h from
4020 autoconf. If HAVE_UNISTD_H is defined, include unistd.h to get
4021 appropriate definitions of read, write, etc. Add prototype for
4022 system.
4023
4024Tue Feb 4 13:24:44 1997 Doug Evans <dje@canuck.cygnus.com>
4025
4026 * Makefile.in (libcommon.a): Delete.
4027 (callback.o,targ-map.o): Delete, moved to Make-common.in.
4028 (gentmap,targ-vals.h,targ-map.c): Likewise.
4029 (run-autoconf): Delete.
4030 * aclocal.m4 (SIM_AC_OUTPUT): Redo creation of Makefile.
4031 (common makefile fragment): Moved back into ...
4032 * Make-common.in: Resurrect.
4033 * configure.in (AC_LINK_FILES): Delete, unnecessary now.
4034 * configure: Regenerated.
4035
4036Fri Jan 31 07:16:49 1997 Doug Evans <dje@canuck.cygnus.com>
4037
4038 * aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
4039 (SIM_AC_OUTPUT): To here.
4040
4041Fri Jan 24 10:37:17 1997 Stu Grossman (grossman@critters.cygnus.com)
4042
4043 * aclocal.m4 (COMMON_MAKEFILE_FRAG): Quote a couple of $'s in
4044 comments and single quotes. Fixes a problem found on hpux.
4045
4046Thu Jan 23 13:35:03 1997 Stu Grossman (grossman@critters.cygnus.com)
4047
4048 * aclocal.m4: Remove Make-common.in from dependencies.
4049 * (distclean): Remove targ-vals.def.
4050
4051 * aclocal.m4 (SIM_AC_COMMON): Move contents of Make-common.in
4052 into here. Makes insertion into makefiles easier. Also, change
4053 the way that callback.o, gentmap, targ-vals.h, targ-map.c,
4054 targ-map.o, and run are built. They are now built in the
4055 individual simulator directories, taking sources from ../common as
4056 necessary. This replaces the merging of libcommon.a into
4057 linsim.a, which was problematic for the WinGDB build process.
4058 * run.c: Include config.h from . instead of ../common.
4059 * Make-common.in: Remove. It's no longer necessary.
4060
4061Mon Dec 16 15:02:33 1996 Ian Lance Taylor <ian@cygnus.com>
4062
4063 * Make-common.in (ALL_CLAGS): Put CFLAGS at the end.
4064 (.c.o): Put $(ALL_CFLAGS) before the file being compiled.
4065
4066Wed Dec 11 11:30:58 1996 Jim Wilson <wilson@cygnus.com>
4067
4068 * run.c (main): Set target_byte_order before call to sim_open.
4069
4070Sun Dec 8 18:22:06 1996 Doug Evans <dje@canuck.cygnus.com>
4071
4072 * callback.c: #include <stdlib.h>
4073 (os_error): New function.
4074 (default_callback): Add os_error.
4075
4076Mon Nov 25 19:44:35 1996 Doug Evans <dje@canuck.cygnus.com>
4077
4078 * Make-common.in (Makefile): Set CONFIG_HEADERS="".
4079 * aclocal.m4: Mark the fact that --enable-sim-bswap isn't host
4080 specific.
4081 (SIM_AC_OUTPUT): Don't build Makefile if CONFIG_FILES="".
4082
4083Wed Nov 20 01:11:04 1996 Doug Evans <dje@canuck.cygnus.com>
4084
4085 * run.c: #include ../common/config.h, tconfig.h.
4086 (myname): New static global.
4087 (main): Recognize new options -a, -c. Also recognize -h if h8/300.
4088 Only process -c ifdef SIM_HAVE_SIMCACHE.
4089 Only process -p/-s ifdef SIM_HAVE_PROFILE.
4090 Parse program name from argv[0] and use in error messages.
4091 Pass sim_args to sim_open. Pass prog_args to sim_create_inferior.
4092 Add support for incomplete h8/300 termination indicators.
4093 (usage): Make more verbose.
4094 * aclocal.m4,config.in,tconfig.in,configure.in,configure: New files.
4095 * Makefile.in,Make-common.in,callback.c: New files.
4096 * nltvals.def,gentmap.c,gentvals.sh: New files.
4097
4098Tue Nov 12 13:34:00 1996 Dawn Perchik <dawn@cygnus.com>
4099
4100 * run.c: Include stdarg.h if __STDC__.
4101
4102Tue Oct 15 11:16:31 1996 Jeffrey A Law (law@cygnus.com)
4103
4104 * run.c (main): Don't print out anything if the signal
4105 number is zero (ie no signal).
4106
4107Tue Oct 15 11:20:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4108
4109 * run.c (main): Print out if the program raised a signal.
4110
4111Wed Sep 18 09:52:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4112
4113 * run.c (exec_bfd): Rename from sim_bfd, to use the gdb name.
4114 (main): Ditto.
4115
4116Tue Sep 17 11:04:50 1996 James G. Smith <jsmith@cygnus.co.uk>
4117
4118 * run.c (main): Explicitly cast malloc() parameter.
4119
4120Thu Sep 12 11:27:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4121
4122 * run.c (sim_bfd): New global to hold the bfd pointer for the
4123 executable.
4124 (main): Initialize sim_bfd.
4125
4126Fri Dec 15 16:27:49 1995 Ian Lance Taylor <ian@cygnus.com>
4127
4128 * run.c (main): Use new bfd_big_endian macro.
4129
4130Wed Nov 8 15:49:49 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
4131
4132 * run.c (main): Removed SH specific comments, so source is
4133 generic. Also updated to only load relevant sections. Moved
4134 sim_open() to after callback attach (to match GDB).
4135
4136 * run.1: Removed SH specific comments.
4137
4138Sat Oct 21 12:31:01 1995 Jim Wilson <wilson@chestnut.cygnus.com>
4139
4140 * run.c (main): Always return sigrc at end.
4141
4142Tue Oct 10 12:03:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
4143
4144 * run.c (main): Print error diagnostic and exit if bfd_openr() or
4145 bfd_check_format() fails.
4146
4147Thu Sep 28 15:40:36 1995 steve chamberlain <sac@slash.cygnus.com>
4148
4149 * run.c, run.1: From sh directory.
This page took 0.281741 seconds and 4 git commands to generate.