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