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