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