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