OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [sim/] [common/] [ChangeLog] - Blame information for rev 1775

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.