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