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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [common/] [ChangeLog] - Blame information for rev 175

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

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