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