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