]>
Commit | Line | Data |
---|---|---|
83a650d8 MM |
1 | Tue Aug 13 11:40:14 1996 Michael Meissner <[email protected]> |
2 | ||
3 | * Makefile.in (options.o): Depend on defines.h. | |
4 | (defines.h): New rule, go through config.h and make strings of all | |
5 | of the #define HAVE_xxx macros. | |
6 | (distclean): Remove defines.h. | |
7 | ||
8 | * options.c (print_options): Print whether many of the | |
9 | configuration macros are defined. | |
10 | ||
11 | * main.c (main): If -t options and no filename, just print the | |
12 | options, and don't print the usage message. | |
13 | ||
9aecf50d MM |
14 | Mon Aug 12 18:42:37 1996 Michael Meissner <[email protected]> |
15 | ||
16 | * configure.in: Test whether /dev/zero works on the system, and if | |
17 | it does, define HAVE_DEVZERO. | |
18 | * configure: Regenerate. | |
19 | ||
20 | * emul_generic.c (emul_add_tree_hardware): Do not add /iobus/disk | |
21 | if we don't have a working /dev/zero on the system. | |
22 | ||
23 | * emul_bugapi.c (emul_bugapi_init): If HAVE_DEVZERO is not | |
24 | defined, don't add disk support. | |
25 | (emul_bugapi_do_diskio): Ditto. | |
26 | (emul_bugapi_instruction_call): Ditto. | |
27 | ||
def7f775 MM |
28 | Wed Aug 7 14:34:20 1996 Michael Meissner <[email protected]> |
29 | ||
7b25dea5 MM |
30 | * emul_unix.c (HAVE_TCGETATTR): If HAVE_TERMIOS_STRUCTURE is not |
31 | defined, make sure HAVE_TCGETATTR is #undef'ed | |
32 | ||
def7f775 MM |
33 | * std-config.h (REGPARM): Only define REGPARM attributes if using |
34 | GNU C. Test for __i686__ in case GCC ever defines it. If not on | |
35 | a x86 platform, define REGPARM as nothing. | |
36 | ||
37 | * sim-endian.h (WITH_HOST_BYTE_ORDER): Test for i686 and __i686__ | |
38 | also. | |
39 | ||
2e913166 MM |
40 | Tue Aug 6 09:28:22 1996 Michael Meissner <[email protected]> |
41 | ||
42 | * configure.in (--enable-sim-{hardware,packages}): Fix typos. | |
43 | * configure: Regenerate. | |
44 | ||
45 | * device.c (device_instance_call_method): Fixup format message in | |
46 | error case. Return 0 in case of error to shut up compiler | |
47 | warnings. | |
48 | ||
49 | Wed Jul 31 00:02:30 1996 Andrew Cagney <[email protected]> | |
50 | ||
51 | * device_table.h (device_instance_callbacks): Relace the claim and | |
52 | release methods with a more general table mapping from method-name | |
53 | to method-function. | |
54 | ||
55 | * device.c (device_instance_call_method): New function. Implement | |
56 | the OpenBoot call-method client interface. Attempts to locate the | |
57 | instances method in the callback table. | |
58 | (device_instance_claim, device_instance_release): Delete. | |
59 | Replaced with call-method and a lookup table. | |
60 | ||
61 | * emul_chirp.c (chirp_emul_call_method): Use the new device | |
62 | instance call method and let that handle a client claim call. | |
63 | ||
64 | * hw_htab.c (claim_memory): Wrapper function to call the memory | |
65 | devices "claim" method using the new device-instance call-method | |
66 | interface. Replaces the previous direct calls to claim. | |
67 | (htab_map_region): Use claim_memory. | |
68 | (htab_init_data_callback): Ditto. | |
69 | ||
70 | * hw_memory.c (hw_memory_instance_claim): Update function | |
71 | interface so that it is compatible with call-method. | |
72 | (hw_memory_instance_release): Ditto. | |
73 | (hw_memory_instance_methods): New table of memory specific | |
74 | methods claim and release. Add to the hw_memory_callback | |
75 | table. | |
76 | ||
77 | Tue Jul 30 21:26:14 1996 Andrew Cagney <[email protected]> | |
78 | ||
79 | * psim.c (psim_init): Back out of change to initial value of | |
80 | system->last_cpu. | |
81 | ||
82 | Tue Jul 30 21:12:24 1996 Andrew Cagney <[email protected]> | |
83 | ||
84 | * sim_callbacks.h (sim_io_printf_filtered): Replace | |
85 | printf_filtered with a local simulator specific version. Add | |
86 | #define printf_filtered to simplify updating of existing code. | |
87 | ||
88 | * sim_callbacks.h (sim_io_write_stdout, sim_io_read_stdin, | |
89 | sim_io_write_stderr): New functions. Read / write to the | |
90 | simulations stdin and stdout and stderr interfaces. Merge in code | |
91 | from hw_pal that previously handled async I/O. | |
92 | (sim_io_flush_stdoutput): Rename flush_stdoutput. Add #define | |
93 | flush_stdoutput to simplify updating of existing code. | |
94 | ||
95 | * hw_pal.c (scan_hw_pal, write_hw_pal, | |
96 | hw_pal_instance_write_callback): Use the new sim_io functions. | |
97 | ||
98 | * main.c: Implement standalone versions of the new sim_io | |
99 | functions. Include support for async I/O. | |
100 | * sim_calls.c: Ditto. This time using the gdb callback table. | |
101 | ||
102 | * std-config.h (CURRENT_STDIO, current_stdio): New macro. Set up | |
103 | stdio configuration so that it works in the same way as the rest | |
104 | of the simulation. | |
105 | * psim.c (psim_create): Initialize current_stdio from the device | |
106 | tree. | |
107 | * emul_generic.c (emul_add_tree_options): Enter a default value | |
108 | for use-stdio in the device tree. | |
109 | ||
110 | Fri Jul 26 19:43:03 1996 Andrew Cagney <[email protected]> | |
111 | ||
112 | * gen-idecode.c (print_jump): Was always generating a jump back to | |
113 | idecode. Only necessary at tail of semantic code. | |
114 | (print_jump): Was always setting the processor's cia, even during | |
115 | startup when the processor was still undefined. | |
116 | (print_jump): For safety, restart smp loop when cpu_nr >= nr_cpus, | |
117 | not just equal. | |
118 | ||
119 | * options.c (print_options): Add printing of WITH_REGPARM and | |
120 | WITH_STDCALL. | |
121 | ||
122 | * std-config.h (WITH_REGPARM, WITH_STDCALL): Provide default | |
123 | (disabled) values if not defined. | |
124 | ||
125 | Fri Jul 26 00:36:35 1996 Andrew Cagney <[email protected]> | |
126 | ||
127 | * ppc-cache-rules (cache): Change RS and RB to cache instead of | |
128 | compute. The block move instructions use them. | |
129 | ||
130 | * idecode_expression.h (FPSCR_SET): New macro, set specific FPSCR | |
131 | register. | |
132 | (CR_FIELD): New macro, extract specific CR register. | |
133 | (FPSCR_FIELD): New macro, extract specific FPSCR register. | |
134 | ||
135 | * registers.h (GPR): New macro, simplify accesses to GPR[i]. | |
136 | ||
137 | * bits.c (INSERTED): Covert INSERTED macro into a function. | |
138 | (EXTRACTED): Conditionally compile on correct bit size macro. | |
139 | ||
140 | * bits.h (BIT8): New macro, set a single bit in an 8 bit byte. | |
141 | ||
142 | * ppc-instructions: With hints from Paul Martin, type in missing | |
143 | some instruction semantics. Leave disabled for the moment. | |
144 | (Load Multiple Word): Ditto. | |
145 | (Store Multiple Word): Ditto. | |
146 | (Load String Word Immediate): Ditto. | |
147 | (Load String Word Indexed): Ditto. | |
148 | (Store String Word Immedate): Ditto. | |
149 | (Store String Word Indexed): Ditto. | |
150 | (Move to Condition Register from XER): Ditto. | |
151 | (Move From Condition Register): Ditto. | |
152 | (Move From FPSCR): Ditto. | |
153 | (Move to Condition Register from FPSCR): Ditto. | |
154 | (Move To FPSCR Field Immediate): Ditto. | |
155 | (Move To FPSCR Fields): Ditto. | |
156 | (Move To FPSCR Bit 0): Ditto. | |
157 | (Move To FPSCR Bit 1): Ditto. | |
158 | ||
159 | Thu Jul 25 22:10:40 1996 Andrew Cagney <[email protected]> | |
160 | ||
161 | * std-config.h (SEMANTICS_INLINE): By default, mask out the | |
162 | inlining of semantic functions from DEFAULT_INLINE. Almost all | |
163 | configurations call the semantic code via a pointer so there is | |
164 | little benefit. | |
165 | ||
166 | * std-config.h (ICACHE_INLINE): Ditto. | |
167 | ||
168 | Thu Jul 25 20:07:30 1996 Andrew Cagney <[email protected]> | |
169 | ||
170 | * configure.in (sim_regparm): Add configuration option for | |
171 | enabling GCC's regparm attribute. | |
172 | * (sim_stdcall): Add configuration option for enabling GCC's | |
173 | stdcall attribute. | |
174 | ||
175 | * Makefile.in (REGPARM_CFLAGS): Pass regparam configuration onto | |
176 | compilations. | |
177 | * (STDCALL_CFLAGS): Pass stdcall configuration onto compilations. | |
178 | ||
179 | * std-config.h (REGPARM): Extend construction of REGPARM macro so | |
180 | that it can include __stdcall__ function attribute. | |
181 | ||
182 | Wed Jul 24 19:04:20 1996 Andrew Cagney <cagney@sawnoff> | |
183 | ||
184 | * options.c (print_options): Include SUPPORT_INLINE in information | |
185 | dump. | |
186 | ||
187 | * gen-idecode.c (print_run_until_stop_body): Only generate loop | |
188 | termination test if creating idecode_run_until_stop. Push the | |
189 | loop termination test back into each alternative branch. | |
190 | ||
191 | Wed Jul 24 15:47:09 1996 Andrew Cagney <[email protected]> | |
192 | ||
193 | * gen-icache.c (print_icache_function): Have the cache function | |
194 | always update the cache_entries semantic and address fields. | |
195 | ||
196 | * gen-idecode.c (print_idecode_switch_illegal): Include a break | |
197 | when generating illegal instructions. This was commented out | |
198 | which is a hangover from looking a at switch statements generated | |
199 | using indirect jumps. | |
200 | ||
201 | Tue Jul 23 20:57:01 1996 Andrew Cagney <[email protected]> | |
202 | ||
203 | * igen.c (print_my_defines): Replaces print_define_my_index. | |
204 | Print both a definition for MY_INDEX and MY_PREFIX. | |
205 | * gen-icache.c (print_icache_function): Adjust. | |
206 | * gen-idecode.c (print_jump_insn): Adjust. | |
207 | * gen-semantics.c (print_c_semantic): Adjust. | |
208 | ||
209 | * gen-support.c (gen_support_h): Add optional include to created | |
210 | support.h so that, like cpu, it is optionally inlined for all | |
211 | modules that include it. | |
212 | * inline.h, inline.c: Adjust so that support.[hc] is handled the | |
213 | same as cpu.[hc]. | |
214 | ||
215 | * idecode_fields.h (LABEL, GOTO): Macro's that create a unique | |
216 | name for a lable and then branch to it. | |
217 | ||
218 | * ppc-instructions (convert_to_integer, Floating Round to | |
219 | Single-Precision, Floating Convert from Integer Doubleword): Use | |
220 | LABEL and GOTO instead of the recently added switch statements. | |
221 | ||
222 | Wed Jul 24 14:02:42 1996 Andrew Cagney <[email protected]> | |
223 | ||
224 | * gen-idecode.c (print_run_until_stop_body): Too many rparen in | |
225 | generated code. | |
226 | ||
227 | Tue Jul 23 20:57:01 1996 Andrew Cagney <[email protected]> | |
228 | ||
229 | * configure.in (--enable-sim-line-nr): Typo - sim_line-nr. | |
230 | * (--enable-sim-inline): Reorder patern matching of arguments so | |
231 | that SUPPORT=ALL_INLINE is reconized as *=* and not *_INLINE. | |
232 | ||
233 | * configure: rebuild. | |
234 | ||
235 | Mon Jul 22 23:25:08 1996 Andrew Cagney <[email protected]> | |
236 | ||
237 | * configure.in (--enable-sim-hardware, --enable-sim-packages): New | |
238 | configuration options. Let the user specify the packages or | |
239 | hardware devices that are to be included in the build. Makes it | |
240 | possible for user packages to be specified. | |
241 | ||
242 | * Makefile.in (tmp-pk, tmp-hw): Just use the list of packages and | |
243 | hardware instead of checking it using ls. configure.in should | |
244 | have taken care of any problems. | |
245 | (HW_SRC, HW_OBJ, PACKAGE_SRC, PACKAGE_OBJ): Set by configure. | |
246 | ||
247 | Mon Jul 22 22:38:59 1996 Andrew Cagney <[email protected]> | |
248 | ||
249 | * psim.c (psim_options): Enter the argument to the memory size | |
250 | option directly into the device tree. Was using atol() which is | |
251 | dangerously non portable. | |
252 | ||
253 | Mon Jul 22 22:17:08 1996 Andrew Cagney <[email protected]> | |
254 | ||
255 | * configure.in (icache): Extend icache flag to include an insn | |
256 | option. If specifyed the insn - aka instruction - is included in | |
257 | the instruction cache. Make this the default. | |
258 | * configure: re-generate. | |
259 | ||
260 | * igen.c (main), igen.h: Add option -S - inSn - for specifying | |
261 | that the instruction should be included in the icache. | |
262 | ||
263 | * gen-icache.c (print_icache_body): If enabled, output code to put | |
264 | the instruction into the icache. | |
265 | (print_icache_struct): If enabled, add insn to the icache struct. | |
266 | ||
267 | Mon Jul 22 20:46:12 1996 Andrew Cagney <[email protected]> | |
268 | ||
269 | * Makefile.in (BUILD_CFLAGS): Include -g when building the | |
270 | generators. | |
271 | ||
272 | Mon Jul 22 20:00:25 1996 Andrew Cagney <[email protected]> | |
273 | ||
274 | * emul_generic.c (emul_add_tree_options): Was incorrectly setting | |
275 | the strict-alignment option when hardwired for non-strict | |
276 | alignment. | |
277 | ||
30c87b55 MM |
278 | Sun Jul 21 21:18:05 1996 Andrew Cagney <[email protected]> |
279 | ||
280 | * gen-semantics.c: Make the my_index variable a macro MY_INDEX. | |
281 | ||
282 | * ppc-instructions: Adjust so that references are to MY_INDEX and | |
283 | not my_index. | |
284 | ||
285 | Sun Jul 21 21:18:05 1996 Andrew Cagney <[email protected]> | |
286 | ||
287 | * gen-idecode.c: Output the complete run_until_stop function | |
288 | instead of just the code to handle a single instruction issue. | |
289 | * : Have the generated idecode.c include inline.c (instead of psim.c). | |
290 | ||
291 | * std-config.h: Change psim.c so that it isn't inlined (as this is | |
292 | no longer needed). | |
293 | ||
294 | * psim.c (run_until_stop): Delete the old run_until_stop function | |
295 | instead calling the idecode_run and idecode_run_until_stop | |
296 | functions that gen-idecode.c is now creating. | |
297 | ||
298 | Sun Jul 21 21:18:05 1996 Andrew Cagney <[email protected]> | |
299 | ||
300 | * dgen.c: Maintenance - update to use new features found in lf.c. | |
301 | ||
302 | * filter_filename.c (filter_filename): Maintenance - make the | |
303 | string constant. | |
304 | ||
305 | Sun Jul 21 21:18:05 1996 Andrew Cagney <[email protected]> | |
306 | ||
307 | * debug.c (TRACE, ITRACE, DTRACE): Have GCC instead of CPP | |
308 | eliminate trace statements. | |
309 | ||
310 | * debug.c: Change trace format so that it is consistent | |
311 | (file:line-nr) with CC's error output. | |
312 | ||
313 | * gen-itable.c (itable_c_insn): Add the source file name and | |
314 | source line number to the instruction's informational entry. | |
315 | ||
316 | * debug.c (ITRACE): Use the itable (and my_index) to get the | |
317 | current instructions name and source line number. | |
318 | ||
319 | * gen-semantics.c, gen-icache.c: Adjust generated ITRACE calls to | |
320 | match new interface. | |
321 | ||
322 | * emul_bugapi.c (emul_bugapi_instruction_call): Adjust | |
323 | corresponding call to ITRACE so that it still matches. | |
324 | ||
325 | * idecode_expression.h (ALU_END, CR0_COMPARE): Use TRACE instead | |
326 | of ITRACE. The CPP line directives would have previously set the | |
327 | line-nr and file name so ITRACE isn't needed. | |
328 | ||
329 | Sun Jul 21 21:18:05 1996 Andrew Cagney <[email protected]> | |
330 | ||
331 | * gen-idecode.c (print_jump_until_stop_body): New function and | |
332 | idecode generation option. Instead of generating and calling | |
333 | separate functions containing the semantic and icache code | |
334 | generate a single monolythic function and use goto's (and GCC's | |
335 | indirect jump) to move between code blocks. | |
336 | ||
337 | * Makefile.in: Add sim_jump flag to those passed to igen. | |
338 | ||
339 | * configure.in: New option --enable-sim-jump (default disabled) | |
340 | ||
341 | * ppc-instructions: Eliminate any uses of labels and goto's. | |
342 | These result in duplicate declarations when a single flat function | |
343 | is being create. | |
344 | ||
345 | * ppc-opcode-jump: New file. Set of opcode rules useful when | |
346 | testing jumping idecodes. | |
347 | ||
348 | Sun Jul 21 21:18:05 1996 Andrew Cagney <[email protected]> | |
349 | ||
350 | * gen-idecode.c: Optionally include the semantic code for an | |
351 | instruction in the function that is doing the decoding. | |
352 | ||
353 | * igen.c: Add option (-C) to generate semantics in the instruction | |
354 | decode functions. | |
355 | ||
356 | * configure.in (--enable-sim-icache): Accept an option list such | |
357 | as 1024,define. Add a new choice to the list - semantic - which | |
358 | will cause igen to generate instruction decode functions that | |
359 | include the corresponding semantic code. | |
360 | ||
361 | Sun Jul 21 21:18:05 1996 Andrew Cagney <[email protected]> | |
362 | ||
363 | * configure.in: New option --enable-sim-line-nr (default enabled). | |
364 | Enable/disable the inclusion of CPP line directives in the | |
365 | generated files. Such directives refer back to the source files | |
366 | used when generating the simulator code. | |
367 | ||
368 | * Makefile.in (sim_line_nr): Pass to igen. | |
369 | ||
370 | Sun Jul 21 21:18:05 1996 Andrew Cagney <[email protected]> | |
371 | ||
372 | * igen.c (main): Revamp the options so that more letters are | |
373 | available. | |
374 | ||
375 | * configure.in: Adjust to match igen's revamped options | |
376 | ||
377 | Sun Jul 21 21:18:05 1996 Andrew Cagney <[email protected]> | |
378 | ||
379 | * Makefile.in (pk.h, hw.h): Rewrite depenencies for hw.h (etc) so | |
380 | that they use the same technique as igen (ie a dummy targets | |
381 | tmp-pk and tmp-hw are created). | |
382 | ||
383 | Mon Jun 24 22:28:00 1996 Andrew Cagney <[email protected]> | |
384 | ||
385 | * Makefile.in (BUILD_CFLAGS): Include WARNING_CFLAGS. | |
386 | ||
387 | Wed Jun 19 21:45:28 1996 Andrew Cagney <[email protected]> | |
388 | ||
389 | * ld-cache.[hc], ld-decode.[hc], ld-insn.[hc]: New files. Separate | |
390 | out the loading of each of the tables from the rest of igen. | |
391 | * Makefile.in: Adjust. | |
392 | * igen.c: Adjust. | |
393 | ||
394 | * gen-icache.[hc], gen-idecode.[hc], gen-itable.[hc], | |
395 | gen-model.[hc], gen-semantics.[hc]: New files. Separate out the | |
396 | code creating each separate set of generated files. | |
397 | * Makefile.in: Adjust. | |
398 | * igen.c: Adjust. | |
399 | ||
400 | * gen-support.[ch]: New files. Output the support functions (found | |
401 | in the ppc-instructions file) into a separate file. | |
402 | * Makefile.in: Add. | |
403 | * inline.h, inline.c: Add. | |
404 | * std-config.h: Add. | |
405 | ||
406 | * ld-cache.c: Re-design the cache table format. | |
407 | * ppc-cache-rules: Update to new format. | |
408 | ||
409 | * ld-decode.c: Re-design the decode table format. | |
410 | * ppc-opcode-simple: Update to new format | |
411 | * ppc-opcode-complex: Ditto | |
412 | * ppc-opcode-flat: Ditto | |
413 | ||
414 | * filter.h, filter.c: New files. Separate the opcode filter table | |
415 | reading code from the rest of igen.c. Re-design the filter so that | |
416 | it works inclusivly not exclusivly. | |
417 | * igen.c: Remove the opcode filter table loading code. | |
418 | * Makefile.in (filter.o): Adjust | |
419 | * configure.in: Adjust filter flag so that default includes 32bit | |
420 | and floating point. | |
421 | * ppc-instructions: Clean up filter fields so that only in use | |
422 | entries are specifed (ie delete `be'). | |
423 | ||
424 | * misc.c (name2i, i2name): New function. Map between a string and | |
425 | an integer value. | |
426 | ||
427 | Mon Jun 17 20:08:03 1996 Andrew Cagney <[email protected]> | |
428 | ||
429 | * sim_calls.c (sim_close): If simulator not created, skip printing | |
430 | of run information. | |
431 | ||
432 | Mon Jun 17 20:08:03 1996 Andrew Cagney <[email protected]> | |
433 | ||
434 | * registers.c (register_description): Typo, insns not insn. | |
435 | ||
436 | * ppc-instructions (model_get_number_of_stalls): New model function, | |
437 | returns number of stalls for the specified processor. | |
438 | * psim.c (psim_read_register): Add call to new function | |
439 | model_get_number_of_stalls(). | |
440 | ||
441 | * ppc-instructions (model_get_number_of_cycles): New model function, | |
442 | returns number of stalls for the specified processor. | |
443 | * psim.c (psim_read_register): Add call to new function | |
444 | model_get_number_of_cycles(). | |
445 | ||
446 | Fri Jun 14 00:11:56 1996 Andrew Cagney <[email protected]> | |
447 | ||
448 | * device_table.h: Don't pass the parent device into a devices | |
449 | create function. This makes the create function consistent with | |
450 | the documentation. | |
451 | * device.c (device_template_create_device): Ditto | |
452 | * hw_pal.c (hw_pal_create): Ditto | |
453 | * hw_core.c (hw_core_create): Ditto | |
454 | * hw_vm.c (hw_vm_create): Ditto | |
455 | * hw_disk.c (hw_disk_create): Ditto | |
456 | * hw_nvram.c (hw_nvram_create): Ditto | |
457 | * hw_memory.c (hw_memory_create): Ditto | |
458 | * hw_cpu.c (hw_cpu_create): Ditto. | |
459 | ||
460 | * device.c (split_find_device): Allow a null initial parent device. | |
461 | (device_template_create_device): Ditto. | |
462 | ||
463 | * device.c (device_create_from): Make local (static) only used | |
464 | within device.c. | |
465 | * device_table.h: typedef device_callbacks moved here (from | |
466 | device.h) where it belongs. | |
467 | ||
468 | * hw_core.c: New file. Implements just the core device using the | |
469 | core object. | |
470 | ||
471 | * corefile.c: Moved all core device functions into the new | |
472 | hw_core.c file. core_device_create() disapears. | |
473 | ||
474 | * psim.c (psim_tree): Use device_tree_add_parsed() to create the | |
475 | core device. | |
476 | ||
477 | Thu Jun 13 00:09:29 1996 Andrew Cagney <[email protected]> | |
478 | ||
479 | * hw_init.c: Correct typo in comment. | |
480 | ||
481 | * corefile.c (core_init): Remove any remaining references to a | |
482 | default map. | |
483 | (core_map_find_mapping): Ditto. | |
484 | ||
485 | Wed Jun 12 22:30:32 1996 Andrew Cagney <[email protected]> | |
486 | ||
487 | * corefile.c (core_init): Make function global so that other | |
488 | devices are able to use the full core object. | |
489 | ||
490 | * corefile.c (core_create, core_from_device): Break core_create | |
491 | into two functions. The first creates a core object, the second | |
492 | returns the core object associated with a core device. | |
493 | ||
494 | * corefile.c (core_device_create): Use core_create to make the | |
495 | core object. | |
496 | ||
497 | * psim.c (psim_create): Use core_from_device() instead of | |
498 | core_create(). | |
499 | ||
500 | * device.c (device_template_create_device): Make static as only | |
501 | needed by functions internal to device.c. | |
502 | ||
503 | Fri Jun 7 23:47:18 1996 Andrew Cagney <[email protected]> | |
504 | ||
505 | * ppc-opcode-test-2: Remove description of fields. | |
506 | * ppc-opcode-complex: Ditto | |
507 | * ppc-opcode-flat: Ditto | |
508 | * ppc-opcode-simple: Ditto | |
509 | * ppc-opcode-stupid: Ditto | |
510 | * ppc-opcode-test-1: Ditto | |
511 | * ppc-cache-rules: Ditto | |
512 | ||
513 | * igen.c: Add description of files as a comment at the front. | |
514 | ||
515 | Wed Jun 26 12:50:33 1996 Michael Meissner <[email protected]> | |
516 | ||
517 | * configure.in: Check for whether the termios and termio | |
518 | structures are really defined, and whether or not, they define the | |
519 | c_line field. | |
520 | * configure: Regenerate. | |
521 | ||
522 | * Makefile.in ({,TERMIO_}CFLAGS): Add TERMIO_CFLAGS options set by | |
523 | configure. | |
524 | ||
525 | * emul_unix.c: Various changes to allow for building on systems | |
526 | with different termio and termios structures. If host has both | |
527 | termio and termios, just use termios. No longer include | |
528 | sys/ioctl.h. | |
529 | ||
78c09e4a JM |
530 | Wed Jun 26 12:26:55 1996 Jason Molenda ([email protected]) |
531 | ||
532 | * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir, | |
533 | INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values. | |
534 | (docdir): Removed. | |
535 | * configure.in (AC_PREREQ): autoconf 2.5 or higher. | |
536 | (AC_PROG_INSTALL): Added. | |
537 | * configure: Rebuilt. | |
538 | ||
30c87b55 MM |
539 | Wed Jun 5 23:53:42 1996 Andrew Cagney <[email protected]> |
540 | ||
541 | * corefile.h: Rewrite documentation so that it can be extracted and | |
542 | converted into texinfo (and hence ready for translation into html, | |
543 | tex or nroff). | |
544 | * device.h: Ditto | |
545 | ||
78c09e4a JM |
546 | Thu Jun 6 09:52:37 1996 Michael Meissner <[email protected]> |
547 | ||
548 | * hw_disk.c (SEEK_SET): If SEEK_SET is not defined, define as 0. | |
549 | ||
550 | Wed Jun 5 11:46:52 1996 Andrew Cagney <cagney@puddin> | |
551 | ||
552 | * hw_disk.c: Include <unistd.h> if available. Under SunOS, that | |
553 | is the source of SEEK_SET. | |
554 | ||
8477437c MM |
555 | Wed Jun 5 01:39:07 1996 Andrew Cagney <[email protected]> |
556 | ||
557 | * psim.c (psim_options): Correct type of dummy arguments being | |
558 | passed to a device_ioctl call. | |
559 | ||
560 | * hw_init.c (hw_data_init_data_callback): Adjust printf arguments. | |
561 | (write_stack_arguments): Ditto. | |
562 | * hw_trace.c: Instance callback entry no longer a table. | |
563 | ||
564 | Wed Jun 5 01:39:07 1996 Andrew Cagney <[email protected]> | |
565 | ||
566 | * emul_unix.c (do_unix_umask): Cast printf argument. | |
567 | (convert_to_linux_termios): Use LINUX_VSWTC not LINUX_VSWCH | |
568 | ||
5b18a1a0 MM |
569 | Mon Jun 3 15:02:04 1996 Michael Meissner <[email protected]> |
570 | ||
8477437c | 571 | * hw_init.c (update_for_binary_section): Abort if we find an |
fe098bf4 MM |
572 | .interp section, which indicates the need for shared libraries to |
573 | be loaded. | |
574 | ||
8477437c MM |
575 | Mon Jun 3 15:02:04 1996 Michael Meissner <[email protected]> |
576 | ||
5b18a1a0 MM |
577 | * emul_unix.c (do_unix_{time,gettimeofday,getrusage}): Add support |
578 | for time, gettimeofday, and getrusage system calls. | |
579 | ({solaris,linux}_descriptors): Add new system calls. | |
580 | (do_get{,e}{uid,gid}): Use gid_t/uid_t types. | |
581 | (do_get{,p}pid): Use pic_t types. | |
582 | ||
583 | * configure.in (AC_TYPE_{GETGROUPS,SIGNAL}): Define. | |
584 | (AC_TYPE_{MODE,OFF,PID,SIZE,UID}_T): Define. | |
585 | * config{.in,ure}: Regenerate. | |
586 | ||
8477437c MM |
587 | Mon Jun 3 23:19:57 1996 Andrew Cagney <[email protected]> |
588 | ||
589 | * emul_netbsd.c (emul_netbsd_create): Use the more specific names | |
590 | `ppc-elf' and `ppc-xcoff' for the stack-type. | |
591 | * emul_unix.c (emul_unix_create): Ditto. | |
592 | * emul_bugapi.c (emul_bugapi_create): Ditto. | |
593 | * hw_init.c: Reconize the new names. | |
594 | ||
595 | * emul_unix.c (do_unix_break): Adjust so that the updated ioctl | |
596 | call is used (no system parameter). | |
597 | ||
88f1eac4 MM |
598 | Sun Jun 2 11:21:17 1996 Michael Meissner <[email protected]> |
599 | ||
600 | * emul_unix.{h,c}: New files to provide Solaris and Linux system | |
601 | call emulations. | |
602 | ||
603 | * Makefile.in (LIB_{SRC,OBJ}): Add emul_unix.{c,o}. | |
604 | (os_emul.o): Depend on emul_unix.h. | |
605 | (emul_unix.o): New dependency. | |
606 | ||
607 | * configure.in (--enable-sim-alignment): Add 0|default to mean set | |
608 | alignment to 0, which means use appropriate alignment for mode. | |
609 | (AC_CHECK_FUNCS): Add new functions needed by emul_unix.c. | |
610 | (AC_CHECK_HEADERS): Add new include files needed by emul_unix.c. | |
611 | * config.in: Regenerate. | |
612 | * configure: Regenerate. | |
613 | ||
614 | * emul_generic.c (emul_write2_status): New function to return | |
615 | results in r3 and r4 for Solaris system calls. | |
616 | (emul_do_system_call): If the system call is not support, but | |
617 | there is a string for the system call name, print out the string | |
618 | instead of the system call number. | |
619 | ||
620 | * emul_generic.h (emul_write2_status): Declare it. | |
621 | ||
622 | * emul_netbsd.c: Use /* */ around comment on #endif. | |
623 | ||
624 | * os_emul.c: Include emul_unix.h. | |
625 | (os_emulations): Add emulations for Solaris, and Linux. | |
626 | ||
627 | * psim.c (psim_usage): Add message about solaris, linux | |
628 | emulations. | |
629 | ||
8477437c MM |
630 | Thu May 30 00:00:10 1996 Andrew Cagney <[email protected]> |
631 | ||
632 | * hw_iobus.c: Tidy up notes so that they can be auto-extracted. | |
633 | ||
634 | * README: Correct PSIM's title | |
635 | ||
636 | Wed May 29 23:50:26 1996 Andrew Cagney <[email protected]> | |
637 | ||
638 | * basics.h: New global type object_disposition, used to indicate | |
639 | the status of objects when things are restarted. | |
640 | ||
641 | Fri May 17 17:28:52 1996 Andrew Cagney <[email protected]> | |
642 | ||
643 | * device_table.h: Change the interrupt descriptor structure so | |
644 | that it includes an additional member - an upper bound on the | |
645 | interrupts by that name. | |
646 | ||
647 | * device.c (device_interrupt_decode): Allow a range of interrupt | |
648 | ports (eg rst0 .. rst6) if the port descriptors bound is non zero. | |
649 | ||
650 | * device.c (device_tree_print_device): Include a list of valid | |
651 | interrupt ports when listing supported devices. | |
652 | ||
653 | * device.h, device.c (device_child_interrupt_*): Delete. Not used. | |
654 | ||
655 | * emul_generic.c (emul_add_tree_hardware): Modify the creation of | |
656 | the interrupt net so that it uses int0 .. intN. | |
657 | ||
658 | Tue May 14 23:03:53 1996 Andrew Cagney <[email protected]> | |
659 | ||
660 | * device.h, device.c (device_ioctl): Drop the system argument. | |
661 | Devices can not obtain this using the device_system() call. | |
662 | * device_table.h: Adjust accordingly. | |
663 | * hw_*.c: Adjust accordingly. | |
664 | * emul_netbsd.c (do_break): Adjust call to vm device accordingly. | |
665 | * psim.c (psim_options): Use a device_ioctl call to force the | |
666 | hw_trace device to update the trace options. | |
667 | * hw_trace.c: Replace the init function with an ioctl call. Adjust | |
668 | doc accordingly. | |
669 | ||
670 | * psim.c (psim_init): Re-order initialization so that the | |
671 | os-emulation is initialized after the device tree. Without this, | |
672 | os-emul's are not able to create instances or access properties | |
673 | that contain an instance handle. | |
674 | ||
675 | * device.h, device.c (device_add_*_property): Make these functions | |
676 | internal to device.c. The user has access to the more generic | |
677 | device_tree_add_parsed function. Differentiate between the initial | |
678 | and current value for each property. | |
679 | * (clean_device_properties): New function that deletes any | |
680 | properties created after the start of a simulation and restores | |
681 | the initial value of any others (ignoring ihandles). | |
682 | * (init_device_properties): (Re)Initialize any properties that | |
683 | contain ihandles. create | |
684 | ||
685 | * (device_tree_init): Include calls to clean the device tree's | |
686 | properties and then initialize them. Document this in the device.h | |
687 | file. | |
688 | ||
689 | Mon May 6 17:36:15 1996 Andrew Cagney <[email protected]> | |
690 | ||
691 | * interrupts.c (decrementer_interrupt): Always pend a decrementer | |
692 | interrupt even if it is not yet possible to deliver it. | |
693 | ||
694 | Wed May 1 12:26:51 1996 Andrew Cagney <cagney@benjimen> | |
695 | ||
696 | * mon.h, mon.c (mon_get_number_of_insns): Make this externally | |
697 | visable adjusting the arguments so that the interface is correct. | |
698 | (mon_print_info): Adjust calls. | |
699 | ||
700 | * registers.h, registers.c (register_description): Add phony | |
701 | cycle, insn and stall registers. | |
702 | ||
703 | * psim.c (psim_read_register): Return nr of instructions for given | |
704 | processor. | |
705 | ||
706 | Tue Apr 30 22:09:09 1996 Andrew Cagney <[email protected]> | |
707 | ||
708 | * hw_htab.c: New file. Extract contents from disk_table.c. | |
709 | Contains a device that, during initialization will create a | |
710 | PowerPC htab in memory. | |
711 | * hw_register.c: New file. Extract contents from disk_table.c. | |
712 | Contains a device that, during initialization, will parse its | |
713 | property list and use that to initialize various processor | |
714 | registers (not target specific). | |
715 | * hw_vm.c: New file. Extract contents from disk_table.c. Contains | |
716 | a device that handles accesses to invalid virtual memory addresses | |
717 | (in user mode). | |
718 | * hw_init.c: New file. Extract contents from disk_table.c. Misc | |
719 | devices that can initialize memory from a file. | |
720 | * hw_trace.c: New file. Extract contents from disk_table.c. | |
721 | Configure trace options from property values. | |
722 | ||
723 | * Makefile.in (hw_htab.o, hw_register.o, hw_vm.o, hw_init.o, | |
724 | hw_trace.c): Add new device files. | |
725 | ||
726 | * device_table.c: Remove above code, now in separate independant | |
727 | files. | |
728 | ||
729 | Fri Apr 26 00:00:07 1996 Andrew Cagney <[email protected]> | |
730 | ||
731 | * hw_disk.c: New file. Disk and CDROM device. | |
732 | ||
733 | * Makefile.in (hw_disk.o): Add device hw_disk.c. | |
734 | ||
735 | * pk_disklabel.c: New file. Implement the miss-named disk-label | |
736 | package. | |
737 | ||
738 | * Makefile.in (pk.h): Create the file pk.h that contains a list of all | |
739 | the packages. | |
740 | ||
741 | * Makefile.in (hw.h, hw.c): Add dependancy on Makefile so that | |
742 | they are re-created when the makefile is updated. | |
743 | ||
744 | * emul_generic.c (emul_add_tree_hardware): Add a disk device | |
745 | (below the iobus) to the device tree. Include an ihandle of | |
746 | the disk as /chosen/disk. | |
747 | ||
748 | * emul_bugapi.c (emul_bugapi_create): Don't initialize the input, | |
749 | output and (new) disk handles yet. | |
750 | * (emul_bugapi_init): Initialize the input, output (and just added) | |
751 | disk ihandles here. | |
752 | * (emul_bugapi_do_diskio): New. Performs disk i/o (well at least | |
753 | what I think the behavour is). | |
754 | * emul_bugapi.c (emul_bugapi_instruction_call): Add hook to disk | |
755 | i/o bug call. For RETURN call, exit using gpr[3]'s status even | |
756 | though this isn't part of the spec - makes it possible for machine | |
757 | code to signal the aporting of a simulation run. | |
758 | ||
759 | * emul_chirp.c (chirp_emul_call_method): Add support for the | |
760 | claim/release methods. | |
761 | * (chirp_emul_exit): Add an optional exit status argument to | |
762 | the exit method. Makes it possible for chirp emul simulations | |
763 | to abort upon an error. | |
764 | * device.h, device.c (device_instance_claim, | |
765 | device_instance_release): New methods for claiming and releasing | |
766 | memory. | |
767 | * hw_memory.c: add claim and release memory methods. | |
768 | * hw_*: Use the claim memory method when allocating physical | |
769 | memory. | |
770 | ||
771 | Thu Apr 18 23:38:10 1996 Andrew Cagney <[email protected]> | |
772 | ||
773 | * hw_nvram.c (hw_nvram_update_clock): Use the current not previous | |
774 | time when updating the clock. | |
775 | ||
776 | * hw_nvram.c: Tidy up documentation | |
777 | ||
f64dbcdd MM |
778 | Fri May 24 10:08:10 1996 Michael Meissner <[email protected]> |
779 | ||
0c18e3f0 MM |
780 | * configure.in (AC_STRUCT_ST_{BLKSIZE,BLOCKS,RDEV}): Use these |
781 | macros to determine whether or not the appropriate st_<xxx> fields | |
782 | exist in the stat structure. | |
783 | (AC_CHECK_FUNCS): Check for all unix system calls used, except for | |
784 | the real basic ones like open, read, write, etc. | |
785 | * config{.in,ure}: Regenerate. | |
786 | ||
787 | * emul_netbsd.c: Add support for missing system calls, and/or | |
788 | missing stat fields. | |
119b85f6 MM |
789 | (MAXPATHLEN): Undefine if including unistd.h, since sys/param.h |
790 | might define it. | |
0c18e3f0 | 791 | |
f64dbcdd MM |
792 | * hw_pal.c (WITH_STDIO): Redefine if O_NDELAY, F_GETFL, or F_SETFL |
793 | are not defined. | |
794 | (scan_hw_pal): Do not cause syntax error if O_NDELAY, F_GETFL, or | |
795 | F_SETFL not defined. | |
796 | ||
797 | Tue May 21 17:24:45 1996 Michael Meissner <[email protected]> | |
798 | ||
799 | * emul_netbsd.c (write_stat): Don't convert st_blocks unless the | |
800 | host is netbsd. | |
801 | ||
d61eb812 MM |
802 | Thu May 16 10:56:45 1996 Michael Meissner <[email protected]> |
803 | ||
804 | * configure.in (AC_CHECK_HEADERS): Add sys/ioctl.h. | |
805 | * config{.in,ure}: Regenerate. | |
806 | * emul_netbsd.c: If HAVE_SYS_IOCTL_H is not defined, don't include | |
807 | sys/ioctl.h. | |
808 | ||
048668d3 MM |
809 | Tue May 7 17:28:12 1996 Michael Meissner <[email protected]> |
810 | ||
811 | * hw_pal.c (hw_pal_instance_read_callback): Remove unused | |
812 | variable. | |
813 | ||
814 | * misc.c ({,target_}a2i): Rewrite to not use strtoul. | |
815 | ||
816 | * Makefile.in ({spreg,misc}.o): Add dependency on .c file. | |
817 | ({i,d}gen): Don't link in liberity. Use BUILD_LIBS instead of | |
818 | LIBS. | |
819 | ||
1ed0c0e7 MM |
820 | Mon May 6 11:31:43 1996 Michael Meissner <[email protected]> |
821 | ||
822 | * hw_pal.c (hw_pal_instance_read_callback): If using stdio, use | |
823 | fgets to read line. If not using stdio, do a simple blocking read | |
824 | of len bytes. | |
825 | ||
08dc78ad MM |
826 | Fri May 3 15:07:42 1996 Michael Meissner <[email protected]> |
827 | ||
828 | * Makefile.in: Correctly build simulator for build machine != host | |
829 | machine. | |
830 | ||
a72d2509 | 831 | Tue Apr 30 18:46:05 1996 Michael Meissner <[email protected]> |
997f0ee9 | 832 | |
a72d2509 MM |
833 | * configure.in (--enable-hostendian): Rework so the default uses |
834 | the AC_C_BIGENDIAN results. Only run AC_C_BIGENDIAN if not cross | |
835 | compiling. | |
836 | * configure: Regenerate. | |
837 | ||
838 | * sim-endian.h: Add more tests for host endian to support more | |
839 | platforms in a cross compilation environment. | |
64646bd3 | 840 | |
a72d2509 | 841 | Wed Apr 17 14:38:06 1996 Michael Meissner <[email protected]> |
64646bd3 | 842 | |
a72d2509 MM |
843 | * hw_pal.c ({scan,write}_hw_pal): If WITH_STDIO == DO_USE_STDIO, |
844 | use stdio, instead of unpended read/printf_filtered. | |
845 | (hw_pal_instance_write_callback): If WITH_STDIO == DO_USE_STDIO, | |
846 | flush stdout after writing the characters. | |
d6103e8e | 847 | |
6740925b MM |
848 | * options.c (print_options): Print out WITH_STDIO. |
849 | ||
d6103e8e MM |
850 | * Makefile.in (STDIO_CFLAGS): Pass on result of @sim_stdio@ |
851 | configuration variable. | |
852 | (CONFIG_CFLAGS): Include STDIO_CFLAGS. | |
a72d2509 MM |
853 | (hw.{c,h}): Allow for source dir != build dir, and for HW_SRC |
854 | files to contain directory pieces. | |
d6103e8e MM |
855 | |
856 | * std-config.h (DO{,NT}_USE_STDIO): New flags for whether we | |
857 | should use stdio for console input. | |
858 | (WITH_STDIO): If not defined, define as DONT_USE_STDIO. | |
859 | ||
860 | * configure.in (--enable-sim-stdio): Add new switch to control | |
861 | whether stdio is used for console I/O. | |
862 | * configure: Regenerate. | |
863 | ||
a72d2509 MM |
864 | * interrupts.c (external_interrupt): Declare it to be |
865 | INLINE_INTERRUPTS, not INLINE_CPU. | |
1dc7c0ed | 866 | |
a72d2509 | 867 | Mon Apr 15 23:30:56 1996 Andrew Cagney <[email protected]> |
1dc7c0ed | 868 | |
a72d2509 MM |
869 | * events.c (insert_event_entry): Allow events to be scheduled |
870 | *NOW* (at delta time 0). Add assertions to clarify behavour of | |
871 | event queue. | |
1dc7c0ed | 872 | |
a72d2509 MM |
873 | * events.c (update_time_from_event): New function. Calculates the |
874 | number of ticks from the next event. Use this. | |
1dc7c0ed | 875 | |
a72d2509 | 876 | Sun Apr 14 21:39:45 1996 Andrew Cagney <[email protected]> |
1dc7c0ed | 877 | |
a72d2509 MM |
878 | * emul_netbsd.c (do_break): Return 0 if success (instead of |
879 | adjusted break). | |
1dc7c0ed | 880 | |
a72d2509 MM |
881 | * device_table.c (vm_ioctl_callback): Don't return adjusted break |
882 | (isn't needed). | |
1dc7c0ed | 883 | |
a72d2509 | 884 | Sun Apr 14 21:32:41 1996 Andrew Cagney <[email protected]> |
1dc7c0ed | 885 | |
a72d2509 MM |
886 | * device_table.h: Change type of the device ioctl so that it |
887 | returns an int (status). | |
888 | * device.h (device_ioctl): Ditto. | |
889 | * device.c (device_ioctl): Ditto. | |
1dc7c0ed | 890 | |
a72d2509 MM |
891 | * device_table.c (stack_ioctl_callback): Return 0 status. |
892 | (vm_ioctl_callback): Ditto | |
1dc7c0ed | 893 | |
8477437c MM |
894 | Sat Apr 13 00:00:24 1996 Andrew Cagney <[email protected]> |
895 | ||
896 | * emul_netbsd.c (do_read): Correctly set the return value. | |
897 | (do_getpid): Ditto. | |
898 | (do_getuid): Ditto. | |
899 | (do_geteuid): Ditto. | |
900 | (do_dup): Ditto. | |
901 | (do_getegid): Ditto. | |
902 | (do_getgid): Ditto. | |
903 | (do_sigprocmask): Ditto. | |
904 | (do_umask): Ditto. | |
905 | (do_dup2): Ditto. | |
906 | (do_gettimeofday): Ditto. | |
907 | (do_getrusage): Ditto. | |
908 | (do_fstat): Ditto. | |
909 | (do_stat): Ditto. | |
910 | (do_lseek): Ditto. | |
911 | (do___sysctl): Ditto. | |
912 | ||
913 | Fri Apr 12 20:56:47 1996 Andrew Cagney <[email protected]> | |
914 | ||
915 | * device_table.c (vm_ioctl_callback): Don't access the processor | |
916 | registers directly, instead leave it to the caller to handle this. | |
917 | ||
918 | * emul_netbsd.c (do_break): Which calls vm_ioctl_callback to | |
919 | perform a break. Pass in the new break value and set the | |
920 | registers according to the result. | |
921 | ||
922 | * emul_generic.c (emul_write_status): Change so that r3 contains | |
923 | either status or errno and failure is indicated by SO. | |
924 | ||
925 | Thu Apr 4 23:03:38 1996 Andrew Cagney <[email protected]> | |
926 | ||
927 | * emul_bugapi.c (emul_bugapi_create): More strict check of OEA | |
928 | address. | |
929 | ||
a72d2509 | 930 | Thu Apr 4 20:58:05 1996 Andrew Cagney <[email protected]> |
1dc7c0ed | 931 | |
a72d2509 MM |
932 | * interrupts.h (interrupts): New structure contains state of |
933 | pending interrupts. | |
1dc7c0ed | 934 | |
a72d2509 MM |
935 | * cpu.c (cpu_interrupts): New function. Pending interrupt status |
936 | in the cpu and grant access to it. Add interrupts to cpu | |
937 | structure. | |
1dc7c0ed | 938 | |
a72d2509 | 939 | Fri Mar 29 22:09:25 1996 Andrew Cagney <[email protected]> |
1dc7c0ed | 940 | |
a72d2509 MM |
941 | * device.c (device_tree_add_parsed): Check that the creation of a |
942 | device instance worked before using it. | |
1dc7c0ed | 943 | |
a72d2509 MM |
944 | * psim.c (psim_halt): Remove cia argument from psim_halt. This |
945 | function does not save the CIA so do not pass it in. | |
1dc7c0ed | 946 | |
a72d2509 | 947 | Fri Mar 29 21:30:56 1996 Andrew Cagney <[email protected]> |
1dc7c0ed | 948 | |
a72d2509 MM |
949 | * hw_pal.c (hw_pal): Merge the halt and icu and console devices |
950 | found in device_table.c into a single hack pal. | |
1dc7c0ed | 951 | |
a72d2509 | 952 | * device_table.c (halt, icu, console): Delete. |
1dc7c0ed | 953 | |
a72d2509 | 954 | * Makefile.in (hw_pal.o): New dependency. |
1dc7c0ed | 955 | |
a72d2509 MM |
956 | * emul_generic.c (emul_add_tree_hardware): Re-arange device tree |
957 | so that it uses the pal instead of the icu/halt/console devices. | |
958 | Wire the pal's interrupt ports up to the cpu nodes. | |
1dc7c0ed | 959 | |
a72d2509 | 960 | Fri Mar 29 20:17:17 1996 Andrew Cagney <[email protected]> |
1dc7c0ed | 961 | |
a72d2509 MM |
962 | * hw_iobus.c (hw_iobus_attach_address_callback): Move from |
963 | device_table.c to here. | |
1dc7c0ed | 964 | |
a72d2509 | 965 | * Makefile.in (hw_iobus.o): New dependency. |
1dc7c0ed | 966 | |
8477437c MM |
967 | Fri Mar 29 12:17:58 1996 Andrew Cagney <[email protected]> |
968 | ||
969 | * emul_bugapi.c (_os_emul_data): Add fields for output, input. | |
970 | (emul_bugapi_create): Create input, output from /chosen/stdin and | |
971 | /chosen/stdout. | |
972 | (emul_bugapi_do_{read,write}): Switch to use device_instance | |
973 | interface. | |
974 | (emul_bugapi_instruction_call): Change calls to | |
975 | emul_bugapi_do_{read,write} to pass device instance argument. | |
976 | ||
977 | Tue Mar 26 14:57:58 1996 Michael Meissner <[email protected]> | |
978 | ||
979 | * igen.c (idecode_switch_end): Fix 2/26 change so that an extra | |
980 | default is not written out if a default was already written. | |
981 | ||
982 | * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to | |
983 | size cooked_buf, not sizeof natural_word, since floating point | |
984 | registers are 8 bytes. | |
985 | ||
a72d2509 | 986 | Mon Mar 25 22:07:13 1996 Andrew Cagney <[email protected]> |
1dc7c0ed | 987 | |
a72d2509 | 988 | * configure: Regenerate with autoconf 2.9. |
1dc7c0ed | 989 | |
a72d2509 | 990 | Thu Mar 21 00:14:26 1996 Andrew Cagney <[email protected]> |
1dc7c0ed | 991 | |
a72d2509 | 992 | * device_table.h: Always include string headers. |
1dc7c0ed | 993 | |
8477437c MM |
994 | Thu Mar 21 00:06:09 1996 Andrew Cagney <[email protected]> |
995 | ||
996 | * main.c (error): Be careful to not try to print out statistics | |
997 | when the simulation was never created. | |
998 | ||
a72d2509 | 999 | Sun Mar 17 22:40:57 1996 Andrew Cagney <[email protected]> |
1dc7c0ed | 1000 | |
a72d2509 MM |
1001 | * basics.h: Move the event queue's definition to here so that it |
1002 | can be refered to globally with out importing all of events.h. | |
1dc7c0ed | 1003 | |
a72d2509 MM |
1004 | * psim.h, psim.c (psim_event_queue): New function. Grant access |
1005 | to the simulation event queue. Will make this the single point of | |
1006 | access (there is after all only one event queue in the | |
1007 | simulation). | |
1dc7c0ed | 1008 | |
a72d2509 MM |
1009 | * cpu.c (cpu_create): Use psim_event_queue to obtain the event |
1010 | queue instead of it being passed in. No longer allow access to | |
1011 | the cpu's copy of the event queue. | |
1dc7c0ed | 1012 | |
a72d2509 | 1013 | Sun Mar 17 22:40:57 1996 Andrew Cagney <[email protected]> |
1dc7c0ed | 1014 | |
a72d2509 MM |
1015 | * events.h, events.c (event_handler): Remove event_queue from |
1016 | arguments passed to an event handler. That argument is redundant | |
1017 | - the `data' should refer to a data structure that contains the | |
1018 | event queue if queing is needed. | |
1dc7c0ed | 1019 | |
a72d2509 | 1020 | * cpu.c (cpu_decrement_event): adjust |
1dc7c0ed | 1021 | |
a72d2509 | 1022 | * events.c (event_queue_process): adjust |
1dc7c0ed | 1023 | |
a72d2509 | 1024 | Sun Mar 17 22:40:57 1996 Andrew Cagney <[email protected]> |
1dc7c0ed | 1025 | |
a72d2509 MM |
1026 | * device.h, device.c (device_system): New, returns a handle for |
1027 | the system given the device. | |
1dc7c0ed | 1028 | |
a72d2509 MM |
1029 | * device.c (device_address_init): Store a pointer back to the |
1030 | system in each devices node. | |
1dc7c0ed | 1031 | |
a72d2509 MM |
1032 | * device_table.h: Don't pass `system' into each device when it is |
1033 | being initialized, this is now available using device_system(me). | |
1dc7c0ed | 1034 | |
a72d2509 | 1035 | * device.c (device_address_init, device_data_init): Adjust. |
4f965b81 | 1036 | |
a72d2509 MM |
1037 | * hw_cpu.c, hw_nvram.c, hw_memory.c, hw_eeprom.c, device_table.c: |
1038 | Adjust. | |
4f965b81 | 1039 | |
a72d2509 | 1040 | Sun Mar 17 22:40:57 1996 Andrew Cagney <[email protected]> |
4f965b81 | 1041 | |
a72d2509 MM |
1042 | * interrupts.c (decrementer_interrupt, external_interrupt): |
1043 | Remember that an interrupt wasn't delivered so that it can be | |
1044 | tried again later. | |
4f965b81 | 1045 | |
a72d2509 MM |
1046 | * interrupts.c (check_masked_interrupt): New function. (re) |
1047 | checks for the posibility that a recent change to the MSR may have | |
1048 | made it possible to deliver an interrupt that was previously | |
1049 | masked be the EE bit. | |
4f965b81 | 1050 | |
a72d2509 MM |
1051 | * ppc-instructions (mtmsr, mfmsr, rfi): Check for posibility of |
1052 | a pending interrupt being delivered using check_masked_interrupt(). | |
4f965b81 | 1053 | |
a72d2509 MM |
1054 | * cpu.c (cpu_decrement_event): Just call decrementer_interrupt() |
1055 | leaving it to that module to handle both interrupt synchronization | |
1056 | and masking. | |
4f965b81 | 1057 | |
a72d2509 MM |
1058 | * cpu.c (struct _cpu): remove variables that were going to record |
1059 | pending decrementer and external interrupts. | |
cb7a6892 | 1060 | |
a72d2509 | 1061 | Sun Mar 17 22:40:57 1996 Andrew Cagney <[email protected]> |
cb7a6892 | 1062 | |
a72d2509 MM |
1063 | * hw_cpu.c, hw_cpu.h: New files. Implement a device that sits |
1064 | between the interrupt controller and the simulators internal | |
1065 | processor model. Maps device interrupts onto the processor | |
1066 | interrupt function calls. | |
cb7a6892 | 1067 | |
a72d2509 | 1068 | Mon Mar 4 06:06:54 1996 Andrew Cagney <[email protected]> |
cb7a6892 | 1069 | |
a72d2509 MM |
1070 | * hw_nvram.c: NVRAM device that includes a real-time clock that is |
1071 | updated each second. | |
cb7a6892 | 1072 | |
a72d2509 | 1073 | Mon Mar 4 04:18:50 1996 Andrew Cagney <[email protected]> |
cb7a6892 | 1074 | |
a72d2509 MM |
1075 | * device.h (attach_type): Remove attach_default type address |
1076 | spaces. Will replace with levels of callback memory. | |
cb7a6892 | 1077 | |
a72d2509 MM |
1078 | * corefile.h, corefile.c (new_core_mapping), corefile.c |
1079 | (core_map_attach): Replace default attach with a layerd callback | |
1080 | approach. | |
cb7a6892 | 1081 | |
a72d2509 | 1082 | Sun Mar 3 03:58:46 1996 Andrew Cagney <[email protected]> |
cb7a6892 | 1083 | |
a72d2509 MM |
1084 | * device.c (split_property_specifier): ensure that only a single |
1085 | property is found. | |
1086 | (split_value): New function, parses the value part of a device | |
1087 | spec. | |
cb7a6892 | 1088 | |
a72d2509 MM |
1089 | * device.c (device_tree_add_parsed): Use the interrupt conversion |
1090 | functions to determine the interrupt port numbers. | |
cb7a6892 | 1091 | |
a72d2509 MM |
1092 | * device_table.h: Add table that maps between an interrupts |
1093 | symbolic name and its port number. | |
cb7a6892 | 1094 | |
a72d2509 MM |
1095 | * device.h, device.c (device_interrupt_decode, |
1096 | device_interrupt_encode): new functions use the recently added | |
1097 | interrupt port name/number tables to perform conversion. | |
cb7a6892 | 1098 | |
a72d2509 | 1099 | Sun Mar 3 03:23:59 1996 Andrew Cagney <[email protected]> |
cb7a6892 | 1100 | |
a72d2509 MM |
1101 | * device.h, device.c (device_set_array_property, |
1102 | device_set_boolean_property, device_set_ihandle_property, | |
1103 | device_set_integer_property, device_set_string_property): New | |
1104 | functions - allow the value of a given property to be changed. | |
cb7a6892 | 1105 | |
a72d2509 MM |
1106 | * device.h, device.c: Re-order declaration and definition of |
1107 | property functions. | |
cb7a6892 | 1108 | |
a72d2509 | 1109 | Sun Mar 3 03:10:22 1996 Andrew Cagney <[email protected]> |
cb7a6892 | 1110 | |
a72d2509 MM |
1111 | * device.c (device_tree_print_device, device_tree_add_parsed): |
1112 | Remove references to phandle properties. | |
cb7a6892 | 1113 | |
8477437c MM |
1114 | Wed Feb 28 00:43:07 1996 Andrew Cagney - aka Noid <[email protected]> |
1115 | ||
1116 | * Makefile.in (corefile.o): missing dependency on device_table.h | |
1117 | etc. | |
1118 | ||
a72d2509 | 1119 | Tue Feb 27 23:59:35 1996 Andrew Cagney - aka Noid <[email protected]> |
cb7a6892 | 1120 | |
a72d2509 MM |
1121 | * device_table.h: Revamp device init callbacks so that they are a |
1122 | sub structure. | |
1123 | * device.c (device_init_data, device_init_address): If an init | |
1124 | callback is NULL assume it should do nothing. | |
1125 | * device_table.c (ignore_device_init, unimp_device_init): delete | |
1126 | as redundant. | |
1127 | * device_table.c, hw_memory.c: adjust. | |
cb7a6892 | 1128 | |
a72d2509 MM |
1129 | * (io): ditto. |
1130 | * (dma): ditto. | |
1131 | * (device_instance): ditto. | |
1132 | * (ioctl): ditto. | |
1133 | * (address nee config_address): ditto. | |
1134 | * (interrupt): ditto. | |
cb7a6892 | 1135 | |
8477437c MM |
1136 | Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <[email protected]> |
1137 | ||
1138 | * igen.c (idecode_switch_end): Output a default entry when the | |
1139 | switch statement is perfect. Firstly stops GCC complaining about | |
1140 | an incomplete switch and secondly it will be eliminated by a good | |
1141 | compiler any way. | |
1142 | ||
a72d2509 | 1143 | Mon Feb 26 22:47:15 1996 Andrew Cagney - aka Noid <[email protected]> |
cb7a6892 | 1144 | |
a72d2509 MM |
1145 | * Makefile.in (hw.h, hw.c): New targets. Create from the list of |
1146 | hw_*.c files. hw.h declares a device descriptor table for each hw | |
1147 | device while hw.c lists those tables in a form suitable for the | |
1148 | construction of a top leveltable in device_table.c. | |
cb7a6892 | 1149 | |
a72d2509 MM |
1150 | * Makefile.in (device_table.o): now depends on hw.c a generated |
1151 | table of hw. | |
cb7a6892 | 1152 | |
a72d2509 MM |
1153 | * device_table.c (device_table): Re-arange the table of devices so |
1154 | that two levels are possible. Make use of hw.c. | |
1155 | * device_table.h: ditto. | |
cb7a6892 | 1156 | |
a72d2509 MM |
1157 | * device.c (device_template_create_device): Handle new two level |
1158 | device lookup table. | |
1159 | * device.c (device_usage): ditto. | |
cb7a6892 | 1160 | |
a72d2509 | 1161 | Mon Feb 26 22:24:00 1996 Andrew Cagney - aka Noid <[email protected]> |
cb7a6892 | 1162 | |
a72d2509 | 1163 | * device_table.c: Delete the memory device (moved to hw_memory.c). |
cb7a6892 | 1164 | |
a72d2509 | 1165 | * hw_memory.c: New file. Just an OpenBoot memory device. |
8477437c MM |
1166 | |
1167 | Wed Jan 17 21:47:34 1996 Andrew Cagney <[email protected]> | |
1168 | ||
1169 | * device.c (device_init_address): New. Split initialization into | |
1170 | two stages, address and address spaces | |
1171 | * device.c (device_init_data): New. ... and data or other work. | |
1172 | With out this, devices try to modify memory before it as been | |
1173 | attached. | |
1174 | ||
1175 | * device.c (device_tree_init): Update to perform staged | |
1176 | initialization. | |
1177 | ||
1178 | * device.c (device_init): Delete. | |
1179 | ||
1180 | Wed Jan 17 21:43:09 1996 Andrew Cagney <[email protected]> | |
1181 | ||
1182 | * device_table.c (data_*): Rewrite to make heaver use of property | |
1183 | nodes. Allow initialization by different data types. | |
1184 | * device_table.c (htab_* pte_*): Rewrite to use properties. | |
1185 | ||
1186 | * emul_chirp.c (emul_chirp_create): Use | |
1187 | * emul_bugapi.c (emul_bugapi_create): Ditto | |
1188 | * emul_netbsd.c (emul_netbsd_create): Ditto | |
1189 | ||
1190 | Wed Jan 17 21:24:50 1996 Andrew Cagney <[email protected]> | |
1191 | ||
1192 | * emul_generic.c (emul_add_tree_options): Annotate existing tree | |
1193 | with options that haven't yet been specified. | |
1194 | * emul_generic.c (emul_add_tree_hardware): Annotate existing tree | |
1195 | with demo devices and properties. | |
1196 | ||
1197 | * emul_chirp.c (emul_chirp_create): Update to use new | |
1198 | device_tree_add_parsed call and additional information now | |
1199 | included in the device tree. Use emul_add_tree* functions to add | |
1200 | any missing details. | |
1201 | * emul_bugapi.c (emul_bugapi_create): Ditto | |
1202 | * emul_netbsd.c (emul_netbsd_create): Ditto | |
1203 | ||
1204 | Wed Jan 17 21:18:27 1996 Andrew Cagney <[email protected]> | |
1205 | ||
1206 | * device.c (device_instance_create): New. Create/delete and | |
1207 | operate on instances of a device. | |
1208 | * device.c (device_instance_delete): Ditto | |
1209 | * device.c (device_instance_read): Ditto | |
1210 | * device.c (device_instance_write): Ditto | |
1211 | * device.c (device_instance_seek): Ditto | |
1212 | * device.c (device_instance_data): Ditto | |
1213 | * device.c (device_instance_name): Ditto | |
1214 | * device.c (device_instance_path): Ditto | |
1215 | ||
1216 | * emul_chirp.c (chirp_emul_open): Implement using device_instance. | |
1217 | * emul_chirp.c (chirp_emul_close): Ditto | |
1218 | * emul_chirp.c (chirp_emul_read): Ditto | |
1219 | * emul_chirp.c (chirp_emul_write): Ditto | |
1220 | * emul_chirp.c (chirp_emul_seek): Ditto | |
1221 | ||
1222 | * emul_chirp.c (chirp_read_t2h_args): Read arguments from device. | |
1223 | Being careful to convert all from target to host byte order. | |
1224 | * emul_chirp.c (chirp_write_h2t_args): Converse. | |
1225 | ||
1226 | Wed Jan 17 20:07:15 1996 Andrew Cagney <[email protected]> | |
1227 | ||
1228 | * device.c (device_tree_add_parsed): New. Rewrite code to add | |
1229 | devices to the device tree so that a single printf style function | |
1230 | is used. | |
1231 | ||
1232 | * device.c (device_tree_add_*): Delete. Replaced by above. | |
1233 | ||
1234 | * device.c (split_device_specifier): Functions to manipulate a | |
1235 | device specifier (path) breaking it into its components | |
1236 | * device.c (split_property_specifier): Ditto | |
1237 | * device.c (split_device_name): Ditto | |
1238 | * device.c (split_find_device): Ditto | |
1239 | ||
1240 | * device.c (scan_*): Delete | |
1241 | ||
1242 | * device.c (device_tree_find_device): Rewrite to use above. | |
1243 | * device.c (device_add_property): Ditto | |
1244 | ||
1245 | Wed Jan 17 19:51:56 1996 Andrew Cagney <[email protected]> | |
1246 | ||
1247 | * psim.c(psim_options): Parse the psim options, installing their | |
1248 | value in the device tree. Options are now first entered into a | |
1249 | device tree and then extracted out again when needed. This allows | |
1250 | greater flexability in configuration. | |
1251 | ||
1252 | * psim.c (psim_tree): Returns a basic device tree ready for | |
1253 | parsing by psim_options. | |
1254 | * psim.c (psim_usage): New. Give usage to varing levels of detail | |
1255 | according to the verbosity. In turn output device and trace | |
1256 | usage. | |
1257 | ||
1258 | * main.c (main): Update to use new system | |
1259 | * sim_calls.c (sim_open, sim_do_command): Ditto | |
1260 | ||
1261 | * psim.c (psim_options): Add `r' option - ram size. | |
1262 | * psim.c (psim_options): Add `o' option - openboot tree entry. | |
1263 | * psim.c (psim_options): Add `h'/`H' options - more help. | |
1264 | ||
1265 | * debug.c (trace_usage): Add more detailed help. | |
1266 | * device.c (device_usage): New. Output help including a list of | |
1267 | the devices currently available in the device table. | |
1268 | * device_table.c: Add usage operator to each device. | |
1269 | ||
1270 | * corefile.c (core_create, core_device_create): Adjust so that the | |
1271 | core device is created earlier for psim_tree(). Core can later be | |
1272 | created from it. | |
1273 | ||
1274 | * psim.c (psim_create): Update to handle above way of creating | |
1275 | things. Extract all information from the device tree. | |
1276 | ||
1277 | * device_tree.c (trace_*): New device node, its properties are | |
1278 | used to set the value of the trace options. Init this device (in | |
1279 | psim_options) when ever the options are updated. | |
1280 | ||
1281 | Wed Jan 17 19:46:07 1996 Andrew Cagney <[email protected]> | |
1282 | ||
1283 | * debug.h: Add trace_print_info, trace_print_device_tree and | |
1284 | trace_dump_device_tree. The first is a replacement for the | |
1285 | variable `print_info' found in main.c and sim_calls.c. The latter | |
1286 | two enable the dumping of the entire device tree. | |
1287 | ||
1288 | * debug.c: Add to trace_description table. | |
1289 | ||
1290 | * main.c (main): Use above trace instead of local variable | |
1291 | * sim_calls.c (sim_close): Ditto | |
1292 | ||
1293 | * device.c (device_tree_print_device): New. Prints the device | |
1294 | tree in a format that is consistent with what can be parsed by the | |
1295 | device tree load from file code. | |
1296 | ||
1297 | * psim.c (psim_create): Dump device tree if enabled. If nump | |
1298 | selected, exit psim immediatly. | |
1299 | ||
1300 | Wed Jan 17 19:36:52 1996 Andrew Cagney <[email protected]> | |
1301 | ||
1302 | * corefile-n.h (core_map_read_N): When mapping from an address to | |
1303 | a device, do not subtract the devices base. The device its self | |
1304 | can do this. Brings the behavour into line with OpenBoot. | |
1305 | * corefile-n.h (core_map_write_N): Ditto | |
1306 | * corefile.c (core_map_read_buffer): Ditto | |
1307 | * corefile.c (core_map_write_buffer): Ditto | |
1308 | ||
1309 | * device_table.c (console_io_read_buffer_callback): Adjust to | |
1310 | handle biased address. | |
1311 | * device_table.c (console_io_write_buffer_callback): Ditto | |
1312 | ||
1313 | Wed Jan 17 18:36:09 1996 Andrew Cagney <[email protected]> | |
1314 | ||
1315 | * device.c (attach_device_interrupt_edge): New. Interrupt model | |
1316 | did not allow interrupts to be wired up as a general net (edges). | |
1317 | Re-implement so that interrupt events can be passed to multiple | |
1318 | controllers and interrupt controllers can further propogate | |
1319 | interrupt events. | |
1320 | ||
1321 | * device.c (attach_device_interrupt_edge) : New, Ditto | |
1322 | * device.c (detach_device_interrupt_edge) : New, Ditto | |
1323 | * device.c (clean_device_interrupt_edges) : New, Ditto | |
1324 | * device.c (device_interrupt_event) : New, Ditto | |
1325 | * device.c (device_interrupt_attach) : New, Ditto | |
1326 | * device.c (device_interrupt_detach) : New, Ditto | |
1327 | * device.c (device_child_interrupt_attach) : New, Ditto | |
1328 | * device.c (device_child_interrupt_detach) : New, Ditto | |
1329 | ||
1330 | * device.c (device_attach_interrupt) : Delete old | |
1331 | * device.c (device_detach_interrupt) : Delete old | |
1332 | * device.c (device_interrupt) : Delete old | |
1333 | * device.c (device_interrupt_ack) : Delete old | |
1334 | ||
1335 | * device_table.c (unimp_*) : Update to match | |
1336 | ||
1337 | * device_table.c (icu_io_write_buffer_callback) : Update to use | |
1338 | interface. | |
1339 | * device_table.c (icu_interrupt_event_callback) : Ditto | |
1340 | ||
1341 | Wed Jan 17 18:18:40 1996 Andrew Cagney <[email protected]> | |
1342 | ||
1343 | * device.c (external_to_device) : New function that provides a | |
1344 | standard mapping between a devices internal representation (a | |
1345 | pointer) and its external (or what is passed to a client) | |
1346 | representation (a phandle). Implement using the cap object | |
1347 | attached to the root node. | |
1348 | ||
1349 | * device.c (device_to_external) : Ditto | |
1350 | * device.c (external_to_device_instance) : Ditto but for ihandle | |
1351 | and device instance. | |
1352 | * device.c (device_instance_to_external) : Ditto | |
1353 | ||
1354 | * Makefile (device.o): Add dependency on cap. | |
1355 | ||
1356 | * emul_chirp.c (struct _emul_chirp_data) : Elimate use of cap. Code | |
1357 | needing to translate between internal and external representations | |
1358 | changed to use the external_to_device et.al. device operations. | |
1359 | * emul_chirp.c (chirp_emul_*) : Ditto | |
1360 | ||
1361 | * Makefile (emul_chirp.o): Remove dependency on cap | |
1362 | ||
1363 | Sat Jan 6 10:13:26 1996 Andrew Cagney - aka Noid <[email protected]> | |
1364 | ||
1365 | * emul_chirp.c (map_over_chirp_note): Tighten up (and fix) checks | |
1366 | on OpenBoot note section. | |
1367 | ||
1368 | Fri Jan 5 20:28:53 1996 Andrew Cagney <[email protected]> | |
1369 | ||
1370 | * emul_generic.c (emul_write_buffer): Use vm faulting byte | |
1371 | read/write calls for buffer transfers. This will cause a fault to | |
1372 | occure if the transfer fails. CHRP catches the fault while the | |
1373 | others suffer the consequences. | |
1374 | (emul_read_buffer): Ditto. | |
1375 | (emul_write_word): Ditto. | |
1376 | (emul_read_word): Ditto. | |
1377 | (emul_read_string): Ditto. | |
1378 | ||
1379 | Fri Jan 5 18:55:34 1996 Andrew Cagney <[email protected]> | |
1380 | ||
1381 | * emul_chirp.c (emul_chirp_create, emul_chirp_instruction_call), | |
1382 | emul_generic (emul_blr_instruction): Use a real blr instruction to | |
1383 | return from a client service call. | |
1384 | ||
1385 | * emul_chirp.c (services): Add all OpenBoot services to table. | |
1386 | ||
1387 | * emul_generic.h, emul_bugapi.c (emul_bugapi_create), emul_chirp.c | |
1388 | (emul_chirp_create) : Use names instead of numbers for | |
1389 | instructions being stored in memory. | |
1390 | ||
1391 | Fri Jan 5 18:52:28 1996 Andrew Cagney <[email protected]> | |
1392 | ||
1393 | * Makefile.in (maintainer-clean): Remove .log, core and *.core | |
1394 | (From NetBSD) files. | |
1395 | ||
1396 | Wed May 29 22:57:40 1996 Andrew Cagney <[email protected]> | |
1397 | ||
1398 | * ChangeLog.00, ChangeLog: ChangeLog from gdb-4.16 becomes | |
1399 | ChangeLog.00 | |
1400 |