* configure: Regenerated to track ../common/aclocal.m4 changes.
[deliverable/binutils-gdb.git] / sim / ppc / ChangeLog
1 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
2
3 * configure: Regenerated to track ../common/aclocal.m4 changes.
4 * config.in: Ditto.
5
6 Sun Apr 26 15:19:51 1998 Tom Tromey <tromey@cygnus.com>
7
8 * acconfig.h: New file.
9 * configure.in: Reverted change of Apr 24; use sinclude again.
10 Don't call AC_C_CROSS.
11
12 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
13
14 * configure: Regenerated to track ../common/aclocal.m4 changes.
15 * config.in: Ditto.
16
17 Fri Apr 24 11:18:46 1998 Tom Tromey <tromey@cygnus.com>
18
19 * Makefile.in (top_builddir): New macro.
20 (INTLLIBS): New macro.
21 (INTLDEPS): Likewise.
22 (psim): Depend on INTLDEPS; link against INTLLIBS.
23 * configure.in: Call CY_GNU_GETTEXT.
24
25 Wed Apr 22 14:28:48 1998 Michael Meissner <meissner@cygnus.com>
26
27 * configure: Regenerate with autoconf 2.12.1.
28
29 Fri Mar 13 09:25:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
30
31 * psim.c (psim_read_register, psim_write_register): Handle updates
32 for FPSCR.
33
34 * registers.c (register_description): Reconize "FPSCR".
35
36 * emul_netbsd.c (emul_netbsd_create): When FP available, enable
37 MSR FP exception mode. Do not enable FPSCR bits.
38 * emul_unix.c (emul_unix_create): Ditto.
39
40 Tue Feb 17 12:48:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
41
42 * sim_calls.c (sim_store_register, sim_fetch_register): Pass in
43 length parameter. Return -1.
44
45 Mon Feb 9 14:13:14 1998 Andrew Cagney <cagney@b1.cygnus.com>
46
47 * ppc-instructions (fdiv, fdivs): Check for divide by zero.
48 (is_invalid_zero_divide, invalid_zero_divide_operation): New
49 functions.
50
51 Wed Dec 10 17:38:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
52
53 * sim_calls.c (sim_load): Do not parse PROG using buildargv, use
54 raw value instead.
55
56 1997-11-05 Felix Lee <flee@cygnus.com>
57
58 * emul_chirp.c: #ifdef HAVE_UNISTD_H
59
60 Wed Oct 15 08:50:54 1997 Andrew Cagney <cagney@b1.cygnus.com>
61
62 * corefile.c (core_attach): Pad out allocated memory regions so
63 that they are always correctly aligned.
64 (struct _core_mapping, core_map_attach, core_init,
65 new_core_mapping): Change free_buffer to type void*.
66
67 Mon Oct 6 18:09:26 1997 Michael Meissner <meissner@cygnus.com>
68
69 * sim_calls.c (zfree): Call free correctly.
70
71 Mon Sep 29 10:05:01 1997 Andrew Cagney <cagney@b1.cygnus.com>
72
73 * sim_calls.c (zfree): Use free, not mfree.
74 (sim_io_flush_stdoutput): Replace gdb_flush with callback ->
75 flush_stdout.
76
77 Fri Sep 26 09:50:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
78
79 * ppc-instructions (sraw, slw, srw): From Charles Lefurgy, Fix
80 mask extracting shift amount. Correctly condition for setting XER
81 in sraw.
82 (ldhau): From Johannes Reisinger, update rA after load.
83
84 Tue Sep 9 22:13:23 1997 Felix Lee <flee@cygnus.com>
85
86 * basics.h (CONCAT*): token-pasting macros, if ALMOST_STDC,
87 for MSVC.
88 * words.h: __int64 instead of long long for MSVC.
89
90 Wed Aug 27 10:24:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
91
92 * sim_calls.c (sim_create_inferior): Check the simulator was
93 initialized before creating inferior.
94
95 * idecode_expression.h (ALU_END): From Charles Lefurgy - Extract
96 sign bit using 64 bit and not a 32 bit mask.
97
98 Wed Aug 27 10:15:48 1997 Andrew Cagney <cagney@b1.cygnus.com>
99
100 * sim_calls.c (sim_load): From Ian Lance Taylor - free argv after
101 it has been used, not before.
102
103 Tue Aug 26 10:41:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
104
105 * sim_calls.c (sim_kill): Delete.
106 (sim_create_inferior): Add ABFD argument.
107 (entry_point): Delete variable.
108 (sim_load): Move setting of PC from here.
109 (sim_create_inferior): To here.
110
111 Mon Aug 25 16:17:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
112
113 * sim_calls.c (sim_open): Add ABFD argument.
114
115 Thu Jul 3 10:18:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
116
117 * ppc-instructions (PPC_INSN_INT): From Michael Thies - Monitoring
118 CR register updates dependant on RC value had logic backwards.
119
120 * ppc-instructions (Load String Word Immediate): From Brad Parker
121 - sense of wrap test in check for overwriting RA wrong.
122 (Load String Word Indexed): Ditto.
123
124 * configure.in: From Erik Landry - set sim_default_model not
125 sim_model for sim-default-model option.
126 * configure: Regenerate.
127
128 * interrupts.c (check_masked_interrupts): Schedule a hardware
129 interrupt delivery when FP interrupts get enabled.
130 (program_interrupt): Generate FP exceptions instead of aborting.
131 (deliver_hardware_interrupt): Deliver a FP exception if so
132 enabled.
133
134 * registers.h: Add definition of fpscr_vx_bits.
135
136 * idecode_expression.h (FPSCR_END): Always update FEX and VX bits
137 in FPSCR.
138 (FPSCR_END): Explicitly check for possible floating point
139 exception conditions.
140 (FPSCR_BEGIN): Simplify.
141
142 * ppc-instructions (Move From FPSCR): Enable.
143 (Move To FPSCR Bit 1): Ditto.
144 (Move To FPSCR Bit 0): Ditto.
145 (Move To FPSCR Field Immediate): Ditto.
146 (Move to Condition Register from FPSCR): Simplify.
147 (invalid_arithemetic_operation): Generate a QNaN when invalid
148 operation exception disabled.
149
150 Tue May 20 10:22:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
151
152 * sim_calls.c (sim_open): Add callback argument.
153 (sim_set_callbacks): Delete.
154
155 Tue Apr 22 22:36:57 1997 Mike Meissner <meissner@cygnus.com>
156
157 * sim_callbacks.h (error): Make declaration match gdb's.
158 * main.c (error): Ditto.
159
160 Fri Apr 18 17:03:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
161
162 * sim_calls.c (sim_stop_reason): Simplify. Was running implies
163 stopped/SIGINT. Exit implies a status code.
164
165 * psim.c (cntrl_c_simulation): From main.c. Event function that
166 halts the simulator.
167 (psim_stop): New. Asynchronously schedule a stop simulator event.
168 (psim_run_until_stop): Delete. Made redundant by psim_stop.
169
170 * main.c (cntrl_c): Update.
171 (cntrl_c_simulation): Moved to psim.c.
172
173 * sim_calls.c (sim_stop): New function. Use psim_stop which
174 schedules a stop event.
175 (sim_resume): Drop SIGINT handler, now in gdb/main.c.
176 (sim_resume): Use psim_run as stop variable no longer needed.
177
178 Fri Apr 18 17:03:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
179
180 * psim.c (psim_options): Handle -E option correctly.
181 (psim_usage): Document.
182
183 Thu Apr 17 03:28:03 1997 Doug Evans <dje@canuck.cygnus.com>
184
185 * psim.c (psim_options): Ignore -E option (sets endianness).
186 * sim_calls.c: #include bfd.h.
187 (entry_point): New static local.
188 (sim_load): Return SIM_RC. New arg abfd. Set start address from bfd.
189 (sim_create_inferior): Return SIM_RC. Delete arg start_address.
190
191 Tue Apr 15 14:57:18 1997 Ian Lance Taylor <ian@cygnus.com>
192
193 * Makefile.in (INSTALL): Set to @INSTALL@.
194 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
195 (install): Depend upon installdirs. Use $(program_transform_name)
196 directly, rather than using $(INSTALL_XFORM).
197 (installdirs): New target.
198
199 Fri Apr 4 17:54:36 1997 Jim Wilson <wilson@cygnus.com>
200
201 * Makefile.in (tmp-hw, tmp-pk): Use for loop to eliminate duplicates
202 rather than the non-portable cat -n.
203
204 Mon Apr 14 16:29:51 1997 Ian Lance Taylor <ian@cygnus.com>
205
206 * Makefile.in (INSTALL): Change install.sh to install-sh.
207
208 Tue Apr 1 18:15:14 1997 Jim Wilson <wilson@cygnus.com>
209
210 * ppc-instructions: Change milhwu to mulhwu.
211
212 Wed Apr 2 15:38:08 1997 Doug Evans <dje@canuck.cygnus.com>
213
214 * sim_calls.c (sim_open): New arg `kind'.
215
216 Wed Apr 2 14:51:17 1997 Ian Lance Taylor <ian@cygnus.com>
217
218 * COPYING: Update FSF address.
219
220 Tue Mar 25 16:17:59 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
221
222 * main.c (sim_io_read_stdin): Only compile unbuffered IO code if
223 all the required features are supported by the host OS.
224
225 Tue Mar 25 12:13:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
226
227 * emul_bugapi.c (emul_bugapi_create): Guard against NULL images.
228
229 * configure.in (enable-sim-endain): Correct typo in usage (from
230 Erik Landry <landry@ENGR.ORST.EDU>).
231 * configure: Re-generate.
232
233 Fri Mar 14 18:23:02 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
234
235 * Makefile.in (targ-vals.def): Re-do rule so that it works with
236 FreeBSD's make. Didn't like $<.
237
238 Thu Mar 13 12:55:48 1997 Doug Evans <dje@canuck.cygnus.com>
239
240 * sim_calls.c (sim_open): New SIM_DESC result. Argument is now
241 in argv form.
242 (other sim_*): New SIM_DESC argument.
243
244 Thu Feb 13 10:35:14 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
245
246 * ppc-opcode-simple-array, ppc-opcode-simple-goto,
247 ppc-opcode-simple-switch, ppc-opcode-complex-array,
248 ppc-opcode-complex-goto, ppc-opcode-complex-switch,
249 ppc-opcode-jump, ppc-opcode-goto, ppc-opcode-flat: Delete,
250 superseeded by --sim-decode-mechanism option.
251
252 * ppc-opcode-simple, dc-simple: Rename to be 8.3
253 * ppc-opcode-complex, dc-complex: Ditto.
254 * ppc-opcode-stupid, dc-stupid: Ditto.
255 * ppc-opcode-test-1, dc-test.01: Ditto.
256 * ppc-opcode-test-2, dc-test.02: Ditto.
257
258 * configure.in (--enable-sim-opcode): Change prefix to dc- instead
259 of ppc-opcode-.
260
261 Wed Feb 12 19:33:45 1997 Andrew Cagney <cagney@phydeaux.cygnus.com>
262
263 * Many of the ppc-opcode-* files are identical baring the type of
264 lookup table. Instead of having multiple tables, igen can do this
265 via an additional option.
266
267 * ld-decode.h, ld-decode.c (force_decode_gen_type): New function,
268 allow the type of generated table specified in the decode file to
269 be overridden.
270
271 * ld-decode.c (load_decode_table): Allow the table type to be
272 overridden.
273
274 * igen.c (main): Add -T <mechanism> option so that an overriding
275 instruction decode mechanism can be specified.
276
277 * configure.in: New option --sim-decode-mechanism to control
278 igen's new -T <mechanism> flag.
279 * Makefile.in (IGEN_FLAGS): Add IGEN_IDECODE_MECHANISM set by the
280 configure script.
281 * configure: Regenerate.
282
283 Tue Feb 11 13:49:10 1997 Michael Meissner <meissner@tiktok.cygnus.com>
284
285 * events.c (event_queue_create): Don't use NULL to initialize an
286 integer field.
287 (even_queue_{init,schedule_after_signal,tick}): Conditionalize use
288 of sigprocmask to appropriate autoconf test.
289
290 * main.c ({cntrl_c,main}): Use RETSIGTYPE for signal return type,
291 don't assume void.
292 * sim_calls.c (sim_{ctrl_c,resume}): Ditto.
293
294 * Makefile.in (callback.o): Define HAVE_CONFIG_H, so callback.c
295 includes our config.h.
296
297 Tue Feb 4 13:42:59 1997 Doug Evans <dje@canuck.cygnus.com>
298
299 * configure.in: Fix typo in test for callback.c.
300 * configure: Regenerated.
301
302 Fri Feb 7 10:04:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
303
304 * emul_chirp.c (emul_chirp_create): Handle a virtbase of -1 being
305 found in the device tree.
306
307 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
308
309 * Property create/initialization still wasn't correctly ordered.
310 Should be delaying everything related to ihandle creation until
311 after the rest of the tree has been established.
312
313 * device.c (device_find_ihandle_runtime_property): Update.
314 (device_add_ihandle_runtime_property): Update.
315
316 * tree.c (parse_ihandle_property): Delay lookup of the device to
317 be opened until the ihandle initialization phase.
318 * tree.c (print_properties): Update.
319
320 Wed Feb 5 10:56:27 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
321
322 * gen-icache.c (print_icache_extraction): Add a reason parameter.
323 Augment each extracted field with a comment citing the codes
324 origin. Should simplify tracking down incorrect cache
325 extractions.
326
327 Tue Feb 4 17:44:51 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
328
329 * gen-icache.c: Generalize code handling XXX_is_NNN so that it
330 works for normal and boolean table entries.
331
332 * psim.c (psim_write_memory): last_cpu == -1 or nr_cpus is now
333 valid. Handle this just like *_{read,write}_register now handles
334 it.
335
336 Mon Feb 3 17:18:16 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
337
338 * events.c (insert_event_entry): Correct loop termination
339 assertions.
340
341 Fri Jan 31 16:20:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
342
343 * psim.c (psim_options): Add new option -c for max-iterations or
344 count.
345 (psim_usage): Document.
346 (psim_max_iterations_exceeded): New function, abort simulation if
347 max iterations exceeded.
348
349 * gen-idecode.c: Re-work the table lookup code so that it assumes
350 that the entry is a leaf by default. Simplify the boolean table
351 entry code so that it involves a mask + test instead of shift +
352 shift + mask + test.
353
354 * gen-idecode.c: Correct generated igen body so that it no drops
355 or doubles clock interrupts.
356
357
358 Thu Jan 30 11:23:20 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
359
360 * Makefile.in (BUILT_SRC_WO_CONFIG): Change targ-vals.* to
361 @sim_targ_vals@
362
363 * configure.in (sim_callback, sim_targ_vals): Set sim_targ_valls
364 if common callback is present.
365
366 Wed Jan 29 12:32:41 1997 Michael Meissner <meissner@tiktok.cygnus.com>
367
368 * configure.in (sim_callback): If the gdb is post 4.16, configure
369 callback support from the common directory.
370 * configure: Regenerate.
371
372 * Makefile.in (BUILT_SRC_WO_CONFIG): Add targ-vals.{h,def} and
373 targ-map.c.
374 (GDB_OBJ): Add callback support configured in.
375 (gentmap,targ-vals.def): Build from common directory.
376 (targ-vals.h,targ-map.c): Build by running gentmap.
377 (callback.o): Build from source in common directory.
378 (targ-map.o): Add dependency.
379 (clean): Remove gentmap.
380
381 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
382
383 * igen wasn't aborting if the opcode table contained no valid
384 fields.
385
386 * misc.c (name2i): Possibly abort if an invalid name is
387 encountered.
388 * ld-decode.c: Abort if the table type isn't found.
389
390 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
391
392 * When performance monitoring is disabled, it is still possible to
393 determine the simulation speed by looking at the number of elapsed
394 ticks recorded by the event queue.
395
396 * psim.c (psim_write_register, psim_read_register): Force the cpu
397 to zero when it is either of `-1' or `nr_cpus'. In both cases the
398 next cpu would be zero any way.
399
400 * mon.c (mon_print_info): If possible, print the system cycle
401 performance. This is an indication of the number of instructions
402 per second.
403
404 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
405
406 * The code to allow an event queue to be updated during a signal
407 was missing. For main.c, a cntrl-c simulation termination wasn't
408 handled cleanly.
409
410 * The simulation would not correctly restart if an event requested
411 that the simulation be halted.
412
413 * psim.c (psim_options): Add hack to -i option to optionally
414 include a level vis -i2.
415 (psim_usage): Document.
416
417 * main.c (cntrl_c, cntrl_c_simulation): New functions. When a
418 cntrl-c occures schedule an event to halt the simulation.
419 (main): Catch CNTRL-C signals with the function cntrl_c.
420
421 * events.c (event_queue_process): Mask interrupts while
422 manipulating the async event queue.
423 (event_queue_init): Ditto.
424 (event_queue_schedule_after_signal): Ditto.
425
426 * events.c (event_queue_process): Mark the event queue as being in
427 the processing state when processing has started. Adjust code
428 so that it is tolerant of halts.
429 (event_queue_init): Start the event queue out with processing
430 false.
431 (event_queue_tick): Check that processing isn't still being
432 performed.
433
434 * gen-idecode.c (print_run_until_stop_body): Call
435 event_queue_process_events to clear possibly pending events before
436 starting a simulation run. Re-arange main loop so that simulator
437 is correctly restarted when an event halts the simulation.
438
439 * psim.c (psim_halt): Handle an event halting the simulation.
440 * psim.c (psim_init): Adjust initial cpu - == -1 - to match
441 reworked idecode.
442
443 Wed Jan 29 12:14:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
444
445 * ppc-opcode-complex: Correct typo - was expanding ORA instead of
446 RA. Based on instruction frequency stats, expand additional
447 instructions.
448 * ppc-instructions: Change all `RA == 0' to RA_is_0.
449
450 * ppc-opcode-stupid: Move all but the basic table in -complex into
451 here. Update to new format.
452
453 * Makefile.in (tmp-defines): New target. Force defines.h to always
454 be built. Hence get ppc-opcode-goto to build.
455
456 Tue Jan 28 13:00:19 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
457
458 * hw_com.c (hw_com_instance_read, hw_com_instance_write):
459 Implement.
460
461 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
462
463 * hw_trace.c (hw_trace_init_data): Delete. The trace options need
464 to be initialized independant of the rest of the simulation
465 initalization. Otherwize a trace option explictly set from gdb
466 could be overridden by hw_trace.
467
468 * psim.c (psim_options): Clarify reason why the trace ioctl occures.
469
470 * FIXME: The trace code is too scattered - hw_trace.c, psim.c,
471 debug.c. It could be much simpler.
472
473 Thu Jan 23 09:07:26 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
474
475 * Some devices support removable media. Add hooks to the disk
476 device so that it supports this.
477
478 * device.c (device_add_string_array_property,
479 device_find_string_array_property): New functions, manipulate
480 properties containing an array of strings.
481 (device_find_string_property): Allow a string array.
482 (device_init_static_properties): Update.
483 (device_init_runtime_properties): Update.
484
485 * hw_disk.c (hw_disk_ioctl): Add ioctl for changing the disk
486 media. If no file image is specified, use the next one in the
487 image property list.
488 (hw_disk_init_address): Change the file property so that it is a
489 string array - use the first entry for the initial file image.
490
491 * tree.c (print_string_aray_property): New function - print a
492 string array.
493 (print_properties): Adjust.
494 (print_string): Write a string, handling double quotes.
495
496 * device.h: Define an ioctl to `change-media' with an optional new
497 media image.
498
499 * hw_disk.c: Allow floppy disk devices to be specified.
500
501 * psim.c (psim_command): New function, parse more complex psim
502 commands such as "change-media" and "trace".
503 * sim_calls.c (sim_do_command): Use.
504
505 Wed Jan 22 09:38:33 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
506
507 * For expressions like (RA == 0) that are entered in to the cache
508 as RA_is_0. If possible generate the result of the expression so
509 that the compiler gets a better chance of eliminating dead
510 branches.
511
512 * gen-icache.c (print_icache_extraction): For a cache entry of
513 the form <name>_is_<const> where it is a boolean field, generate
514 the result of the expression instead of the expression its self.
515 (print_icache_body): Remove code that was looking for *_is_0 and
516 then generating corresponding definitions.
517
518 * gen-icache.c (print_icache_struct): If there is no cache, do not
519 output expressions in idecode.h file.
520
521 * gen-icache.c (print_icache_body): Output them here.
522
523 * ppc-opcode-complex: Clarify constant values for SPR==LR register
524 expansion.
525
526 * ppc-cache-rules (RA_is_0, SPR_is_256): Two new cache entries.
527
528 Wed Jan 22 12:24:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
529
530 * The code that put values in and extracted values from the cache
531 was too compilicated. The cache table did not allow values to be
532 computed from cache entries. #defines could only be used when a
533 cache was present, remove the restriction.
534
535 * ld-cache.h, ld-cache.c: Add a new cache entry type - SCRATCH. A
536 scratch variable is defined when a cache entry is beinf
537 filled. Change the definition of a COMPUTE variable to be defined
538 when the cache entry is being used.
539 * gen-icache.c: Update.
540
541 * ld-cache.h, ld-cache.c: Change field names so that their meaning
542 is more obvious. old_name->field_name, new_name->derived_name.
543 * gen-icache.c: Update
544
545 * gen-icache.h, gen-icache.c (print_icache_body): Make the three
546 different types of cache code - put into cache, extract from
547 cache, no cache - an explicit argument to print_icache_body.
548 * gen-icache.c (print_icache_extraction): Ditto.
549
550 * gen-semantics.c (print_c_semantic): Update use.
551 * gen-idecode.c (print_jump_insn): Update use.
552 * gen-icache.c (print_icache_function): Update use.
553
554 * igen.c (main): Change 'R' option so that it does not force the
555 cache.
556
557 * configure.in (enable-sim-icache): Clarify description. Make
558 #define one of the defaults regardless of the cache. Probably
559 should revamp and add a separate option.
560
561 Tue Jan 21 13:26:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
562
563 * pk_disklabel.c (block_is_fdisk): Tidy up traces - use dos
564 partition numbering.
565 (pk_disklabel_create_instance): Partition 1..4 are valid - not
566 1..3.
567 (is_iso9660): New function, verify a CD9660 File system.
568 (pk_disklabel_create_instance): Start expanding so that active
569 partition selection is supported.
570
571 Mon Jan 20 11:20:15 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
572
573 * The cap object was retaining a reference to the instance of a
574 device after it was deleted. Instead add and remove cap's from the
575 cap db as they are created and deleted. This ensuring that a
576 capibility is only used during the lifetime of the corresponding
577 object.
578
579 * cap.h, cap.c: Correct cap type - was signed32 should be
580 signed_cell.
581
582 * cap.c (cap_add, cap_remove): New methods for cap object that
583 allow the explicit addition and removal of internal objects that
584 the cap knows about.
585
586 * cap.c (cap_init): Rewrite. Verify that the only objects
587 remaining in the cap data base are those that were entered first.
588 Thse objects will be the permenant ones.
589 * device.c (device_init_address): Remember to initialize the cap
590 database.
591
592 * device.c (device_create_instance_from): Explicitly add device
593 instances to the cap database. Simplify create code.
594 (device_instance_delete): Explicitly remove device instances from
595 the cap database.
596
597 * device.c (device_create_from): Explicitly add a device to the
598 cap data base.
599
600 * device.c (device_create_from): Always set the cap members.
601
602 * hw_disk.c: Output the instance when tracing.
603
604 Sun Jan 19 16:44:29 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
605
606 * tree.c (split_device_specifier): Add support for aliases when
607 looking up a device. Now needs a device as an argument.
608 (split_property_specifier): Ditto.
609
610 Sun Jan 19 15:28:23 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
611
612 * The memory "claim" and "release" methods take an address and
613 size as arguments. These may be multi cell values. Initially fix
614 the memory code so that they check/detect this. Leave the
615 adjustment of any clients to later.
616
617 * hw_memory.c (hw_memory_instance_claim,
618 hw_memory_instance_release): Handle multi-cell memory devices.
619
620 * hw_memory.c (hw_memory_instance_claim): Be tolerant towards the
621 release of memory regions that were not claimed.
622
623 Fri Jan 17 12:01:07 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
624
625 * device.h, device.c (device_instance_call_method): Correct return
626 type - can return either 0 or -1, hence should be a signed type.
627 * device_table.h: Ditto.
628
629 * hw_memory.c (hw_memory_instance_claim,
630 hw_memory_instance_release): Update.
631 * hw_disk.c (hw_disk_max_transfer, hw_disk_block_size,
632 hw_disk_nr_blocks): Ditto.
633
634 Fri Jan 17 11:50:13 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
635
636 * emul_chirp.c (chirp_emul_claim): Implement using the "claim"
637 method belonging to "/chosen/memory".
638 (chirm_emul_release): Ditto.
639
640 * Makefile.in (LIB_INLINE_SRC): Remove emul_* from list of files
641 that are inlined. These modules are called via a table and are
642 not made inline.
643
644 * hw_init.c (update_for_binary_section): Fix failure to allocate
645 memory used by the binary in real-mode executions. If "claim"
646 property is present, allocate memory from the "/chosen/memory"
647 device.
648
649 * emul_chirp.c (emul_chirp_create): Specify that memory should be
650 claimed when loading a real image.
651
652 * hw_memory.c (hw_memory_instance_claim): Don't page align memory
653 allocations.
654
655 * hw_memory.c (hw_memory_instance_release): Avoid infinite loop
656 when merging adjacent memory chunks.
657
658 Thu Jan 16 08:51:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
659
660 * vm.h (vm_data_map_read_buffer, vm_data_map_write_buffer): Add
661 optional PROCESSOR & CIA args so that this routine also abort an
662 access.
663
664 * vm_n.h (vm_data_map_read_N, vm_data_map_write_N): For a
665 miss-aligned access when a transfer fails abort.
666
667 * emul_bugapi.c (emul_bugapi_do_write): Use emul_read_buffer
668 instead of the vm_read_buffer.
669 * emul_netbsd.c (do_write): Ditto.
670 * emul_unix.c (do_unix_write): Ditto.
671
672 Wed Jan 15 14:38:25 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
673
674 * configure.in (--enable-sim-jump): Default is NULL and not -E.
675 * configure: Regenerate.
676
677 * basics.h (__attribute__): Enable attributes if GCC >= 2.6.
678 (UNUSED): Only enable UNUSED if GCC >= 2.7.
679
680 * gen-icache.c (print_icache_extraction): Print UNUSED macro
681 instead of explicit __unused__ attribute.
682 (print_icache_body): Ditto.
683 * idecode_expression.h (FPSCR_BEGIN): Use UNUSED.
684
685 Wed Jan 15 13:54:50 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
686
687 * cpu.h, cpu.c (cpu_synchronize_context): Add CIA argument as
688 reference point.
689
690 * vm.c (vm_synchronize_context): Add PROCESSOR and CIA as
691 arguments so that there is a reference point for recovery.
692 (vm_synchronize_context): Pass processor+cia for errors.
693 (om_unpack_sr): Ditto.
694 (om_unpack_srs): Ditto.
695 * vm.c (vm_create): Review error messages.
696
697 * vm.c: Include "cpu.h" so that cpu_error is visible.
698
699 * ppc-instructions (Return From Interrupt): Pass CIA.
700 (Instruction Synchronize): Ditto.
701 * psim.c (psim_init): Ditto.
702
703 Wed Jan 15 12:25:11 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
704
705 * cpu.h, cpu.c (cpu_error): Aborts simulation with error message,
706 but also saves current processor state.
707
708 * basics.h: Move #include <stdarg.h> to here from device_table.h.
709
710 * interrupts.c (perform_oea_interrupt): Use. No longer loose CIA
711 when simulation aborted.
712 (program_interrupt): Ditto.
713 (floating_point_unavailable_interrupt): Ditto.
714 (alignment_interrupt): Ditto.
715 (floating_point_assist_interrupt): Ditto.
716 (perform_oea_interrupt): Ditto.
717 (machine_check_interrupt): Ditto.
718
719 Tue Jan 14 12:19:10 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
720
721 * ppc-instructions (Move from Special Purpose Register): Support
722 move from DEC.
723
724 Mon Jan 13 16:58:12 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
725
726 * debug.h, debug.c: Add "interrupts" trace option.
727
728 * interrupts.c (data_storage_interrupt): Add tracing.
729 (machine_check_interrupt): Ditto.
730 (instruction_storage_interrupt): Ditto.
731 (alignment_interrupt): Ditto.
732 (program_interrupt): Ditto.
733 (floating_point_unavailable_interrupt): Ditto.
734 (system_call_interrupt): Ditto.
735 (floating_point_assist_interrupt): Ditto.
736 (deliver_hardware_interrupt): Ditto.
737
738 * interrupts.c (program_interrupt): For UEA mode, halt the
739 processor - so that the current state is saved - instead of
740 aborting.
741 (floating_point_unavailable_interrupt): Ditto.
742 (floating_point_assist_interrupt): Ditto.
743
744 Thu Jan 2 09:10:41 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
745
746 * interrupts.c (perform_oea_interrupt): Halt rather than abort on
747 a double interrupt.
748
749 Wed Jan 1 22:54:52 1997 Andrew Cagney <cagney@kremvax.tpgi.com.au>
750
751 * ppc-instructions (Store Multiple Word, Load Multiple Word):
752 Enable.
753
754 * tree.c (print_properties): For an array consider printing it out
755 as an integer array.
756
757 * hw_memory.c (hw_memory_init_address): If an "available" property
758 is present, use that to initialize the available memory instead of
759 using the reg property.
760
761 * emul_generic.c (emul_add_tree_hardware): Add "available"
762 property to memory device.
763
764 Fri Dec 20 13:19:07 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
765
766 * ppc-instructions (Rotate Left Word then AND with Mask): Enable.
767
768 * device.c (device_instance_call_method): Was only looking at the
769 first method.
770
771 * hw_disk.c (hw_disk_nr_blocks): Implement #blocks method.
772 (hw_disk_block_size): Implement block-size method.
773 (hw_disk_max_transfer): Implement max-transfer method.
774
775 * hw_phb.c (hw_phb_init_address): Reinit the rest of the PHB.
776
777 * emul_chirp.c (chirp_emul_instance_to_path): Recover from an
778 invalid ihandle.
779 (chirp_emul_instance_to_package): Ditto.
780 (chirp_emul_method): Ditto.
781 (chirp_emul_read): Ditto.
782 (chirp_emul_write): Ditto.
783 (chirp_emul_close): Ditto.
784 (chirp_emul_seek): Ditto.
785 (chirp_emul_package_to_path): Ditto (for phandle).
786 (chirp_emul_package_to_path): Return the length.
787
788 * psim.c (psim_merge_device_file): Allow continuation lines.
789
790 Thu Dec 19 11:09:43 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
791
792 * emul_chirp.c (chirp_emul_boot): Implement. Well report the new
793 string and exit.
794
795 * emul_chirp.c (chirp_emul_exit): Correct type of args struct
796 members - *_cell not host dependant int.
797
798 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
799
800 * interrupts.c (perform_oea_interrupt): Print additional
801 information if a double interrupt is encountered.
802
803 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
804
805 * psim.c (psim_merge_device_file): Tolerate an incorrect file-name
806 being specified with the -f option.
807 (psim_merge_device_file): Correct check for end of string.
808
809 Wed Dec 18 17:49:59 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
810
811 * emul_chirp.c (chirp_emul_peer): Was falling off the end of the
812 list of devices. Return zero to the client instead.
813 * emul_chirp.c (chirp_emul_child): Ditto
814 * emul_chirp.c (chirp_emul_parent): Ditto
815
816 * device.c (device_root): Assert assumption about the device being
817 valid.
818
819 Tue Dec 17 15:12:38 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
820
821 * emul_chirp.c (emul_chirp_create): Add description property to
822 each significant node in the device tree.
823 * emul_bugapi.c (emul_bugapi_create): Ditto.
824
825 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
826
827 * main.c (sim_io_read_stdin): For a single byte STDIO read, use a
828 tempoary two byte buffer. Single byte read with fgets will not
829 work.
830 * main.c: Include errno.h.
831 (sim_io_read_stdin): For non-STDIO, make it work.
832
833 * emul_chirp.c (chirp_emul_read): Return the correct error status.
834
835 Fri Dec 13 14:30:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
836
837 * std-config.h (WITH_STDIO): Don't hard-wire the STDIO mechanism.
838 Instead have each emulation default it to DO_USE_STDIO.
839
840 * emul_generic.c (emul_add_tree_options): Select the STDIO I/O
841 mechanism as the default if enabled or if nothing selected.
842
843 * sim_calls.c (sim_io_read_stdin): Passify GCC's desire for a
844 return value.
845 (sim_io_write_stdout): Ditto.
846 (sim_io_write_stderr): Ditto.
847 * main.c (sim_io_write_stdout): Ditto.
848 (sim_io_write_stderr): Ditto.
849 (sim_io_read_stdin): Ditto.
850
851 Tue Dec 10 10:31:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
852
853 * emul_chirp.c (emul_chirp_instruction_call): Make *printf calls
854 type correct.
855 * vm.c (om_effective_to_virtual): Ditto.
856 * events.c (event_queue_schedule{,_after_signal}): Ditto.
857 (event_queue_{deschedule,process}): Ditto.
858 * hw_htab.c (htab_decode_hash_table): Ditto.
859 (htab_map_{page,binary}): Ditto.
860 * hw_opic.c (hw_opic_init_data): Ditto.
861 (handle_interrupt): Ditto.
862 (do_processor_init_register_{read,write}): Ditto.
863 (write_vector_priority_register): Ditto.
864 ({read,write}_destination_register): Ditto.
865 (do_suprious_vector_register_{read,write}): Ditto.
866 (do_current_task_priority_register_N_{read,write}): Ditto.
867 (do_timer_frequency_reporting_register_{read,write}): Ditto.
868 (do_timer_N_{current,base}_count_register_{read,write}): Ditto.
869 (do_ipi_N_dispatch_register_write): Ditto.
870 (do_vendor_identification_register_read): Ditto.
871 (do_feature_reporting_register_N_read): Ditto.
872 (do_global_configuration_register_N_{read,write}): Ditto.
873 * hw_phb.c (hw_phb_attach_address): Ditto.
874 (hw_phb_unit_decode): Ditto.
875 (hw_phb_address_to_attach_address): Ditto.
876 (hw_phb_io_{read,write}_buffer): Ditto.
877 * hw_ide.c (setup_fifo): Ditto.
878
879 * sim_calls.c ({defs,callback,remote-sim}.h): Find gdb include
880 files via -I<dir> instead of using "../../gdb/" prefixes.
881
882 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
883
884 * debug.h: Add tracing for the pal device.
885 * hw_pal.c: Update.
886
887 * emul_chirp.c (chirp_emul_getprop): More tracing.
888
889 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
890
891 * device.h, device.c (device_find_ihandle_runtime_property): New
892 function. Reverse of add_ihandle_runtime property.
893 (device_init_runtime_properties): Use it.
894
895 * device.c (find_property_entry): New function returns the
896 internal property spec.
897 (device_set_property): Use.
898 (device_find_property): Use.
899
900 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
901
902 * psim.c (psim_merge_device_file): Strip newline from device
903 specs.
904
905 Tue Dec 10 10:12:44 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
906
907 * hw_htab.c (htab_map_binary): For overlapping text / data maps
908 merge the two. Also check that the merge is safe.
909
910 * emul_chirp.c (emul_chirp_create): Add a description property to
911 the pte's so that they are easier to identify.
912
913 (emul_chirp_create): Don't specify a load address for the CHRP
914 image. Always use the values specified by the executable.
915
916 * hw_htab.c (htab_map_page): Abort if a duplicate map is
917 encountered.
918
919 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
920
921 * hw_htab.c (htab_map_page): Formatting.
922
923 * emul_chirp.c (emul_chirp_instruction_call): Check for a NULL
924 method name when handling the client call. Also check for other
925 bad call arguments.
926
927 * emul_chirp.c (emul_chirp_create): Allow real-mode?, real-base,
928 etc to be overriden.
929
930 Mon Dec 9 12:08:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
931
932 * os_emul.c (os_emul_create): Use tree find property instead of
933 device find property - sigh.
934
935 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
936
937 * 961205: Release snapshot 961205.
938
939 Thu Dec 5 10:46:42 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
940
941 * configure.in (hostbitsize, bitsize): Fix typo in error message -
942 cannot contain a comma.
943 (sim-warnings): Check for more potential errors.
944
945 * psim.c (psim_usage): Add -f <file> option. Specifies a file
946 containing device tree specifications that should be merged into
947 the device tree.
948
949 * configure.in: Sort options.
950 * configure: Rebuild
951
952 Wed Dec 4 13:57:31 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
953
954 * psim.c (psim_usage): Add -n option - specify number of
955 processors.
956
957 * emul_chirp.c: Add description.
958 * emul_bugapi.c: Ditto.
959 * emul_unix.c: Ditto.
960 * emul_netbsd.c: Ditto.
961
962 Fri Nov 29 11:12:22 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
963
964 * hw_pal.c (hw_pal_attach_address): New function, if an attach is
965 encountered, assume that it is the single disk.
966 * hw_pal.c: Add generic device/size decode methods.
967
968 * hw_nvram.c (hw_nvram_init_address): Use the first nonzero reg
969 property entry when determining the nvram size.
970
971 * hw_core.c: Add generic address/size decode methods.
972
973 * emul_chirp.c (emul_chirp_instruction_call): Return and trace
974 nonzero status from client functions.
975
976 * main.c (error): Always include a cariage return when writing out
977 errors.
978
979 Wed Nov 20 00:36:55 1996 Doug Evans <dje@canuck.cygnus.com>
980
981 * sim_calls.c (sim_resume): Reset sim_should_run if single
982 stepping.
983
984 Thu Nov 28 13:19:46 1996 Andrew Cagney <cagney@kremvax.tpgi.com.au>
985
986 * emul_bugapi.c (emul_bugapi_do_diskio): Add support for multiple
987 optional disks.
988
989 * emul_generic.c (emul_add_tree_hardware): Drop the dummy eeprom.
990 Attach the pal - for I/O - as a pseudo device haning from the
991 firmware sub tree.
992
993 * emul_bugapi.c (emul_bugapi_create): Add a small memory device to
994 the device tree at the address of the hi-mem interrupt vector
995 addreses. Used by bugapi to establish its trap instructions.
996
997 * debug.h: Add a new macro DITRACE for tracing device instances.
998
999 * debug.h: Extend the DTRACE macro so that it can also tests for
1000 device specific tracint.
1001
1002 * device.h, device.c (device_trace): Add method to determine
1003 device specific tracing.
1004 (device_init_address): Set the devices tracing level.
1005
1006 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1007
1008 * tree.h, tree.c (tree_device): New files - separate out the
1009 device parser and other tree operations from the device.
1010
1011 * inline.h, inline.c (INLINE_TREE): Add.
1012 * device.h, device.c (device_tree_add_parsed): Delete.
1013 * Makefile.in (tree.c): Add rules for new file.
1014 * Makefile.in: Better order the emul_* files.
1015
1016 * emul_generic.c (emul_add_tree_hardware): Update.
1017 * emul_netbsd.c (emul_netbsd_create): Update.
1018 * emul_unix.c (emul_unix_create): Ditto.
1019 * emul_chirp.c (emul_chirp_create): Ditto.
1020 * emul_bugapi.c (emul_bugapi_create): Ditto.
1021 * psim.c (psim_tree): Ditto.
1022 * hw_init.c: Ditto.
1023
1024 * emul_generic.h: Include tree.h
1025 * Makefile.in: Add to EMUL_GENERIC_H dependencies.
1026
1027 * device.h, device.c (device_root): New function - returns the
1028 root of the tree.
1029 * corefile.c: Use.
1030
1031 * device.h, device.c (device_clean): New function, clean up device
1032 ready for next simulation run. This includes things like deleting
1033 interrupt edges and properties created during the simulation and
1034 also scrubbing any pre-defined properties.
1035 * tree.c (tree_init): Use.
1036
1037 * device.h, device.c (device_init_static_properties): New
1038 function. Initialize any static predefined properties. By static
1039 we mean those that have values that can be determined before the
1040 device tree initialization has started.
1041 * tree.c (tree_init): Use.
1042
1043 * device.h, device.c (device_init_address): Add code to
1044 check/verify the devices #address-cells and #size-cells.
1045 (device_add_integer_property): Delete corresponding code.
1046 (device_nr_address_cells, device_nr_data_cells): Check for
1047 property when returning value.
1048
1049 * device.h, device.c (device_init_runtime_properties): New
1050 function. Initialize those properties that are not `static'. At
1051 present the only such property is the ihandle.
1052 * tree.c (tree_init): Use.
1053
1054 * device.h, device.c (reg, ranges): Rework these so that they use
1055 an array of the fundamental type - single reg or single range
1056 entry.
1057
1058 * device.h, device.c (device_add_ihandle_runtime_property):
1059 Re-implement the adding of an ihandle during tree construction so
1060 that it better fits in with device initialization.
1061
1062 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1063
1064 * device.h, device.c (device_ioctl): Add additional argument -
1065 request - so that the caller must always specify the type of
1066 the ioctl request.
1067
1068 * device_table.h: Update.
1069 * hw_trace.c (hw_trace_ioctl): Ditto.
1070 * hw_vm.c (hw_vm_ioctl_callback): Ditto.
1071 * hw_init.c (hw_stack_ioctl_callback): Ditto.
1072 * psim.c (psim_options): Ditto.
1073
1074 Thu Nov 21 12:05:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1075
1076 * BUGS: Updated a bit.
1077
1078 Wed Nov 20 14:06:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1079
1080 * hw_opic.c: Finish - third round.
1081
1082 Wed Nov 20 12:02:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1083
1084 * hw_glue.c (hw_glue_io_read_buffer_callback): Fix miscalc of glue
1085 reg index.
1086 (hw_glue_io_write_buffer_callback): Ditto.
1087
1088 Tue Nov 19 21:17:08 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1089
1090 * events.c (event_queue_process): Was incorrectly consuming future
1091 events on the queue when they should be left alone.
1092
1093 * debug.h, debug.c (events): Add support for event queue tracing.
1094 * events.c: Add event tracing.
1095
1096 * debug.h, debug.c: Order device trace options.
1097
1098 Fri Nov 15 15:23:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1099
1100 * pk_disklabel.c (pk_disklabel_create_instance): Fix up some
1101 warnings generated by GCC.
1102
1103 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1104
1105 * sim-endian.h: Add LE versions of byte swap macros. Needed for
1106 PCI devices which are little-endian.
1107
1108 * sim-endian-n.h (endian_le2h_N, endian_h2le_N): Ditto
1109
1110 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1111
1112 * hw_iobus.c (hw_iobus_attach_address_callback): Change the iobus
1113 so that it is implementing a 1-1 address map.
1114
1115 * emul_generic.c (emul_add_tree_hardware): Adjust.
1116
1117 * emul_generic.c (emul_add_tree_hardware): Don't add the nvram as
1118 a default.
1119
1120 Sun Nov 17 17:59:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1121
1122 * device.c (split_find_device): Be tolerant of missing unit
1123 addresses.
1124
1125 Fri Nov 15 16:49:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1126
1127 * basics.h (port_direction): New type, specify the direction of
1128 any `port'.
1129
1130 * device.h, device.c (device_interrupt_decode): Include
1131 specification of port direction in operations.
1132 (device_interrupt_encode): Ditto.
1133
1134 * device_table.h: Add a direction field to the interrupt port
1135 table.
1136
1137 * device.c (device_tree_add_parsed): Specify port direction.
1138
1139 Thu Nov 14 21:38:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1140
1141 * hw_opic.c: Finish - second round.
1142
1143 Thu Nov 7 00:18:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1144
1145 * hw_htab.c (htab_init_data_callback): Allow the virtual-address
1146 to be specified as an array which allows 64bit addresses.
1147
1148 * device.c (device_find_integer_array_property): New function.
1149 Simplify the querying of elements of an integer array.
1150 (device_add_integer_property, device_find_integer_property):
1151 Update to correctly use the cell type.
1152
1153 * vm.c (om_unpack_sr): Clarify shifting comment.
1154 (om_pte_0_masked_vsid): Ditto. Add 64bit version.
1155
1156 * emul_chirp.c (emul_chirp_create): Initialize the segment
1157 registers.
1158
1159 * vm.c (om_effective_to_virtual): Trace segment register use.
1160
1161 * hw_htab.c (htab_map_page): Print out the pteg base address to
1162 simplify cross checking between vm and the htab.
1163 (htab_decode_hash_table): Use device_error instead of error.
1164 (htab_map_page): Ditto.
1165 (htab_dma_binary): Ditto.
1166 (htab_map_binary): Ditto.
1167 (htab_init_data_callback): Ditto.
1168
1169 Wed Nov 6 20:20:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1170
1171 * interrupts.h: Clarify what the optional instruction program
1172 interrupt is - a subset of illegal instruction program interrupt.
1173
1174 * interrupts.c (program_interrupt): For UEA mode, clarify what an
1175 optional instruction program interrupt is.
1176 (program_interrupt): For OEA mode, as per spec, generate an
1177 illegal instruction program interrupt when an optional instruction
1178 is encountered.
1179
1180 * gen-semantics.c (print_semantic_body): Delete code
1181 differentiating between an unimplemented floating point and normal
1182 instruction. Instead, such a case can be handled explicitly.
1183
1184 * ppc-instructions (store floating-point as integer word indexed):
1185 Mark as optional.
1186 (Floating Convert to Integer Doubleword): Make the floating point
1187 assist interrupt explicit.
1188 (Floating Convert To Integer Doubleword with round towards Zero):
1189 Ditto.
1190 (Floating Convert To Integer Word): Ditto
1191 (Move From FPSCR): Ditto.
1192 (Move to Condition Register from FPSCR): Ditto.
1193 (Move To FPSCR Fields): Ditto.
1194 (Move To FPSCR Field Immediate): Ditto.
1195 (Move To FPSCR Bit 0): Ditto.
1196 (Move To FPSCR Bit 1): Ditto.
1197
1198 Mon Nov 4 12:49:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1199
1200 * corefile.c (core_map_read_buffer, core_map_write_buffer): Avoid
1201 breaking up transfers.
1202
1203 * corefile.c: Adjust arguments so that the client server
1204 relationship is clarified.
1205
1206 * hw_glue.c (hw_glue_init_address): Update so it can be attached
1207 to a PCI bus.
1208
1209 * hw_disk.c (hw_disk_instance_write): Add more checks to disk IO -
1210 looking for things like overflow/underflow.
1211
1212 Sun Nov 3 18:45:20 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1213
1214 * emul_generic.c (emul_add_tree_hardware): Hang the disk off the
1215 PAL device instead of the IOBUS. The disk must be attached to a
1216 logical bus.
1217
1218 * hw_disk.c (hw_disk_init_address): Just use the unit address
1219 directly in the attach - the rest isn't relevant.
1220
1221 Sat Nov 2 21:48:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1222
1223 * configure.in (sim-hardware, sim-packages): Allow additional
1224 hardware and packages to be prefixed as well as appended.
1225
1226 * Makefile.in (tmp-hw, tmp-pk): Retain the user specified order of
1227 packages when building them. Consequently, a user can override a
1228 standard device by prefixing their own version.
1229
1230 * Makefile.in (hw_opic.o, hw_pci.o, hw_ide.o): Add dependencies.
1231
1232 Fri Nov 1 14:42:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1233
1234 * mon.c (_cpu_mon): Add fields for counting 1, 2, 4, and 8 byte
1235 reads and writes.
1236 (mon_{read,write}): Count 1, 2, 4, and 8 byte reads/writes.
1237 (mon_print_info): Correct typo regarding # of unaligned reads and
1238 writes. Print out how many 1, 2, 4, and 8 byte reads/writes there
1239 are.
1240
1241 Tue Oct 29 17:55:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1242
1243 * configure.in (AC_CHECK_FUNCS): Add access.
1244 * config{.in,ure}: Regenerate.
1245
1246 * emul_unix.c (do_unix_nop): System call that always succeeds.
1247 (do_unix_access): Support access system call.
1248 (solaris_descriptors): Make sigaltstack and sigaction nops.
1249 ({solaris,linux}_descriptors): Add support for access.
1250
1251 Tue, 8 Oct 18:42:26 1996 Jason Molenda <crash@cygnus.co.jp>
1252
1253 * Makefile.in (clean): Move config.log to distclean.
1254
1255 Fri Nov 1 16:44:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1256
1257 * corefile-n.h (core_map_write_N): Improve abort messages.
1258
1259 * device.h, device.c (device_attach_address): Remove unused name
1260 parameter.
1261 (device_detach_address): Ditto.
1262 * device_table.h, device_table.c: Update.
1263 * hw_iobus.c (hw_iobus_attach_address_callback): Ditto.
1264 * hw_nvram.c (hw_nvram_init_address): Ditto.
1265 * hw_memory.c (hw_memory_init_address): Ditto.
1266 * hw_vm.c (hw_vm_init_address_callback): Ditto.
1267 (hw_vm_attach_address): Ditto.
1268 (hw_vm_add_space): Ditto.
1269 * hw_init.c (update_for_binary_section): Ditto.
1270 * hw_core.c (hw_core_attach_address_callback): Ditto.
1271
1272 * hw_iobus.c (hw_iobus_attach_address_callback): Rewrite to handle
1273 configurable parent busses.
1274
1275 Wed Oct 30 18:46:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1276
1277 * device_table.c (generic_device_size_to_attach_size): Provide
1278 limited support for multi-cell sizes.
1279 (generic_device_address_to_attach_address): Ditto for addresses.
1280
1281 Tue Oct 29 02:01:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1282
1283 * device.c (device_add_integer_property): Check for setting of
1284 #address-cells and #size-cells properties. For these, update the
1285 corresponding device values.
1286 (device_nr_address_cells, device_nr_size_cells): Use the value
1287 from the device instead of the property.
1288
1289 * hw_core.c: Use generic address and size conversions for the top
1290 bus.
1291
1292 * hw_memory.c (hw_memory_init_address): Tolerate case where
1293 #address and #size cells is greater than 1.
1294
1295 * device.c (device_tree_print_device): Clean out printing of
1296 properties.
1297
1298 * device.c (split_device_specifier): Don't detect comments here -
1299 "#" can be a valid prefix - eg #size-cells.
1300
1301 * psim.c (psim_merge_device_file): Suppress comments and blank
1302 lines here.
1303
1304 * emul_generic.c (emul_add_tree_hardware): Fix typo of incorrect
1305 pal unit address. Add the property /#address-cells to the root of
1306 the tree.
1307
1308 * device.c (device_template_create_device): Check that the unit
1309 address was successfully parsed.
1310
1311 * device_table.c (generic_device_unit_decode): Rewrite to better
1312 handle multi-cell addresses.
1313 (generic_device_unit_encode): Ditto.
1314
1315 * emul_generic.c (emul_add_tree_hardware): "reg" properties no
1316 longer need the explicit array type - the parser takes care of it.
1317
1318 * pk_disklabel.c (pk_disklabel_create_instance): Add NULL return
1319 to keep GCC happy.
1320
1321 Mon Oct 28 22:55:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1322
1323 * hw_ide.c: New file. Model of a basic IDE interface attached to
1324 a PCI bus.
1325
1326 * configure.in (hardware): Add the ide device to the default
1327 configuration.
1328 * configure: Regenerate.
1329
1330 * debug.h, debug.c: Add tracing option for the IDE device.
1331
1332 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1333
1334 * hw_phb.c, hw_phb.h: New files - implement a PHB.
1335
1336 * configure.in (hardware): Add the phb to the list of devices to
1337 build by default.
1338
1339 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1340
1341 * hw_com.c: Review description.
1342 * hw_disk.c: Ditto.
1343 * hw_htab.c: Ditto.
1344 * hw_eeprom.c: Ditto.
1345 * hw_init.c: Ditto.
1346 * hw_cpu.c: Ditto.
1347
1348 * hw_com.c: Update event handling.
1349
1350 * hw_disk.c: Implement tracing.
1351
1352 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1353
1354 * device_table.c (generic_device_init_address): Use
1355 assigned-addresses property in preference to any other reg
1356 property.
1357
1358 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1359
1360 * device.h, device.c (device_find_ranges_property): New function.
1361 Simplify the manipulation of "ranges" properties.
1362
1363 * device.c (device_add_parsed): Extend to include support for the
1364 ranges property.
1365
1366 * device.c (device_add_parsed): Add assigned-addresses to the list
1367 of reg type properties.
1368
1369 * device.c (device_tree_print_device): Add code to format and
1370 print a ranges property.
1371
1372 * device.h, device.c (device_nr_address_cells,
1373 device_nr_size_cells): New functions. Determine the values of the
1374 standard properties #address-cells and #size-cells. Both of which
1375 are optional and have default values of two and one respectfuly.
1376 Previously, code that determined #address-cells was incorrectly
1377 using a value of one.
1378
1379 Fri Oct 25 21:28:25 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1380
1381 * debug.h, debug.c: Sort debug options, Add entries for the
1382 comming PHB device.
1383
1384 Fri Oct 18 12:12:21 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1385
1386 * ppc-instructions (Floating Select): Add support for fsel unless
1387 model is 601. Allow user to filter out instruction unless -Fs is
1388 passed to igen.
1389 (Store Floating-Point as Integer Word Indexed): Raise optional
1390 instruction program abort. Allow user to filter out instruction
1391 unless -Fs is passed to igen.
1392 (Floating Square Root{, Single}): Ditto.
1393 (Floating Reciprocal Estimate Single): Ditto.
1394 (Floating Reciprocal Square Root Estimate): Ditto.
1395
1396 * configure.in (--enable-sim-filter): If not passed, pass 32,f,s
1397 to igen.
1398 * configure: Regenerate.
1399
1400 * interrupts.h (program_interrupt_reasons): Add
1401 optional_instruction_program_interrupt.
1402
1403 * interrupts.c (program_interrupt): Call error with more detailed
1404 information on program interrupts, particularly in user mode. Add
1405 support for optional_instruction_program_interrupt.
1406
1407 Wed Sep 25 10:20:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1408
1409 * hw_glue.c: New device. Hooks for manipulating interrupt ports.
1410
1411 * debug.h, debug.c (trace_glue_device): Add tracing support for
1412 the interrupt glue logic device.
1413
1414 * configure.in (hardware): Add glue device.
1415 * configure: Regenerate.
1416
1417 Tue Sep 24 20:55:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1418
1419 * device.c (device_tree_parse_integer_property): New function,
1420 parse a list of integers as an array property.
1421 (device_tree_add_parsed): Call it.
1422
1423 * device.c (device_tree_parse_string_property): New function,
1424 parse a list of strings as a string property (with embeded
1425 null's). For moment, don't try to implement a complext string
1426 parser.
1427 (device_tree_add_parsed): Call it.
1428
1429 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1430
1431 * hw_opic.c: New file. OpenPIC interrupt controller.
1432
1433 * configure.in (hardware): Add opic device.
1434 * configure: re-generate.
1435
1436 * hw_pic.c: Delete, replaced with hw_opic.c.
1437
1438 * debug.h, debug.c: Add debug option for OpenPIC device. -
1439 opic-device.
1440
1441 Tue Sep 24 16:30:48 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1442
1443 * Makefile.in (psim.o, idecode.o): Since idecode and not psim is
1444 now the file that does all the inlining.
1445
1446 * Makefile.in (LIB_SRC, LIB_INLINE_SRC, idecode.o): Break out the
1447 library source code that could be involved in an inlining. Make
1448 idecode.o only dependant on the inlined library source code.
1449
1450 * Makefile.in (LIB_OBJ): Put options last on the list so that it
1451 is compiled last.
1452
1453 * std-config.h (DEVICE_INLINE): Only inline locals when the
1454 default is to inline.
1455
1456 Mon Sep 23 00:37:49 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1457
1458 * hw_htab.c (htab_sum_binary): Determine the real-base for the
1459 binary.
1460
1461 * hw_htab.c (htab_map_binary): Depending on the value of the
1462 load-base, either map the program in as a contiguous section or as
1463 separate sections controled by th binaries lma values.
1464 (htab_init_data_callback): Ditto.
1465
1466 Sun Sep 22 15:56:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1467
1468 * emul_generic.c (emul_add_tree_options): Remove load-base option.
1469
1470 * emul_chirp.c (map_over_chirp_note): Add load_base field to note
1471 struct. Don't require the load_base field to be present - just
1472 issue warning - it is a recent addition.
1473 (emul_chirp_create): Support both virtual and physical modes.
1474
1475 * emul_chirp.c (emul_chirp_create): Add a stack initialization
1476 property so that any arguments specified on the command line can
1477 be passed on to user programs.
1478
1479 * hw_init.c (create_ppc_chirp_bootargs): Add support for chirp
1480 argument passing to the pseudo device stack.
1481
1482 Sat Sep 21 19:39:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1483
1484 * device.c (device_error): Make it more tolerant to incomplete
1485 devices.
1486
1487 * hw_init.c (hw_data_init_data_callback): Extend the data device
1488 so that it can perform initialization operations either dma or a
1489 more complex instance open, seek, write operation.
1490 * hw_init.c: Update the description of the data device to reflect
1491 this.
1492
1493 Sat Sep 21 00:13:02 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1494
1495 * device.c (device_event_queue_schedule,
1496 device_event_queue_deschedule, device_event_queue_time): Have the
1497 device object export the event operations. Making these available
1498 from the device object should hopefully simplify writing device
1499 models.
1500
1501 Fri Sep 20 14:04:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1502
1503 * configure.in (sim-hardware): Add eeprom device to default build.
1504
1505 * hw_eeprom.c: Rewrite so it works.
1506
1507 * debug.h, debug.c: Add tracing support for the eeprom and com
1508 devices.
1509
1510 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1511
1512 * debug.h: Add disklabel-package and disk-device trace options.
1513 debug.h (PTRACE): Add macro to simplify tracing in packages.
1514
1515 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1516
1517 * device.c (device_create_instance_from): Tighten up loop
1518 searching for device instances.
1519 (device_instance_delete): Ditto.
1520 (device_instance_delete): Only leaf instances need to be removed
1521 from a devices list of active instances.
1522
1523 Thu Sep 19 14:40:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1524
1525 * hw_disk.c: Add the cdrom as an alias.
1526
1527 * pk_disklabel.c (disklabel_delete): Implement, remembering to
1528 delete the raw disk instance while we're at it.
1529
1530 * pk_disklabel.c (pk_disklabel_create_instance): Implement a
1531 little bit more - still a long way to go.
1532
1533 * pk_disklabel.c (disklabel_write, disklabel_read): Remember the
1534 new head position after a read or write.
1535
1536 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1537
1538 * emul_chirp.c (chirp_emul_read): Allow reads to be longer then
1539 the internal buffer.
1540
1541 Thu Sep 19 13:05:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1542
1543 * emul_chirp.c (chirp_read_t2h_args): Call memset-0 with the args
1544 in the correct order.
1545
1546 * emul_chirp.c (chirp_emul_call_method): Correct computation for
1547 the address of the first stack argument passed in from the client
1548 program.
1549
1550 Wed Sep 18 19:33:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1551
1552 * words.h: Add new types signed_cell and unsigned_cell which
1553 correspond to the signed and unsigned IEEE 1275 memory locations.
1554 * device.h, device.c, emul_chirp.c: Where refering to an IEEE 1275
1555 memory cell, replace uses of unsigned32 with unsigned_cell.
1556 * device_table.h: Ditto.
1557
1558 * sim-endian.h: Add new macros H2BE_cell and BE2H_cell which
1559 convert cell sized values to from big endian.
1560 * device.c, emul_chirp.c: Where refering to IEEE 1275 memory cells
1561 use these new macros.
1562
1563 Tue Sep 17 15:57:44 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1564
1565 * device.c (device_tree_add_parsed): Detect and report an
1566 interrupt being attached to an invalid device. Was dumping core.
1567
1568 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1569
1570 * device.h, device.c (device_address_to_attach_address,
1571 device_size_to_attach_size): New functions. Convert a devices
1572 unit address or unit size structure into a form suitable for
1573 passing on to the attach and detach functions.
1574 * device_table.h: Add extra methods to device table.
1575
1576 * device.h, device.c (device_find_reg_property): New function.
1577 For a reg type property, return the selected address + size
1578 tupple, along with a positive success status. Add a reg_property
1579 to the list of property types.
1580 * (device_tree_add_parsed): Make array properties with the name
1581 reg or alternate-reg of type reg_property.
1582
1583 * hw_memory.c (hw_memory_init_address): Rewrite to use new
1584 find_reg_property method.
1585 * hw_nvram.c (hw_nvram_init_address): Ditto.
1586
1587 * device.c (device_tree_print_device): Add code to print out a reg
1588 property.
1589
1590 * device_table.c (generic_device_address_to_attach_address,
1591 generic_device_size_to_attach_size ): New functions. Generic
1592 functions for converting between unit and attach address or size.
1593
1594 * device_table.c (generic_device_init_address): Rewrite to use the
1595 new find_reg and address convert functions. Look for both reg and
1596 alternate-reg properties.
1597
1598 Mon Sep 16 23:09:12 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1599
1600 * hw_com.c: New file. A '550 serial device that can quickly be
1601 attached to any bus.
1602 * configure.in (enable-sim-hardware): Add the com device.
1603 * configure: re-generate.
1604
1605 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1606
1607 * device.c (device_tree_verify_reg_unit_address): New
1608 function. Check that the unit address as specified by the reg
1609 property correctly corresponds to any unit address previously
1610 specified by the devices name.
1611 (device_tree_add_parsed): When adding a reg property, verify
1612 that the unit-address - first value of property - correctly
1613 matches any previous value specified when creating the device
1614 node.
1615
1616 Thu Sep 12 17:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1617
1618 * mon.c (mon_event): Remove assertion that an unsigned is >= 0.
1619
1620 Fri Aug 16 12:05:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1621
1622 * device.c (device_full_name): Cast strdup to char *, since AIX
1623 3.2.5 mistakenly declares the function to be const char *.
1624 (device_create_from): Ditto.
1625 (device_create_instance_from): Ditto.
1626 (device_add_property): Ditto.
1627
1628 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1629
1630 * debug.c (trace_option): For -t all, do not set the
1631 trace_dump_device_tree flag, so that the simulator is run.
1632
1633 Tue Aug 13 11:40:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1634
1635 * Makefile.in (options.o): Depend on defines.h.
1636 (defines.h): New rule, go through config.h and make strings of all
1637 of the #define HAVE_xxx macros.
1638 (distclean): Remove defines.h.
1639
1640 * options.c (print_options): Print whether many of the
1641 configuration macros are defined.
1642
1643 * main.c (main): If -t options and no filename, just print the
1644 options, and don't print the usage message.
1645
1646 Mon Aug 12 18:42:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1647
1648 * configure.in: Test whether /dev/zero works on the system, and if
1649 it does, define HAVE_DEVZERO.
1650 * configure: Regenerate.
1651
1652 * emul_generic.c (emul_add_tree_hardware): Do not add /iobus/disk
1653 if we don't have a working /dev/zero on the system.
1654
1655 * emul_bugapi.c (emul_bugapi_init): If HAVE_DEVZERO is not
1656 defined, don't add disk support.
1657 (emul_bugapi_do_diskio): Ditto.
1658 (emul_bugapi_instruction_call): Ditto.
1659
1660 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1661
1662 * emul_unix.c (HAVE_TCGETATTR): If HAVE_TERMIOS_STRUCTURE is not
1663 defined, make sure HAVE_TCGETATTR is #undef'ed
1664
1665 Wed Aug 7 14:34:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1666
1667 * std-config.h (REGPARM): Only define REGPARM attributes if using
1668 GNU C. Test for __i686__ in case GCC ever defines it. If not on
1669 a x86 platform, define REGPARM as nothing.
1670
1671 * sim-endian.h (WITH_HOST_BYTE_ORDER): Test for i686 and __i686__
1672 also.
1673
1674 Wed Aug 7 20:19:55 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1675
1676 * ld-decode.h, ld-decode.c: Rename goto_gen to the more correct
1677 goto_switch_gen.
1678 * gen-idecode.c: Ditto.
1679
1680 * gen-idecode.c (print_idecode_table): Comment out check for
1681 switch/table combination until a bug with it is fixed.
1682
1683 * ppc-opcode-goto: New file. Like complex and flat but uses
1684 goto-switch instead of padded-switch for the tables.
1685
1686 * gen-idecode.c (print_goto_switch_name): New function.
1687 (print_goto_switch_table_leaf): New function.
1688 (print_goto_switch_break): New function.
1689 (print_goto_switch_table): New function. Prints a jump table
1690 that can be jumped into instead of a switch statement.
1691
1692 * gen-idecode.c (*switch_*): As an option output a switch that is
1693 implemented using a jump table but only if the switch is not
1694 boolean.
1695
1696 Tue Aug 6 09:28:22 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1697
1698 * configure.in (--enable-sim-{hardware,packages}): Fix typos.
1699 * configure: Regenerate.
1700
1701 * device.c (device_instance_call_method): Fixup format message in
1702 error case. Return 0 in case of error to shut up compiler
1703 warnings.
1704
1705 Wed Aug 7 00:17:37 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1706
1707 * device_table.c (generic_device_unit_decode): Require a comma
1708 between elements of a unit address.
1709
1710 * device.c (device_tree_print_device): For reg, alternate-reg and
1711 ranges properties use special print functions.
1712 (device_print_ranges_property): Print formatted ranges property.
1713 (device_print_reg_property): Print formatted reg property.
1714
1715 Tue Aug 6 21:35:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1716
1717 * device.c (device_tree_add_parsed): For reg, ranges and
1718 alternate-reg properties use a special parser.
1719 (device_tree_parse_reg_property): New function to parse a reg
1720 property.
1721 (device_tree_parse_ranges_property): New function to parse a
1722 ranges property.
1723 (device_encode_unit): Wrapper for encode_unit callback.
1724 (device_decoce_unit): Wrapper for decode_unit callback.
1725
1726 Wed Jul 31 00:02:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1727
1728 * device_table.h (device_instance_callbacks): Relace the claim and
1729 release methods with a more general table mapping from method-name
1730 to method-function.
1731
1732 * device.c (device_instance_call_method): New function. Implement
1733 the OpenBoot call-method client interface. Attempts to locate the
1734 instances method in the callback table.
1735 (device_instance_claim, device_instance_release): Delete.
1736 Replaced with call-method and a lookup table.
1737
1738 * emul_chirp.c (chirp_emul_call_method): Use the new device
1739 instance call method and let that handle a client claim call.
1740
1741 * hw_htab.c (claim_memory): Wrapper function to call the memory
1742 devices "claim" method using the new device-instance call-method
1743 interface. Replaces the previous direct calls to claim.
1744 (htab_map_region): Use claim_memory.
1745 (htab_init_data_callback): Ditto.
1746
1747 * hw_memory.c (hw_memory_instance_claim): Update function
1748 interface so that it is compatible with call-method.
1749 (hw_memory_instance_release): Ditto.
1750 (hw_memory_instance_methods): New table of memory specific
1751 methods claim and release. Add to the hw_memory_callback
1752 table.
1753
1754 Tue Jul 30 21:26:14 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1755
1756 * psim.c (psim_init): Back out of change to initial value of
1757 system->last_cpu.
1758
1759 Tue Jul 30 21:12:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1760
1761 * sim_callbacks.h (sim_io_printf_filtered): Replace
1762 printf_filtered with a local simulator specific version. Add
1763 #define printf_filtered to simplify updating of existing code.
1764
1765 * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin,
1766 sim_io_write_stderr): New functions. Read / write to the
1767 simulations stdin and stdout and stderr interfaces. Merge in code
1768 from hw_pal that previously handled async I/O.
1769 (sim_io_flush_stdoutput): Rename flush_stdoutput. Add #define
1770 flush_stdoutput to simplify updating of existing code.
1771
1772 * hw_pal.c (scan_hw_pal, write_hw_pal,
1773 hw_pal_instance_write_callback): Use the new sim_io functions.
1774
1775 * main.c: Implement standalone versions of the new sim_io
1776 functions. Include support for async I/O.
1777 * sim_calls.c: Ditto. This time using the gdb callback table.
1778
1779 * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up
1780 stdio configuration so that it works in the same way as the rest
1781 of the simulation.
1782 * psim.c (psim_create): Initialize current_stdio from the device
1783 tree.
1784 * emul_generic.c (emul_add_tree_options): Enter a default value
1785 for use-stdio in the device tree.
1786
1787 Fri Jul 26 19:43:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1788
1789 * gen-idecode.c (print_jump): Was always generating a jump back to
1790 idecode. Only necessary at tail of semantic code.
1791 (print_jump): Was always setting the processor's cia, even during
1792 startup when the processor was still undefined.
1793 (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus,
1794 not just equal.
1795
1796 * options.c (print_options): Add printing of WITH_REGPARM and
1797 WITH_STDCALL.
1798
1799 * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default
1800 (disabled) values if not defined.
1801
1802 Fri Jul 26 00:36:35 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1803
1804 * ppc-cache-rules (cache): Change RS and RB to cache instead of
1805 compute. The block move instructions use them.
1806
1807 * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR
1808 register.
1809 (CR_FIELD): New macro, extract specific CR register.
1810 (FPSCR_FIELD): New macro, extract specific FPSCR register.
1811
1812 * registers.h (GPR): New macro, simplify accesses to GPR[i].
1813
1814 * bits.c (INSERTED): Covert INSERTED macro into a function.
1815 (EXTRACTED): Conditionally compile on correct bit size macro.
1816
1817 * bits.h (BIT8): New macro, set a single bit in an 8 bit byte.
1818
1819 * ppc-instructions: With hints from Paul Martin, type in missing
1820 some instruction semantics. Leave disabled for the moment.
1821 (Load Multiple Word): Ditto.
1822 (Store Multiple Word): Ditto.
1823 (Load String Word Immediate): Ditto.
1824 (Load String Word Indexed): Ditto.
1825 (Store String Word Immedate): Ditto.
1826 (Store String Word Indexed): Ditto.
1827 (Move to Condition Register from XER): Ditto.
1828 (Move From Condition Register): Ditto.
1829 (Move From FPSCR): Ditto.
1830 (Move to Condition Register from FPSCR): Ditto.
1831 (Move To FPSCR Field Immediate): Ditto.
1832 (Move To FPSCR Fields): Ditto.
1833 (Move To FPSCR Bit 0): Ditto.
1834 (Move To FPSCR Bit 1): Ditto.
1835
1836 Thu Jul 25 22:10:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1837
1838 * std-config.h (SEMANTICS_INLINE): By default, mask out the
1839 inlining of semantic functions from DEFAULT_INLINE. Almost all
1840 configurations call the semantic code via a pointer so there is
1841 little benefit.
1842
1843 * std-config.h (ICACHE_INLINE): Ditto.
1844
1845 Thu Jul 25 20:07:30 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1846
1847 * configure.in (sim_regparm): Add configuration option for
1848 enabling GCC's regparm attribute.
1849 * (sim_stdcall): Add configuration option for enabling GCC's
1850 stdcall attribute.
1851
1852 * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto
1853 compilations.
1854 * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations.
1855
1856 * std-config.h (REGPARM): Extend construction of REGPARM macro so
1857 that it can include __stdcall__ function attribute.
1858
1859 Wed Jul 24 19:04:20 1996 Andrew Cagney <cagney@sawnoff>
1860
1861 * options.c (print_options): Include SUPPORT_INLINE in information
1862 dump.
1863
1864 * gen-idecode.c (print_run_until_stop_body): Only generate loop
1865 termination test if creating idecode_run_until_stop. Push the
1866 loop termination test back into each alternative branch.
1867
1868 Wed Jul 24 15:47:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1869
1870 * gen-icache.c (print_icache_function): Have the cache function
1871 always update the cache_entries semantic and address fields.
1872
1873 * gen-idecode.c (print_idecode_switch_illegal): Include a break
1874 when generating illegal instructions. This was commented out
1875 which is a hangover from looking a at switch statements generated
1876 using indirect jumps.
1877
1878 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1879
1880 * igen.c (print_my_defines): Replaces print_define_my_index.
1881 Print both a definition for MY_INDEX and MY_PREFIX.
1882 * gen-icache.c (print_icache_function): Adjust.
1883 * gen-idecode.c (print_jump_insn): Adjust.
1884 * gen-semantics.c (print_c_semantic): Adjust.
1885
1886 * gen-support.c (gen_support_h): Add optional include to created
1887 support.h so that, like cpu, it is optionally inlined for all
1888 modules that include it.
1889 * inline.h, inline.c: Adjust so that support.[hc] is handled the
1890 same as cpu.[hc].
1891
1892 * idecode_fields.h (LABEL, GOTO): Macro's that create a unique
1893 name for a lable and then branch to it.
1894
1895 * ppc-instructions (convert_to_integer, Floating Round to
1896 Single-Precision, Floating Convert from Integer Doubleword): Use
1897 LABEL and GOTO instead of the recently added switch statements.
1898
1899 Wed Jul 24 14:02:42 1996 Andrew Cagney <cagney@sawnoff.highland.com.au>
1900
1901 * gen-idecode.c (print_run_until_stop_body): Too many rparen in
1902 generated code.
1903
1904 Tue Jul 23 20:57:01 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1905
1906 * configure.in (--enable-sim-line-nr): Typo - sim_line-nr.
1907 * (--enable-sim-inline): Reorder patern matching of arguments so
1908 that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE.
1909
1910 * configure: rebuild.
1911
1912 Mon Jul 22 23:25:08 1996 Andrew Cagney <cagney@highland.com.au>
1913
1914 * configure.in (--enable-sim-hardware, --enable-sim-packages): New
1915 configuration options. Let the user specify the packages or
1916 hardware devices that are to be included in the build. Makes it
1917 possible for user packages to be specified.
1918
1919 * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and
1920 hardware instead of checking it using ls. configure.in should
1921 have taken care of any problems.
1922 (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure.
1923
1924 Mon Jul 22 22:38:59 1996 Andrew Cagney <cagney@highland.com.au>
1925
1926 * psim.c (psim_options): Enter the argument to the memory size
1927 option directly into the device tree. Was using atol() which is
1928 dangerously non portable.
1929
1930 Mon Jul 22 22:17:08 1996 Andrew Cagney <cagney@highland.com.au>
1931
1932 * configure.in (icache): Extend icache flag to include an insn
1933 option. If specifyed the insn - aka instruction - is included in
1934 the instruction cache. Make this the default.
1935 * configure: re-generate.
1936
1937 * igen.c (main), igen.h: Add option -S - inSn - for specifying
1938 that the instruction should be included in the icache.
1939
1940 * gen-icache.c (print_icache_body): If enabled, output code to put
1941 the instruction into the icache.
1942 (print_icache_struct): If enabled, add insn to the icache struct.
1943
1944 Mon Jul 22 20:46:12 1996 Andrew Cagney <cagney@highland.com.au>
1945
1946 * Makefile.in (BUILD_CFLAGS): Include -g when building the
1947 generators.
1948
1949 Mon Jul 22 20:00:25 1996 Andrew Cagney <cagney@highland.com.au>
1950
1951 * emul_generic.c (emul_add_tree_options): Was incorrectly setting
1952 the strict-alignment option when hardwired for non-strict
1953 alignment.
1954
1955 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1956
1957 * gen-semantics.c: Make the my_index variable a macro MY_INDEX.
1958
1959 * ppc-instructions: Adjust so that references are to MY_INDEX and
1960 not my_index.
1961
1962 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1963
1964 * gen-idecode.c: Output the complete run_until_stop function
1965 instead of just the code to handle a single instruction issue.
1966 * : Have the generated idecode.c include inline.c (instead of psim.c).
1967
1968 * std-config.h: Change psim.c so that it isn't inlined (as this is
1969 no longer needed).
1970
1971 * psim.c (run_until_stop): Delete the old run_until_stop function
1972 instead calling the idecode_run and idecode_run_until_stop
1973 functions that gen-idecode.c is now creating.
1974
1975 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1976
1977 * dgen.c: Maintenance - update to use new features found in lf.c.
1978
1979 * filter_filename.c (filter_filename): Maintenance - make the
1980 string constant.
1981
1982 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
1983
1984 * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP
1985 eliminate trace statements.
1986
1987 * debug.c: Change trace format so that it is consistent
1988 (file:line-nr) with CC's error output.
1989
1990 * gen-itable.c (itable_c_insn): Add the source file name and
1991 source line number to the instruction's informational entry.
1992
1993 * debug.c (ITRACE): Use the itable (and my_index) to get the
1994 current instructions name and source line number.
1995
1996 * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to
1997 match new interface.
1998
1999 * emul_bugapi.c (emul_bugapi_instruction_call): Adjust
2000 corresponding call to ITRACE so that it still matches.
2001
2002 * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead
2003 of ITRACE. The CPP line directives would have previously set the
2004 line-nr and file name so ITRACE isn't needed.
2005
2006 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2007
2008 * gen-idecode.c (print_jump_until_stop_body): New function and
2009 idecode generation option. Instead of generating and calling
2010 separate functions containing the semantic and icache code
2011 generate a single monolythic function and use goto's (and GCC's
2012 indirect jump) to move between code blocks.
2013
2014 * Makefile.in: Add sim_jump flag to those passed to igen.
2015
2016 * configure.in: New option --enable-sim-jump (default disabled)
2017
2018 * ppc-instructions: Eliminate any uses of labels and goto's.
2019 These result in duplicate declarations when a single flat function
2020 is being create.
2021
2022 * ppc-opcode-jump: New file. Set of opcode rules useful when
2023 testing jumping idecodes.
2024
2025 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2026
2027 * gen-idecode.c: Optionally include the semantic code for an
2028 instruction in the function that is doing the decoding.
2029
2030 * igen.c: Add option (-C) to generate semantics in the instruction
2031 decode functions.
2032
2033 * configure.in (--enable-sim-icache): Accept an option list such
2034 as 1024,define. Add a new choice to the list - semantic - which
2035 will cause igen to generate instruction decode functions that
2036 include the corresponding semantic code.
2037
2038 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2039
2040 * configure.in: New option --enable-sim-line-nr (default enabled).
2041 Enable/disable the inclusion of CPP line directives in the
2042 generated files. Such directives refer back to the source files
2043 used when generating the simulator code.
2044
2045 * Makefile.in (sim_line_nr): Pass to igen.
2046
2047 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2048
2049 * igen.c (main): Revamp the options so that more letters are
2050 available.
2051
2052 * configure.in: Adjust to match igen's revamped options
2053
2054 Sun Jul 21 21:18:05 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2055
2056 * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so
2057 that they use the same technique as igen (ie a dummy targets
2058 tmp-pk and tmp-hw are created).
2059
2060 Mon Jun 24 22:28:00 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2061
2062 * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS.
2063
2064 Wed Jun 19 21:45:28 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2065
2066 * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate
2067 out the loading of each of the tables from the rest of igen.
2068 * Makefile.in: Adjust.
2069 * igen.c: Adjust.
2070
2071 * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc],
2072 gen-model.[hc], gen-semantics.[hc]: New files. Separate out the
2073 code creating each separate set of generated files.
2074 * Makefile.in: Adjust.
2075 * igen.c: Adjust.
2076
2077 * gen-support.[ch]: New files. Output the support functions (found
2078 in the ppc-instructions file) into a separate file.
2079 * Makefile.in: Add.
2080 * inline.h, inline.c: Add.
2081 * std-config.h: Add.
2082
2083 * ld-cache.c: Re-design the cache table format.
2084 * ppc-cache-rules: Update to new format.
2085
2086 * ld-decode.c: Re-design the decode table format.
2087 * ppc-opcode-simple: Update to new format
2088 * ppc-opcode-complex: Ditto
2089 * ppc-opcode-flat: Ditto
2090
2091 * filter.h, filter.c: New files. Separate the opcode filter table
2092 reading code from the rest of igen.c. Re-design the filter so that
2093 it works inclusivly not exclusivly.
2094 * igen.c: Remove the opcode filter table loading code.
2095 * Makefile.in (filter.o): Adjust
2096 * configure.in: Adjust filter flag so that default includes 32bit
2097 and floating point.
2098 * ppc-instructions: Clean up filter fields so that only in use
2099 entries are specifed (ie delete `be').
2100
2101 * misc.c (name2i, i2name): New function. Map between a string and
2102 an integer value.
2103
2104 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2105
2106 * sim_calls.c (sim_close): If simulator not created, skip printing
2107 of run information.
2108
2109 Mon Jun 17 20:08:03 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2110
2111 * registers.c (register_description): Typo, insns not insn.
2112
2113 * ppc-instructions (model_get_number_of_stalls): New model function,
2114 returns number of stalls for the specified processor.
2115 * psim.c (psim_read_register): Add call to new function
2116 model_get_number_of_stalls().
2117
2118 * ppc-instructions (model_get_number_of_cycles): New model function,
2119 returns number of stalls for the specified processor.
2120 * psim.c (psim_read_register): Add call to new function
2121 model_get_number_of_cycles().
2122
2123 Fri Jun 14 00:11:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2124
2125 * device_table.h: Don't pass the parent device into a devices
2126 create function. This makes the create function consistent with
2127 the documentation.
2128 * device.c (device_template_create_device): Ditto
2129 * hw_pal.c (hw_pal_create): Ditto
2130 * hw_core.c (hw_core_create): Ditto
2131 * hw_vm.c (hw_vm_create): Ditto
2132 * hw_disk.c (hw_disk_create): Ditto
2133 * hw_nvram.c (hw_nvram_create): Ditto
2134 * hw_memory.c (hw_memory_create): Ditto
2135 * hw_cpu.c (hw_cpu_create): Ditto.
2136
2137 * device.c (split_find_device): Allow a null initial parent device.
2138 (device_template_create_device): Ditto.
2139
2140 * device.c (device_create_from): Make local (static) only used
2141 within device.c.
2142 * device_table.h: typedef device_callbacks moved here (from
2143 device.h) where it belongs.
2144
2145 * hw_core.c: New file. Implements just the core device using the
2146 core object.
2147
2148 * corefile.c: Moved all core device functions into the new
2149 hw_core.c file. core_device_create() disapears.
2150
2151 * psim.c (psim_tree): Use device_tree_add_parsed() to create the
2152 core device.
2153
2154 Thu Jun 13 00:09:29 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2155
2156 * hw_init.c: Correct typo in comment.
2157
2158 * corefile.c (core_init): Remove any remaining references to a
2159 default map.
2160 (core_map_find_mapping): Ditto.
2161
2162 Wed Jun 12 22:30:32 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2163
2164 * corefile.c (core_init): Make function global so that other
2165 devices are able to use the full core object.
2166
2167 * corefile.c (core_create, core_from_device): Break core_create
2168 into two functions. The first creates a core object, the second
2169 returns the core object associated with a core device.
2170
2171 * corefile.c (core_device_create): Use core_create to make the
2172 core object.
2173
2174 * psim.c (psim_create): Use core_from_device() instead of
2175 core_create().
2176
2177 * device.c (device_template_create_device): Make static as only
2178 needed by functions internal to device.c.
2179
2180 Fri Jun 7 23:47:18 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2181
2182 * ppc-opcode-test-2: Remove description of fields.
2183 * ppc-opcode-complex: Ditto
2184 * ppc-opcode-flat: Ditto
2185 * ppc-opcode-simple: Ditto
2186 * ppc-opcode-stupid: Ditto
2187 * ppc-opcode-test-1: Ditto
2188 * ppc-cache-rules: Ditto
2189
2190 * igen.c: Add description of files as a comment at the front.
2191
2192 Wed Jun 26 12:50:33 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2193
2194 * configure.in: Check for whether the termios and termio
2195 structures are really defined, and whether or not, they define the
2196 c_line field.
2197 * configure: Regenerate.
2198
2199 * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by
2200 configure.
2201
2202 * emul_unix.c: Various changes to allow for building on systems
2203 with different termio and termios structures. If host has both
2204 termio and termios, just use termios. No longer include
2205 sys/ioctl.h.
2206
2207 Wed Jun 26 12:26:55 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2208
2209 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
2210 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
2211 (docdir): Removed.
2212 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2213 (AC_PROG_INSTALL): Added.
2214 * configure: Rebuilt.
2215
2216 Wed Jun 5 23:53:42 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2217
2218 * corefile.h: Rewrite documentation so that it can be extracted and
2219 converted into texinfo (and hence ready for translation into html,
2220 tex or nroff).
2221 * device.h: Ditto
2222
2223 Thu Jun 6 09:52:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2224
2225 * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0.
2226
2227 Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin>
2228
2229 * hw_disk.c: Include <unistd.h> if available. Under SunOS, that
2230 is the source of SEEK_SET.
2231
2232 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2233
2234 * psim.c (psim_options): Correct type of dummy arguments being
2235 passed to a device_ioctl call.
2236
2237 * hw_init.c (hw_data_init_data_callback): Adjust printf arguments.
2238 (write_stack_arguments): Ditto.
2239 * hw_trace.c: Instance callback entry no longer a table.
2240
2241 Wed Jun 5 01:39:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2242
2243 * emul_unix.c (do_unix_umask): Cast printf argument.
2244 (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH
2245
2246 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2247
2248 * hw_init.c (update_for_binary_section): Abort if we find an
2249 .interp section, which indicates the need for shared libraries to
2250 be loaded.
2251
2252 Mon Jun 3 15:02:04 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2253
2254 * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support
2255 for time, gettimeofday, and getrusage system calls.
2256 ({solaris,linux}_descriptors): Add new system calls.
2257 (do_get{,e}{uid,gid}): Use gid_t/uid_t types.
2258 (do_get{,p}pid): Use pic_t types.
2259
2260 * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define.
2261 (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define.
2262 * config{.in,ure}: Regenerate.
2263
2264 Mon Jun 3 23:19:57 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2265
2266 * emul_netbsd.c (emul_netbsd_create): Use the more specific names
2267 `ppc-elf' and `ppc-xcoff' for the stack-type.
2268 * emul_unix.c (emul_unix_create): Ditto.
2269 * emul_bugapi.c (emul_bugapi_create): Ditto.
2270 * hw_init.c: Reconize the new names.
2271
2272 * emul_unix.c (do_unix_break): Adjust so that the updated ioctl
2273 call is used (no system parameter).
2274
2275 Sun Jun 2 11:21:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2276
2277 * emul_unix.{h,c}: New files to provide Solaris and Linux system
2278 call emulations.
2279
2280 * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}.
2281 (os_emul.o): Depend on emul_unix.h.
2282 (emul_unix.o): New dependency.
2283
2284 * configure.in (--enable-sim-alignment): Add 0|default to mean set
2285 alignment to 0, which means use appropriate alignment for mode.
2286 (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c.
2287 (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c.
2288 * config.in: Regenerate.
2289 * configure: Regenerate.
2290
2291 * emul_generic.c (emul_write2_status): New function to return
2292 results in r3 and r4 for Solaris system calls.
2293 (emul_do_system_call): If the system call is not support, but
2294 there is a string for the system call name, print out the string
2295 instead of the system call number.
2296
2297 * emul_generic.h (emul_write2_status): Declare it.
2298
2299 * emul_netbsd.c: Use /* */ around comment on #endif.
2300
2301 * os_emul.c: Include emul_unix.h.
2302 (os_emulations): Add emulations for Solaris, and Linux.
2303
2304 * psim.c (psim_usage): Add message about solaris, linux
2305 emulations.
2306
2307 Thu May 30 00:00:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2308
2309 * hw_iobus.c: Tidy up notes so that they can be auto-extracted.
2310
2311 * README: Correct PSIM's title
2312
2313 Wed May 29 23:50:26 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2314
2315 * basics.h: New global type object_disposition, used to indicate
2316 the status of objects when things are restarted.
2317
2318 Fri May 17 17:28:52 1996 Andrew Cagney <cagney@benjimen.highland.com.au>
2319
2320 * device_table.h: Change the interrupt descriptor structure so
2321 that it includes an additional member - an upper bound on the
2322 interrupts by that name.
2323
2324 * device.c (device_interrupt_decode): Allow a range of interrupt
2325 ports (eg rst0 .. rst6) if the port descriptors bound is non zero.
2326
2327 * device.c (device_tree_print_device): Include a list of valid
2328 interrupt ports when listing supported devices.
2329
2330 * device.h, device.c (device_child_interrupt_*): Delete. Not used.
2331
2332 * emul_generic.c (emul_add_tree_hardware): Modify the creation of
2333 the interrupt net so that it uses int0 .. intN.
2334
2335 Tue May 14 23:03:53 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2336
2337 * device.h, device.c (device_ioctl): Drop the system argument.
2338 Devices can not obtain this using the device_system() call.
2339 * device_table.h: Adjust accordingly.
2340 * hw_*.c: Adjust accordingly.
2341 * emul_netbsd.c (do_break): Adjust call to vm device accordingly.
2342 * psim.c (psim_options): Use a device_ioctl call to force the
2343 hw_trace device to update the trace options.
2344 * hw_trace.c: Replace the init function with an ioctl call. Adjust
2345 doc accordingly.
2346
2347 * psim.c (psim_init): Re-order initialization so that the
2348 os-emulation is initialized after the device tree. Without this,
2349 os-emul's are not able to create instances or access properties
2350 that contain an instance handle.
2351
2352 * device.h, device.c (device_add_*_property): Make these functions
2353 internal to device.c. The user has access to the more generic
2354 device_tree_add_parsed function. Differentiate between the initial
2355 and current value for each property.
2356 * (clean_device_properties): New function that deletes any
2357 properties created after the start of a simulation and restores
2358 the initial value of any others (ignoring ihandles).
2359 * (init_device_properties): (Re)Initialize any properties that
2360 contain ihandles. create
2361
2362 * (device_tree_init): Include calls to clean the device tree's
2363 properties and then initialize them. Document this in the device.h
2364 file.
2365
2366 Mon May 6 17:36:15 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2367
2368 * interrupts.c (decrementer_interrupt): Always pend a decrementer
2369 interrupt even if it is not yet possible to deliver it.
2370
2371 Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen>
2372
2373 * mon.h, mon.c (mon_get_number_of_insns): Make this externally
2374 visable adjusting the arguments so that the interface is correct.
2375 (mon_print_info): Adjust calls.
2376
2377 * registers.h, registers.c (register_description): Add phony
2378 cycle, insn and stall registers.
2379
2380 * psim.c (psim_read_register): Return nr of instructions for given
2381 processor.
2382
2383 Tue Apr 30 22:09:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2384
2385 * hw_htab.c: New file. Extract contents from disk_table.c.
2386 Contains a device that, during initialization will create a
2387 PowerPC htab in memory.
2388 * hw_register.c: New file. Extract contents from disk_table.c.
2389 Contains a device that, during initialization, will parse its
2390 property list and use that to initialize various processor
2391 registers (not target specific).
2392 * hw_vm.c: New file. Extract contents from disk_table.c. Contains
2393 a device that handles accesses to invalid virtual memory addresses
2394 (in user mode).
2395 * hw_init.c: New file. Extract contents from disk_table.c. Misc
2396 devices that can initialize memory from a file.
2397 * hw_trace.c: New file. Extract contents from disk_table.c.
2398 Configure trace options from property values.
2399
2400 * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o,
2401 hw_trace.c): Add new device files.
2402
2403 * device_table.c: Remove above code, now in separate independant
2404 files.
2405
2406 Fri Apr 26 00:00:07 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2407
2408 * hw_disk.c: New file. Disk and CDROM device.
2409
2410 * Makefile.in (hw_disk.o): Add device hw_disk.c.
2411
2412 * pk_disklabel.c: New file. Implement the miss-named disk-label
2413 package.
2414
2415 * Makefile.in (pk.h): Create the file pk.h that contains a list of all
2416 the packages.
2417
2418 * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that
2419 they are re-created when the makefile is updated.
2420
2421 * emul_generic.c (emul_add_tree_hardware): Add a disk device
2422 (below the iobus) to the device tree. Include an ihandle of
2423 the disk as /chosen/disk.
2424
2425 * emul_bugapi.c (emul_bugapi_create): Don't initialize the input,
2426 output and (new) disk handles yet.
2427 * (emul_bugapi_init): Initialize the input, output (and just added)
2428 disk ihandles here.
2429 * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least
2430 what I think the behavour is).
2431 * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk
2432 i/o bug call. For RETURN call, exit using gpr[3]'s status even
2433 though this isn't part of the spec - makes it possible for machine
2434 code to signal the aporting of a simulation run.
2435
2436 * emul_chirp.c (chirp_emul_call_method): Add support for the
2437 claim/release methods.
2438 * (chirp_emul_exit): Add an optional exit status argument to
2439 the exit method. Makes it possible for chirp emul simulations
2440 to abort upon an error.
2441 * device.h, device.c (device_instance_claim,
2442 device_instance_release): New methods for claiming and releasing
2443 memory.
2444 * hw_memory.c: add claim and release memory methods.
2445 * hw_*: Use the claim memory method when allocating physical
2446 memory.
2447
2448 Thu Apr 18 23:38:10 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2449
2450 * hw_nvram.c (hw_nvram_update_clock): Use the current not previous
2451 time when updating the clock.
2452
2453 * hw_nvram.c: Tidy up documentation
2454
2455 Fri May 24 10:08:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2456
2457 * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these
2458 macros to determine whether or not the appropriate st_<xxx> fields
2459 exist in the stat structure.
2460 (AC_CHECK_FUNCS): Check for all unix system calls used, except for
2461 the real basic ones like open, read, write, etc.
2462 * config{.in,ure}: Regenerate.
2463
2464 * emul_netbsd.c: Add support for missing system calls, and/or
2465 missing stat fields.
2466 (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h
2467 might define it.
2468
2469 * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL
2470 are not defined.
2471 (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or
2472 F_SETFL not defined.
2473
2474 Tue May 21 17:24:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2475
2476 * emul_netbsd.c (write_stat): Don't convert st_blocks unless the
2477 host is netbsd.
2478
2479 Thu May 16 10:56:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2480
2481 * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h.
2482 * config{.in,ure}: Regenerate.
2483 * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include
2484 sys/ioctl.h.
2485
2486 Tue May 7 17:28:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2487
2488 * hw_pal.c (hw_pal_instance_read_callback): Remove unused
2489 variable.
2490
2491 * misc.c ({,target_}a2i): Rewrite to not use strtoul.
2492
2493 * Makefile.in ({spreg,misc}.o): Add dependency on .c file.
2494 ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of
2495 LIBS.
2496
2497 Mon May 6 11:31:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2498
2499 * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use
2500 fgets to read line. If not using stdio, do a simple blocking read
2501 of len bytes.
2502
2503 Fri May 3 15:07:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2504
2505 * Makefile.in: Correctly build simulator for build machine != host
2506 machine.
2507
2508 Tue Apr 30 18:46:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2509
2510 * configure.in (--enable-hostendian): Rework so the default uses
2511 the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross
2512 compiling.
2513 * configure: Regenerate.
2514
2515 * sim-endian.h: Add more tests for host endian to support more
2516 platforms in a cross compilation environment.
2517
2518 Wed Apr 17 14:38:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2519
2520 * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO,
2521 use stdio, instead of unpended read/printf_filtered.
2522 (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO,
2523 flush stdout after writing the characters.
2524
2525 * options.c (print_options): Print out WITH_STDIO.
2526
2527 * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@
2528 configuration variable.
2529 (CONFIG_CFLAGS): Include STDIO_CFLAGS.
2530 (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC
2531 files to contain directory pieces.
2532
2533 * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we
2534 should use stdio for console input.
2535 (WITH_STDIO): If not defined, define as DONT_USE_STDIO.
2536
2537 * configure.in (--enable-sim-stdio): Add new switch to control
2538 whether stdio is used for console I/O.
2539 * configure: Regenerate.
2540
2541 * interrupts.c (external_interrupt): Declare it to be
2542 INLINE_INTERRUPTS, not INLINE_CPU.
2543
2544 Mon Apr 15 23:30:56 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2545
2546 * events.c (insert_event_entry): Allow events to be scheduled
2547 *NOW* (at delta time 0). Add assertions to clarify behavour of
2548 event queue.
2549
2550 * events.c (update_time_from_event): New function. Calculates the
2551 number of ticks from the next event. Use this.
2552
2553 Sun Apr 14 21:39:45 1996 Andrew Cagney <cagney@highland.com.au>
2554
2555 * emul_netbsd.c (do_break): Return 0 if success (instead of
2556 adjusted break).
2557
2558 * device_table.c (vm_ioctl_callback): Don't return adjusted break
2559 (isn't needed).
2560
2561 Sun Apr 14 21:32:41 1996 Andrew Cagney <cagney@highland.com.au>
2562
2563 * device_table.h: Change type of the device ioctl so that it
2564 returns an int (status).
2565 * device.h (device_ioctl): Ditto.
2566 * device.c (device_ioctl): Ditto.
2567
2568 * device_table.c (stack_ioctl_callback): Return 0 status.
2569 (vm_ioctl_callback): Ditto
2570
2571 Sat Apr 13 00:00:24 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2572
2573 * emul_netbsd.c (do_read): Correctly set the return value.
2574 (do_getpid): Ditto.
2575 (do_getuid): Ditto.
2576 (do_geteuid): Ditto.
2577 (do_dup): Ditto.
2578 (do_getegid): Ditto.
2579 (do_getgid): Ditto.
2580 (do_sigprocmask): Ditto.
2581 (do_umask): Ditto.
2582 (do_dup2): Ditto.
2583 (do_gettimeofday): Ditto.
2584 (do_getrusage): Ditto.
2585 (do_fstat): Ditto.
2586 (do_stat): Ditto.
2587 (do_lseek): Ditto.
2588 (do___sysctl): Ditto.
2589
2590 Fri Apr 12 20:56:47 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2591
2592 * device_table.c (vm_ioctl_callback): Don't access the processor
2593 registers directly, instead leave it to the caller to handle this.
2594
2595 * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to
2596 perform a break. Pass in the new break value and set the
2597 registers according to the result.
2598
2599 * emul_generic.c (emul_write_status): Change so that r3 contains
2600 either status or errno and failure is indicated by SO.
2601
2602 Thu Apr 4 23:03:38 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2603
2604 * emul_bugapi.c (emul_bugapi_create): More strict check of OEA
2605 address.
2606
2607 Thu Apr 4 20:58:05 1996 Andrew Cagney <cagney@highland.com.au>
2608
2609 * interrupts.h (interrupts): New structure contains state of
2610 pending interrupts.
2611
2612 * cpu.c (cpu_interrupts): New function. Pending interrupt status
2613 in the cpu and grant access to it. Add interrupts to cpu
2614 structure.
2615
2616 Fri Mar 29 22:09:25 1996 Andrew Cagney <cagney@highland.com.au>
2617
2618 * device.c (device_tree_add_parsed): Check that the creation of a
2619 device instance worked before using it.
2620
2621 * psim.c (psim_halt): Remove cia argument from psim_halt. This
2622 function does not save the CIA so do not pass it in.
2623
2624 Fri Mar 29 21:30:56 1996 Andrew Cagney <cagney@highland.com.au>
2625
2626 * hw_pal.c (hw_pal): Merge the halt and icu and console devices
2627 found in device_table.c into a single hack pal.
2628
2629 * device_table.c (halt, icu, console): Delete.
2630
2631 * Makefile.in (hw_pal.o): New dependency.
2632
2633 * emul_generic.c (emul_add_tree_hardware): Re-arange device tree
2634 so that it uses the pal instead of the icu/halt/console devices.
2635 Wire the pal's interrupt ports up to the cpu nodes.
2636
2637 Fri Mar 29 20:17:17 1996 Andrew Cagney <cagney@highland.com.au>
2638
2639 * hw_iobus.c (hw_iobus_attach_address_callback): Move from
2640 device_table.c to here.
2641
2642 * Makefile.in (hw_iobus.o): New dependency.
2643
2644 Fri Mar 29 12:17:58 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2645
2646 * emul_bugapi.c (_os_emul_data): Add fields for output, input.
2647 (emul_bugapi_create): Create input, output from /chosen/stdin and
2648 /chosen/stdout.
2649 (emul_bugapi_do_{read,write}): Switch to use device_instance
2650 interface.
2651 (emul_bugapi_instruction_call): Change calls to
2652 emul_bugapi_do_{read,write} to pass device instance argument.
2653
2654 Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2655
2656 * igen.c (idecode_switch_end): Fix 2/26 change so that an extra
2657 default is not written out if a default was already written.
2658
2659 * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to
2660 size cooked_buf, not sizeof natural_word, since floating point
2661 registers are 8 bytes.
2662
2663 Mon Mar 25 22:07:13 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2664
2665 * configure: Regenerate with autoconf 2.9.
2666
2667 Thu Mar 21 00:14:26 1996 Andrew Cagney <cagney@highland.com.au>
2668
2669 * device_table.h: Always include string headers.
2670
2671 Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2672
2673 * main.c (error): Be careful to not try to print out statistics
2674 when the simulation was never created.
2675
2676 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2677
2678 * basics.h: Move the event queue's definition to here so that it
2679 can be refered to globally with out importing all of events.h.
2680
2681 * psim.h, psim.c (psim_event_queue): New function. Grant access
2682 to the simulation event queue. Will make this the single point of
2683 access (there is after all only one event queue in the
2684 simulation).
2685
2686 * cpu.c (cpu_create): Use psim_event_queue to obtain the event
2687 queue instead of it being passed in. No longer allow access to
2688 the cpu's copy of the event queue.
2689
2690 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2691
2692 * events.h, events.c (event_handler): Remove event_queue from
2693 arguments passed to an event handler. That argument is redundant
2694 - the `data' should refer to a data structure that contains the
2695 event queue if queing is needed.
2696
2697 * cpu.c (cpu_decrement_event): adjust
2698
2699 * events.c (event_queue_process): adjust
2700
2701 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2702
2703 * device.h, device.c (device_system): New, returns a handle for
2704 the system given the device.
2705
2706 * device.c (device_address_init): Store a pointer back to the
2707 system in each devices node.
2708
2709 * device_table.h: Don't pass `system' into each device when it is
2710 being initialized, this is now available using device_system(me).
2711
2712 * device.c (device_address_init, device_data_init): Adjust.
2713
2714 * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c:
2715 Adjust.
2716
2717 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2718
2719 * interrupts.c (decrementer_interrupt, external_interrupt):
2720 Remember that an interrupt wasn't delivered so that it can be
2721 tried again later.
2722
2723 * interrupts.c (check_masked_interrupt): New function. (re)
2724 checks for the posibility that a recent change to the MSR may have
2725 made it possible to deliver an interrupt that was previously
2726 masked be the EE bit.
2727
2728 * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of
2729 a pending interrupt being delivered using check_masked_interrupt().
2730
2731 * cpu.c (cpu_decrement_event): Just call decrementer_interrupt()
2732 leaving it to that module to handle both interrupt synchronization
2733 and masking.
2734
2735 * cpu.c (struct _cpu): remove variables that were going to record
2736 pending decrementer and external interrupts.
2737
2738 Sun Mar 17 22:40:57 1996 Andrew Cagney <cagney@highland.com.au>
2739
2740 * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits
2741 between the interrupt controller and the simulators internal
2742 processor model. Maps device interrupts onto the processor
2743 interrupt function calls.
2744
2745 Mon Mar 4 06:06:54 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2746
2747 * hw_nvram.c: NVRAM device that includes a real-time clock that is
2748 updated each second.
2749
2750 Mon Mar 4 04:18:50 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2751
2752 * device.h (attach_type): Remove attach_default type address
2753 spaces. Will replace with levels of callback memory.
2754
2755 * corefile.h, corefile.c (new_core_mapping), corefile.c
2756 (core_map_attach): Replace default attach with a layerd callback
2757 approach.
2758
2759 Sun Mar 3 03:58:46 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2760
2761 * device.c (split_property_specifier): ensure that only a single
2762 property is found.
2763 (split_value): New function, parses the value part of a device
2764 spec.
2765
2766 * device.c (device_tree_add_parsed): Use the interrupt conversion
2767 functions to determine the interrupt port numbers.
2768
2769 * device_table.h: Add table that maps between an interrupts
2770 symbolic name and its port number.
2771
2772 * device.h, device.c (device_interrupt_decode,
2773 device_interrupt_encode): new functions use the recently added
2774 interrupt port name/number tables to perform conversion.
2775
2776 Sun Mar 3 03:23:59 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2777
2778 * device.h, device.c (device_set_array_property,
2779 device_set_boolean_property, device_set_ihandle_property,
2780 device_set_integer_property, device_set_string_property): New
2781 functions - allow the value of a given property to be changed.
2782
2783 * device.h, device.c: Re-order declaration and definition of
2784 property functions.
2785
2786 Sun Mar 3 03:10:22 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
2787
2788 * device.c (device_tree_print_device, device_tree_add_parsed):
2789 Remove references to phandle properties.
2790
2791 Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
2792
2793 * Makefile.in (corefile.o): missing dependency on device_table.h
2794 etc.
2795
2796 Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
2797
2798 * device_table.h: Revamp device init callbacks so that they are a
2799 sub structure.
2800 * device.c (device_init_data, device_init_address): If an init
2801 callback is NULL assume it should do nothing.
2802 * device_table.c (ignore_device_init, unimp_device_init): delete
2803 as redundant.
2804 * device_table.c, hw_memory.c: adjust.
2805
2806 * (io): ditto.
2807 * (dma): ditto.
2808 * (device_instance): ditto.
2809 * (ioctl): ditto.
2810 * (address nee config_address): ditto.
2811 * (interrupt): ditto.
2812
2813 Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
2814
2815 * igen.c (idecode_switch_end): Output a default entry when the
2816 switch statement is perfect. Firstly stops GCC complaining about
2817 an incomplete switch and secondly it will be eliminated by a good
2818 compiler any way.
2819
2820 Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
2821
2822 * Makefile.in (hw.h, hw.c): New targets. Create from the list of
2823 hw_*.c files. hw.h declares a device descriptor table for each hw
2824 device while hw.c lists those tables in a form suitable for the
2825 construction of a top leveltable in device_table.c.
2826
2827 * Makefile.in (device_table.o): now depends on hw.c a generated
2828 table of hw.
2829
2830 * device_table.c (device_table): Re-arange the table of devices so
2831 that two levels are possible. Make use of hw.c.
2832 * device_table.h: ditto.
2833
2834 * device.c (device_template_create_device): Handle new two level
2835 device lookup table.
2836 * device.c (device_usage): ditto.
2837
2838 Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
2839
2840 * device_table.c: Delete the memory device (moved to hw_memory.c).
2841
2842 * hw_memory.c: New file. Just an OpenBoot memory device.
2843
2844 Wed Jan 17 21:47:34 1996 Andrew Cagney <cagney@highland.com.au>
2845
2846 * device.c (device_init_address): New. Split initialization into
2847 two stages, address and address spaces
2848 * device.c (device_init_data): New. ... and data or other work.
2849 With out this, devices try to modify memory before it as been
2850 attached.
2851
2852 * device.c (device_tree_init): Update to perform staged
2853 initialization.
2854
2855 * device.c (device_init): Delete.
2856
2857 Wed Jan 17 21:43:09 1996 Andrew Cagney <cagney@highland.com.au>
2858
2859 * device_table.c (data_*): Rewrite to make heaver use of property
2860 nodes. Allow initialization by different data types.
2861 * device_table.c (htab_* pte_*): Rewrite to use properties.
2862
2863 * emul_chirp.c (emul_chirp_create): Use
2864 * emul_bugapi.c (emul_bugapi_create): Ditto
2865 * emul_netbsd.c (emul_netbsd_create): Ditto
2866
2867 Wed Jan 17 21:24:50 1996 Andrew Cagney <cagney@highland.com.au>
2868
2869 * emul_generic.c (emul_add_tree_options): Annotate existing tree
2870 with options that haven't yet been specified.
2871 * emul_generic.c (emul_add_tree_hardware): Annotate existing tree
2872 with demo devices and properties.
2873
2874 * emul_chirp.c (emul_chirp_create): Update to use new
2875 device_tree_add_parsed call and additional information now
2876 included in the device tree. Use emul_add_tree* functions to add
2877 any missing details.
2878 * emul_bugapi.c (emul_bugapi_create): Ditto
2879 * emul_netbsd.c (emul_netbsd_create): Ditto
2880
2881 Wed Jan 17 21:18:27 1996 Andrew Cagney <cagney@highland.com.au>
2882
2883 * device.c (device_instance_create): New. Create/delete and
2884 operate on instances of a device.
2885 * device.c (device_instance_delete): Ditto
2886 * device.c (device_instance_read): Ditto
2887 * device.c (device_instance_write): Ditto
2888 * device.c (device_instance_seek): Ditto
2889 * device.c (device_instance_data): Ditto
2890 * device.c (device_instance_name): Ditto
2891 * device.c (device_instance_path): Ditto
2892
2893 * emul_chirp.c (chirp_emul_open): Implement using device_instance.
2894 * emul_chirp.c (chirp_emul_close): Ditto
2895 * emul_chirp.c (chirp_emul_read): Ditto
2896 * emul_chirp.c (chirp_emul_write): Ditto
2897 * emul_chirp.c (chirp_emul_seek): Ditto
2898
2899 * emul_chirp.c (chirp_read_t2h_args): Read arguments from device.
2900 Being careful to convert all from target to host byte order.
2901 * emul_chirp.c (chirp_write_h2t_args): Converse.
2902
2903 Wed Jan 17 20:07:15 1996 Andrew Cagney <cagney@highland.com.au>
2904
2905 * device.c (device_tree_add_parsed): New. Rewrite code to add
2906 devices to the device tree so that a single printf style function
2907 is used.
2908
2909 * device.c (device_tree_add_*): Delete. Replaced by above.
2910
2911 * device.c (split_device_specifier): Functions to manipulate a
2912 device specifier (path) breaking it into its components
2913 * device.c (split_property_specifier): Ditto
2914 * device.c (split_device_name): Ditto
2915 * device.c (split_find_device): Ditto
2916
2917 * device.c (scan_*): Delete
2918
2919 * device.c (device_tree_find_device): Rewrite to use above.
2920 * device.c (device_add_property): Ditto
2921
2922 Wed Jan 17 19:51:56 1996 Andrew Cagney <cagney@highland.com.au>
2923
2924 * psim.c(psim_options): Parse the psim options, installing their
2925 value in the device tree. Options are now first entered into a
2926 device tree and then extracted out again when needed. This allows
2927 greater flexability in configuration.
2928
2929 * psim.c (psim_tree): Returns a basic device tree ready for
2930 parsing by psim_options.
2931 * psim.c (psim_usage): New. Give usage to varing levels of detail
2932 according to the verbosity. In turn output device and trace
2933 usage.
2934
2935 * main.c (main): Update to use new system
2936 * sim_calls.c (sim_open, sim_do_command): Ditto
2937
2938 * psim.c (psim_options): Add `r' option - ram size.
2939 * psim.c (psim_options): Add `o' option - openboot tree entry.
2940 * psim.c (psim_options): Add `h'/`H' options - more help.
2941
2942 * debug.c (trace_usage): Add more detailed help.
2943 * device.c (device_usage): New. Output help including a list of
2944 the devices currently available in the device table.
2945 * device_table.c: Add usage operator to each device.
2946
2947 * corefile.c (core_create, core_device_create): Adjust so that the
2948 core device is created earlier for psim_tree(). Core can later be
2949 created from it.
2950
2951 * psim.c (psim_create): Update to handle above way of creating
2952 things. Extract all information from the device tree.
2953
2954 * device_tree.c (trace_*): New device node, its properties are
2955 used to set the value of the trace options. Init this device (in
2956 psim_options) when ever the options are updated.
2957
2958 Wed Jan 17 19:46:07 1996 Andrew Cagney <cagney@highland.com.au>
2959
2960 * debug.h: Add trace_print_info, trace_print_device_tree and
2961 trace_dump_device_tree. The first is a replacement for the
2962 variable `print_info' found in main.c and sim_calls.c. The latter
2963 two enable the dumping of the entire device tree.
2964
2965 * debug.c: Add to trace_description table.
2966
2967 * main.c (main): Use above trace instead of local variable
2968 * sim_calls.c (sim_close): Ditto
2969
2970 * device.c (device_tree_print_device): New. Prints the device
2971 tree in a format that is consistent with what can be parsed by the
2972 device tree load from file code.
2973
2974 * psim.c (psim_create): Dump device tree if enabled. If nump
2975 selected, exit psim immediatly.
2976
2977 Wed Jan 17 19:36:52 1996 Andrew Cagney <cagney@highland.com.au>
2978
2979 * corefile-n.h (core_map_read_N): When mapping from an address to
2980 a device, do not subtract the devices base. The device its self
2981 can do this. Brings the behavour into line with OpenBoot.
2982 * corefile-n.h (core_map_write_N): Ditto
2983 * corefile.c (core_map_read_buffer): Ditto
2984 * corefile.c (core_map_write_buffer): Ditto
2985
2986 * device_table.c (console_io_read_buffer_callback): Adjust to
2987 handle biased address.
2988 * device_table.c (console_io_write_buffer_callback): Ditto
2989
2990 Wed Jan 17 18:36:09 1996 Andrew Cagney <cagney@highland.com.au>
2991
2992 * device.c (attach_device_interrupt_edge): New. Interrupt model
2993 did not allow interrupts to be wired up as a general net (edges).
2994 Re-implement so that interrupt events can be passed to multiple
2995 controllers and interrupt controllers can further propogate
2996 interrupt events.
2997
2998 * device.c (attach_device_interrupt_edge) : New, Ditto
2999 * device.c (detach_device_interrupt_edge) : New, Ditto
3000 * device.c (clean_device_interrupt_edges) : New, Ditto
3001 * device.c (device_interrupt_event) : New, Ditto
3002 * device.c (device_interrupt_attach) : New, Ditto
3003 * device.c (device_interrupt_detach) : New, Ditto
3004 * device.c (device_child_interrupt_attach) : New, Ditto
3005 * device.c (device_child_interrupt_detach) : New, Ditto
3006
3007 * device.c (device_attach_interrupt) : Delete old
3008 * device.c (device_detach_interrupt) : Delete old
3009 * device.c (device_interrupt) : Delete old
3010 * device.c (device_interrupt_ack) : Delete old
3011
3012 * device_table.c (unimp_*) : Update to match
3013
3014 * device_table.c (icu_io_write_buffer_callback) : Update to use
3015 interface.
3016 * device_table.c (icu_interrupt_event_callback) : Ditto
3017
3018 Wed Jan 17 18:18:40 1996 Andrew Cagney <cagney@highland.com.au>
3019
3020 * device.c (external_to_device) : New function that provides a
3021 standard mapping between a devices internal representation (a
3022 pointer) and its external (or what is passed to a client)
3023 representation (a phandle). Implement using the cap object
3024 attached to the root node.
3025
3026 * device.c (device_to_external) : Ditto
3027 * device.c (external_to_device_instance) : Ditto but for ihandle
3028 and device instance.
3029 * device.c (device_instance_to_external) : Ditto
3030
3031 * Makefile (device.o): Add dependency on cap.
3032
3033 * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code
3034 needing to translate between internal and external representations
3035 changed to use the external_to_device et.al. device operations.
3036 * emul_chirp.c (chirp_emul_*) : Ditto
3037
3038 * Makefile (emul_chirp.o): Remove dependency on cap
3039
3040 Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <cagney@highland.com.au>
3041
3042 * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks
3043 on OpenBoot note section.
3044
3045 Fri Jan 5 20:28:53 1996 Andrew Cagney <cagney@hignland.com.au>
3046
3047 * emul_generic.c (emul_write_buffer): Use vm faulting byte
3048 read/write calls for buffer transfers. This will cause a fault to
3049 occure if the transfer fails. CHRP catches the fault while the
3050 others suffer the consequences.
3051 (emul_read_buffer): Ditto.
3052 (emul_write_word): Ditto.
3053 (emul_read_word): Ditto.
3054 (emul_read_string): Ditto.
3055
3056 Fri Jan 5 18:55:34 1996 Andrew Cagney <cagney@highland.com.au>
3057
3058 * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call),
3059 emul_generic (emul_blr_instruction): Use a real blr instruction to
3060 return from a client service call.
3061
3062 * emul_chirp.c (services): Add all OpenBoot services to table.
3063
3064 * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c
3065 (emul_chirp_create) : Use names instead of numbers for
3066 instructions being stored in memory.
3067
3068 Fri Jan 5 18:52:28 1996 Andrew Cagney <cagney@highland.com.au>
3069
3070 * Makefile.in (maintainer-clean): Remove .log, core and *.core
3071 (From NetBSD) files.
3072
3073 Wed May 29 22:57:40 1996 Andrew Cagney <cagney@kremvax.highland.com.au>
3074
3075 * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes
3076 ChangeLog.00
3077
This page took 0.212518 seconds and 5 git commands to generate.