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