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