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