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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [sim/] [ppc/] [ChangeLog.00] - Blame information for rev 866

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

Line No. Rev Author Line
1 330 jeremybenn
Wed May 29 22:57:40 1996  Andrew Cagney  
2
 
3
        * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes
4
        ChangeLog.00
5
 
6
Thu Apr  4 15:17:22 1996  Michael Meissner  
7
 
8
        * INSTALL: Fix some long lines and remove x86 specific options in
9
        the examples.
10
 
11
Sun Mar 31 15:47:33 1996  Andrew Cagney  
12
 
13
        * INSTALL: Update to reflect gdb-4.16.
14
 
15
        * RUN: Update to reflect gdb-4.16.  Review notes on building a BSD
16
        runtime environment.
17
 
18
        * README: Point out copyright status of simulator in introduction.
19
 
20
Thu Mar  7 19:53:49 1996  Michael Meissner  
21
 
22
        * emul_netbsd.c: Only include sys/mount.h if HAVE_SYS_MOUNT_H is
23
        defined.
24
        * configure.in: Test for sys/mount.h.
25
        * configure,config.in: Regenerate.
26
 
27
Thu Feb 22 22:48:57 1996  Andrew Cagney  
28
 
29
        * README, RUN, INSTALL: Update to reflect announcement
30
        * psim: PSIM 1.0.1 released
31
 
32
Thu Feb 22 14:01:56 1996  Michael Meissner  
33
 
34
        * emul_bugapi.c (emul_bugapi_do_read): New function to handle
35
        reads.
36
        (emul_bugapi_instruction_call): Add support for .INCHR/.INLN
37
        system calls.
38
 
39
        * emul_bugapi.c (emul_bugapi_do_write): Call flush_stdoutput.
40
        * emul_netbsd.c (do_write): Call flush_stdoutput.
41
 
42
        * main.c (flush_stdoutput): Do fflush (stdout).
43
        * sim_calls.c (flush_stdoutput): Do gdb_flush (gdb_stdout);
44
        * sim_callbacks.h (flush_stdoutput): Declare.
45
 
46
Wed Feb 21 10:39:35 1996  Michael Meissner  
47
 
48
        * emul_bugapi.c (bug_mapping): New structure to map bug system
49
        call numbers to a string.
50
        (toplevel): Add remaining bugapi system calls.
51
        (emul_bugapi_instruction_name): Map bugapi system call number to a
52
        string.
53
        (emul_bugapi_do_write): Common code to process write system calls.
54
        (emul_bugapi_instruction_call): If os-emul tracing is on, trace
55
        the system call.  Use the name to print unknown system call.
56
        Correct implementation of _OUTLN.  Add support for _OUTSTR and
57
        _PCRLR system calls.
58
 
59
Wed Feb 21 17:07:27 1996  Andrew Cagney  
60
 
61
        * NOTES: New file.  Ramblings on why things were done they way
62
        they were.
63
 
64
        * psim.c (psim_options): Didn't enter the model value into the
65
        device tree as a string.
66
 
67
        * cpu.c (cpu_synchronize_context): Wrong test for conditional
68
        flush of cache.
69
 
70
        * emul_generic.c (emul_add_tree_hardware): reg value didn't match
71
        bus address.
72
 
73
        * ppc-opcode-flat: new file. Generate an instruction decode
74
        function like ppc-opcode-complex but use switch statements.
75
 
76
        * INSTALL: document new opcode file, add example configurations.
77
 
78
Tue Feb 20 18:42:31 1996  Andrew Cagney  
79
 
80
        * main.c (main): rename psim instance (system) to simulation and
81
        make global.
82
        * main.c (error): print out performance even when an error occures.
83
 
84
        * emul_bugapi.c (emul_bugapi_create): Fix argument passing.
85
 
86
        * emul_generic.c (emul_add_tree_hardware): Move hardware devices
87
        to 0x80000000 from 0x400000.
88
 
89
Mon Feb 19 22:54:40 1996  Andrew Cagney  
90
 
91
        * ppc-instructions (TLB Invalidate Entry, TLB Invalidate ALL):
92
        Implement by passing on request to all processors.
93
        * ppc-instructions (TLB Synchronize): Implement as empty, processor
94
        tlb's are always in sync.
95
 
96
        * cpu.c (cpu_page_tlb_invalidate_all): New function.  Pass on TLB
97
        invalidate request to processors VM sub-system.
98
        * cpu.c (cpu_page_tlb_invalidate_entry): Ditto.
99
 
100
        * vm.c (vm_page_tlb_invalidate_all): New function. Mark all page
101
        TLB entries as invalid.
102
        * vm.c (vm_page_tlb_invalidate_entry): New function. Ditt but only
103
        invalidate one TLB entry.
104
 
105
        * psim.c (psim_init): Invalidate TLB's before (re)starting.
106
 
107
Mon Feb 19 21:25:56 1996  Andrew Cagney  
108
 
109
        * emul_generic.c (emul_add_tree_options): Add argument
110
        oea_interrupt_prefix (0 or 1) that specifies the prefix MSR[IP]
111
        and hence the location of the interrupt vectors.  Add this to the
112
        device tree.
113
 
114
        * emul_chirp.c (emul_chirp_create): Allow configuration of
115
        floating-point and interrupt prefix (default 0) using the above.
116
 
117
        * emul_netbsd.c (emul_netbsd_create): Pass dummy arg for
118
        interrupt-prefix.
119
 
120
        * emul_bugapi.c (emul_bugapi_create): Allow configuration of
121
        interrupt prefix (default 1) and configure interrupt table traps
122
        accordingly.
123
 
124
        * emul_generic.c (emul_add_tree_hardware): Include a small eeprom
125
        in the list of devices.
126
 
127
        * device_table.c: For moment fake eeprom device by a memory
128
        device.  In future will need a proper eeprom device.
129
 
130
Tue Feb 20 17:01:26 1996  J.T. Conklin  
131
 
132
        * config.in: Regenerated.
133
 
134
Fri Feb 16 10:42:27 1996  Michael Meissner  
135
 
136
        * psim.c: Include options.h so print_options is declared.
137
 
138
Thu Feb 15 18:10:13 1996  Michael Meissner  
139
 
140
        * emul_netbsd.c (toplevel): Do not include sys/resource.h if the
141
        system doesn't have it, and turn off getrusage processing.
142
        (write_rusage): #ifdef out if we don't have getrusage.
143
        (do_getrusage): Define as 0 if we don't have getrusage.
144
 
145
Wed Feb 14 17:38:12 1996  J. T. Conklin  
146
 
147
        * configure.in (AC_HEADER_DIRENT): Add, so that we can figure out
148
        where the directory functions are declared.
149
        * configure: Regenerate
150
 
151
        * emul_netbsd.c: Use the macros defined by configure to find the
152
        appropriate directory functions.
153
 
154
Thu Feb  8 00:53:13 1996  Andrew Cagney  
155
 
156
        * configure.in (xor_endian): Trace setting of xor-endian flag.
157
 
158
Wed Feb  7 18:20:56 1996  Andrew Cagney  
159
 
160
        * psim.c (psim_usage): Extend documentation.
161
 
162
        * ppc-instructions (model-print): fix typo.
163
 
164
Sun Feb  4 23:58:02 1996  Andrew Cagney  
165
 
166
        * configure.in (with-smp): Default configuration allow up to
167
        five processors (but enable only one).
168
 
169
        * emul_bugapi.c (emul_bugapi_create): If floating-point is
170
        allowed, enable the floating point instruction set in the
171
        msr.
172
 
173
Tue Jan 30 22:52:32 1996  Andrew Cagney  
174
 
175
        * emul_chirp.c (chirp_emul_seek, chirp_emul_read,
176
        chirp_emul_write): Tolerate invalid ihandles.
177
 
178
        * device.c (device_instance_create, device_instance_delete):
179
        init/delete instance name
180
 
181
        * emul_chirp.c (emul_chirp_instruction_call): Read the nr args and
182
        returns when determining the service.
183
 
184
        * emul_chirp.c (chirp_read_t2h_args): Allow variable number of
185
        args for the method "call-method".
186
 
187
        * emul_chirp.c (chirp_emul_getprop): Tolerate a n_returns of zero
188
        - should be one. Some OpenBoot code doesn't pass correct arg.
189
 
190
        * emul_chirp.c (chirp_emul_getprop): Trace more property types.
191
 
192
Tue Jan 30 19:12:29 1996  Andrew Cagney  
193
 
194
        * RUN: New file. Describe how to run PSIM
195
        * INSTALL: New file. Describe how to install PSIM
196
        * README: New file. Overview PSIM.
197
        * BUGS: New file. Briefly discuss bugs and limitations
198
 
199
Wed Jan 24 20:28:08 1996  Andrew Cagney  
200
 
201
        * emul_bugapi.c (OEA_START_ADDRESS): Put it back to 0x100000,
202
        wasn't correctly using GLD.
203
 
204
Mon Jan 22 22:44:13 1996  Andrew Cagney  
205
 
206
        * emul_generic.c (emul_add_tree_options): Make default number of
207
        active processors 1 (even when SMP enabled).
208
 
209
Mon Jan 22 22:37:34 1996  Andrew Cagney  
210
 
211
        * device_table.c (icu_io_read_buffer_callback): Add extra register
212
        (at addr + 4) that returns number of processors.
213
 
214
        * emul_generic.c (emul_add_tree_hardware): Update device node to
215
        match.
216
 
217
Mon Jan 22 22:00:42 1996  Andrew Cagney  
218
 
219
        * emul_bugapi.c (OEA_START_ADDRESS): Change to 0x4000 so that it
220
        matches gas-960116/ld.
221
 
222
Fri Jan 19 00:32:27 1996  Andrew Cagney  
223
 
224
        * psim-960119 released - psim-1.0b01.
225
 
226
Fri Jan 19 00:32:27 1996  Andrew Cagney - aka Noid  
227
 
228
        * psim.c (psim_create): Re-order so that all options are set
229
        before the CPU's are created.  Was breaking mon_create();
230
 
231
        * psim.c (psim_create): Tidy up conflicting configuration errors.
232
 
233
        * debug.c: Add missing print-info entry to trace table.
234
 
235
        * os_emul.c (os_emul_create): Fix `-e' option. Was looking under
236
        wrong name.
237
 
238
        * psim.c (psim_options): Fix `-r' option. Was entering under wrong
239
        name.
240
 
241
Thu Jan 18 20:33:48 1996  Andrew Cagney  
242
 
243
        * vm.c (om_unpack_bats): Fix checking of bat bits.
244
 
245
        * emul_chirp.c (emul_chirp_create): Store address of OB in memory
246
        in the os_emul_data structure.
247
 
248
        * emul_bugapi.c (emul_bugapi_create): Store the address of the
249
        bugapi code (in main memory) in the os_emul_data structure.
250
 
251
Thu Jan 18 01:14:55 1996  Andrew Cagney  
252
 
253
        * vm.c (om_translate_effective_to_real): Fix trace output.
254
 
255
Wed Jan 17 22:21:55 1996  Andrew Cagney  
256
 
257
        * device_table.c (generic_device_init_address): Create memory from
258
        information obtained from `reg' property.
259
        * device_table.c (vm_init_address_callback): Use information
260
        obtained from properties.
261
        * emul_netbsd.c (emul_netbsd_create): Update to create device and
262
        property entries to match
263
 
264
Tue Jan 16 09:50:53 1996  Michael Meissner  
265
 
266
        * idecode_expression.h (ALU_END): Add ITRACE of the result.
267
 
268
        * ppc-instructions (Equivalent): Enable this instruction.
269
        (Add to Minus One Extended): Ditto.
270
        (Subtract from Minus One Extended): Ditto.
271
        (Add/And/Or/Xor Immediate): Add alu trace of result.
272
        (Add/And/Or/Xor Shifted Immediate): Ditto.
273
        (And/Or/Equivalent/Nand/Nor): Ditto.
274
        (And/Or with Complement): Ditto.
275
        (Extend Sign Byte/Half Word): Ditto.
276
        (Count Leading Zeros): Ditto.
277
        (Shift Right Algerbraic Word): Ditto.
278
        (Shift Right Algerbraic Word Immediate): Ditto.
279
 
280
Tue Jan  9 15:10:27 1996  Andrew Cagney  
281
 
282
        * emul_bugapi.c (emul_bugapi_instruction_call) : Make format type
283
        correct.
284
        * emul_chirp.c (map_over_chirp_note) : Ditto
285
        * emul_chirp.c (chirp_emul_test) : Ditto
286
        * device_table.c (register_init): Ditto
287
 
288
Tue Jan  9 14:16:26 1996  Andrew Cagney  
289
 
290
        * configure.in: Make disable-sim-switch default.  Switch only
291
        useful if using --enable-sim-opcode=ppc-opcode-stupid and then
292
        only marginally so.
293
 
294
Mon Jan  8 12:17:22 1996  Michael Meissner  
295
 
296
        * device_table.c (register_init): Make format type correct.
297
 
298
Wed Jan  3 19:21:46 1996  Andrew Cagney  
299
 
300
        * emul_bugapi.c (emul_bugapi_create): Add nodes to init the
301
        system-call trap to the emul instruction call instruction (Along
302
        with an rfi and infinate loop).
303
 
304
        * emul_bugapi.c (emul_bugapi_instruction_call): Expand to include
305
        a few real PPC bug calls.  Test with simple hello world.
306
 
307
Tue Jan  2 20:51:19 1996  Andrew Cagney - aka Noid  
308
 
309
        * device.h, device.c (device_child, device_sibling): New
310
        functions.  Return corresponding device value.
311
 
312
        * emul_chirp.c (chirp_emul_child, chirp_emul_peer,
313
        chirp_emul_parent): New functions - emulate corresponding OpenBoot
314
        interfaces.
315
 
316
        * device_table.c (register_init): Extend properties attached to
317
        register init node to allow a specific processor's register to be
318
        specified.
319
 
320
        * emul_chirp.c (emul_chirp_create): Init SMP correctly - the
321
        initial PC for all processors is an infinate loop but then, for
322
        processor zero, is quickly changed to be the correct code starting
323
        address.
324
 
325
        * emul_chirp.c (emul_chirp_create): Add fake bootpath
326
        et.al. properties to tree.
327
 
328
        * emul_chirp.c (chirp_emul_getproplen): New function.  Emulate the
329
        getproplen OpenBoot call.
330
 
331
        * emul_chirp.c (emul_chirp_instruction_call): Document other
332
        possible chirp emulation internal states.
333
 
334
        * emul_chirp.c (emul_chirp_instruction_call): Trace failed lookups
335
        as well as successful ones.
336
 
337
        * emul_chirp.c (emul_chirp_open): New function - handle open
338
        client call.
339
 
340
        * Makefile.in (maintainer-clean): Proper rule that eliminates more
341
        junk.
342
 
343
Tue Dec 19 13:00:11 1995  Andrew Cagney  
344
 
345
        * emul_chirp.c (chirp_emul_exit): Full out call.
346
 
347
        * device_table.c (htab_map_page): Wasn't handling byte swap when
348
        creating entries in the hash table.
349
 
350
        * device.c (device_tree_find_node): Allow primative wild-card match
351
        of device names with the path.
352
 
353
        FIXME: As mentioned earlier, the device stuff needs work to bring
354
        it into line with OpenBoot.  Part of this work is rewriting the
355
        find_node function so that it behaves as specified in p1275.
356
 
357
Mon Dec 18 19:58:56 1995  Andrew Cagney  
358
 
359
        * emul_chrp.c (chirp_emul_write, chirp_emul_finddevice): add
360
        better tracing.
361
 
362
        * emul_chrp.c: Change return type of emul functions to int.  Emul
363
        functions either return -1 or zero so unsigned was a bit
364
        dangerous.
365
 
366
        * inline.h (*), igen.c, dgen.c, *: Update INLINE macros so that
367
        they are paramaterised with the type of the function.  Gets around
368
        the problem of `static' needing to come first with `attribute'
369
        comming last.  Format declarations and definitions so that emacs
370
        doesn't get confused.
371
 
372
Fri Dec 15 17:06:44 1995  Andrew Cagney  
373
 
374
        * std-config.h (PSIM_INLINE): Add missing inline configuration
375
        control for the main loop.
376
 
377
        * mon.c (mon_print_info): If monitoring disabled still print out
378
        the number seconds used.
379
 
380
        * psim.c (run_until_stop): Don't monitor the cache misses when
381
        monitoring is disabled.
382
 
383
        * configure.in (sim_mon, sim_monitor): Correct typo - sim_mon ->
384
        sim_monitor for shell variable (or should that have been the other
385
        way around?).
386
 
387
        * vm.c (vm_synchronize_context): Fix wrong test for unsuported
388
        change in endian-mode.
389
 
390
        * std-config.h (WITH_REGPARM), inline.h (IDECODE_INLINE,
391
        SEMANTICS_INLINE): Add -DWITH_REGPARM= option.  Enables the
392
        __attribute__((__regparm(WITH_REGPARM))) for some functions.
393
        configure with --enable-sim-cflags="-DWITH_REGPARAM=3" (say).
394
        Unfortunatly it tickles a bug (gcc?) and can't be used.
395
 
396
Mon Dec 18 13:36:06 1995  Michael Meissner  
397
 
398
        * device.c (device_tree_add_device): Make trace fprintf arguments
399
        type correct.
400
        * device_table.c (htab_decode_hash_table): Ditto.
401
        (htab_map_binary): Ditto.
402
        (htab_init_callback): Ditto.
403
        * vm.c (om_virtual_to_real): Ditto.
404
 
405
Sat Dec 16 09:54:18 1995  Michael Meissner  
406
 
407
        * emul_netbsd.c (emul_netbsd_create): Deal with new BFD that
408
        changed how big/little endian support is recorded, while remaining
409
        compatible with the old BFD with #ifdefs.
410
        * emul_chirp.c (emul_chirp_create): Ditto.
411
        * emul_bugapi.c (emul_bugapi_create): Ditto.
412
 
413
Fri Dec 15 15:55:56 1995  Michael Meissner  
414
 
415
        * std-config.h (MODEL_INLINE): Turn off INLINE_MODULE by default.
416
 
417
        * corefile.h: Delete declarations for unknown functions.
418
        * device.h: Ditto.
419
        * interrupts.h: Ditto.
420
        * interrupts.c: Ditto.
421
 
422
Thu Dec 14 18:49:34 1995  Andrew Cagney  
423
 
424
        * lf.c (lf_print_function_type): New function.  Munges a function
425
        type so that the prefix (eg INLINE...) is inserted after the type
426
        but before any `*'.
427
 
428
        * igen.c: Change to output functions using this.
429
 
430
Wed Dec 13 23:47:00 1995  Andrew Cagney   
431
 
432
        FIXME: Emul CHIRP does not correctly implement the find device
433
        function.
434
 
435
        FIXME: Emul CHIRP and device do not implement device instance
436
        operations.
437
 
438
Wed Dec 13 23:47:00 1995  Andrew Cagney   
439
 
440
        * options.c (options_inline): Function to output meaningful
441
        description of the INLINE options.
442
 
443
        * configure.in (inline): Replace inline magic numbers with macro
444
        names. Map 1->LOCALS_INLINE and 2->ALL_INLINE.
445
 
446
        * inline.h, inline.c: update to use inline method.
447
 
448
        * std-config.h (CPU_INLINE), cpu.h, inline.h, inline.c: make cpu.h
449
        inline always.
450
 
451
        * std-config.h (EVENTS_INLINE): Inline events in psim.
452
 
453
Wed Dec 13 22:01:21 1995  Andrew Cagney   
454
 
455
        * device_table.c (htab_sum_binary): DMA binaries to correct byte
456
        within a page.
457
 
458
Tue Dec 12 22:51:18 1995  Andrew Cagney   
459
 
460
        * psim.c (psim_merge_device_file): Change `=' to `==', was this an
461
        error?
462
 
463
Tue Dec  5 11:56:14 1995  Andrew Cagney  
464
 
465
        * ppc-instructions (ppc_nr_mtcrf_crs, ppc_branch_conditional_name,
466
        ppc_function_unit_name): Simplify by declaring these arrays as
467
        pure and simple static (instead of STATIC_MODEL).
468
 
469
Tue Dec  5 00:45:34 1995  Andrew Cagney  
470
 
471
        * sim_calls.c (sim_create, sim_load), main.c (main), psim.c: Pass
472
        an options device into psim_create() so that options can be merged
473
        into the tree.
474
 
475
        * device.c (*add*): Change semantics so the add functions only add
476
        when the new device (or property) doesn't already exist.  This
477
        allows merging of options and data.
478
 
479
Mon Dec  4 17:12:13 1995  Andrew Cagney  
480
 
481
        * Makefile.in (BASICS_H): Didn't include basics.h in the list of
482
        header files to depend on.
483
 
484
Mon Dec  4 17:12:13 1995  Andrew Cagney  
485
 
486
        * std-config.h: (*_MODULE): Extend the _inline macro's so
487
        that they also allow control over static functions.  Rewrite
488
        document to reflect this.
489
 
490
        * std-config.h: (INLINE): Simplify definition, the above and
491
        earlier changes to igen.h eliminate the need to be defensive about
492
        enabling the inline of static functions.
493
 
494
        * std-config.h: (SIM_ENDIAN_INLINE, BITS_INLINE): Document limited
495
        suport for inlineing of modules for all callers.  Adjust relevant
496
        macro's so that DEFAULT_INLINE will enable this.
497
 
498
        * basics.h: Re-order #includes and definitions so that c-code for
499
        basic include files does not call functions delcared in later
500
        #includes.
501
 
502
        * basics.h (__attribute__), sim_callbacks.h: Move attribute macro
503
        to basics.h and add hack (include ) to try and bring that
504
        and other possible conflicting macros into scope much earler.
505
 
506
        * sim-endian.h,c (SIM_ENDIAN_INLINE) bits.h,c (BITS_INLINE):
507
        Change to use the updated inline definitions.  If enabled
508
        immediatly include the corresponding c-code so that it will inline
509
        for all modules.
510
 
511
        * inline.h, inline.c (SIM_ENDIAN_INLINE, BITS_INLINE): Remove
512
        these cases, moved to module specific header files.
513
 
514
Sat Dec  2 18:37:51 1995  Andrew Cagney  
515
 
516
        * vm.c, vm_n.c: Fix htab code.
517
 
518
        * vm.c (vm_data_map_read_buffer): Was using EA not RA when reading
519
        the data from core.
520
 
521
        * device.c: Fix htab create code.
522
 
523
Fri Nov 24 23:10:09 1995  Andrew Cagney  
524
 
525
        * bits.h, bits.c (EXTRACTED): Convert to function, fix - had &&
526
        instead of &.
527
 
528
        * sim-endian.h (SWAP_N), sim-endian-n.h, sim-endian.c: How
529
        embarasing - fix yet another bug in the swap code!  Simplify
530
        everything by using more functions. Add host to big-endian byte
531
        swapping support.
532
 
533
Fri Nov 24 23:10:09 1995  Andrew Cagney  
534
 
535
        * devices.h, devices.c: delete, replaced by the files
536
        device_table.[ch] and device.[ch].
537
        * device_tree.h, device_tree.c: ditto
538
 
539
        * device_table.h, device_table.c: New files.  Contain a table of
540
        devices.
541
 
542
        * device.h, device.c, Makefile.in, std-config.h (DEVICE_INLINE),
543
        options.c (print_options): New files.  Define the device object
544
        along with any attached properties.
545
 
546
        * device_tree.h, device_tree.c: Update to use new device object.
547
        For convenience, change the printd functions into device_tree_add
548
        functions.
549
 
550
        * psim.c (create_*_tree): Use new device_tree create functions.
551
 
552
        * corefile.h, corefile.c corefile-n.h (core_n.h): Update to use
553
        the new device.h / device_table.h interface.  Rename core_n.h to
554
        corefile-n.h to be consistent with other n files.
555
 
556
        * Makefile.in (run): add corefile-n.h to dependencies for
557
        corefile.
558
 
559
        * basics.h (device_instance), device.h, device.c, device_table.h,
560
        device_table.c: Add the concept of a device instance and operators
561
        on these instances - corresponds to ihandle in OpenBoot speak.
562
        Don't yet implement it.
563
 
564
Tue Nov 14 12:27:08 1995  Andrew Cagney  
565
 
566
        * emul_generic.h, emul_generic.c (emul_syscall_enter,
567
        emul_syscall_exit): rename from emul_enter_call /
568
        emul_exit_call. As only used by emul_do_system_call simplify
569
        associated code.
570
 
571
        * os_emul.h, os_emul.c, emul_generic.h: Correct and fill an
572
        os_emul interface.
573
 
574
        * os_emul.c, emul_bugapi.h, emul_bugapi.c, Makefile.in: Add
575
        preliminary hooks for a kernel mode rom emulation.
576
 
577
        * cap.h (new), cap.c (new): Capability data base.  Some emulations
578
        pass object identifiers (capabilities?) to/from the simulated code
579
        (for instance the phandle in OpenBoot).  The cap object is able to
580
        check/map between internal and external (target program)
581
        representations of each identifier.
582
 
583
        * os_emul.c, emul_chirp.h, emul_chirp.c, Makefile.in: Add
584
        preliminary hooks for a kernel mode IEEE-1275 emulation.
585
 
586
        * cpu.h, cpu.c (cpu_create, cpu_os_emulation, cpu): Add os_emul to
587
        list of arguments passed in when creating a cpu.  Grant access to
588
        the element.
589
 
590
        * std-config.h (OS_EMUL_INLINE), options.c (print_options),
591
        inline.h, inline.c: New to allow control over inline of
592
        corresponding code files.
593
 
594
        * ppc-instructions (instruction_call): Add illegal instruction to
595
        call the instruction-call emulation handler.
596
 
597
        * interrupts.c (system_call_interrupt): Call renamed
598
        os_emul_system_call function().
599
 
600
        * emul_netbsd.c: Update to interface to generic emulation.  Since
601
        all its functions are called via a table don't worry about any
602
        inline.
603
 
604
        * emul_generic.h, emul_generic.c, spa-*(delete): Remove references
605
        and code for spa, no longer to be used.
606
 
607
        * psim.c (create_chirp_device_tree): Fill out what was previously
608
        the openboot create function so that it starts to create a full
609
        OpenBoot device tree.
610
 
611
Tue Nov 28 21:48:06 1995  Andrew Cagney  
612
 
613
        * debug.h, debug.c: pte trace is made redundant by htab trace,
614
        delete it.  Add vm to list of options.  Simplify tracing output so
615
        lines are not as long.
616
 
617
Tue Nov 14 12:27:08 1995  Andrew Cagney  
618
 
619
        * events.h, events.c (event_queue_init), psim.c (psim_init): (re)
620
        initialize the event queue.
621
 
622
 
623
 
624
 
625
 
626
 
627
Tue Nov 28 13:38:26 1995  Michael Meissner  
628
 
629
        * sim-endian.h: Look at WORDS_BIGENDIAN to determine if the host
630
        is big endian or little endian.  For SWAP_n, use htonl/htons if
631
        host is little endian, not big endian and if WITH_NTOH is defined.
632
 
633
        * configure{,.in} (--enable-sim-model-issue): Instead of defining
634
        0/1, define it to be MODEL_ISSUE_{PROCESS,IGNORE}.  Add
635
        AC_C_BIGENDIAN to determine if the host is big endian or not.
636
        * config.in: Regenerate.
637
 
638
        * std-config.h (WITH_MODEL_ISSUE): Default to 0.
639
        (CURRENT_MODEL_ISSUE): Reference WITH_MODEL_ISSUE, and if that is
640
        0, use current_model_issue.
641
        (MODEL_ISSUE_{PROCESS,IGNORE}): Define as -1/1.
642
 
643
        * psim.c (current_model_issue): New global variable.
644
 
645
        * cpu.c (cpu_create): Use CURRENT_MODEL_ISSUE > 0 instead of
646
        WITH_MODEL_ISSUE.
647
        (cpu_{init,halt}): Ditto.
648
        * mon.c (mon_print_info): Ditto.
649
        * ppc-instructions (PPC_INSN_* macros, branch handling): Ditto.
650
 
651
        * mon.c (mon_print_info): Print instructions/second if verbose > 0,
652
        rather than > 1.
653
 
654
        * main.c (main): Set current_model_issue to MODEL_ISSUE_PROCESS if
655
        the -I switch is used.
656
        * sim_calls (sim_open): Ditto.
657
 
658
        * ppc-instructions (model support): Add support for determining
659
        when we don't have enough writeback slots.  Add tracing for the
660
        beginning of each cycle.
661
 
662
Mon Nov 27 17:46:33 1995  Michael Meissner  
663
 
664
        * mon.c: Check for whether to include sys/types.h and sys/time.h.
665
 
666
        * configure.in: Check for include files sys/types.h and
667
        sys/time.h.
668
        * configure: Regenerate.
669
        * config.in: Regenerate.
670
 
671
        * cpu.h (CONST_ATTRIBUTE): Define as __attribute__((__const__)) if
672
        not already defined.
673
        (cpu_system): Use CONST_ATTRIBUTE, so that when we're not inlining
674
        the world, the optimizer has a fair chance of CSE'ing function
675
        calls.
676
        (cpu_{monitor,nr,registers,model}): Ditto.
677
 
678
        * std-config.h (MODEL_INLINE): If not defined, define as 1 if
679
        DEFAULT_INLINE is non-zero, 0 otherwise, rather than just the
680
        value of DEFAULT_INLINE.
681
 
682
Fri Nov 24 11:24:34 1995  Michael Meissner  
683
 
684
        * lf.h (__attribute__): If not GCC and at least 2.7.0, define as
685
        nothing.
686
        (lf_printf): Add printf __attribute__, so the compiler will
687
        automatically check the format string.
688
 
689
        * configure{,.in} (--enable-sim-icache): If argument is define,
690
        add -R to flags passed to igen.
691
 
692
        * igen.c (stdlib.h): Include if the system supplies one.
693
        (semantics_use_cache_struct): New global for -R flag to say
694
        semantics is to use the cache structure directly rather than
695
        putting the values into local variables.
696
        (first_undef, last_undef): New structures to remember names to
697
        #undef if -R.
698
        (lf_print_c_extraction): If -R and this is semantics, emit names
699
        as #defines pointing to the cache structure, rather than loading
700
        the values into local variables.
701
        (lf_print_c_semantic_function): If -R, #undef all of the names
702
        defined in lf_print_c_extraction.
703
        (main): Recognize -R.
704
 
705
        * idecode_fields.h (SPR_*): Redefine spr_* macros as SPR_* to
706
        avoid a name confict if -R passed to igen.
707
 
708
        * ppc-instructions (mfspr, mtspr): Rename spr field to SPR.
709
        (model_data): Add field to count the various # of CRs that the
710
        mtcrf instruction used.
711
        (model_mon_info): Return structures counting the # of CRs that the
712
        mtcrf instruction used.
713
        (branches, sync instructions): Do not call model functions if
714
        WITH_MODEL_ISSUE is 0.
715
 
716
        * mon.c (stdlib.h): Include if the system supplies one.
717
        (mon_sort_instruction_names): New function to sort instruction
718
        names alphabetically.
719
        (mon_print_info): Call qsort with mon_sort_instruction_names to
720
        sort instruction names.  Don't abort if WITH_MODEL_ISSUE is 0.
721
 
722
        * debug.h (ITRACE): Make printf_filtered arguments type correct.
723
        * idecode_expression.h (CR0_COMPARE): Ditto.
724
        * psim.c (psim_read_register): Ditto.
725
 
726
        * igen.c (lf_print_my_prefix): Use __attribute__((__unused__)) to
727
        silence compiler warnings about unused automatically generated
728
        variables.
729
        (lf_print_c_extraction): Ditto.
730
        * idecode_expression.h (FPSCR_BEGIN): Ditto.
731
 
732
        * ppc-cache-rules: Define rules for making a bitmask for all
733
        registers.
734
 
735
        * ppc-instructions: Rewrite model specific functions to use the
736
        bitmask of the register number, instead of using the register
737
        pointer to get the register number, and then making the bitmask.
738
 
739
Wed Nov 22 15:24:27 1995  Michael Meissner  
740
 
741
        * ppc-instructions (model_branches): Add conditional argument to
742
        count the number of times each type of conditional branch is used.
743
        (conditional branches): Pass B0 or -1 to model_branches.
744
        (model_mon_info): Print out conditional branch counts.
745
        (model-data): Add support for printing out conditional branch
746
        types.
747
 
748
Tue Nov 21 16:31:25 1995  Michael Meissner  
749
 
750
        * igen.c (insn_table_load_insns): Add support for model-static for
751
        internal functions that should not be inlined.
752
        (lf_print_c_semantic): Remove model_cleanup.
753
        (gen_model_{c,h}): Ditto.
754
 
755
        * ppc-instructions: Redo model specific support once again.  Add
756
        floating point support to the model specific information.  Flesh
757
        out all of the floating mutiply add/subtract instructions.  Add
758
        better tracing support to the model specific information.
759
 
760
Sun Nov 19 23:00:52 1995  Michael Meissner  
761
 
762
        * ppc-instructions (model data, model_busy): Rather than using a
763
        bit mask for the busy units, just use a char array.  Also, only
764
        support 2 function units an insn can use, rather than a loop.
765
 
766
Fri Nov 17 14:08:08 1995  Michael Meissner  
767
 
768
        * table.c (table_entry_read): Move setting entry->line_nr to after
769
        the model specific fields so the line numbers for the annex are
770
        correct.
771
 
772
        * cpu.c (cpu_{create,init,halt}): Check for WITH_MODEL_ISSUE
773
        before calling the model functions.
774
 
775
        * debug.c (trace_descriptor): Add trace_model support.
776
        * debug.h (trace_options): Ditto.
777
 
778
        * igen.c (gen_icache_h): Create type idecode_cache as void if not
779
        caching instructions.
780
        (gen_model_{c,h}): Drop model_issue support.  Add support for
781
        model_cleanup.
782
        (lf_print_my_prefix): Initialize a const itable_index with the
783
        current index.
784
        (lf_print_c_semantic): Call model_cleanup at the end of the
785
        function to check for instructions that aren't supported yet by
786
        the scheduling code.
787
 
788
        * mon.h (count_type): New type for counters.
789
        * mon.c: Use count_type instead of unsigned.
790
 
791
        * ppc-instructions: Redo scheduling code once again.  Make it all
792
        inline friendly.  Instead of having general code emitted by igen,
793
        go the route of having each semantic routine call the appropriate
794
        module.
795
 
796
Thu Nov 16 09:52:26 1995  Michael Meissner  
797
 
798
        * table.c (table_entry_read): Allow the annex to have blank lines.
799
 
800
        * ppc-instructions: Change lines in model stuff that just have a
801
        tab to just newline.  Add 601 support.  Document most instructions
802
        in terms of model specific timing information.  Drop 'FUNCTION'
803
        from PPC_FUNCTION_UNIT_xxx enums.  Change PPC_UNIT_UNKNOWN ->
804
        PPC_UNIT_BAD.  Add TRACE(trace_tbd) for all data cache
805
        instruction.s.  Signal illegal instruciton if data cache block
806
        invalidate is issued from problem state.
807
 
808
        * igen.c (max_model_fields_len): New static to keep track of the
809
        max size for the model specific fields.
810
        (model_c_insn): Use max_model_fields_len to size fields.
811
        (insn_table_insert_insn): Set max_model_fields_len.
812
        (model_table_insert): Ditto.
813
        (gen_model_{c,h}): Model_issue is now called with a processor
814
        argument.
815
 
816
        * debug.c (trace_description): Add support for trace_tbd.
817
 
818
        * mon.c (mon_issue): Pass processor argument to model_issue.
819
 
820
        * Makefile.in: Delete all function unit support, since the newer
821
        table driven model support replaces it.
822
        * cpu.{c,h}: Ditto.
823
        * mon.c: Ditto.
824
        * inline.{c,h}: Ditto.
825
        * std-config.h: Ditto.
826
        * options.c: Ditto.
827
        * configure{,.in}: Ditto.
828
        * Makefile.in: Ditto.
829
        * psim.c: Ditto.
830
        * function_unit.{c,h}: Delete these now usused files.
831
 
832
        * std-config.h (WITH_MODEL_ISSUE): Add new macro on whether to
833
        trace instructions in a model specific manor.
834
        * options.c (print_options): Print it out.
835
        * configure{,.in}: Add --enable-sim-model-issue option.
836
        * Makefile.in: Add --enable-sim-model-issue flags.
837
        * igen.c (lf_print_c_semantic): Add call to mon_issue here.  Check
838
        for WITH_MODEL_ISSUE.
839
        * mon.c (mon_issue): Remove call to mon_issue_here.
840
 
841
        * ppc-instructions: Move branch tracing to the actual branch
842
        instructions, rather than testing it in model_issue.  Add code to
843
        code successful/unsuccessful branch predictions, and the number of
844
        conditional branches that fell through.
845
 
846
Wed Nov 15 17:32:13 1995  Michael Meissner  
847
 
848
        * cpu.h (cpu_model): Add declaration.
849
 
850
        * cpu.c (struct _cpu): Add model_ptr to hold model specific
851
        information.
852
        (cpu_model): Return the model internal pointer.
853
        (cpu_{create,init,halt}): Call the appropriate model function.
854
 
855
        * inline.c (mon.c): Move include of mon.c after model.c.
856
 
857
        * mon.c (_cpu_mon): Add fields to count unaligned memory
858
        references.
859
        (mon_issue): Call model_issue, not function_unit_issue.
860
        (mon_{read,write}): Count # of unaligned memory accesses.
861
        (mon_print_info): Switch to calling model_mon_info and
862
        model_mon_info_free instead of function_unit version.  Print out
863
        number of unaligned reads/writes.
864
 
865
        * {ppc-instructions,igen.c}: More global changes to add model
866
        specific features.
867
 
868
        * inline.{c,h}: Provide for inlining options.c.
869
        * options.{c,h}: Ditto.
870
        * std-config.h: Add OPTIONS_INLINE.
871
 
872
Tue Nov 14 04:47:25 1995  Michael Meissner  
873
 
874
        * Makefile.in (devices.o, main.o): Update dependency.
875
 
876
        * igen.c (gen_model_h): Use correct variable in loop.
877
        (gen_model_c): Use strcmp, strcasecmp.
878
        (gen_model_c): Use EXTERN_MODEL for arrays.
879
        (gen_model_h): Use STATIC_MODEL for arrays.
880
        (lf_print_c_semantic_function_header): Delete unused function.
881
 
882
        * main.c (cpu.h): Include cpu.h to get model.h.
883
 
884
        * inline.h ({EXTERN,STATIC}_MODEL): Define.
885
 
886
Mon Nov 13 09:14:13 1995  Michael Meissner  
887
 
888
        * igen.c ({insn,model}_table_fields): Spell mnemonic correctly.
889
        (gen_itable_h,itable_c_insn): Ditto.
890
        (model support): Move model support around, add support for
891
        model-data, model-internal.  Use annex field for model-macros
892
        now.
893
 
894
        * configure.in (--enable-sim-inline): If --enable-sim-inline=no,
895
        also define INLINE as nothing.
896
        * configure: Regenerate.
897
 
898
        * std-config.h (INLINE): Rather than nuking INLINE, only define it
899
        as __inline__ if any of the INLINE flags are non-zero.
900
 
901
        * options.c (print_options): Print out WITH_XOR_ENDAIN.
902
 
903
Mon Nov 13 23:03:45 1995  Andrew Cagney   
904
 
905
        * ppc-instructions (rfi): Add missing code.
906
 
907
        * cpu.c (cpu_get_time_base): Fix calculation of current value of
908
        time base register.
909
 
910
        * ppc-spr-table (TBL, TBU): Fix TBL/TBU entries - was confusing
911
        m[tf]tb with m[tf]spr.
912
 
913
        * ppc-instructions (mtspr, mfspr): Fix mttbl - wasn't storing
914
        lower word.
915
 
916
Mon Nov 13 21:35:37 1995  Andrew Cagney   
917
 
918
        * std-config.h (INLINE, STATIC_INLINE): Was being set to static
919
        inline..  Only problem being that with ppc-opcode-simple this gave
920
        it the chance to inline all the idecode functions with potentially
921
        disasterous results on a 16mb PC.  For moment hobble INLINE.
922
 
923
        * configure.in, std-config.h (WITH_SMP): Make that 5 processors by
924
        default ...
925
 
926
        * configure.in: Tweek flags passed to gcc for --with-sim-warnings.
927
        Firstly make them errors and secondly remove the options gcc-245
928
        doesn't reconize.
929
 
930
Mon Nov 13 17:57:24 1995  Andrew Cagney  
931
 
932
        * misc.c (zalloc), cpu.c (cpu_init), devices
933
        (console_io_read_buffer_callback, icu_io_read_buffer_callback,
934
        vm_io_read_buffer_callback), main.c (zalloc), mon.c (memset),
935
        sim_calls.c (zalloc) : replace bzero() with memset().
936
 
937
        * emul_netbsd.c (write_direntries), psim.c (psim_read_register,
938
        psim_write_register): replace bcopy() with memcpy().
939
 
940
Sun Nov 12 20:55:41 1995  Andrew Cagney   
941
 
942
        * configure.in: for --disable-sim-inline (--enable-sim-inline=no),
943
        force DEFAULT_INLINE to 0 rather then trusting the std
944
        configuration.
945
 
946
Sun Nov 12 20:55:41 1995  Andrew Cagney   
947
 
948
        * igen.c (lf_print_idecode_table, idecode_table_leaf): Fix
949
        generation of switch entries in tables - treat the same as
950
        cracking/semantic functions.
951
 
952
        * igen.c (idecode_switch_end, idecode_switch_leaf): Fix generation
953
        of a boolean switch statement (field zero or non-zero).
954
 
955
        * ppc-opcode-test-1, ppc-opcode-test-2: New files.  These test the
956
        switch/table generation ability of igen.
957
 
958
        * igen.c (idecode_switch_leaf): Fix code output when a switch
959
        statement needs to look up a table.
960
 
961
        * igen.c (idecode_declare_if_switch): New function called from
962
        gen_idecode_c - need to declare any idecode switch functions
963
        before they are used in idecode tables.
964
 
965
        * igen.c (lf_print_c_cracker_function, idecode_crack_leaf,
966
        idecode_crack_insn): Add is_inline_function argument to code
967
        printing cracker functions which indicates if STATIC_IDECODE or
968
        STATIC_INLINE_IDECODE should be used for definition.  For
969
        idecode_crack_insn (which implies not duplicating/expanding) don't
970
        declare function as inline - we assume that the only time this is
971
        code is generated is when things are being tested.  For
972
        idecode_crack_leaf, make static (instead of INLINE) if the
973
        instructions parent is a table as function will always be called
974
        via a table.
975
 
976
        * igen.c (idecode_expand_if_switch): Declare as STATIC_IDECODE not
977
        STATIC_INLINE_IDECODE. Only the outermost idecode switch will be
978
        called directly, all others are called via a table.
979
 
980
        * igen.c (lf_print_semantic_function_header, semantics_h_leaf,
981
        semantics_h_insn, semantics_h_function,
982
        lf_print_c_semantic_function, semantics_c_function): Add
983
        is_inline_function argument to lf_print_semantic_function_header
984
        to indicate if an inline or static function declaration/definition
985
        should be output.  Depending on situtation call accordingly:
986
        functions (not instruction semantic routines) are always inline;
987
        Semantic routines are made inline when there is no icache (cache
988
        will contain the function address) and are duplicating (see above)
989
        and the parent of the instruction is a switch statement.
990
 
991
        * igen.c (opcode_field_new): Delete.  Code changed to use ZALLOC
992
        and moved to insn_table_find_opcode_field.
993
 
994
        * table.c (table_open): Fix typo (nr_model_fields vs nr_fields).
995
 
996
        * igen.c (model_c_insn): Suggestion - document the name of the
997
        instruction on each line of the instruction model table.
998
 
999
Fri Nov 10 00:44:38 1995  Andrew Cagney   
1000
 
1001
        * emul_netbsd.c (do_ioctl): Cleanup compilation.
1002
 
1003
        * sim_callbacks.h (__attribute__): Only define if not defined (was
1004
        already defined on NetBSD host).
1005
 
1006
Wed Nov  8 21:49:52 1995  Andrew Cagney   
1007
 
1008
        * std-config.h (WITH_XOR_ENDIAN), configure.in, Makefile.in: New
1009
        macro, indicates if the PowerPC's horrible XOR endian mode should
1010
        be suported.  Add to configure and make.
1011
 
1012
        * vm_n.h (vm_data_map_read_N, vm_data_map_write_N), vm.c
1013
        (vm_instruction_map_read): If XOR endian, xor the address
1014
        with a value from an xor table (indexed by size of access).
1015
 
1016
        * vm.c (vm_synchronize_context), cpu.c (cpu_synchronize_context):
1017
        set up xor table to xor if there is a conflict between the
1018
        CURRENT_TARGET_ENDIAN and the endian indicated in the MSR.  Move
1019
        check of suported change of endian mode from cpu.c to vm.c.
1020
 
1021
        * vm.c (vm_data_map_write_buffer, vm_data_map_read_buffer):
1022
        Hopefully added correct hack to handle XOR endian mode.
1023
 
1024
        FIXME: If NONSTRICT alignment and XOR ENDIAN and MSR indicates
1025
        little endian mode, the model accepts miss aligned transfers.
1026
 
1027
        FIXME: Need to create an `init' device that, during
1028
        initializatioin for XOR mode, it mushes (XOR address) all the dma
1029
        data before passing it on to the core for storage. Just like the
1030
        real thing really.
1031
 
1032
Wed Nov  8 21:49:52 1995  Andrew Cagney   
1033
 
1034
        * devices.c (halt_io_write_buffer_callback): Use value written to
1035
        halt device to determine exit status.  Thus allowing
1036
        success/failure of OEA tests.
1037
 
1038
Wed Nov  8 00:10:38 1995  Andrew Cagney   
1039
 
1040
        * ppc-instructions (icbi): If icache present flush it.
1041
 
1042
Tue Nov  7 23:36:31 1995  Andrew Cagney   
1043
 
1044
        * devices.c (htab_init_callback): Add code to create htab/pte.
1045
 
1046
        * devices.c (dma_file, file_init_callback, htab_init_callback):
1047
        New function - Dma the named file into memory at the specified
1048
        address.  Use.
1049
 
1050
        * device_tree.h, device_tree.c (scand_*): New functions.
1051
 
1052
Tue Nov  7 23:36:31 1995  Andrew Cagney   
1053
 
1054
        * filter_filename.c, Makefile.in: Change so that only dependant on
1055
        a very limited nr of files.  Stops an unnecessary dependency.
1056
 
1057
Tue Nov  7 15:44:33 1995  Andrew Cagney  
1058
 
1059
        * core.c (core_map_find_mapping): Use cpu_halt rather than error
1060
        to abort an access to an undefined address.
1061
 
1062
Sun Nov 12 07:58:09 1995  Michael Meissner  
1063
 
1064
        * igen.c (model_table_insert_{macro,function}): New functions.
1065
        (insn_table_load_insns): Call them.
1066
        (gen_model_h): Move section emiting model-macros to be first.
1067
        (model_{c,h}_function): New functions cloned from semantic
1068
        functions to print out the prototype and function for
1069
        model-functions.
1070
        (gen_model_{c,h}): Print out model-functions.
1071
 
1072
        * ppc-instructions (model_{start,halt,print_info}): Add dummy
1073
        model-functions.
1074
 
1075
        * options.c (print_options): Print out WITH_{,DEFAULT_}MODEL, not
1076
        WITH_PPC_{,DEFAULT_}_MODEL.
1077
        (options_ppc): Delete now unused function.
1078
        (cpu.h): Include cpu.h, not just basics.h.
1079
 
1080
        * std-config.h (WITH_{,DEFAULT_}MODEL): Define.
1081
 
1082
        * igen.c (model_macros, last_model_macro): New statics to keep
1083
        track of macros to go in model.h.
1084
        (insn_table_load_insns): Add model-macros to model_macros linked
1085
        list.
1086
        (model_table_fields): Add field for printable name.
1087
        (gen_model_h): If there are model macros defined, print them out.
1088
        Print out DEFAULT_MODEL as the first model if there any models
1089
        specified, otherwise MODEL_NONE.  Print out external decl for
1090
        current_model.  Print out decl for model_set.
1091
        (gen_model_c): Add function model_set.  Switch to use printable
1092
        name for the model, not the internal identifier used.
1093
 
1094
        * psim.c (current_model): New global variable.
1095
 
1096
        * ppc-instructions: Add macros for flag defines.  Switch first
1097
        model so 604 is first.
1098
 
1099
        * main.c (main): Call model_set, not function_unit_model.
1100
        * sim_calls.c (sim_open): Ditto.
1101
        * sim_calls.c, Makefile.in: sim_calls.c now includes cpu.h.
1102
 
1103
Sat Nov 11 07:27:41 1995  Michael Meissner  
1104
 
1105
        * mon.h (mon_events): New enumeration for other events we want to
1106
        handle.
1107
        (mon_event): Add declaration for function.
1108
 
1109
        * mon.c (mon_event): New function.
1110
        (mon_print_info): Print icache misses.
1111
 
1112
        * psim.c (run_until_stop): Monitor icache misses.
1113
 
1114
        * configure.in (--enable-sim-inline): Fix typos in handling comma
1115
        separated inline options.
1116
        (--enable-sim-icache): Echo icache size.
1117
        * configure: Regenerate.
1118
 
1119
        * igen.c (semantics_h_print_function): Emit STATIC_SEMANTICS
1120
        instead of INLINE_SEMANTICS so that the compiler won't keep all of
1121
        the semantic functions as inline RTL, given that the address of
1122
        the function is taken which forces outline calls anyway.
1123
        (lf_print_c_semantic_function_header): Ditto.
1124
        (gen_semantics_h): Define STATIC_SEMANTICS as nothing if not
1125
        defined.
1126
        (lf_print_c_cracker_function): Emit STATIC_IDECODE instead of
1127
        STATIC_INLINE_IDECODE.
1128
        (gen_idecode_c): Define STATIC_IDECODE if not defined.
1129
        (gen_model_h): Use #ifdefs to define types to hold model units,
1130
        cycles, and flags.
1131
        (model_table_insert): Add a sentinel functional unit at the end to
1132
        simplify loop processing.
1133
        (model_c_insn): Use _SENTINAL instead of 0 for any
1134
        instruction not specifing a function unit for the current model.
1135
        (gen_model_{c,h}): Provide bounds for model_time_mapping.
1136
 
1137
        * inline.h (STATIC_SEMANTICS): Define to be static if
1138
        SEMANTICS_INLINE is defined.
1139
        (STATIC_IDECODE): Define to be static if IDECODE_INLINE is
1140
        defined.
1141
 
1142
        * options.c (print_options): Fix typo.
1143
 
1144
Fri Nov 10 06:39:46 1995  Michael Meissner  
1145
 
1146
        * configure.in (--enable-sim-{opcode,config}): Use $srcdir when
1147
        check for the existence of files.
1148
        * configure: Regenerate.
1149
 
1150
        * table.c (table): New field nr_model_fields.
1151
        (table_open): New parameter nr_model_fields.
1152
        (table_entry_read): Parse model fields that begin with a '*' after
1153
        each instruction.
1154
        * igen.c, dgen.c: Change callers of table_open.
1155
 
1156
        * igen.c: Add support for dumping model specific information in
1157
        model.h and model.c.
1158
        (insn_field_name): Delete unused array.
1159
        (global variables): Make global variables static, so we can tell
1160
        when they are no longer used.
1161
        (cache_semantic_actual): Delete unused variable.
1162
        (insn_table_load_insns): If the insn is really a machine model,
1163
        call model_table_insert instead of other processing.
1164
        (model_table_insert): New function to handle defining the
1165
        functional units of a particular machine model.
1166
        (insn_table): Add last_function field so we can add functions at
1167
        the end.
1168
        (insn_table_insert_function): Use last_function field when
1169
        appending new function.
1170
 
1171
        * ppc-instructions: Add a few model specific information for 603,
1172
        603e, and 604 for testing purposes.
1173
 
1174
        * table.h (table_model_entry): New linked list to hold model
1175
        specific information, one per line.
1176
        (table_entry): Add model_first, model_last fields.
1177
 
1178
        * configure.in (--enable-sim-inline): If gcc is found and
1179
        --enable-sim-inline is not specified, defaine DEFAULT_INLINE to 1,
1180
        not 2.
1181
        (--enable-sim-reserved-bits): New switch to check whether reserved
1182
        bits are set in the instruction.
1183
        (--enable-sim-opcode): Make complex the default.
1184
        (all switches): Add appropriate checks and error messages.
1185
        * configure: Regenerate.
1186
 
1187
        * Makefile.in (RESERVED_CFLAGS): New variable set by
1188
        --enable-sim-reserved-bits.
1189
        (CONFIG_CFLAGS): Include RESERVED_CFLAGS.
1190
        (BUILT_SRC): igen now generates model.c and model.h.
1191
        (LIB_OBJ): Include table.o.
1192
        (tmp-igen): Add -m/-M options to write model.c/model.h.
1193
        (model.o): New object.
1194
        (CPU_H): Include model.h.
1195
 
1196
        * cpu.h: Include model.h.
1197
 
1198
        * std-config.h (WITH_RESERVED_BITS): Define.
1199
        (MODEL_INLINE): Ditto.
1200
 
1201
        * options.c (print_options): Print out WITH_RESERVED_BITS.
1202
 
1203
Thu Nov  9 12:22:15 1995  Michael Meissner  
1204
 
1205
        * configure.in: If --silent, don't output information messages.
1206
        * configure: Regenerate.
1207
 
1208
        * configure.in (--enable-sim-alignment): Fix typo in specifing non
1209
        strict alignment.
1210
        (--enable-sim-switch): Make default on.
1211
        (--enable-sim-duplicate): Make default on.
1212
        (--enable-sim-smp): Make default 0.
1213
        (--enable-sim-mon): Don't set sim_float if not set.
1214
        (--enable-sim-inline): If gcc is found and --enable-sim-inline is
1215
        not specified, define DEFAULT_INLINE to be 2.
1216
        (all --enable-sim-* rules): Echo rules set to non empty to file
1217
        descriptor 6.
1218
        * configure: Regenerate.
1219
 
1220
        * options.c (options_env): Fix typo if WITH_ENV is 0.
1221
        (print_options): Print GCC compiler version if available and
1222
        date/time options was compiled.  If OPCODE_RULES, IGEN_FLAGS,
1223
        and/or DGEN_FLAGS are defined, print them.
1224
 
1225
        * Makefile.in (all link actions): Pass SIM_CFLAGS as well as
1226
        CFLAGS.
1227
        (options.o): Compile options.o with OPCODE_RULES, IGEN_FLAGS, and
1228
        DGEN_FLAGS defined, so they can be printed out.
1229
 
1230
        * igen.c (lf_print_c_validate): Check for WITH_ASSERT, so that
1231
        this test can be compiled away if the user really wants a fast
1232
        simulator by not doing assertion failures.
1233
 
1234
Wed Nov  8 13:19:47 1995  Michael Meissner  
1235
 
1236
        * options.c: New file to print out all of the WITH_ options.
1237
        * options.h: New include file to declare print_options.
1238
        * debug.h (trace_options): Add trace_opts to call print_options.
1239
        * debug.c (trace_description): Add trace_opts support.
1240
        * main.c (main): If user requested options, print them.
1241
        * sim_calls.c (sim_open): Ditto.
1242
 
1243
        * igen.c (opcode_field_new): Add void to make it a proper prototype.
1244
 
1245
        * emul_generic.c (emul_enter_call): Make printf_filtered arguments
1246
        type correct.
1247
        * emul_netbsd.c (do_kill): Ditto.
1248
        * registers.c (registers_dump): Ditto.
1249
        * vm.c (om_translate_effective_to_real): Ditto.
1250
        * vm_n.h (vm_data_map_read_N): Ditto.
1251
        (vm_data_map_write_N): Ditto.
1252
        * devices.h (DTRACE_INIT): Ditto.
1253
        (DTRACE_{ATTACH,DETACH}_ADDRESS): Ditto.
1254
        (DTRACE_IO_{READ,WRITE}_BUFFER): Ditto.
1255
        (DTRACE_DMA_{READ,WRITE}_BUFFER): Ditto.
1256
        * devices.c (update_for_binary_section): Ditto.
1257
        (write_stack_arguments): Ditto.
1258
        (stack_ioctl_callback): Ditto.
1259
        * device_tree.c (device_tree_add_passthrough): Ditto.
1260
        (device_tree_{add,find}_device): Ditto.
1261
        (device_tree_{add,find}_integer): Ditto.
1262
        (device_tree_find_{string,boolean}): Ditto.
1263
        (device_tree_init{,_device}): Ditto.
1264
        (device_tree_dump): Ditto.
1265
        * sim_calls.c (sim_{read,write}): Ditto.
1266
        (sim_{fetch,store}_register): Ditto.
1267
        (sim_stop_reason): Ditto.
1268
 
1269
        * sim_callbacks.h (printf_filtered): Declare with attribute
1270
        printf, so we can enable format checks.
1271
 
1272
        * devices.c (console_io_{read,write}_buffer_callback): Cast swtich
1273
        argument to int, since ANSI doesn't allow long switch values.
1274
        * emul_netbsd.c (do___sysctl): Ditto.
1275
 
1276
        * emul_netbsd.c (do___sysctl): Fix up printf call.
1277
 
1278
        * corefile.c (core_translate): Don't do arithmetic with void *
1279
        pointers.  Cast to char * first.
1280
 
1281
        * function_unit.c (FUNC_{LOAD,STORE}): Rename from {LOAD,STORE}
1282
        and change all uses.
1283
 
1284
        * Makefile.in ({FUNC,MODEL,WARNING}_CFLAGS): New flags set by
1285
        configure --enable switches.
1286
        (CONFIG_CFLAGS): Include FUNC_CFLAGS and MODE_CFLAGS.
1287
        (.c.o): Include WARNING_CFLAGS.
1288
        (CPU_H): Include function_unit.h.
1289
        (LIB_OBJ): Include function_unit.o.
1290
        (BUILT_SRC_WO_CONFIG): Split from BUILT_SRC and do not include
1291
        config.h or ppc-config.h.
1292
        (BUILT_SRC): Include BUILT_SRC_WO_CONFIG, config.h and
1293
        ppc-config.h.
1294
        (filter_filename.o): Include config.h/ppc-config.h dependencies.
1295
        (idecode.o, semantics.o, psim.o): Specify CC line without
1296
        WARNING_CFLAGS so that we don't get all of the unused variable
1297
        warnings that are generated.
1298
        (function_unit.o): Add rule to build.
1299
        (main.o, sim_calls.o): Add function_unit.h, itable.h dependencies.
1300
        (mon.o): Include mon.c dependency.
1301
        (TAGS): Depend on BUILT_SRC.
1302
        (clean): Don't delete config.h or ppc-config.h
1303
 
1304
        * basics.h (sim_callbacks.h): Move include after the include of
1305
        config.h and ppc-config.h.
1306
 
1307
        * bits.{h,c} (ROTL32,ROTL64): Move these functions to bits.c.  Add
1308
        support for BITS_INLINE to inline these.  Add declarations to
1309
        bits.h.
1310
 
1311
        * configure.in (--enable-sim-warnings): Add new option to specify
1312
        compiler warnings for all modules except idecode.o and semantics.o
1313
        which have lots of unused variables because they are machine
1314
        generated.
1315
        (--enable-sim-function-unit): New switch to configure whether
1316
        function unit support is compiled in or not.
1317
        (--enable-sim-{,default-}mode): New switches to control which cpu
1318
        model is used.
1319
        * configure: Regenerate.
1320
 
1321
        * corefile.c (core_attach_address_callback): Delete unused
1322
        variable device_address.
1323
 
1324
        * cpu.c (struct _cpu): Add function unit pointer field func_unit.
1325
        (cpu_create): If WITH_FUNCTION_UNIT, call function_unit_create.
1326
        (cpu_init): If WITH_FUNCTION_UNIT, call function_unit_init.
1327
        (cpu_halt): If WITH_FUNCTION_UNIT, call function_unit_halt.
1328
        (cpu_function_unit): New function to return func_unit field.
1329
 
1330
        * cpu.h (function_unit.h): Include new include file.
1331
        (cpu_function_unit): Declare.
1332
 
1333
        * debug.c (stdlib.h): Test HAVE_STDLIB_H, not HAVE_STDLIB.
1334
        (config.h): Include config.h.
1335
 
1336
        * devices.c (icu_io_write_buffer_callback): Delete unused variable
1337
        system.
1338
 
1339
        * emul_generic.c (emul_exit_call): Print out status value.
1340
 
1341
        * emul_netbsd.c (do_read): Delete unused variable nr_moved.
1342
 
1343
        * filter_filename.h (includes): Include config.h, ppc-config.h,
1344
        not basics.h.
1345
 
1346
        * inline.c: Include bits.c if BITS_INLINE.  Include
1347
        function_unit.c if FUNCTION_UNIT_INLINE.
1348
 
1349
        * inline.h (INLINE_BITS): Define if BITS_INLINE.
1350
        (INLINE_FUNCTION_UNIT): Define if FUNCTION_UNIT_INLINE.
1351
 
1352
        * interrupts.c (instruction_storage_interrupt): Delete unused
1353
        variable nia.
1354
 
1355
        * lf.h (config.h): Include config.h.
1356
 
1357
        * main.c (includes): Include function_unit.c.  If HAVE_UNISTD_H,
1358
        include unistd.h.
1359
        (usage): Update for -m model, -i, and -I options.
1360
        (main): Delete unused variables stack_pointer and i.  Add support
1361
        for -i, -m model arguments.  Call psim_print_info with verbose ==
1362
        1 if -i, and verbose == 2 if -I.
1363
 
1364
        * mon.c (stdio.h): Include stdio.h to pick up sprintf prototype.
1365
        (mon_issue): Call function_unit_issue if function units are
1366
        supported.
1367
        (mon_print_info): Take psim * argument.  Print out information
1368
        from function_unit if available.  Move read/write stats to always
1369
        print, instead of printing if verbose > 1.  Fix up plural
1370
        vs. singular usage.
1371
 
1372
        * mon.h (mon_print_info): Update prototype.
1373
 
1374
        * psim.c (current_ppc_model): Add global variable.
1375
        (psim_print_info): Pass system argument to mon_print_info.
1376
 
1377
        * sim_calls.c (function_unit.h): Include.
1378
        (sim_open): Add support for -i and -m model options.  If -i call
1379
        psim_print_info with verbose == 1, if -I, with verbose == 2.
1380
        (sim_resume): Delete unused variable program_counter.
1381
 
1382
        * std-config.h (WITH_FUNCTION_UNIT): Define.
1383
        (ppc_model): Add enumeration giving all PowerPC models currently
1384
        known about.
1385
        ({WITH,CURRENT}_PPC_MODEL): Define.
1386
        (FUNCTION_UNIT_INLINE): Define.
1387
 
1388
        * table.c (config.h): Include config.h.
1389
 
1390
        * vm.c (om_virtual_to_real): Print pte_word_{0,1} so the compiler
1391
        doesn't complain that they're unused.
1392
 
1393
        * vm_n.h (vm_data_map_read_N): Delete unused variable rval.
1394
 
1395
Mon Nov  6 23:15:54 1995  Andrew Cagney  
1396
 
1397
        * sim-endian.c (ppc-endian.c), sim-endian.h (ppc-endian.h):
1398
        renameed.  These files are target independant.
1399
        * Makefile.in, basics.h: update for new name.
1400
 
1401
        * sim-endian.h (SWAP_N), sim-endian.c (_SWAP_1): Rename existing
1402
        SWAP_ to _SWAP_ so that sim-endian.h can contain SWAP_N
1403
        macro's as required.
1404
 
1405
        * sim-endian.c, sim-endian-n.h (new file): Move endian code into a
1406
        debugable header file.
1407
 
1408
        * ppc-instructions (Byte-Reverse): Enable byte reverse
1409
        instructions using SWAP_N macros.
1410
 
1411
Mon Nov  6 10:39:28 1995  Michael Meissner  
1412
 
1413
        * Makefile.in (config.status): Remove references to config.make
1414
        and config.hdr.
1415
 
1416
        * config.{make,hdr}: Delete, no longer used.
1417
        * build-psim: Ditto.
1418
 
1419
Mon Nov  6 20:49:56 1995  Andrew Cagney  
1420
 
1421
        * sim_calls.c (sim_open): Fix parsing of `target sim' options.
1422
 
1423
        * device_tree.c (device_tree_add_string): Wasn't saving the value
1424
        of the string being entered into the tree.
1425
 
1426
        * psim.c (create_filed_device_tree): Not terminating string device
1427
        names with a null.
1428
 
1429
        * psim.c (psim_create): Use `env' instead of
1430
        `environment-architecture' to be consistent with configure.
1431
        Reconize user/uea, virtual/vea and operating/oea.
1432
 
1433
Sat Nov  4 12:29:45 1995  Fred Fish  
1434
 
1435
        * core.c:  Rename to corefile.c
1436
        * core.h:  Rename to corefile.h
1437
        * inline.c: Include corefile.h, renamed from core.h.
1438
        * cpu.h: Include corefile.h, renamed from core.h
1439
        * vm.c: Include corefile.h, renamed from core.h
1440
        * corefile.c: Include corefile.h rather than core.h
1441
        * README.psim (KNOWN PROBLEMS): Change core.* references to corefile.*
1442
        references.
1443
        * Makefile.in (CPU_H): Change core.h to corefile.h
1444
        (vm.o):  Change dependency to corefile.h
1445
        (LIB_SRC): Change core.c to corefile.c.
1446
        (LIB_OBJ): Change core.o to corefile.o.
1447
        (corefile.o):  Change dependencies to corefile.c, corefile.h.
1448
 
1449
Fri Nov  3 11:37:24 1995  Michael Meissner  
1450
 
1451
        * ppc-instructions (data cache instructions): Make all data cache
1452
        instructions nops instead of invalid instructions.
1453
 
1454
        * Makefile.in (CONFIG_CFLAGS): Add ALIGNMENT_CFLAGS and
1455
        TIMEBASE_CFLAGS which weren't included.
1456
 
1457
Thu Nov  2 08:54:04 1995  Michael Meissner  
1458
 
1459
        * Makefile.in: Uncomment built file dependencies.
1460
 
1461
        * configure.in: Rewrite --enable-sim switch handling to use the
1462
        autoconf builtins so it works correctly if the configure or
1463
        Makefile.in files are modified and make decides to rebuild
1464
        Makefile.  Also document all of the --enable-sim switches
1465
        supported.  Check whether getrusage and sys/resource.h are
1466
        supported.
1467
        * config.in: Regenerate.
1468
        * configure: Regenerate.
1469
        * Makefile.in: Add support for all of the variables set with
1470
        --enable-sim switches.
1471
 
1472
        * Makefile.in (clean): make clean now removes all built sources as
1473
        well.
1474
 
1475
        * cpu.c: Use HAVE_STRING_H, HAVE_STRINGS_H, HAVE_UNISTD_H,
1476
        HAVE_TIME_H, HAVE_SYS_TIMES_H, HAVE_SYS_RESOURCE_H defined in
1477
        the generated config.h.
1478
        * debug.c: Ditto.
1479
        * device_tree.c: Ditto.
1480
        * devices.c: Ditto.
1481
        * dgen.c: Ditto.
1482
        * emul_netbsd.c: Ditto.
1483
        * igen.c: Ditto.
1484
        * lf.c: Ditto.
1485
        * misc.c: Ditto.
1486
        * psim.c: Ditto.
1487
        * registers.c: Ditto.
1488
        * sim_calls.c: Ditt.
1489
        * table.c: Ditto.
1490
 
1491
 
1492
        * main.c (main): Call psim_print_info with verbose == 2.
1493
 
1494
        * mon.c (mon_print_info): Align the cpu number and number of
1495
        instructions fields.  Do not print an instruction category if the
1496
        CPU did not execute any of those instructions.  Print out number
1497
        of reads and writes.  If getrusage is supported, print out number
1498
        of simulated instructins per second.
1499
 
1500
        * configure.in: Add support for --enable-sim-opcode=stupid.
1501
        * configure: Regenerate.
1502
 
1503
Wed Nov  1 23:46:59 1995  Andrew Cagney   
1504
 
1505
        * std-config (INLINE_DEVICE_TREE): Don't inline either of
1506
        device_tree.c or devices.c.  There is no significant gain.
1507
 
1508
        * configure.in, Makefile.in: add --enable-sim-icache=[0-9]* and
1509
        IGEN_ICACHE macro.
1510
 
1511
Wed Nov  1 23:46:59 1995  Andrew Cagney   
1512
 
1513
        * igen.c (main), misc.h (target_a2i, i2target), misc.c: Add
1514
        functions to convert between target and igen internal bit numbers.
1515
        Make IO go through these functions. Add -b (bit size) and -h (high
1516
        bit nr) options to igen.  Typical usage would be: ./igen -b 16 -h
1517
        15 for a 16 bit instruction format with the msb given a number 15.
1518
 
1519
Wed Nov  1 22:17:32 1995  Andrew Cagney   
1520
 
1521
        * dgen.c (main): Was outputting optarg even when it was NULL.
1522
 
1523
Tue Oct 31 23:48:33 1995  Andrew Cagney   
1524
 
1525
        * vm_n.h (vm_data_map_load_N, vm_data_map_store_n), debug.h,
1526
        debug.c: Add tracing of load/store unit (virtual) with -t
1527
        load-store.
1528
 
1529
Tue Oct 31 21:44:01 1995  Andrew Cagney   
1530
 
1531
        * std-config.h (WITH_ENVIRONMENT): Add USER_ENVIRONMENT which does
1532
        not include things such as the time base and events.
1533
 
1534
        * interrupt.c, sim_calls.c, cpu.h, vm.c, configure.in: Add UEA to
1535
        all environment switches for above.
1536
 
1537
        * psim.c (psim_create): ditto - new device tree node name is
1538
        /options/environment-architecture with values user, virtual and
1539
        operating.
1540
 
1541
Tue Oct 31 21:31:32 1995  Andrew Cagney   
1542
 
1543
        * ppc-opcode-stupid: Third example of use of opcode table - this
1544
        one expands all mtspr/mfspr and branch instructions.  Appears to
1545
        give about a 10% gain in performance if everything enabled.  Also
1546
        takes about 150mb of swap to build.
1547
 
1548
Wed Nov  1 10:49:48 1995  Michael Meissner  
1549
 
1550
        * emul_netbsd.c (do_exit): Print arguments and close parenthesis
1551
        if tracing, since exit doesn't go through emul_exit_call.
1552
        (do_read): Print arguments if tracing.
1553
        (do_write): Ditto.
1554
        (do_open): Ditto.
1555
        (do_break): Ditto.
1556
        (do_kill): Ditto.
1557
        (do_dup): Ditto.
1558
        (do_sigprocmask): Replace trace with printing arguments if
1559
        tracing.
1560
        (do_ioctl): Print arguments if tracing.
1561
        (do_umask): Ditto.
1562
        (do_dup2): Ditto.
1563
        (do_fcntl): Ditto.
1564
        (do_gettimeofday): Ditto.
1565
        (do_getrusage): Ditto.
1566
        (do_fstatfs): Ditto.
1567
 
1568
        * filter_filename.c: New file to provide filter_filename to strip
1569
        the directory prefix from a file.
1570
        * filter_filename.h: New include file to declare filter_filename.
1571
 
1572
        * debug.h: Include filter_filename.h.
1573
        (TRACE,DTRACE,ERROR): Use filter_filename on __FILE__.
1574
 
1575
        * misc.h: Include filter_filename.h.
1576
        (ASSERT): Use filter_filename on __FILE__.
1577
 
1578
        * igen.c (lf_print_my_prefix): Use filter_filename on the filename
1579
        argument.
1580
 
1581
        * Makefile.in: Add filter_filename support.
1582
 
1583
        * ppc-instructions (dcbi, icbi): Make these NOPs rather than
1584
        invalid instructions.
1585
 
1586
        * configure.in: Add support for more --enable-sim-* switches.
1587
        Use config.make and config.hdr to write to Makefile and config.h
1588
        respectively.  Don't rewrite Makefile, just append to it.
1589
        * configure: Regenerate.
1590
        * config.{make,hdr}: New shell scripts.
1591
 
1592
        * Makefile.in: Remove all variables set by configure.in.
1593
        (psim.o): Depend on $(BUILT_SRC) also.
1594
 
1595
        * emul_netbsd.c (do_gettimeofday,do_getrusage): When comparing an
1596
        integer, use 0, not NULL.
1597
 
1598
Tue Oct 31 15:20:04 1995  Michael Meissner  
1599
 
1600
        * configure.in: Add support for --enable-sim-inline,
1601
        --enable-sim-bswap, --enable-sim-cflags, --enable-sim-complex,
1602
        --enable-sim-switch, --enable-sim-duplicate, --enable-sim-filter,
1603
        and --enable-sim-endian switch to control various Makefile
1604
        variables.
1605
        * configure: Regenerate from configure.in.
1606
        * Makefile.in: Add various Make variables that the various
1607
        switches alter.
1608
 
1609
        * std-config.h (DEFAULT_INLINE): Don't set this to 2 if using GCC
1610
        and optimizing by default.
1611
 
1612
Fri Oct 27 19:26:27 1995  Andrew Cagney  
1613
 
1614
        * bits.h (ROTL32, ROTL64): Were functions, made them macros, now
1615
        make them functions again.  Appears 2.6.3 is confused by just a
1616
        macro.
1617
 
1618
Thu Oct 26 18:31:58 1995  Andrew Cagney  
1619
 
1620
        * ppc-endian.c (SWAP_8): Fix 8 byte swap!
1621
 
1622
        * psim.c (psim_create): Not correctly checking that runtime
1623
        configuration of things like ENDIAN, ENVIRONMENT and ALIGNMENT
1624
        matched the compiled in ones.
1625
 
1626
        * debug.h (ITRACE), igen.c: Tidy up more tracing flags -
1627
        trace_semantics is now different to trace_idecode, the former
1628
        checks the cache.
1629
 
1630
Tue Oct 24 21:54:13 1995  Andrew Cagney  
1631
 
1632
        * ppc-instructions (mtsrin): Missing instruction
1633
        * ppc-instructions (mfsrin): Missing instruction
1634
        * ppc-instructions (eieio): Missing instruction
1635
 
1636
Tue Oct 24 20:55:29 1995  Andrew Cagney  
1637
 
1638
        * build-psim: New shell script - see internals for usage,
1639
        simplifies the process of building custom simulators.
1640
 
1641
Mon Oct 23 23:48:59 1995  Andrew Cagney  
1642
 
1643
        * std-config.h (SEMANTICS_INLINE): Tidy up notes on each of the
1644
        INLINE macros.  Make SEMANTICS_INLINE == 1 if DEFAULT_INLINE == 2.
1645
        Don't use DEFAULT_INLINE to define REGISTERS_INLINE DEVICES_INLINE
1646
        DEVICE_TREE_INLINE or INTERRUPTS_INLINE as none of these are on
1647
        the instruction or data critical paths.
1648
 
1649
        * FIXME: devices.c/emul_netbsd.c would benefit (slightly) from
1650
        the inclusion of device_tree.c/emul_generic.c.
1651
 
1652
Mon Oct 23 00:31:50 1995  Andrew Cagney  
1653
 
1654
        * os_emul.[hc], emul_generic.[hc], emul_netbsd.[hc]: replace
1655
        system.[hc].  Start of suport for multiple emulations and
1656
        emulation state (os_emul object).
1657
 
1658
        * emul_generic.[hc]: Start of code to implement proper system call
1659
        tracing (from spy).
1660
 
1661
Sun Oct 22 21:33:51 1995  Andrew Cagney  
1662
 
1663
        * cpu.h, cpu.c (cpu_init): New function, zero the registers before
1664
        the processor is started. Fixes problem of registers being
1665
        undefined when restarting from within gdb.
1666
 
1667
        * cpu.h, cpu.c (cpu_flush_icache): New function, flushes the
1668
        instruction cache (if present).  Fixes problem of cpu caching gdb
1669
        breakpoint instructions.
1670
 
1671
        FIXME: PSIM sometimes aborts calling error(), it should instead
1672
        call sim_error() say which takes care of housekeeping such as
1673
        saving the CIA before calling error.
1674
 
1675
        * NOTE: cpu_flush_cache() instead of cpu_synchronize_context() is
1676
        used when restarting a simulation because the latter has the
1677
        unwanted side effect (well I as a kernel hacker think it is) of
1678
        performing an isync when the instruction stream doesn't contain
1679
        one.
1680
 
1681
Sun Oct 22 19:27:48 1995  Andrew Cagney  
1682
 
1683
        * mon.h (new), mon.c (new), std-config.h (WITH_MON): Performance
1684
        monitoring module. Counts both instructions issued and
1685
        load/stores.
1686
 
1687
        * NOTE: mon does not contain to count instruction loads as this
1688
        information is already available from the mon_issue() hook.
1689
 
1690
        * igen.c (lf_print_c_semantic), vm_n.h: Add counting code.
1691
 
1692
        * psim.h, psim.c (psim_create), cpu.h, cpu.c (cpu_create): Attach
1693
        a common monitor to each of the cpus. Delete
1694
        cpu_increment_number_of_insns() and cpu_get_number_of_insns()
1695
        replaced by copied code in mon.[hc].
1696
 
1697
Sun Oct 22 18:42:45 1995  Andrew Cagney  
1698
 
1699
        * sim_calls.c, main.c, psim.c (psim_create): always create
1700
        `WITH_SMP' cpus.  The actual number of CPU's active in a
1701
        simulation run is taken from the device node: /init/smp (an
1702
        integer). WITH_SMP changed to 2 (remember to put it back to 0).
1703
 
1704
Fri Oct 20 17:26:54 1995  Andrew Cagney  
1705
 
1706
        * system.c: More system call emulation.  If code appears NetBSD
1707
        specific, make conditional to being compiled on a NetBSD system
1708
        (sigh).
1709
 
1710
Wed Oct 18 23:02:20 1995  Andrew Cagney  
1711
 
1712
        * Makefile.in, gen.c(delete), igen.c(new), dgen.c(new),
1713
        lf.[ch](new), table.[ch](new): Split into two generators - igen
1714
        that outputs the instruction tables and dgen that outputs the spr
1715
        tables.  Add -f (filter out) flag to igen to filter out certain
1716
        instructions (ex 64 bit ones) from the created tables.  Include
1717
        $(LIBIBERTY_LIB) in link options in case host lacks some libc
1718
        functions.
1719
 
1720
        * NOTE: igen, since it was originally written for the
1721
        PowerPC/RS6000, things the MSB is 0 and the LSB is 63{31}.
1722
 
1723
        * Makefile.in, std-config.h, ppc-cache-rules(new),
1724
        ppc-opcode-complex(new), ppc-opcode-simple(new): (for igen) Create
1725
        cache-rule and opcode-rule tables from macros found std-config.h.
1726
        Delete corresponding macro's from std-config.h.
1727
 
1728
        * igen.c (gen_itable_c, gen_itable_h), Makefile.in: code to output
1729
        an table of all the instructions.  Code to output a type
1730
        enumerating all the instructin names.
1731
 
1732
        * igen.c(lf_print_c_semantic): Move call to increment instruction
1733
        counter so that it occures _after_ the instruction has been fully
1734
        validated, was double counting illegal/invalid instructions.  Add
1735
        conditional so only compiled in when WITH_PROFILE enabled (enabled
1736
        by default).
1737
 
1738
        * igen.c, cpu.h, cpu.c(cpu_increment_number_of_insns): Include
1739
        itable.h, count individual instruction types not just total,
1740
        adjust reporting functions to output this.
1741
 
1742
        * ppc-instructions (64 bit Load Doubleword with Update Indexed):
1743
        Had 32./ instead of 31./
1744
 
1745
        * ppc-instructions (64 bit Store Double Word Conditional Indexed):
1746
        bitrot - updated to use newer CR register operators.
1747
 
1748
        * ppc-instructions (64bit Floating Convert from Integer
1749
        Doubleword): Correct call to Round_Float().
1750
 
1751
Mon Oct 16 00:31:20 1995  Andrew Cagney  
1752
 
1753
        * basics.h: #include "sim_callbacks.h" earlier so that its
1754
        prototypes are declared in all other header files.
1755
 
1756
        * bits.h, bits.c, idecode_expression.h (ROTL32, ROTL64): Update
1757
        doc in bits.h, remove dead code in bits.c, move ROTL32/ROTL64 into
1758
        bits.h.
1759
 
1760
        * cpu.c(cpu_add_commas), device_tree.h, device_tree.c(scand_*):
1761
        Add size of buffer argument to functions writing a string into a
1762
        buffer.  Check for buffer overflow.
1763
 
1764
Sun Oct 15 22:16:11 1995  Andrew Cagney  
1765
 
1766
        * devices.h, devices.c, debug.h, debug.c: add macro's for tracing
1767
        of each device.  Make parameter names consistent so macros work.
1768
        Use macro's in device functions.
1769
 
1770
        * device_tree.c, devices.h, devices.c: include path to device in a
1771
        devices node when creating it.
1772
 
1773
        * device_tree.c, debug.h, debug.c: Add tracing of `device-tree'.
1774
 
1775
        * core.c: add tracing of core-device, adjust parameter names in
1776
        core functions to be consistent with those in devices*.
1777
 
1778
Sun Oct 15 20:33:20 1995  Andrew Cagney  
1779
 
1780
        * debug.h, debug.c (trace_option): New function. Parses the trace
1781
        option, updating the trace array.
1782
 
1783
        * debug.h, debug.c (trace_usage): New function. Outputs the list
1784
        of all possible trace options.
1785
 
1786
        * sim_calls.c (sim_open), main.c (main): Use new trace_option() to
1787
        parse trace options specified with the simpler -t flag.  Adjust
1788
        usage.
1789
 
1790
        * FIXME: basic parsing of command line options is still duplicated
1791
        by main.c and sim_calls.c
1792
 
1793
Thu Oct 26 10:42:28 1995  Michael Meissner  
1794
 
1795
        * Makefile.in (clean): Delete *.i and *.out files.
1796
 
1797
        * ppc-endian.c (SWAP_n): Add SET argument to allow use of SWAP
1798
        macros for either assignment or return.  Fix SWAP_8 to use a
1799
        union, and two SWAP_4's.  Delete SWAP_N, since nobody uses it now.
1800
        (ENDIAN_N): Add SET argument to SWAP_n calls.  Delete macro defs
1801
        that hardwired swapping on/off, let optimizer delete dead code.
1802
 
1803
        * main.c (main): Add printf that we caught a signal and print out
1804
        the failing address.
1805
 
1806
Thu Oct 19 21:43:39 1995  Fred Fish  
1807
 
1808
        * Makefile.in:  Remove tabs from otherwise empty line.
1809
        Confuses many non-GNU versions of "make".
1810
 
1811
Wed Oct 18 08:51:25 1995  Michael Meissner  
1812
 
1813
        * Makefile.in (clean): Delete files produced by gen.
1814
 
1815
Mon Oct 16 17:34:24 1995  Michael Meissner  
1816
 
1817
        * gen.c (lf_print_c_semantic_function): Move counting # of
1818
        instructions here so it works with caching.
1819
        (gen_idecode_c): Move from here.
1820
 
1821
Wed Oct 11 17:13:15 1995  Andrew Cagney  
1822
 
1823
        * gen.c, ppc-instructions, psim.c: Fix code for generating
1824
        cracking instruction cache.  Delete the code that cached just the
1825
        result from doing an instruction lookup - this ran slower than no
1826
        cache at all.
1827
 
1828
Fri Oct 13 09:58:43 1995  Michael Meissner  
1829
 
1830
        * Makefile.in (gen.o): Include $(INLINE_CFLAGS).
1831
 
1832
        * debug.h (ppc_trace): Rename from trace, to avoid a conflict with
1833
        TCL when gdb is linked with the simulator.
1834
        * debug.c (ppc_trace): Ditto.
1835
        * sim_calls.c (sim_open): Change trace -> ppc_trace.
1836
        * main.c (main): Ditto.
1837
 
1838
        * cpu.c (cpu_add_commas): Remove extra static.
1839
 
1840
Thu Oct 12 11:35:53 1995  Michael Meissner  
1841
 
1842
        * Makefile.in (psim.o): Now that inlines are turned on, make
1843
        psim.o depend on all sources.
1844
 
1845
        * cpu.c (cpu_add_commas): New function to format a long with
1846
        commas.
1847
        (cpu_print_info): Use it to print number_of_insns.
1848
 
1849
        * ppc-endian.c (SWAP_n): New macros to speed up byte swapping for
1850
        2, 4, and 8 bytes.
1851
        (ENDIAN_N): If both target and host byte orders are known, don't
1852
        bother testing CURRENT_{TARGET,HOST}_BYTE_ORDER.
1853
 
1854
        * ppc-endian.h (target specific H2T_n/T2H_n macros): Remove #if 0
1855
        to allow target specific H2T_n/T2H_n macros to be used.
1856
        (htonl, ntohl): If compiled on a 486 by GCC and WITH_BSWAP is
1857
        non-zero, redefine the htonl/ntohl macros to use the BSWAP instead
1858
        of the 3 instruction sequence that runs on 386s.
1859
 
1860
        * std-config.h (WITH_{HOST,TARGET}_BYTE_ORDER): Don't override if
1861
        specified on the compile line.
1862
        (WITH_BSWAP): If not defined, define as 0.
1863
 
1864
        * Makefile.in (INLINE_CFLAGS): Add -DDEFAULT_INLINE=2 to add
1865
        default inline support.  Pass INLINE_CFLAGS when compiling.
1866
 
1867
        * devices.{h,c} (unimp_device_ioctl): Use STATIC_DEVICES, not
1868
        INLINE_DEVICES since GCC doesn't like inline functions that
1869
        accept variable arguments.
1870
        (stack_ioctl_callback): Make function just static because GCC
1871
        doesn't like inline functions that accept variable arguments.
1872
 
1873
        * devices.h (STATIC_DEVICES): Define as empty if not defined.
1874
 
1875
        * inline.c: Correct pathnames of included C files to match current
1876
        implementation.
1877
 
1878
        * inline.h (STATIC_DEVICES): If DEVICES_INLINE is defined to be
1879
        non-zero, define STATIC_DEVICES to be static.
1880
 
1881
        * std-config.h (INLINE): If GNU C and optimizing, define this as
1882
        __inline__.
1883
        (DEFAULT_INLINE): If not defined, define as 0.
1884
        (ENDIAN_INLINE): If not defined, define as DEFAULT_INLINE.
1885
        ({CORE,VM,CPU,EVENTS,REGISTERS,INTERRUPTS}_INLINE): Ditto.
1886
        ({SPREG,IDECODE}_INLINE): Ditto.
1887
 
1888
Wed Oct 11 17:13:15 1995  Andrew Cagney  
1889
 
1890
        * ppc-instructions: Initial cut of floating point suport added.
1891
        Of note include - use of host IEEE floating point instructions,
1892
        use of PowerPC manual pseudo code to handle the FPSCR.  It is not
1893
        currently a pretty sight.
1894
 
1895
        * memory_map.h, memory_map.c, memory_map_n.h, core.h, core.c:
1896
        merge into core.h, core.c, core_n.h. The type memory_map replaced
1897
        with core_map.  This removes a level of pointer indirection when
1898
        translating an address.
1899
 
1900
        * memory_map.h, memory_map.c, memory_map_n.h: delete.
1901
 
1902
        * Makefile.in et.al (sorry): tweek to use new core, core_map and
1903
        core.h.
1904
 
1905
Wed Oct 11 12:10:26 1995  Andrew Cagney  
1906
 
1907
        * sim_calls.c, main.c: Add -g (trace_gdb) option, add tracing to
1908
        most of the other functions in sim_calls.c.
1909
 
1910
        * basics.h (CONCAT3), memory_map.c, memory_map_n.h, Makefile.in:
1911
        Add macros to better cover up `generic' code.  Makes it possible
1912
        to step through the generic code!
1913
 
1914
        * vm.c, vm_n.h, Makefile.in: ditto
1915
 
1916
Tue Oct 10 15:42:59 1995  Andrew Cagney  
1917
 
1918
        * devices.h, devices.c, memory_map.h, memory_map.c: Changed
1919
        callback interface so that there is a read/write buffer but no
1920
        read/write_word.  VEA default memory read/write handler sometimes
1921
        couldn't resolve an access and of those some were for a memory
1922
        fault and some were because gdb was making a bogus request.
1923
 
1924
        * devices.h, devices.c, memory_map.h, memory_map.c, vm.h, vm.c:
1925
        eliminate transfer_mode (raw or cooked) parameter from read/write
1926
        buffer.
1927
 
1928
Fri Oct  6 20:23:56 1995  Andrew Cagney  
1929
 
1930
        * ppc-instructions (fmul, fmuls): correct instruction format - had
1931
        FRB instead of FRC.
1932
 
1933
Wed Oct  4 17:31:12 1995  Andrew Cagney  
1934
 
1935
        * psim.c, device_tree.h, device_tree.c, devices.c (printd_*,
1936
        scand_*): new functions to parse/print fields in device names
1937
        while hiding any machine dependency.
1938
 
1939
        * devices.c, psim.c: Change the stack init code so that it is
1940
        handled by a device.  Arguments passed across using a device ioctl
1941
        (hack).
1942
 
1943
        * devices.h, devices.c: device ioctl callback changed to allow a
1944
        variable number of arguments.  This gives greater flexability and
1945
        greater chance of bugs.
1946
 
1947
Tue Oct  3 22:01:56 1995  Andrew Cagney  
1948
 
1949
        * main.c (printf_filtered, error): Missing va_end() to close off
1950
        variable argument use.
1951
 
1952
        * Makefile.in (tmp-gencode): comment out hack to get around some
1953
        versions of make not handling files being created as side-effects.
1954
 
1955
        * gen.c (lf_open): Add -n (real_file_name) option.  Specifies an
1956
        alternative file name to use in output files for things like #line
1957
        macros.
1958
 
1959
        Makefile.in (tmp-gencode): Use gen -n so that debug info is
1960
        correct.
1961
 
1962
        * Makefile.in (TARGETLIB): Use this instead of libsim.a in the
1963
        Makefile.
1964
 
1965
Sat Oct  7 22:40:59 1995  Michael Meissner  
1966
 
1967
        * sim_calls.c (sim_set_callbacks): Define new function.
1968
 
1969
Fri Oct  6 17:23:10 1995  Michael Meissner  
1970
 
1971
        * psim.c (psim_print_info): Print exit status or signal number.
1972
 
1973
Mon Oct  2 11:46:37 1995  Michael Meissner  
1974
 
1975
        * cpu.c (struct _cpu): Add number_of_insns field to trace how many
1976
        instructions are executed.
1977
        (cpu_increment_number_of_insns): New function to increment the
1978
        number of instructions issued.
1979
        (cpu_get_number_of_insns): New function to return the number of
1980
        instructions issued.
1981
        (cpu_print_info): New function to print cpu related information.
1982
        At present, print the number of instructions executed.
1983
 
1984
        * gen_idecode_c: Emit call to cpu_increment_number_of_insns within
1985
        idecode_issue.
1986
 
1987
        * psim.c (psim_print_info): New function to iterate over each of
1988
        the CPU's calling cpu_print_info.
1989
 
1990
        * psim.h,cpu.h: Add new declarations.
1991
 
1992
        * sim_calls.c (sim_open): Add argument processing to add the same
1993
        switches main.c accepts for the standalone processor.
1994
        (sim_close): Call psim_print_info if -I.
1995
 
1996
        * main.c (main): Add comment saying to update sim_calls.c when
1997
        adding switches.  Add -I to call psim_print_info when done.
1998
        (usage): Update usage message.
1999
 
2000
Sun Oct  1 13:52:59 1995  Michael Meissner  
2001
 
2002
        * main.c (printf_filtered): Correct to match new prototype.
2003
 
2004
Sat Sep 30 20:47:05 1995  Michael Meissner  
2005
 
2006
        * sim_callbacks.h (printf_filtered): Correct prototype.
2007
 
2008
Thu Sep 21 16:26:49 1995  Michael Meissner  
2009
 
2010
        * device_tree.c (OEA_MEMORY_SIZE): Define if not defined to
2011
        0x100000.
2012
        (clayton_memory_size): Define as OEA_MEMORY_SIZE.
2013
 
2014
        * std-config.h (WITH_TRACE): Default to 1 now.
2015
 
2016
        * psim.c (write_stack_arguments): Don't write any stack arguments
2017
        if OEA.
2018
 
2019
        * main.c (main): Switch to using getopt.  Make -p also set
2020
        trace_semantics.  Make -a turn on all trace flags.  Make -C turn
2021
        on console tracing.
2022
 
2023
        * device_tree.c (create_option_device_node): Assume a program is
2024
        OEA if the start address is < 4096, not just == 0.
2025
 
2026
Wed Sep 20 13:36:06 1995  Ian Lance Taylor  
2027
 
2028
        * Makefile.in (maintainer-clean): New synonym for realclean.
2029
 
2030
Sun Sep 10 10:23:56 1995  Michael Tiemann  
2031
 
2032
        * registers.c (register_description): Add gdb synonyms for cr
2033
        (cnd) and msr (ps).
2034
 
2035
Fri Sep  8 13:16:10 1995  Ian Lance Taylor  
2036
 
2037
        * Makefile.in (install): Don't install in $(tooldir).
2038
 
2039
        * configure.in: Call AC_CONFIG_HEADER.  Don't try to use
2040
        bfd/hosts/*.h file or bfd/config/*.mh file.  Call AC_PROG_CC and
2041
        AC_PROG_RANLIB.  Substitute in values for CFLAGS, HDEFINES, AR,
2042
        and CC_FOR_BUILD.  Call AC_CHECK_HEADERS for various header files.
2043
        Touch stamp.h if creating config.h.
2044
        * configure: Rebuild.
2045
        * config.in: New file, created by autoheader.
2046
        * Makefile.in (AR): Define as @AR@.
2047
        (CC): New variable, defined as @CC@.
2048
        (CFLAGS): Define as @CFLAGS@.
2049
        (CC_FOR_BUILD): New variable, defined as @CC_FOR_BUILD@.
2050
        (RANLIB): Define as @RANLIB@.
2051
        (HDEFINES, TDEFINES): New variables.
2052
        (@host_makefile_frag@): Remove.
2053
        (mostlyclean): Make the same as clean, not distclean.
2054
        (clean): Remove config.log.
2055
        (distclean): Remove config.h and stamp-h.
2056
        (Makefile): Don't depend upon @frags@.  Just rebuild Makefile when
2057
        invoking config.status.
2058
        (config.h, stamp-h): New targets.
2059
        (gen, gen.o): Build with CC_FOR_BUILD, not CC.
2060
        (ppc-config.h): Rename from old config.h build.
2061
        * (basics.h,gen.c,ppc-endian.c,psim.c): Include ppc-config.h.
2062
 
2063
Fri Sep  8 09:51:03 1995  Michael Meissner  
2064
 
2065
        * configure{,.in}: Don't include sysdep.h from bfd, since bfd no
2066
        longer provides it.
2067
        * basics.h (sysdep.h): Don't include it.
2068
        * Makefile.in (BASICS_H): Remove sysdep.h.
2069
 
2070
Wed Sep  6 13:25:42 1995  Andrew Cagney  
2071
 
2072
        * core.c (core_add_data): First growth of bss was being put at
2073
        wrong address (0) instead of &end.
2074
 
2075
        * core.c (core_add_stack, core_add_data): Was not handling case
2076
        where bss/stack is grown across the current end-of-{bss,stack}.
2077
 
2078
Wed Sep  6 00:46:10 1995  Andrew Cagney  
2079
 
2080
        * system.c (system_call): Fix SYS_break - was aligning bss to a
2081
        page boundary instead of just an 8 byte one; On first call sbrk(0)
2082
        != sbrk(0).
2083
 
2084
Thu Aug 24 14:48:54 1995  Michael Meissner  
2085
 
2086
        * Makefile.in (install): Fix install rule.
2087
 
2088
Tue Aug 22 09:31:18 1995  Michael Meissner  
2089
 
2090
        * system.c (system_call): Add read support.
2091
 
2092
        * main.c (main): -t sets trace_device_tree.  Correct usage message
2093
        to current reality.
2094
 
2095
        * device_tree.c (update_memory_node_for_section): Make tracing
2096
        output line up.  If not code or readonly, assume that the section
2097
        is a data section and has read/write permissions.  Add readonly
2098
        support.
2099
 
2100
        * core.c (create_core_from_addresses): Print end address in traces
2101
        and make tracing output line up.
2102
 
2103
        * Makefile.in: Rewrite from Makefile to work with the Cygnus
2104
        environment, and support compiling in a different directory than
2105
        the sources reside in.
2106
 
2107
        * ppc-endian.h: Rename from endian.h so that it doesn't get
2108
        confused with /usr/include/sys/endian.h on Linux.  Add Linux
2109
        endian support.
2110
 
2111
        * ppc-endian.c: Rename to be consistant with ppc-endian.h.
2112
        Include ppc-endian.h, not endian.h.
2113
 
2114
        * basics.h (sysdep.h): Include sysdep.h that configure makes.
2115
        Include ppc-endian.h, not endian.h.
2116
 
2117
        * std-config.h: Rename from ppc-config.  Put #ifndefs around most
2118
        configuration macros, so they can be overridden via CFLAGS.  By
2119
        default, turn off tracing.
2120
 
2121
        * configure.in: Clone from other simulator targets.
2122
        * configure: Generate via autoconf from configure.in.
2123
 
2124
Sat Aug 19 09:05:32 1995  Andrew Cagney  
2125
 
2126
        * ppc-instructions: fix srawi (was geting XER[CA] real wrong).
2127
 
2128
        * interrupts.c (data_storage_interrupt): allow stack to grow by
2129
        upto one MB per increment.
2130
 
2131
        * ppc-instructions: divw was computing rA / rA not rA / rB
2132
 
2133
        * main.c (main): really stupid. Wasn't exiting with correct status
2134
 
2135
Fri Aug 18 00:38:01 1995  Andrew Cagney  
2136
 
2137
        * system.c (system_call): add system calls kill(2) and getpid(2).
2138
 
2139
        * main.c (main): Check/return exit status when simulation
2140
        finishes.
2141
 
2142
Thu Aug 17 14:29:18 1995  Andrew Cagney  
2143
 
2144
        * device_tree.c (create_option_device_node): Alignment rules (at
2145
        least for the moment) now are for strict alignment only for LE OEA
2146
        mode.  (Because of compiler problems).
2147
 
2148
        * system.c (system_call) SYS_exit: Wasn't exiting with correct status.
2149
 
2150
Thu Aug 17 01:16:38 1995  Andrew Cagney  
2151
 
2152
        * vm.c (DEFINE_VM_DATA_MAP_WRITE_N): For miss aligned transfer
2153
        forgot to return.
2154
 
2155
        * system.c (system_call): didn't page align break argument before
2156
        determining increment break increment.
2157
 
2158
        * psim/ppc: Re-arange entire directory structure so that
2159
        everything lives in the one directory.  While a pain for cleaning,
2160
        makes building across multiple architectures much simpler.
2161
 
2162
        * devices.c, device_tree.c: Added code that provides a simple
2163
        illustration of how an interrupt control device could be
2164
        implemented.
2165
 
2166
        * devices.c: Added code so that the dumb console device can read
2167
        (from stdin) as well as write to stdout.
2168
 

powered by: WebSVN 2.1.0

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