Latest changes from Andrew
[binutils-gdb.git] / sim / ppc / ChangeLog
1 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2
3 * psim.c (psim_options): Correct type of dummy arguments being
4 passed to a device_ioctl call.
5
6 * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
7 (write_stack_arguments): Ditto.
8 * hw_trace.c: Instance callback entry no longer a table.
9
10 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
11
12 * emul_unix.c (do_unix_umask): Cast printf argument.
13 (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
14
15 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
16
17 * hw_init.c (update_for_binary_section): Abort if we find an
18 .interp section, which indicates the need for shared libraries to
19 be loaded.
20
21 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
22
23 * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
24 for time, gettimeofday, and getrusage system calls.
25 ({solaris,linux}_descriptors): Add new system calls.
26 (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
27 (do_get{,p}pid): Use pic_t types.
28
29 * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
30 (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
31 * config{.in,ure}: Regenerate.
32
33 Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
34
35 * emul_netbsd.c (emul_netbsd_create): Use the more specific names
36 `ppc-elf' and `ppc-xcoff' for the stack-type.
37 * emul_unix.c (emul_unix_create): Ditto.
38 * emul_bugapi.c (emul_bugapi_create): Ditto.
39 * hw_init.c: Reconize the new names.
40
41 * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
42 call is used (no system parameter).
43
44 Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
45
46 * emul_unix.{h,c}: New files to provide Solaris and Linux system
47 call emulations.
48
49 * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
50 (os_emul.o): Depend on emul_unix.h.
51 (emul_unix.o): New dependency.
52
53 * configure.in (--enable-sim-alignment): Add 0|default to mean set
54 alignment to 0, which means use appropriate alignment for mode.
55 (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
56 (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
57 * config.in: Regenerate.
58 * configure: Regenerate.
59
60 * emul_generic.c (emul_write2_status): New function to return
61 results in r3 and r4 for Solaris system calls.
62 (emul_do_system_call): If the system call is not support, but
63 there is a string for the system call name, print out the string
64 instead of the system call number.
65
66 * emul_generic.h (emul_write2_status): Declare it.
67
68 * emul_netbsd.c: Use /* */ around comment on #endif.
69
70 * os_emul.c: Include emul_unix.h.
71 (os_emulations): Add emulations for Solaris, and Linux.
72
73 * psim.c (psim_usage): Add message about solaris, linux
74 emulations.
75
76 Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
77
78 * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
79
80 * README: Correct PSIM's title
81
82 Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
83
84 * basics.h: New global type object_disposition, used to indicate
85 the status of objects when things are restarted.
86
87 Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au>
88
89 * device_table.h: Change the interrupt descriptor structure so
90 that it includes an additional member - an upper bound on the
91 interrupts by that name.
92
93 * device.c (device_interrupt_decode): Allow a range of interrupt
94 ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
95
96 * device.c (device_tree_print_device): Include a list of valid
97 interrupt ports when listing supported devices.
98
99 * device.h, device.c (device_child_interrupt_*): Delete. Not used.
100
101 * emul_generic.c (emul_add_tree_hardware): Modify the creation of
102 the interrupt net so that it uses int0 .. intN.
103
104 Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
105
106 * device.h, device.c (device_ioctl): Drop the system argument.
107 Devices can not obtain this using the device_system() call.
108 * device_table.h: Adjust accordingly.
109 * hw_*.c: Adjust accordingly.
110 * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
111 * psim.c (psim_options): Use a device_ioctl call to force the
112 hw_trace device to update the trace options.
113 * hw_trace.c: Replace the init function with an ioctl call. Adjust
114 doc accordingly.
115
116 * psim.c (psim_init): Re-order initialization so that the
117 os-emulation is initialized after the device tree. Without this,
118 os-emul's are not able to create instances or access properties
119 that contain an instance handle.
120
121 * device.h, device.c (device_add_*_property): Make these functions
122 internal to device.c. The user has access to the more generic
123 device_tree_add_parsed function. Differentiate between the initial
124 and current value for each property.
125 * (clean_device_properties): New function that deletes any
126 properties created after the start of a simulation and restores
127 the initial value of any others (ignoring ihandles).
128 * (init_device_properties): (Re)Initialize any properties that
129 contain ihandles. create
130
131 * (device_tree_init): Include calls to clean the device tree's
132 properties and then initialize them. Document this in the device.h
133 file.
134
135 Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
136
137 * interrupts.c (decrementer_interrupt): Always pend a decrementer
138 interrupt even if it is not yet possible to deliver it.
139
140 Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen>
141
142 * mon.h, mon.c (mon_get_number_of_insns): Make this externally
143 visable adjusting the arguments so that the interface is correct.
144 (mon_print_info): Adjust calls.
145
146 * registers.h, registers.c (register_description): Add phony
147 cycle, insn and stall registers.
148
149 * psim.c (psim_read_register): Return nr of instructions for given
150 processor.
151
152 Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
153
154 * hw_htab.c: New file. Extract contents from disk_table.c.
155 Contains a device that, during initialization will create a
156 PowerPC htab in memory.
157 * hw_register.c: New file. Extract contents from disk_table.c.
158 Contains a device that, during initialization, will parse its
159 property list and use that to initialize various processor
160 registers (not target specific).
161 * hw_vm.c: New file. Extract contents from disk_table.c. Contains
162 a device that handles accesses to invalid virtual memory addresses
163 (in user mode).
164 * hw_init.c: New file. Extract contents from disk_table.c. Misc
165 devices that can initialize memory from a file.
166 * hw_trace.c: New file. Extract contents from disk_table.c.
167 Configure trace options from property values.
168
169 * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
170 hw_trace.c): Add new device files.
171
172 * device_table.c: Remove above code, now in separate independant
173 files.
174
175 Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
176
177 * hw_disk.c: New file. Disk and CDROM device.
178
179 * Makefile.in (hw_disk.o): Add device hw_disk.c.
180
181 * pk_disklabel.c: New file. Implement the miss-named disk-label
182 package.
183
184 * Makefile.in (pk.h): Create the file pk.h that contains a list of all
185 the packages.
186
187 * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
188 they are re-created when the makefile is updated.
189
190 * emul_generic.c (emul_add_tree_hardware): Add a disk device
191 (below the iobus) to the device tree. Include an ihandle of
192 the disk as /chosen/disk.
193
194 * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
195 output and (new) disk handles yet.
196 * (emul_bugapi_init): Initialize the input, output (and just added)
197 disk ihandles here.
198 * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least
199 what I think the behavour is).
200 * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
201 i/o bug call. For RETURN call, exit using gpr[3]'s status even
202 though this isn't part of the spec - makes it possible for machine
203 code to signal the aporting of a simulation run.
204
205 * emul_chirp.c (chirp_emul_call_method): Add support for the
206 claim/release methods.
207 * (chirp_emul_exit): Add an optional exit status argument to
208 the exit method. Makes it possible for chirp emul simulations
209 to abort upon an error.
210 * device.h, device.c (device_instance_claim,
211 device_instance_release): New methods for claiming and releasing
212 memory.
213 * hw_memory.c: add claim and release memory methods.
214 * hw_*: Use the claim memory method when allocating physical
215 memory.
216
217 Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
218
219 * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
220 time when updating the clock.
221
222 * hw_nvram.c: Tidy up documentation
223
224 Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
225
226 * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
227 macros to determine whether or not the appropriate st_<xxx> fields
228 exist in the stat structure.
229 (AC_CHECK_FUNCS): Check for all unix system calls used, except for
230 the real basic ones like open, read, write, etc.
231 * config{.in,ure}: Regenerate.
232
233 * emul_netbsd.c: Add support for missing system calls, and/or
234 missing stat fields.
235 (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
236 might define it.
237
238 * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
239 are not defined.
240 (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
241 F_SETFL not defined.
242
243 Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
244
245 * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
246 host is netbsd.
247
248 Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
249
250 * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
251 * config{.in,ure}: Regenerate.
252 * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
253 sys/ioctl.h.
254
255 Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
256
257 * hw_pal.c (hw_pal_instance_read_callback): Remove unused
258 variable.
259
260 * misc.c ({,target_}a2i): Rewrite to not use strtoul.
261
262 * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
263 ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of
264 LIBS.
265
266 Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
267
268 * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
269 fgets to read line. If not using stdio, do a simple blocking read
270 of len bytes.
271
272 Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
273
274 * Makefile.in: Correctly build simulator for build machine != host
275 machine.
276
277 Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
278
279 * configure.in (--enable-hostendian): Rework so the default uses
280 the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross
281 compiling.
282 * configure: Regenerate.
283
284 * sim-endian.h: Add more tests for host endian to support more
285 platforms in a cross compilation environment.
286
287 Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
288
289 * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
290 use stdio, instead of unpended read/printf_filtered.
291 (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
292 flush stdout after writing the characters.
293
294 * options.c (print_options): Print out WITH_STDIO.
295
296 * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
297 configuration variable.
298 (CONFIG_CFLAGS): Include STDIO_CFLAGS.
299 (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
300 files to contain directory pieces.
301
302 * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
303 should use stdio for console input.
304 (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
305
306 * configure.in (--enable-sim-stdio): Add new switch to control
307 whether stdio is used for console I/O.
308 * configure: Regenerate.
309
310 * interrupts.c (external_interrupt): Declare it to be
311 INLINE_INTERRUPTS, not INLINE_CPU.
312
313 Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
314
315 * events.c (insert_event_entry): Allow events to be scheduled
316 *NOW* (at delta time 0). Add assertions to clarify behavour of
317 event queue.
318
319 * events.c (update_time_from_event): New function. Calculates the
320 number of ticks from the next event. Use this.
321
322 Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au>
323
324 * emul_netbsd.c (do_break): Return 0 if success (instead of
325 adjusted break).
326
327 * device_table.c (vm_ioctl_callback): Don't return adjusted break
328 (isn't needed).
329
330 Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au>
331
332 * device_table.h: Change type of the device ioctl so that it
333 returns an int (status).
334 * device.h (device_ioctl): Ditto.
335 * device.c (device_ioctl): Ditto.
336
337 * device_table.c (stack_ioctl_callback): Return 0 status.
338 (vm_ioctl_callback): Ditto
339
340 Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
341
342 * emul_netbsd.c (do_read): Correctly set the return value.
343 (do_getpid): Ditto.
344 (do_getuid): Ditto.
345 (do_geteuid): Ditto.
346 (do_dup): Ditto.
347 (do_getegid): Ditto.
348 (do_getgid): Ditto.
349 (do_sigprocmask): Ditto.
350 (do_umask): Ditto.
351 (do_dup2): Ditto.
352 (do_gettimeofday): Ditto.
353 (do_getrusage): Ditto.
354 (do_fstat): Ditto.
355 (do_stat): Ditto.
356 (do_lseek): Ditto.
357 (do___sysctl): Ditto.
358
359 Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
360
361 * device_table.c (vm_ioctl_callback): Don't access the processor
362 registers directly, instead leave it to the caller to handle this.
363
364 * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
365 perform a break. Pass in the new break value and set the
366 registers according to the result.
367
368 * emul_generic.c (emul_write_status): Change so that r3 contains
369 either status or errno and failure is indicated by SO.
370
371 Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
372
373 * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
374 address.
375
376 Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au>
377
378 * interrupts.h (interrupts): New structure contains state of
379 pending interrupts.
380
381 * cpu.c (cpu_interrupts): New function. Pending interrupt status
382 in the cpu and grant access to it. Add interrupts to cpu
383 structure.
384
385 Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au>
386
387 * device.c (device_tree_add_parsed): Check that the creation of a
388 device instance worked before using it.
389
390 * psim.c (psim_halt): Remove cia argument from psim_halt. This
391 function does not save the CIA so do not pass it in.
392
393 Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au>
394
395 * hw_pal.c (hw_pal): Merge the halt and icu and console devices
396 found in device_table.c into a single hack pal.
397
398 * device_table.c (halt, icu, console): Delete.
399
400 * Makefile.in (hw_pal.o): New dependency.
401
402 * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
403 so that it uses the pal instead of the icu/halt/console devices.
404 Wire the pal's interrupt ports up to the cpu nodes.
405
406 Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au>
407
408 * hw_iobus.c (hw_iobus_attach_address_callback): Move from
409 device_table.c to here.
410
411 * Makefile.in (hw_iobus.o): New dependency.
412
413 Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
414
415 * emul_bugapi.c (_os_emul_data): Add fields for output, input.
416 (emul_bugapi_create): Create input, output from /chosen/stdin and
417 /chosen/stdout.
418 (emul_bugapi_do_{read,write}): Switch to use device_instance
419 interface.
420 (emul_bugapi_instruction_call): Change calls to
421 emul_bugapi_do_{read,write} to pass device instance argument.
422
423 Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
424
425 * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
426 default is not written out if a default was already written.
427
428 * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
429 size cooked_buf, not sizeof natural_word, since floating point
430 registers are 8 bytes.
431
432 Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
433
434 * configure: Regenerate with autoconf 2.9.
435
436 Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au>
437
438 * device_table.h: Always include string headers.
439
440 Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
441
442 * main.c (error): Be careful to not try to print out statistics
443 when the simulation was never created.
444
445 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
446
447 * basics.h: Move the event queue's definition to here so that it
448 can be refered to globally with out importing all of events.h.
449
450 * psim.h, psim.c (psim_event_queue): New function. Grant access
451 to the simulation event queue. Will make this the single point of
452 access (there is after all only one event queue in the
453 simulation).
454
455 * cpu.c (cpu_create): Use psim_event_queue to obtain the event
456 queue instead of it being passed in. No longer allow access to
457 the cpu's copy of the event queue.
458
459 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
460
461 * events.h, events.c (event_handler): Remove event_queue from
462 arguments passed to an event handler. That argument is redundant
463 - the `data' should refer to a data structure that contains the
464 event queue if queing is needed.
465
466 * cpu.c (cpu_decrement_event): adjust
467
468 * events.c (event_queue_process): adjust
469
470 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
471
472 * device.h, device.c (device_system): New, returns a handle for
473 the system given the device.
474
475 * device.c (device_address_init): Store a pointer back to the
476 system in each devices node.
477
478 * device_table.h: Don't pass `system' into each device when it is
479 being initialized, this is now available using device_system(me).
480
481 * device.c (device_address_init, device_data_init): Adjust.
482
483 * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
484 Adjust.
485
486 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
487
488 * interrupts.c (decrementer_interrupt, external_interrupt):
489 Remember that an interrupt wasn't delivered so that it can be
490 tried again later.
491
492 * interrupts.c (check_masked_interrupt): New function. (re)
493 checks for the posibility that a recent change to the MSR may have
494 made it possible to deliver an interrupt that was previously
495 masked be the EE bit.
496
497 * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
498 a pending interrupt being delivered using check_masked_interrupt().
499
500 * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
501 leaving it to that module to handle both interrupt synchronization
502 and masking.
503
504 * cpu.c (struct _cpu): remove variables that were going to record
505 pending decrementer and external interrupts.
506
507 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
508
509 * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits
510 between the interrupt controller and the simulators internal
511 processor model. Maps device interrupts onto the processor
512 interrupt function calls.
513
514 Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
515
516 * hw_nvram.c: NVRAM device that includes a real-time clock that is
517 updated each second.
518
519 Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
520
521 * device.h (attach_type): Remove attach_default type address
522 spaces. Will replace with levels of callback memory.
523
524 * corefile.h, corefile.c (new_core_mapping), corefile.c
525 (core_map_attach): Replace default attach with a layerd callback
526 approach.
527
528 Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
529
530 * device.c (split_property_specifier): ensure that only a single
531 property is found.
532 (split_value): New function, parses the value part of a device
533 spec.
534
535 * device.c (device_tree_add_parsed): Use the interrupt conversion
536 functions to determine the interrupt port numbers.
537
538 * device_table.h: Add table that maps between an interrupts
539 symbolic name and its port number.
540
541 * device.h, device.c (device_interrupt_decode,
542 device_interrupt_encode): new functions use the recently added
543 interrupt port name/number tables to perform conversion.
544
545 Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
546
547 * device.h, device.c (device_set_array_property,
548 device_set_boolean_property, device_set_ihandle_property,
549 device_set_integer_property, device_set_string_property): New
550 functions - allow the value of a given property to be changed.
551
552 * device.h, device.c: Re-order declaration and definition of
553 property functions.
554
555 Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
556
557 * device.c (device_tree_print_device, device_tree_add_parsed):
558 Remove references to phandle properties.
559
560 Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
561
562 * Makefile.in (corefile.o): missing dependency on device_table.h
563 etc.
564
565 Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
566
567 * device_table.h: Revamp device init callbacks so that they are a
568 sub structure.
569 * device.c (device_init_data, device_init_address): If an init
570 callback is NULL assume it should do nothing.
571 * device_table.c (ignore_device_init, unimp_device_init): delete
572 as redundant.
573 * device_table.c, hw_memory.c: adjust.
574
575 * (io): ditto.
576 * (dma): ditto.
577 * (device_instance): ditto.
578 * (ioctl): ditto.
579 * (address nee config_address): ditto.
580 * (interrupt): ditto.
581
582 Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
583
584 * igen.c (idecode_switch_end): Output a default entry when the
585 switch statement is perfect. Firstly stops GCC complaining about
586 an incomplete switch and secondly it will be eliminated by a good
587 compiler any way.
588
589 Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
590
591 * Makefile.in (hw.h, hw.c): New targets. Create from the list of
592 hw_*.c files. hw.h declares a device descriptor table for each hw
593 device while hw.c lists those tables in a form suitable for the
594 construction of a top leveltable in device_table.c.
595
596 * Makefile.in (device_table.o): now depends on hw.c a generated
597 table of hw.
598
599 * device_table.c (device_table): Re-arange the table of devices so
600 that two levels are possible. Make use of hw.c.
601 * device_table.h: ditto.
602
603 * device.c (device_template_create_device): Handle new two level
604 device lookup table.
605 * device.c (device_usage): ditto.
606
607 Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
608
609 * device_table.c: Delete the memory device (moved to hw_memory.c).
610
611 * hw_memory.c: New file. Just an OpenBoot memory device.
612
613 Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au>
614
615 * device.c (device_init_address): New. Split initialization into
616 two stages, address and address spaces
617 * device.c (device_init_data): New. ... and data or other work.
618 With out this, devices try to modify memory before it as been
619 attached.
620
621 * device.c (device_tree_init): Update to perform staged
622 initialization.
623
624 * device.c (device_init): Delete.
625
626 Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au>
627
628 * device_table.c (data_*): Rewrite to make heaver use of property
629 nodes. Allow initialization by different data types.
630 * device_table.c (htab_* pte_*): Rewrite to use properties.
631
632 * emul_chirp.c (emul_chirp_create): Use
633 * emul_bugapi.c (emul_bugapi_create): Ditto
634 * emul_netbsd.c (emul_netbsd_create): Ditto
635
636 Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au>
637
638 * emul_generic.c (emul_add_tree_options): Annotate existing tree
639 with options that haven't yet been specified.
640 * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
641 with demo devices and properties.
642
643 * emul_chirp.c (emul_chirp_create): Update to use new
644 device_tree_add_parsed call and additional information now
645 included in the device tree. Use emul_add_tree* functions to add
646 any missing details.
647 * emul_bugapi.c (emul_bugapi_create): Ditto
648 * emul_netbsd.c (emul_netbsd_create): Ditto
649
650 Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au>
651
652 * device.c (device_instance_create): New. Create/delete and
653 operate on instances of a device.
654 * device.c (device_instance_delete): Ditto
655 * device.c (device_instance_read): Ditto
656 * device.c (device_instance_write): Ditto
657 * device.c (device_instance_seek): Ditto
658 * device.c (device_instance_data): Ditto
659 * device.c (device_instance_name): Ditto
660 * device.c (device_instance_path): Ditto
661
662 * emul_chirp.c (chirp_emul_open): Implement using device_instance.
663 * emul_chirp.c (chirp_emul_close): Ditto
664 * emul_chirp.c (chirp_emul_read): Ditto
665 * emul_chirp.c (chirp_emul_write): Ditto
666 * emul_chirp.c (chirp_emul_seek): Ditto
667
668 * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
669 Being careful to convert all from target to host byte order.
670 * emul_chirp.c (chirp_write_h2t_args): Converse.
671
672 Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au>
673
674 * device.c (device_tree_add_parsed): New. Rewrite code to add
675 devices to the device tree so that a single printf style function
676 is used.
677
678 * device.c (device_tree_add_*): Delete. Replaced by above.
679
680 * device.c (split_device_specifier): Functions to manipulate a
681 device specifier (path) breaking it into its components
682 * device.c (split_property_specifier): Ditto
683 * device.c (split_device_name): Ditto
684 * device.c (split_find_device): Ditto
685
686 * device.c (scan_*): Delete
687
688 * device.c (device_tree_find_device): Rewrite to use above.
689 * device.c (device_add_property): Ditto
690
691 Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au>
692
693 * psim.c(psim_options): Parse the psim options, installing their
694 value in the device tree. Options are now first entered into a
695 device tree and then extracted out again when needed. This allows
696 greater flexability in configuration.
697
698 * psim.c (psim_tree): Returns a basic device tree ready for
699 parsing by psim_options.
700 * psim.c (psim_usage): New. Give usage to varing levels of detail
701 according to the verbosity. In turn output device and trace
702 usage.
703
704 * main.c (main): Update to use new system
705 * sim_calls.c (sim_open, sim_do_command): Ditto
706
707 * psim.c (psim_options): Add `r' option - ram size.
708 * psim.c (psim_options): Add `o' option - openboot tree entry.
709 * psim.c (psim_options): Add `h'/`H' options - more help.
710
711 * debug.c (trace_usage): Add more detailed help.
712 * device.c (device_usage): New. Output help including a list of
713 the devices currently available in the device table.
714 * device_table.c: Add usage operator to each device.
715
716 * corefile.c (core_create, core_device_create): Adjust so that the
717 core device is created earlier for psim_tree(). Core can later be
718 created from it.
719
720 * psim.c (psim_create): Update to handle above way of creating
721 things. Extract all information from the device tree.
722
723 * device_tree.c (trace_*): New device node, its properties are
724 used to set the value of the trace options. Init this device (in
725 psim_options) when ever the options are updated.
726
727 Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au>
728
729 * debug.h: Add trace_print_info, trace_print_device_tree and
730 trace_dump_device_tree. The first is a replacement for the
731 variable `print_info' found in main.c and sim_calls.c. The latter
732 two enable the dumping of the entire device tree.
733
734 * debug.c: Add to trace_description table.
735
736 * main.c (main): Use above trace instead of local variable
737 * sim_calls.c (sim_close): Ditto
738
739 * device.c (device_tree_print_device): New. Prints the device
740 tree in a format that is consistent with what can be parsed by the
741 device tree load from file code.
742
743 * psim.c (psim_create): Dump device tree if enabled. If nump
744 selected, exit psim immediatly.
745
746 Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au>
747
748 * corefile-n.h (core_map_read_N): When mapping from an address to
749 a device, do not subtract the devices base. The device its self
750 can do this. Brings the behavour into line with OpenBoot.
751 * corefile-n.h (core_map_write_N): Ditto
752 * corefile.c (core_map_read_buffer): Ditto
753 * corefile.c (core_map_write_buffer): Ditto
754
755 * device_table.c (console_io_read_buffer_callback): Adjust to
756 handle biased address.
757 * device_table.c (console_io_write_buffer_callback): Ditto
758
759 Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au>
760
761 * device.c (attach_device_interrupt_edge): New. Interrupt model
762 did not allow interrupts to be wired up as a general net (edges).
763 Re-implement so that interrupt events can be passed to multiple
764 controllers and interrupt controllers can further propogate
765 interrupt events.
766
767 * device.c (attach_device_interrupt_edge) : New, Ditto
768 * device.c (detach_device_interrupt_edge) : New, Ditto
769 * device.c (clean_device_interrupt_edges) : New, Ditto
770 * device.c (device_interrupt_event) : New, Ditto
771 * device.c (device_interrupt_attach) : New, Ditto
772 * device.c (device_interrupt_detach) : New, Ditto
773 * device.c (device_child_interrupt_attach) : New, Ditto
774 * device.c (device_child_interrupt_detach) : New, Ditto
775
776 * device.c (device_attach_interrupt) : Delete old
777 * device.c (device_detach_interrupt) : Delete old
778 * device.c (device_interrupt) : Delete old
779 * device.c (device_interrupt_ack) : Delete old
780
781 * device_table.c (unimp_*) : Update to match
782
783 * device_table.c (icu_io_write_buffer_callback) : Update to use
784 interface.
785 * device_table.c (icu_interrupt_event_callback) : Ditto
786
787 Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au>
788
789 * device.c (external_to_device) : New function that provides a
790 standard mapping between a devices internal representation (a
791 pointer) and its external (or what is passed to a client)
792 representation (a phandle). Implement using the cap object
793 attached to the root node.
794
795 * device.c (device_to_external) : Ditto
796 * device.c (external_to_device_instance) : Ditto but for ihandle
797 and device instance.
798 * device.c (device_instance_to_external) : Ditto
799
800 * Makefile (device.o): Add dependency on cap.
801
802 * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
803 needing to translate between internal and external representations
804 changed to use the external_to_device et.al. device operations.
805 * emul_chirp.c (chirp_emul_*) : Ditto
806
807 * Makefile (emul_chirp.o): Remove dependency on cap
808
809 Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
810
811 * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
812 on OpenBoot note section.
813
814 Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au>
815
816 * emul_generic.c (emul_write_buffer): Use vm faulting byte
817 read/write calls for buffer transfers. This will cause a fault to
818 occure if the transfer fails. CHRP catches the fault while the
819 others suffer the consequences.
820 (emul_read_buffer): Ditto.
821 (emul_write_word): Ditto.
822 (emul_read_word): Ditto.
823 (emul_read_string): Ditto.
824
825 Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au>
826
827 * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
828 emul_generic (emul_blr_instruction): Use a real blr instruction to
829 return from a client service call.
830
831 * emul_chirp.c (services): Add all OpenBoot services to table.
832
833 * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
834 (emul_chirp_create) : Use names instead of numbers for
835 instructions being stored in memory.
836
837 Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au>
838
839 * Makefile.in (maintainer-clean): Remove .log, core and *.core
840 (From NetBSD) files.
841
842 Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
843
844 * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes
845 ChangeLog.00
846