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