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