]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/ppc/ChangeLog
7/30 release from Andrew
[thirdparty/binutils-gdb.git] / sim / ppc / ChangeLog
1 Tue Aug 6 09:28:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2
3 * configure.in (--enable-sim-{hardware,packages}): Fix typos.
4 * configure: Regenerate.
5
6 * device.c (device_instance_call_method): Fixup format message in
7 error case. Return 0 in case of error to shut up compiler
8 warnings.
9
10 Wed Jul 31 00:02:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
11
12 * device_table.h (device_instance_callbacks): Relace the claim and
13 release methods with a more general table mapping from method-name
14 to method-function.
15
16 * device.c (device_instance_call_method): New function. Implement
17 the OpenBoot call-method client interface. Attempts to locate the
18 instances method in the callback table.
19 (device_instance_claim, device_instance_release): Delete.
20 Replaced with call-method and a lookup table.
21
22 * emul_chirp.c (chirp_emul_call_method): Use the new device
23 instance call method and let that handle a client claim call.
24
25 * hw_htab.c (claim_memory): Wrapper function to call the memory
26 devices "claim" method using the new device-instance call-method
27 interface. Replaces the previous direct calls to claim.
28 (htab_map_region): Use claim_memory.
29 (htab_init_data_callback): Ditto.
30
31 * hw_memory.c (hw_memory_instance_claim): Update function
32 interface so that it is compatible with call-method.
33 (hw_memory_instance_release): Ditto.
34 (hw_memory_instance_methods): New table of memory specific
35 methods claim and release. Add to the hw_memory_callback
36 table.
37
38 Tue Jul 30 21:26:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
39
40 * psim.c (psim_init): Back out of change to initial value of
41 system->last_cpu.
42
43 Tue Jul 30 21:12:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
44
45 * sim_callbacks.h (sim_io_printf_filtered): Replace
46 printf_filtered with a local simulator specific version. Add
47 #define printf_filtered to simplify updating of existing code.
48
49 * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin,
50 sim_io_write_stderr): New functions. Read / write to the
51 simulations stdin and stdout and stderr interfaces. Merge in code
52 from hw_pal that previously handled async I/O.
53 (sim_io_flush_stdoutput): Rename flush_stdoutput. Add #define
54 flush_stdoutput to simplify updating of existing code.
55
56 * hw_pal.c (scan_hw_pal, write_hw_pal,
57 hw_pal_instance_write_callback): Use the new sim_io functions.
58
59 * main.c: Implement standalone versions of the new sim_io
60 functions. Include support for async I/O.
61 * sim_calls.c: Ditto. This time using the gdb callback table.
62
63 * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up
64 stdio configuration so that it works in the same way as the rest
65 of the simulation.
66 * psim.c (psim_create): Initialize current_stdio from the device
67 tree.
68 * emul_generic.c (emul_add_tree_options): Enter a default value
69 for use-stdio in the device tree.
70
71 Fri Jul 26 19:43:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
72
73 * gen-idecode.c (print_jump): Was always generating a jump back to
74 idecode. Only necessary at tail of semantic code.
75 (print_jump): Was always setting the processor's cia, even during
76 startup when the processor was still undefined.
77 (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus,
78 not just equal.
79
80 * options.c (print_options): Add printing of WITH_REGPARM and
81 WITH_STDCALL.
82
83 * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default
84 (disabled) values if not defined.
85
86 Fri Jul 26 00:36:35 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
87
88 * ppc-cache-rules (cache): Change RS and RB to cache instead of
89 compute. The block move instructions use them.
90
91 * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR
92 register.
93 (CR_FIELD): New macro, extract specific CR register.
94 (FPSCR_FIELD): New macro, extract specific FPSCR register.
95
96 * registers.h (GPR): New macro, simplify accesses to GPR[i].
97
98 * bits.c (INSERTED): Covert INSERTED macro into a function.
99 (EXTRACTED): Conditionally compile on correct bit size macro.
100
101 * bits.h (BIT8): New macro, set a single bit in an 8 bit byte.
102
103 * ppc-instructions: With hints from Paul Martin, type in missing
104 some instruction semantics. Leave disabled for the moment.
105 (Load Multiple Word): Ditto.
106 (Store Multiple Word): Ditto.
107 (Load String Word Immediate): Ditto.
108 (Load String Word Indexed): Ditto.
109 (Store String Word Immedate): Ditto.
110 (Store String Word Indexed): Ditto.
111 (Move to Condition Register from XER): Ditto.
112 (Move From Condition Register): Ditto.
113 (Move From FPSCR): Ditto.
114 (Move to Condition Register from FPSCR): Ditto.
115 (Move To FPSCR Field Immediate): Ditto.
116 (Move To FPSCR Fields): Ditto.
117 (Move To FPSCR Bit 0): Ditto.
118 (Move To FPSCR Bit 1): Ditto.
119
120 Thu Jul 25 22:10:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
121
122 * std-config.h (SEMANTICS_INLINE): By default, mask out the
123 inlining of semantic functions from DEFAULT_INLINE. Almost all
124 configurations call the semantic code via a pointer so there is
125 little benefit.
126
127 * std-config.h (ICACHE_INLINE): Ditto.
128
129 Thu Jul 25 20:07:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
130
131 * configure.in (sim_regparm): Add configuration option for
132 enabling GCC's regparm attribute.
133 * (sim_stdcall): Add configuration option for enabling GCC's
134 stdcall attribute.
135
136 * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto
137 compilations.
138 * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations.
139
140 * std-config.h (REGPARM): Extend construction of REGPARM macro so
141 that it can include __stdcall__ function attribute.
142
143 Wed Jul 24 19:04:20 1996 Andrew Cagney <cagney@sawnoff>
144
145 * options.c (print_options): Include SUPPORT_INLINE in information
146 dump.
147
148 * gen-idecode.c (print_run_until_stop_body): Only generate loop
149 termination test if creating idecode_run_until_stop. Push the
150 loop termination test back into each alternative branch.
151
152 Wed Jul 24 15:47:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
153
154 * gen-icache.c (print_icache_function): Have the cache function
155 always update the cache_entries semantic and address fields.
156
157 * gen-idecode.c (print_idecode_switch_illegal): Include a break
158 when generating illegal instructions. This was commented out
159 which is a hangover from looking a at switch statements generated
160 using indirect jumps.
161
162 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
163
164 * igen.c (print_my_defines): Replaces print_define_my_index.
165 Print both a definition for MY_INDEX and MY_PREFIX.
166 * gen-icache.c (print_icache_function): Adjust.
167 * gen-idecode.c (print_jump_insn): Adjust.
168 * gen-semantics.c (print_c_semantic): Adjust.
169
170 * gen-support.c (gen_support_h): Add optional include to created
171 support.h so that, like cpu, it is optionally inlined for all
172 modules that include it.
173 * inline.h, inline.c: Adjust so that support.[hc] is handled the
174 same as cpu.[hc].
175
176 * idecode_fields.h (LABEL, GOTO): Macro's that create a unique
177 name for a lable and then branch to it.
178
179 * ppc-instructions (convert_to_integer, Floating Round to
180 Single-Precision, Floating Convert from Integer Doubleword): Use
181 LABEL and GOTO instead of the recently added switch statements.
182
183 Wed Jul 24 14:02:42 1996 Andrew Cagney <cagney@sawnoff.highland.com.au>
184
185 * gen-idecode.c (print_run_until_stop_body): Too many rparen in
186 generated code.
187
188 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
189
190 * configure.in (--enable-sim-line-nr): Typo - sim_line-nr.
191 * (--enable-sim-inline): Reorder patern matching of arguments so
192 that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE.
193
194 * configure: rebuild.
195
196 Mon Jul 22 23:25:08 1996 Andrew Cagney <cagney@highland.com.au>
197
198 * configure.in (--enable-sim-hardware, --enable-sim-packages): New
199 configuration options. Let the user specify the packages or
200 hardware devices that are to be included in the build. Makes it
201 possible for user packages to be specified.
202
203 * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and
204 hardware instead of checking it using ls. configure.in should
205 have taken care of any problems.
206 (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure.
207
208 Mon Jul 22 22:38:59 1996 Andrew Cagney <cagney@highland.com.au>
209
210 * psim.c (psim_options): Enter the argument to the memory size
211 option directly into the device tree. Was using atol() which is
212 dangerously non portable.
213
214 Mon Jul 22 22:17:08 1996 Andrew Cagney <cagney@highland.com.au>
215
216 * configure.in (icache): Extend icache flag to include an insn
217 option. If specifyed the insn - aka instruction - is included in
218 the instruction cache. Make this the default.
219 * configure: re-generate.
220
221 * igen.c (main), igen.h: Add option -S - inSn - for specifying
222 that the instruction should be included in the icache.
223
224 * gen-icache.c (print_icache_body): If enabled, output code to put
225 the instruction into the icache.
226 (print_icache_struct): If enabled, add insn to the icache struct.
227
228 Mon Jul 22 20:46:12 1996 Andrew Cagney <cagney@highland.com.au>
229
230 * Makefile.in (BUILD_CFLAGS): Include -g when building the
231 generators.
232
233 Mon Jul 22 20:00:25 1996 Andrew Cagney <cagney@highland.com.au>
234
235 * emul_generic.c (emul_add_tree_options): Was incorrectly setting
236 the strict-alignment option when hardwired for non-strict
237 alignment.
238
239 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
240
241 * gen-semantics.c: Make the my_index variable a macro MY_INDEX.
242
243 * ppc-instructions: Adjust so that references are to MY_INDEX and
244 not my_index.
245
246 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
247
248 * gen-idecode.c: Output the complete run_until_stop function
249 instead of just the code to handle a single instruction issue.
250 * : Have the generated idecode.c include inline.c (instead of psim.c).
251
252 * std-config.h: Change psim.c so that it isn't inlined (as this is
253 no longer needed).
254
255 * psim.c (run_until_stop): Delete the old run_until_stop function
256 instead calling the idecode_run and idecode_run_until_stop
257 functions that gen-idecode.c is now creating.
258
259 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
260
261 * dgen.c: Maintenance - update to use new features found in lf.c.
262
263 * filter_filename.c (filter_filename): Maintenance - make the
264 string constant.
265
266 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
267
268 * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP
269 eliminate trace statements.
270
271 * debug.c: Change trace format so that it is consistent
272 (file:line-nr) with CC's error output.
273
274 * gen-itable.c (itable_c_insn): Add the source file name and
275 source line number to the instruction's informational entry.
276
277 * debug.c (ITRACE): Use the itable (and my_index) to get the
278 current instructions name and source line number.
279
280 * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to
281 match new interface.
282
283 * emul_bugapi.c (emul_bugapi_instruction_call): Adjust
284 corresponding call to ITRACE so that it still matches.
285
286 * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead
287 of ITRACE. The CPP line directives would have previously set the
288 line-nr and file name so ITRACE isn't needed.
289
290 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
291
292 * gen-idecode.c (print_jump_until_stop_body): New function and
293 idecode generation option. Instead of generating and calling
294 separate functions containing the semantic and icache code
295 generate a single monolythic function and use goto's (and GCC's
296 indirect jump) to move between code blocks.
297
298 * Makefile.in: Add sim_jump flag to those passed to igen.
299
300 * configure.in: New option --enable-sim-jump (default disabled)
301
302 * ppc-instructions: Eliminate any uses of labels and goto's.
303 These result in duplicate declarations when a single flat function
304 is being create.
305
306 * ppc-opcode-jump: New file. Set of opcode rules useful when
307 testing jumping idecodes.
308
309 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
310
311 * gen-idecode.c: Optionally include the semantic code for an
312 instruction in the function that is doing the decoding.
313
314 * igen.c: Add option (-C) to generate semantics in the instruction
315 decode functions.
316
317 * configure.in (--enable-sim-icache): Accept an option list such
318 as 1024,define. Add a new choice to the list - semantic - which
319 will cause igen to generate instruction decode functions that
320 include the corresponding semantic code.
321
322 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
323
324 * configure.in: New option --enable-sim-line-nr (default enabled).
325 Enable/disable the inclusion of CPP line directives in the
326 generated files. Such directives refer back to the source files
327 used when generating the simulator code.
328
329 * Makefile.in (sim_line_nr): Pass to igen.
330
331 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
332
333 * igen.c (main): Revamp the options so that more letters are
334 available.
335
336 * configure.in: Adjust to match igen's revamped options
337
338 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
339
340 * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so
341 that they use the same technique as igen (ie a dummy targets
342 tmp-pk and tmp-hw are created).
343
344 Mon Jun 24 22:28:00 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
345
346 * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS.
347
348 Wed Jun 19 21:45:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
349
350 * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate
351 out the loading of each of the tables from the rest of igen.
352 * Makefile.in: Adjust.
353 * igen.c: Adjust.
354
355 * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc],
356 gen-model.[hc], gen-semantics.[hc]: New files. Separate out the
357 code creating each separate set of generated files.
358 * Makefile.in: Adjust.
359 * igen.c: Adjust.
360
361 * gen-support.[ch]: New files. Output the support functions (found
362 in the ppc-instructions file) into a separate file.
363 * Makefile.in: Add.
364 * inline.h, inline.c: Add.
365 * std-config.h: Add.
366
367 * ld-cache.c: Re-design the cache table format.
368 * ppc-cache-rules: Update to new format.
369
370 * ld-decode.c: Re-design the decode table format.
371 * ppc-opcode-simple: Update to new format
372 * ppc-opcode-complex: Ditto
373 * ppc-opcode-flat: Ditto
374
375 * filter.h, filter.c: New files. Separate the opcode filter table
376 reading code from the rest of igen.c. Re-design the filter so that
377 it works inclusivly not exclusivly.
378 * igen.c: Remove the opcode filter table loading code.
379 * Makefile.in (filter.o): Adjust
380 * configure.in: Adjust filter flag so that default includes 32bit
381 and floating point.
382 * ppc-instructions: Clean up filter fields so that only in use
383 entries are specifed (ie delete `be').
384
385 * misc.c (name2i, i2name): New function. Map between a string and
386 an integer value.
387
388 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
389
390 * sim_calls.c (sim_close): If simulator not created, skip printing
391 of run information.
392
393 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
394
395 * registers.c (register_description): Typo, insns not insn.
396
397 * ppc-instructions (model_get_number_of_stalls): New model function,
398 returns number of stalls for the specified processor.
399 * psim.c (psim_read_register): Add call to new function
400 model_get_number_of_stalls().
401
402 * ppc-instructions (model_get_number_of_cycles): New model function,
403 returns number of stalls for the specified processor.
404 * psim.c (psim_read_register): Add call to new function
405 model_get_number_of_cycles().
406
407 Fri Jun 14 00:11:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
408
409 * device_table.h: Don't pass the parent device into a devices
410 create function. This makes the create function consistent with
411 the documentation.
412 * device.c (device_template_create_device): Ditto
413 * hw_pal.c (hw_pal_create): Ditto
414 * hw_core.c (hw_core_create): Ditto
415 * hw_vm.c (hw_vm_create): Ditto
416 * hw_disk.c (hw_disk_create): Ditto
417 * hw_nvram.c (hw_nvram_create): Ditto
418 * hw_memory.c (hw_memory_create): Ditto
419 * hw_cpu.c (hw_cpu_create): Ditto.
420
421 * device.c (split_find_device): Allow a null initial parent device.
422 (device_template_create_device): Ditto.
423
424 * device.c (device_create_from): Make local (static) only used
425 within device.c.
426 * device_table.h: typedef device_callbacks moved here (from
427 device.h) where it belongs.
428
429 * hw_core.c: New file. Implements just the core device using the
430 core object.
431
432 * corefile.c: Moved all core device functions into the new
433 hw_core.c file. core_device_create() disapears.
434
435 * psim.c (psim_tree): Use device_tree_add_parsed() to create the
436 core device.
437
438 Thu Jun 13 00:09:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
439
440 * hw_init.c: Correct typo in comment.
441
442 * corefile.c (core_init): Remove any remaining references to a
443 default map.
444 (core_map_find_mapping): Ditto.
445
446 Wed Jun 12 22:30:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
447
448 * corefile.c (core_init): Make function global so that other
449 devices are able to use the full core object.
450
451 * corefile.c (core_create, core_from_device): Break core_create
452 into two functions. The first creates a core object, the second
453 returns the core object associated with a core device.
454
455 * corefile.c (core_device_create): Use core_create to make the
456 core object.
457
458 * psim.c (psim_create): Use core_from_device() instead of
459 core_create().
460
461 * device.c (device_template_create_device): Make static as only
462 needed by functions internal to device.c.
463
464 Fri Jun 7 23:47:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
465
466 * ppc-opcode-test-2: Remove description of fields.
467 * ppc-opcode-complex: Ditto
468 * ppc-opcode-flat: Ditto
469 * ppc-opcode-simple: Ditto
470 * ppc-opcode-stupid: Ditto
471 * ppc-opcode-test-1: Ditto
472 * ppc-cache-rules: Ditto
473
474 * igen.c: Add description of files as a comment at the front.
475
476 Wed Jun 26 12:50:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
477
478 * configure.in: Check for whether the termios and termio
479 structures are really defined, and whether or not, they define the
480 c_line field.
481 * configure: Regenerate.
482
483 * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by
484 configure.
485
486 * emul_unix.c: Various changes to allow for building on systems
487 with different termio and termios structures. If host has both
488 termio and termios, just use termios. No longer include
489 sys/ioctl.h.
490
491 Wed Jun 26 12:26:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
492
493 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
494 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
495 (docdir): Removed.
496 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
497 (AC_PROG_INSTALL): Added.
498 * configure: Rebuilt.
499
500 Wed Jun 5 23:53:42 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
501
502 * corefile.h: Rewrite documentation so that it can be extracted and
503 converted into texinfo (and hence ready for translation into html,
504 tex or nroff).
505 * device.h: Ditto
506
507 Thu Jun 6 09:52:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
508
509 * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0.
510
511 Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin>
512
513 * hw_disk.c: Include <unistd.h> if available. Under SunOS, that
514 is the source of SEEK_SET.
515
516 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
517
518 * psim.c (psim_options): Correct type of dummy arguments being
519 passed to a device_ioctl call.
520
521 * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
522 (write_stack_arguments): Ditto.
523 * hw_trace.c: Instance callback entry no longer a table.
524
525 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
526
527 * emul_unix.c (do_unix_umask): Cast printf argument.
528 (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
529
530 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
531
532 * hw_init.c (update_for_binary_section): Abort if we find an
533 .interp section, which indicates the need for shared libraries to
534 be loaded.
535
536 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
537
538 * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
539 for time, gettimeofday, and getrusage system calls.
540 ({solaris,linux}_descriptors): Add new system calls.
541 (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
542 (do_get{,p}pid): Use pic_t types.
543
544 * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
545 (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
546 * config{.in,ure}: Regenerate.
547
548 Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
549
550 * emul_netbsd.c (emul_netbsd_create): Use the more specific names
551 `ppc-elf' and `ppc-xcoff' for the stack-type.
552 * emul_unix.c (emul_unix_create): Ditto.
553 * emul_bugapi.c (emul_bugapi_create): Ditto.
554 * hw_init.c: Reconize the new names.
555
556 * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
557 call is used (no system parameter).
558
559 Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
560
561 * emul_unix.{h,c}: New files to provide Solaris and Linux system
562 call emulations.
563
564 * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
565 (os_emul.o): Depend on emul_unix.h.
566 (emul_unix.o): New dependency.
567
568 * configure.in (--enable-sim-alignment): Add 0|default to mean set
569 alignment to 0, which means use appropriate alignment for mode.
570 (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
571 (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
572 * config.in: Regenerate.
573 * configure: Regenerate.
574
575 * emul_generic.c (emul_write2_status): New function to return
576 results in r3 and r4 for Solaris system calls.
577 (emul_do_system_call): If the system call is not support, but
578 there is a string for the system call name, print out the string
579 instead of the system call number.
580
581 * emul_generic.h (emul_write2_status): Declare it.
582
583 * emul_netbsd.c: Use /* */ around comment on #endif.
584
585 * os_emul.c: Include emul_unix.h.
586 (os_emulations): Add emulations for Solaris, and Linux.
587
588 * psim.c (psim_usage): Add message about solaris, linux
589 emulations.
590
591 Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
592
593 * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
594
595 * README: Correct PSIM's title
596
597 Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
598
599 * basics.h: New global type object_disposition, used to indicate
600 the status of objects when things are restarted.
601
602 Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au>
603
604 * device_table.h: Change the interrupt descriptor structure so
605 that it includes an additional member - an upper bound on the
606 interrupts by that name.
607
608 * device.c (device_interrupt_decode): Allow a range of interrupt
609 ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
610
611 * device.c (device_tree_print_device): Include a list of valid
612 interrupt ports when listing supported devices.
613
614 * device.h, device.c (device_child_interrupt_*): Delete. Not used.
615
616 * emul_generic.c (emul_add_tree_hardware): Modify the creation of
617 the interrupt net so that it uses int0 .. intN.
618
619 Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
620
621 * device.h, device.c (device_ioctl): Drop the system argument.
622 Devices can not obtain this using the device_system() call.
623 * device_table.h: Adjust accordingly.
624 * hw_*.c: Adjust accordingly.
625 * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
626 * psim.c (psim_options): Use a device_ioctl call to force the
627 hw_trace device to update the trace options.
628 * hw_trace.c: Replace the init function with an ioctl call. Adjust
629 doc accordingly.
630
631 * psim.c (psim_init): Re-order initialization so that the
632 os-emulation is initialized after the device tree. Without this,
633 os-emul's are not able to create instances or access properties
634 that contain an instance handle.
635
636 * device.h, device.c (device_add_*_property): Make these functions
637 internal to device.c. The user has access to the more generic
638 device_tree_add_parsed function. Differentiate between the initial
639 and current value for each property.
640 * (clean_device_properties): New function that deletes any
641 properties created after the start of a simulation and restores
642 the initial value of any others (ignoring ihandles).
643 * (init_device_properties): (Re)Initialize any properties that
644 contain ihandles. create
645
646 * (device_tree_init): Include calls to clean the device tree's
647 properties and then initialize them. Document this in the device.h
648 file.
649
650 Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
651
652 * interrupts.c (decrementer_interrupt): Always pend a decrementer
653 interrupt even if it is not yet possible to deliver it.
654
655 Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen>
656
657 * mon.h, mon.c (mon_get_number_of_insns): Make this externally
658 visable adjusting the arguments so that the interface is correct.
659 (mon_print_info): Adjust calls.
660
661 * registers.h, registers.c (register_description): Add phony
662 cycle, insn and stall registers.
663
664 * psim.c (psim_read_register): Return nr of instructions for given
665 processor.
666
667 Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
668
669 * hw_htab.c: New file. Extract contents from disk_table.c.
670 Contains a device that, during initialization will create a
671 PowerPC htab in memory.
672 * hw_register.c: New file. Extract contents from disk_table.c.
673 Contains a device that, during initialization, will parse its
674 property list and use that to initialize various processor
675 registers (not target specific).
676 * hw_vm.c: New file. Extract contents from disk_table.c. Contains
677 a device that handles accesses to invalid virtual memory addresses
678 (in user mode).
679 * hw_init.c: New file. Extract contents from disk_table.c. Misc
680 devices that can initialize memory from a file.
681 * hw_trace.c: New file. Extract contents from disk_table.c.
682 Configure trace options from property values.
683
684 * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
685 hw_trace.c): Add new device files.
686
687 * device_table.c: Remove above code, now in separate independant
688 files.
689
690 Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
691
692 * hw_disk.c: New file. Disk and CDROM device.
693
694 * Makefile.in (hw_disk.o): Add device hw_disk.c.
695
696 * pk_disklabel.c: New file. Implement the miss-named disk-label
697 package.
698
699 * Makefile.in (pk.h): Create the file pk.h that contains a list of all
700 the packages.
701
702 * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
703 they are re-created when the makefile is updated.
704
705 * emul_generic.c (emul_add_tree_hardware): Add a disk device
706 (below the iobus) to the device tree. Include an ihandle of
707 the disk as /chosen/disk.
708
709 * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
710 output and (new) disk handles yet.
711 * (emul_bugapi_init): Initialize the input, output (and just added)
712 disk ihandles here.
713 * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least
714 what I think the behavour is).
715 * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
716 i/o bug call. For RETURN call, exit using gpr[3]'s status even
717 though this isn't part of the spec - makes it possible for machine
718 code to signal the aporting of a simulation run.
719
720 * emul_chirp.c (chirp_emul_call_method): Add support for the
721 claim/release methods.
722 * (chirp_emul_exit): Add an optional exit status argument to
723 the exit method. Makes it possible for chirp emul simulations
724 to abort upon an error.
725 * device.h, device.c (device_instance_claim,
726 device_instance_release): New methods for claiming and releasing
727 memory.
728 * hw_memory.c: add claim and release memory methods.
729 * hw_*: Use the claim memory method when allocating physical
730 memory.
731
732 Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
733
734 * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
735 time when updating the clock.
736
737 * hw_nvram.c: Tidy up documentation
738
739 Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
740
741 * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
742 macros to determine whether or not the appropriate st_<xxx> fields
743 exist in the stat structure.
744 (AC_CHECK_FUNCS): Check for all unix system calls used, except for
745 the real basic ones like open, read, write, etc.
746 * config{.in,ure}: Regenerate.
747
748 * emul_netbsd.c: Add support for missing system calls, and/or
749 missing stat fields.
750 (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
751 might define it.
752
753 * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
754 are not defined.
755 (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
756 F_SETFL not defined.
757
758 Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
759
760 * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
761 host is netbsd.
762
763 Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
764
765 * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
766 * config{.in,ure}: Regenerate.
767 * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
768 sys/ioctl.h.
769
770 Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
771
772 * hw_pal.c (hw_pal_instance_read_callback): Remove unused
773 variable.
774
775 * misc.c ({,target_}a2i): Rewrite to not use strtoul.
776
777 * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
778 ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of
779 LIBS.
780
781 Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
782
783 * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
784 fgets to read line. If not using stdio, do a simple blocking read
785 of len bytes.
786
787 Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
788
789 * Makefile.in: Correctly build simulator for build machine != host
790 machine.
791
792 Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
793
794 * configure.in (--enable-hostendian): Rework so the default uses
795 the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross
796 compiling.
797 * configure: Regenerate.
798
799 * sim-endian.h: Add more tests for host endian to support more
800 platforms in a cross compilation environment.
801
802 Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
803
804 * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
805 use stdio, instead of unpended read/printf_filtered.
806 (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
807 flush stdout after writing the characters.
808
809 * options.c (print_options): Print out WITH_STDIO.
810
811 * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
812 configuration variable.
813 (CONFIG_CFLAGS): Include STDIO_CFLAGS.
814 (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
815 files to contain directory pieces.
816
817 * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
818 should use stdio for console input.
819 (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
820
821 * configure.in (--enable-sim-stdio): Add new switch to control
822 whether stdio is used for console I/O.
823 * configure: Regenerate.
824
825 * interrupts.c (external_interrupt): Declare it to be
826 INLINE_INTERRUPTS, not INLINE_CPU.
827
828 Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
829
830 * events.c (insert_event_entry): Allow events to be scheduled
831 *NOW* (at delta time 0). Add assertions to clarify behavour of
832 event queue.
833
834 * events.c (update_time_from_event): New function. Calculates the
835 number of ticks from the next event. Use this.
836
837 Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au>
838
839 * emul_netbsd.c (do_break): Return 0 if success (instead of
840 adjusted break).
841
842 * device_table.c (vm_ioctl_callback): Don't return adjusted break
843 (isn't needed).
844
845 Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au>
846
847 * device_table.h: Change type of the device ioctl so that it
848 returns an int (status).
849 * device.h (device_ioctl): Ditto.
850 * device.c (device_ioctl): Ditto.
851
852 * device_table.c (stack_ioctl_callback): Return 0 status.
853 (vm_ioctl_callback): Ditto
854
855 Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
856
857 * emul_netbsd.c (do_read): Correctly set the return value.
858 (do_getpid): Ditto.
859 (do_getuid): Ditto.
860 (do_geteuid): Ditto.
861 (do_dup): Ditto.
862 (do_getegid): Ditto.
863 (do_getgid): Ditto.
864 (do_sigprocmask): Ditto.
865 (do_umask): Ditto.
866 (do_dup2): Ditto.
867 (do_gettimeofday): Ditto.
868 (do_getrusage): Ditto.
869 (do_fstat): Ditto.
870 (do_stat): Ditto.
871 (do_lseek): Ditto.
872 (do___sysctl): Ditto.
873
874 Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
875
876 * device_table.c (vm_ioctl_callback): Don't access the processor
877 registers directly, instead leave it to the caller to handle this.
878
879 * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
880 perform a break. Pass in the new break value and set the
881 registers according to the result.
882
883 * emul_generic.c (emul_write_status): Change so that r3 contains
884 either status or errno and failure is indicated by SO.
885
886 Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
887
888 * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
889 address.
890
891 Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au>
892
893 * interrupts.h (interrupts): New structure contains state of
894 pending interrupts.
895
896 * cpu.c (cpu_interrupts): New function. Pending interrupt status
897 in the cpu and grant access to it. Add interrupts to cpu
898 structure.
899
900 Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au>
901
902 * device.c (device_tree_add_parsed): Check that the creation of a
903 device instance worked before using it.
904
905 * psim.c (psim_halt): Remove cia argument from psim_halt. This
906 function does not save the CIA so do not pass it in.
907
908 Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au>
909
910 * hw_pal.c (hw_pal): Merge the halt and icu and console devices
911 found in device_table.c into a single hack pal.
912
913 * device_table.c (halt, icu, console): Delete.
914
915 * Makefile.in (hw_pal.o): New dependency.
916
917 * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
918 so that it uses the pal instead of the icu/halt/console devices.
919 Wire the pal's interrupt ports up to the cpu nodes.
920
921 Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au>
922
923 * hw_iobus.c (hw_iobus_attach_address_callback): Move from
924 device_table.c to here.
925
926 * Makefile.in (hw_iobus.o): New dependency.
927
928 Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
929
930 * emul_bugapi.c (_os_emul_data): Add fields for output, input.
931 (emul_bugapi_create): Create input, output from /chosen/stdin and
932 /chosen/stdout.
933 (emul_bugapi_do_{read,write}): Switch to use device_instance
934 interface.
935 (emul_bugapi_instruction_call): Change calls to
936 emul_bugapi_do_{read,write} to pass device instance argument.
937
938 Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
939
940 * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
941 default is not written out if a default was already written.
942
943 * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
944 size cooked_buf, not sizeof natural_word, since floating point
945 registers are 8 bytes.
946
947 Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
948
949 * configure: Regenerate with autoconf 2.9.
950
951 Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au>
952
953 * device_table.h: Always include string headers.
954
955 Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
956
957 * main.c (error): Be careful to not try to print out statistics
958 when the simulation was never created.
959
960 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
961
962 * basics.h: Move the event queue's definition to here so that it
963 can be refered to globally with out importing all of events.h.
964
965 * psim.h, psim.c (psim_event_queue): New function. Grant access
966 to the simulation event queue. Will make this the single point of
967 access (there is after all only one event queue in the
968 simulation).
969
970 * cpu.c (cpu_create): Use psim_event_queue to obtain the event
971 queue instead of it being passed in. No longer allow access to
972 the cpu's copy of the event queue.
973
974 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
975
976 * events.h, events.c (event_handler): Remove event_queue from
977 arguments passed to an event handler. That argument is redundant
978 - the `data' should refer to a data structure that contains the
979 event queue if queing is needed.
980
981 * cpu.c (cpu_decrement_event): adjust
982
983 * events.c (event_queue_process): adjust
984
985 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
986
987 * device.h, device.c (device_system): New, returns a handle for
988 the system given the device.
989
990 * device.c (device_address_init): Store a pointer back to the
991 system in each devices node.
992
993 * device_table.h: Don't pass `system' into each device when it is
994 being initialized, this is now available using device_system(me).
995
996 * device.c (device_address_init, device_data_init): Adjust.
997
998 * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
999 Adjust.
1000
1001 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
1002
1003 * interrupts.c (decrementer_interrupt, external_interrupt):
1004 Remember that an interrupt wasn't delivered so that it can be
1005 tried again later.
1006
1007 * interrupts.c (check_masked_interrupt): New function. (re)
1008 checks for the posibility that a recent change to the MSR may have
1009 made it possible to deliver an interrupt that was previously
1010 masked be the EE bit.
1011
1012 * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
1013 a pending interrupt being delivered using check_masked_interrupt().
1014
1015 * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
1016 leaving it to that module to handle both interrupt synchronization
1017 and masking.
1018
1019 * cpu.c (struct _cpu): remove variables that were going to record
1020 pending decrementer and external interrupts.
1021
1022 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
1023
1024 * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits
1025 between the interrupt controller and the simulators internal
1026 processor model. Maps device interrupts onto the processor
1027 interrupt function calls.
1028
1029 Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1030
1031 * hw_nvram.c: NVRAM device that includes a real-time clock that is
1032 updated each second.
1033
1034 Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1035
1036 * device.h (attach_type): Remove attach_default type address
1037 spaces. Will replace with levels of callback memory.
1038
1039 * corefile.h, corefile.c (new_core_mapping), corefile.c
1040 (core_map_attach): Replace default attach with a layerd callback
1041 approach.
1042
1043 Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1044
1045 * device.c (split_property_specifier): ensure that only a single
1046 property is found.
1047 (split_value): New function, parses the value part of a device
1048 spec.
1049
1050 * device.c (device_tree_add_parsed): Use the interrupt conversion
1051 functions to determine the interrupt port numbers.
1052
1053 * device_table.h: Add table that maps between an interrupts
1054 symbolic name and its port number.
1055
1056 * device.h, device.c (device_interrupt_decode,
1057 device_interrupt_encode): new functions use the recently added
1058 interrupt port name/number tables to perform conversion.
1059
1060 Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1061
1062 * device.h, device.c (device_set_array_property,
1063 device_set_boolean_property, device_set_ihandle_property,
1064 device_set_integer_property, device_set_string_property): New
1065 functions - allow the value of a given property to be changed.
1066
1067 * device.h, device.c: Re-order declaration and definition of
1068 property functions.
1069
1070 Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1071
1072 * device.c (device_tree_print_device, device_tree_add_parsed):
1073 Remove references to phandle properties.
1074
1075 Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1076
1077 * Makefile.in (corefile.o): missing dependency on device_table.h
1078 etc.
1079
1080 Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1081
1082 * device_table.h: Revamp device init callbacks so that they are a
1083 sub structure.
1084 * device.c (device_init_data, device_init_address): If an init
1085 callback is NULL assume it should do nothing.
1086 * device_table.c (ignore_device_init, unimp_device_init): delete
1087 as redundant.
1088 * device_table.c, hw_memory.c: adjust.
1089
1090 * (io): ditto.
1091 * (dma): ditto.
1092 * (device_instance): ditto.
1093 * (ioctl): ditto.
1094 * (address nee config_address): ditto.
1095 * (interrupt): ditto.
1096
1097 Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1098
1099 * igen.c (idecode_switch_end): Output a default entry when the
1100 switch statement is perfect. Firstly stops GCC complaining about
1101 an incomplete switch and secondly it will be eliminated by a good
1102 compiler any way.
1103
1104 Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1105
1106 * Makefile.in (hw.h, hw.c): New targets. Create from the list of
1107 hw_*.c files. hw.h declares a device descriptor table for each hw
1108 device while hw.c lists those tables in a form suitable for the
1109 construction of a top leveltable in device_table.c.
1110
1111 * Makefile.in (device_table.o): now depends on hw.c a generated
1112 table of hw.
1113
1114 * device_table.c (device_table): Re-arange the table of devices so
1115 that two levels are possible. Make use of hw.c.
1116 * device_table.h: ditto.
1117
1118 * device.c (device_template_create_device): Handle new two level
1119 device lookup table.
1120 * device.c (device_usage): ditto.
1121
1122 Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1123
1124 * device_table.c: Delete the memory device (moved to hw_memory.c).
1125
1126 * hw_memory.c: New file. Just an OpenBoot memory device.
1127
1128 Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au>
1129
1130 * device.c (device_init_address): New. Split initialization into
1131 two stages, address and address spaces
1132 * device.c (device_init_data): New. ... and data or other work.
1133 With out this, devices try to modify memory before it as been
1134 attached.
1135
1136 * device.c (device_tree_init): Update to perform staged
1137 initialization.
1138
1139 * device.c (device_init): Delete.
1140
1141 Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au>
1142
1143 * device_table.c (data_*): Rewrite to make heaver use of property
1144 nodes. Allow initialization by different data types.
1145 * device_table.c (htab_* pte_*): Rewrite to use properties.
1146
1147 * emul_chirp.c (emul_chirp_create): Use
1148 * emul_bugapi.c (emul_bugapi_create): Ditto
1149 * emul_netbsd.c (emul_netbsd_create): Ditto
1150
1151 Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au>
1152
1153 * emul_generic.c (emul_add_tree_options): Annotate existing tree
1154 with options that haven't yet been specified.
1155 * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
1156 with demo devices and properties.
1157
1158 * emul_chirp.c (emul_chirp_create): Update to use new
1159 device_tree_add_parsed call and additional information now
1160 included in the device tree. Use emul_add_tree* functions to add
1161 any missing details.
1162 * emul_bugapi.c (emul_bugapi_create): Ditto
1163 * emul_netbsd.c (emul_netbsd_create): Ditto
1164
1165 Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au>
1166
1167 * device.c (device_instance_create): New. Create/delete and
1168 operate on instances of a device.
1169 * device.c (device_instance_delete): Ditto
1170 * device.c (device_instance_read): Ditto
1171 * device.c (device_instance_write): Ditto
1172 * device.c (device_instance_seek): Ditto
1173 * device.c (device_instance_data): Ditto
1174 * device.c (device_instance_name): Ditto
1175 * device.c (device_instance_path): Ditto
1176
1177 * emul_chirp.c (chirp_emul_open): Implement using device_instance.
1178 * emul_chirp.c (chirp_emul_close): Ditto
1179 * emul_chirp.c (chirp_emul_read): Ditto
1180 * emul_chirp.c (chirp_emul_write): Ditto
1181 * emul_chirp.c (chirp_emul_seek): Ditto
1182
1183 * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
1184 Being careful to convert all from target to host byte order.
1185 * emul_chirp.c (chirp_write_h2t_args): Converse.
1186
1187 Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au>
1188
1189 * device.c (device_tree_add_parsed): New. Rewrite code to add
1190 devices to the device tree so that a single printf style function
1191 is used.
1192
1193 * device.c (device_tree_add_*): Delete. Replaced by above.
1194
1195 * device.c (split_device_specifier): Functions to manipulate a
1196 device specifier (path) breaking it into its components
1197 * device.c (split_property_specifier): Ditto
1198 * device.c (split_device_name): Ditto
1199 * device.c (split_find_device): Ditto
1200
1201 * device.c (scan_*): Delete
1202
1203 * device.c (device_tree_find_device): Rewrite to use above.
1204 * device.c (device_add_property): Ditto
1205
1206 Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au>
1207
1208 * psim.c(psim_options): Parse the psim options, installing their
1209 value in the device tree. Options are now first entered into a
1210 device tree and then extracted out again when needed. This allows
1211 greater flexability in configuration.
1212
1213 * psim.c (psim_tree): Returns a basic device tree ready for
1214 parsing by psim_options.
1215 * psim.c (psim_usage): New. Give usage to varing levels of detail
1216 according to the verbosity. In turn output device and trace
1217 usage.
1218
1219 * main.c (main): Update to use new system
1220 * sim_calls.c (sim_open, sim_do_command): Ditto
1221
1222 * psim.c (psim_options): Add `r' option - ram size.
1223 * psim.c (psim_options): Add `o' option - openboot tree entry.
1224 * psim.c (psim_options): Add `h'/`H' options - more help.
1225
1226 * debug.c (trace_usage): Add more detailed help.
1227 * device.c (device_usage): New. Output help including a list of
1228 the devices currently available in the device table.
1229 * device_table.c: Add usage operator to each device.
1230
1231 * corefile.c (core_create, core_device_create): Adjust so that the
1232 core device is created earlier for psim_tree(). Core can later be
1233 created from it.
1234
1235 * psim.c (psim_create): Update to handle above way of creating
1236 things. Extract all information from the device tree.
1237
1238 * device_tree.c (trace_*): New device node, its properties are
1239 used to set the value of the trace options. Init this device (in
1240 psim_options) when ever the options are updated.
1241
1242 Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au>
1243
1244 * debug.h: Add trace_print_info, trace_print_device_tree and
1245 trace_dump_device_tree. The first is a replacement for the
1246 variable `print_info' found in main.c and sim_calls.c. The latter
1247 two enable the dumping of the entire device tree.
1248
1249 * debug.c: Add to trace_description table.
1250
1251 * main.c (main): Use above trace instead of local variable
1252 * sim_calls.c (sim_close): Ditto
1253
1254 * device.c (device_tree_print_device): New. Prints the device
1255 tree in a format that is consistent with what can be parsed by the
1256 device tree load from file code.
1257
1258 * psim.c (psim_create): Dump device tree if enabled. If nump
1259 selected, exit psim immediatly.
1260
1261 Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au>
1262
1263 * corefile-n.h (core_map_read_N): When mapping from an address to
1264 a device, do not subtract the devices base. The device its self
1265 can do this. Brings the behavour into line with OpenBoot.
1266 * corefile-n.h (core_map_write_N): Ditto
1267 * corefile.c (core_map_read_buffer): Ditto
1268 * corefile.c (core_map_write_buffer): Ditto
1269
1270 * device_table.c (console_io_read_buffer_callback): Adjust to
1271 handle biased address.
1272 * device_table.c (console_io_write_buffer_callback): Ditto
1273
1274 Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au>
1275
1276 * device.c (attach_device_interrupt_edge): New. Interrupt model
1277 did not allow interrupts to be wired up as a general net (edges).
1278 Re-implement so that interrupt events can be passed to multiple
1279 controllers and interrupt controllers can further propogate
1280 interrupt events.
1281
1282 * device.c (attach_device_interrupt_edge) : New, Ditto
1283 * device.c (detach_device_interrupt_edge) : New, Ditto
1284 * device.c (clean_device_interrupt_edges) : New, Ditto
1285 * device.c (device_interrupt_event) : New, Ditto
1286 * device.c (device_interrupt_attach) : New, Ditto
1287 * device.c (device_interrupt_detach) : New, Ditto
1288 * device.c (device_child_interrupt_attach) : New, Ditto
1289 * device.c (device_child_interrupt_detach) : New, Ditto
1290
1291 * device.c (device_attach_interrupt) : Delete old
1292 * device.c (device_detach_interrupt) : Delete old
1293 * device.c (device_interrupt) : Delete old
1294 * device.c (device_interrupt_ack) : Delete old
1295
1296 * device_table.c (unimp_*) : Update to match
1297
1298 * device_table.c (icu_io_write_buffer_callback) : Update to use
1299 interface.
1300 * device_table.c (icu_interrupt_event_callback) : Ditto
1301
1302 Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au>
1303
1304 * device.c (external_to_device) : New function that provides a
1305 standard mapping between a devices internal representation (a
1306 pointer) and its external (or what is passed to a client)
1307 representation (a phandle). Implement using the cap object
1308 attached to the root node.
1309
1310 * device.c (device_to_external) : Ditto
1311 * device.c (external_to_device_instance) : Ditto but for ihandle
1312 and device instance.
1313 * device.c (device_instance_to_external) : Ditto
1314
1315 * Makefile (device.o): Add dependency on cap.
1316
1317 * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
1318 needing to translate between internal and external representations
1319 changed to use the external_to_device et.al. device operations.
1320 * emul_chirp.c (chirp_emul_*) : Ditto
1321
1322 * Makefile (emul_chirp.o): Remove dependency on cap
1323
1324 Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
1325
1326 * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
1327 on OpenBoot note section.
1328
1329 Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au>
1330
1331 * emul_generic.c (emul_write_buffer): Use vm faulting byte
1332 read/write calls for buffer transfers. This will cause a fault to
1333 occure if the transfer fails. CHRP catches the fault while the
1334 others suffer the consequences.
1335 (emul_read_buffer): Ditto.
1336 (emul_write_word): Ditto.
1337 (emul_read_word): Ditto.
1338 (emul_read_string): Ditto.
1339
1340 Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au>
1341
1342 * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
1343 emul_generic (emul_blr_instruction): Use a real blr instruction to
1344 return from a client service call.
1345
1346 * emul_chirp.c (services): Add all OpenBoot services to table.
1347
1348 * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
1349 (emul_chirp_create) : Use names instead of numbers for
1350 instructions being stored in memory.
1351
1352 Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au>
1353
1354 * Makefile.in (maintainer-clean): Remove .log, core and *.core
1355 (From NetBSD) files.
1356
1357 Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1358
1359 * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes
1360 ChangeLog.00
1361