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