Changes from Andrew
[binutils-gdb.git] / sim / ppc / ChangeLog
1 Thu Dec 14 18:49:34 1995 Andrew Cagney <cagney@highland.com.au>
2
3 * lf.c (lf_print_function_type): New function. Munges a function
4 type so that the prefix (eg INLINE...) is inserted after the type
5 but before any `*'.
6
7 * igen.c: Change to output functions using this.
8
9 Wed Dec 13 23:47:00 1995 Andrew Cagney <cagney@highland.com.au>
10
11 FIXME: Emul CHIRP does not correctly implement the find device
12 function.
13
14 FIXME: Emul CHIRP and device do not implement device instance
15 operations.
16
17 Wed Dec 13 23:47:00 1995 Andrew Cagney <cagney@highland.com.au>
18
19 * options.c (options_inline): Function to output meaningful
20 description of the INLINE options.
21
22 * configure.in (inline): Replace inline magic numbers with macro
23 names. Map 1->LOCALS_INLINE and 2->ALL_INLINE.
24
25 * inline.h, inline.c: update to use inline method.
26
27 * std-config.h (CPU_INLINE), cpu.h, inline.h, inline.c: make cpu.h
28 inline always.
29
30 * std-config.h (EVENTS_INLINE): Inline events in psim.
31
32 Wed Dec 13 22:01:21 1995 Andrew Cagney <cagney@highland.com.au>
33
34 * device_table.c (htab_sum_binary): DMA binaries to correct byte
35 within a page.
36
37 Tue Dec 12 22:51:18 1995 Andrew Cagney <cagney@highland.com.au>
38
39 * psim.c (psim_merge_device_file): Change `=' to `==', was this an
40 error?
41
42 Tue Dec 5 11:56:14 1995 Andrew Cagney <cagney@highland.com.au>
43
44 * ppc-instructions (ppc_nr_mtcrf_crs, ppc_branch_conditional_name,
45 ppc_function_unit_name): Simplify by declaring these arrays as
46 pure and simple static (instead of STATIC_MODEL).
47
48 Tue Dec 5 00:45:34 1995 Andrew Cagney <cagney@highland.com.au>
49
50 * sim_calls.c (sim_create, sim_load), main.c (main), psim.c: Pass
51 an options device into psim_create() so that options can be merged
52 into the tree.
53
54 * device.c (*add*): Change semantics so the add functions only add
55 when the new device (or property) doesn't already exist. This
56 allows merging of options and data.
57
58 Mon Dec 4 17:12:13 1995 Andrew Cagney <cagney@highland.com.au>
59
60 * Makefile.in (BASICS_H): Didn't include basics.h in the list of
61 header files to depend on.
62
63 Mon Dec 4 17:12:13 1995 Andrew Cagney <cagney@highland.com.au>
64
65 * std-config.h: (*_MODULE): Extend the <module>_inline macro's so
66 that they also allow control over static functions. Rewrite
67 document to reflect this.
68
69 * std-config.h: (INLINE): Simplify definition, the above and
70 earlier changes to igen.h eliminate the need to be defensive about
71 enabling the inline of static functions.
72
73 * std-config.h: (SIM_ENDIAN_INLINE, BITS_INLINE): Document limited
74 suport for inlineing of modules for all callers. Adjust relevant
75 macro's so that DEFAULT_INLINE will enable this.
76
77 * basics.h: Re-order #includes and definitions so that c-code for
78 basic include files does not call functions delcared in later
79 #includes.
80
81 * basics.h (__attribute__), sim_callbacks.h: Move attribute macro
82 to basics.h and add hack (include <stdio.h>) to try and bring that
83 and other possible conflicting macros into scope much earler.
84
85 * sim-endian.h,c (SIM_ENDIAN_INLINE) bits.h,c (BITS_INLINE):
86 Change to use the updated inline definitions. If enabled
87 immediatly include the corresponding c-code so that it will inline
88 for all modules.
89
90 * inline.h, inline.c (SIM_ENDIAN_INLINE, BITS_INLINE): Remove
91 these cases, moved to module specific header files.
92
93 Sat Dec 2 18:37:51 1995 Andrew Cagney <cagney@highland.com.au>
94
95 * vm.c, vm_n.c: Fix htab code.
96
97 * vm.c (vm_data_map_read_buffer): Was using EA not RA when reading
98 the data from core.
99
100 * device.c: Fix htab create code.
101
102 Fri Nov 24 23:10:09 1995 Andrew Cagney <cagney@highland.com.au>
103
104 * bits.h, bits.c (EXTRACTED): Convert to function, fix - had &&
105 instead of &.
106
107 * sim-endian.h (SWAP_N), sim-endian-n.h, sim-endian.c: How
108 embarasing - fix yet another bug in the swap code! Simplify
109 everything by using more functions. Add host to big-endian byte
110 swapping support.
111
112 Fri Nov 24 23:10:09 1995 Andrew Cagney <cagney@highland.com.au>
113
114 * devices.h, devices.c: delete, replaced by the files
115 device_table.[ch] and device.[ch].
116 * device_tree.h, device_tree.c: ditto
117
118 * device_table.h, device_table.c: New files. Contain a table of
119 devices.
120
121 * device.h, device.c, Makefile.in, std-config.h (DEVICE_INLINE),
122 options.c (print_options): New files. Define the device object
123 along with any attached properties.
124
125 * device_tree.h, device_tree.c: Update to use new device object.
126 For convenience, change the printd functions into device_tree_add
127 functions.
128
129 * psim.c (create_*_tree): Use new device_tree create functions.
130
131 * corefile.h, corefile.c corefile-n.h (core_n.h): Update to use
132 the new device.h / device_table.h interface. Rename core_n.h to
133 corefile-n.h to be consistent with other n files.
134
135 * Makefile.in (run): add corefile-n.h to dependencies for
136 corefile.
137
138 * basics.h (device_instance), device.h, device.c, device_table.h,
139 device_table.c: Add the concept of a device instance and operators
140 on these instances - corresponds to ihandle in OpenBoot speak.
141 Don't yet implement it.
142
143 Tue Nov 14 12:27:08 1995 Andrew Cagney <cagney@highland.com.au>
144
145 * emul_generic.h, emul_generic.c (emul_syscall_enter,
146 emul_syscall_exit): rename from emul_enter_call /
147 emul_exit_call. As only used by emul_do_system_call simplify
148 associated code.
149
150 * os_emul.h, os_emul.c, emul_generic.h: Correct and fill an
151 os_emul interface.
152
153 * os_emul.c, emul_bugapi.h, emul_bugapi.c, Makefile.in: Add
154 preliminary hooks for a kernel mode rom emulation.
155
156 * cap.h (new), cap.c (new): Capability data base. Some emulations
157 pass object identifiers (capabilities?) to/from the simulated code
158 (for instance the phandle in OpenBoot). The cap object is able to
159 check/map between internal and external (target program)
160 representations of each identifier.
161
162 * os_emul.c, emul_chirp.h, emul_chirp.c, Makefile.in: Add
163 preliminary hooks for a kernel mode IEEE-1275 emulation.
164
165 * cpu.h, cpu.c (cpu_create, cpu_os_emulation, cpu): Add os_emul to
166 list of arguments passed in when creating a cpu. Grant access to
167 the element.
168
169 * std-config.h (OS_EMUL_INLINE), options.c (print_options),
170 inline.h, inline.c: New to allow control over inline of
171 corresponding code files.
172
173 * ppc-instructions (instruction_call): Add illegal instruction to
174 call the instruction-call emulation handler.
175
176 * interrupts.c (system_call_interrupt): Call renamed
177 os_emul_system_call function().
178
179 * emul_netbsd.c: Update to interface to generic emulation. Since
180 all its functions are called via a table don't worry about any
181 inline.
182
183 * emul_generic.h, emul_generic.c, spa-*(delete): Remove references
184 and code for spa, no longer to be used.
185
186 * psim.c (create_chirp_device_tree): Fill out what was previously
187 the openboot create function so that it starts to create a full
188 OpenBoot device tree.
189
190 Tue Nov 28 21:48:06 1995 Andrew Cagney <cagney@highland.com.au>
191
192 * debug.h, debug.c: pte trace is made redundant by htab trace,
193 delete it. Add vm to list of options. Simplify tracing output so
194 lines are not as long.
195
196 Tue Nov 14 12:27:08 1995 Andrew Cagney <cagney@highland.com.au>
197
198 * events.h, events.c (event_queue_init), psim.c (psim_init): (re)
199 initialize the event queue.
200
201
202
203
204
205
206 Tue Nov 28 13:38:26 1995 Michael Meissner <meissner@tiktok.cygnus.com>
207
208 * sim-endian.h: Look at WORDS_BIGENDIAN to determine if the host
209 is big endian or little endian. For SWAP_n, use htonl/htons if
210 host is little endian, not big endian and if WITH_NTOH is defined.
211
212 * configure{,.in} (--enable-sim-model-issue): Instead of defining
213 0/1, define it to be MODEL_ISSUE_{PROCESS,IGNORE}. Add
214 AC_C_BIGENDIAN to determine if the host is big endian or not.
215 * config.in: Regenerate.
216
217 * std-config.h (WITH_MODEL_ISSUE): Default to 0.
218 (CURRENT_MODEL_ISSUE): Reference WITH_MODEL_ISSUE, and if that is
219 0, use current_model_issue.
220 (MODEL_ISSUE_{PROCESS,IGNORE}): Define as -1/1.
221
222 * psim.c (current_model_issue): New global variable.
223
224 * cpu.c (cpu_create): Use CURRENT_MODEL_ISSUE > 0 instead of
225 WITH_MODEL_ISSUE.
226 (cpu_{init,halt}): Ditto.
227 * mon.c (mon_print_info): Ditto.
228 * ppc-instructions (PPC_INSN_* macros, branch handling): Ditto.
229
230 * mon.c (mon_print_info): Print instructions/second if verbose > 0,
231 rather than > 1.
232
233 * main.c (main): Set current_model_issue to MODEL_ISSUE_PROCESS if
234 the -I switch is used.
235 * sim_calls (sim_open): Ditto.
236
237 * ppc-instructions (model support): Add support for determining
238 when we don't have enough writeback slots. Add tracing for the
239 beginning of each cycle.
240
241 Mon Nov 27 17:46:33 1995 Michael Meissner <meissner@tiktok.cygnus.com>
242
243 * mon.c: Check for whether to include sys/types.h and sys/time.h.
244
245 * configure.in: Check for include files sys/types.h and
246 sys/time.h.
247 * configure: Regenerate.
248 * config.in: Regenerate.
249
250 * cpu.h (CONST_ATTRIBUTE): Define as __attribute__((__const__)) if
251 not already defined.
252 (cpu_system): Use CONST_ATTRIBUTE, so that when we're not inlining
253 the world, the optimizer has a fair chance of CSE'ing function
254 calls.
255 (cpu_{monitor,nr,registers,model}): Ditto.
256
257 * std-config.h (MODEL_INLINE): If not defined, define as 1 if
258 DEFAULT_INLINE is non-zero, 0 otherwise, rather than just the
259 value of DEFAULT_INLINE.
260
261 Fri Nov 24 11:24:34 1995 Michael Meissner <meissner@tiktok.cygnus.com>
262
263 * lf.h (__attribute__): If not GCC and at least 2.7.0, define as
264 nothing.
265 (lf_printf): Add printf __attribute__, so the compiler will
266 automatically check the format string.
267
268 * configure{,.in} (--enable-sim-icache): If argument is define,
269 add -R to flags passed to igen.
270
271 * igen.c (stdlib.h): Include if the system supplies one.
272 (semantics_use_cache_struct): New global for -R flag to say
273 semantics is to use the cache structure directly rather than
274 putting the values into local variables.
275 (first_undef, last_undef): New structures to remember names to
276 #undef if -R.
277 (lf_print_c_extraction): If -R and this is semantics, emit names
278 as #defines pointing to the cache structure, rather than loading
279 the values into local variables.
280 (lf_print_c_semantic_function): If -R, #undef all of the names
281 defined in lf_print_c_extraction.
282 (main): Recognize -R.
283
284 * idecode_fields.h (SPR_*): Redefine spr_* macros as SPR_* to
285 avoid a name confict if -R passed to igen.
286
287 * ppc-instructions (mfspr, mtspr): Rename spr field to SPR.
288 (model_data): Add field to count the various # of CRs that the
289 mtcrf instruction used.
290 (model_mon_info): Return structures counting the # of CRs that the
291 mtcrf instruction used.
292 (branches, sync instructions): Do not call model functions if
293 WITH_MODEL_ISSUE is 0.
294
295 * mon.c (stdlib.h): Include if the system supplies one.
296 (mon_sort_instruction_names): New function to sort instruction
297 names alphabetically.
298 (mon_print_info): Call qsort with mon_sort_instruction_names to
299 sort instruction names. Don't abort if WITH_MODEL_ISSUE is 0.
300
301 * debug.h (ITRACE): Make printf_filtered arguments type correct.
302 * idecode_expression.h (CR0_COMPARE): Ditto.
303 * psim.c (psim_read_register): Ditto.
304
305 * igen.c (lf_print_my_prefix): Use __attribute__((__unused__)) to
306 silence compiler warnings about unused automatically generated
307 variables.
308 (lf_print_c_extraction): Ditto.
309 * idecode_expression.h (FPSCR_BEGIN): Ditto.
310
311 * ppc-cache-rules: Define rules for making a bitmask for all
312 registers.
313
314 * ppc-instructions: Rewrite model specific functions to use the
315 bitmask of the register number, instead of using the register
316 pointer to get the register number, and then making the bitmask.
317
318 Wed Nov 22 15:24:27 1995 Michael Meissner <meissner@tiktok.cygnus.com>
319
320 * ppc-instructions (model_branches): Add conditional argument to
321 count the number of times each type of conditional branch is used.
322 (conditional branches): Pass B0 or -1 to model_branches.
323 (model_mon_info): Print out conditional branch counts.
324 (model-data): Add support for printing out conditional branch
325 types.
326
327 Tue Nov 21 16:31:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
328
329 * igen.c (insn_table_load_insns): Add support for model-static for
330 internal functions that should not be inlined.
331 (lf_print_c_semantic): Remove model_cleanup.
332 (gen_model_{c,h}): Ditto.
333
334 * ppc-instructions: Redo model specific support once again. Add
335 floating point support to the model specific information. Flesh
336 out all of the floating mutiply add/subtract instructions. Add
337 better tracing support to the model specific information.
338
339 Sun Nov 19 23:00:52 1995 Michael Meissner <meissner@tiktok.cygnus.com>
340
341 * ppc-instructions (model data, model_busy): Rather than using a
342 bit mask for the busy units, just use a char array. Also, only
343 support 2 function units an insn can use, rather than a loop.
344
345 Fri Nov 17 14:08:08 1995 Michael Meissner <meissner@tiktok.cygnus.com>
346
347 * table.c (table_entry_read): Move setting entry->line_nr to after
348 the model specific fields so the line numbers for the annex are
349 correct.
350
351 * cpu.c (cpu_{create,init,halt}): Check for WITH_MODEL_ISSUE
352 before calling the model functions.
353
354 * debug.c (trace_descriptor): Add trace_model support.
355 * debug.h (trace_options): Ditto.
356
357 * igen.c (gen_icache_h): Create type idecode_cache as void if not
358 caching instructions.
359 (gen_model_{c,h}): Drop model_issue support. Add support for
360 model_cleanup.
361 (lf_print_my_prefix): Initialize a const itable_index with the
362 current index.
363 (lf_print_c_semantic): Call model_cleanup at the end of the
364 function to check for instructions that aren't supported yet by
365 the scheduling code.
366
367 * mon.h (count_type): New type for counters.
368 * mon.c: Use count_type instead of unsigned.
369
370 * ppc-instructions: Redo scheduling code once again. Make it all
371 inline friendly. Instead of having general code emitted by igen,
372 go the route of having each semantic routine call the appropriate
373 module.
374
375 Thu Nov 16 09:52:26 1995 Michael Meissner <meissner@tiktok.cygnus.com>
376
377 * table.c (table_entry_read): Allow the annex to have blank lines.
378
379 * ppc-instructions: Change lines in model stuff that just have a
380 tab to just newline. Add 601 support. Document most instructions
381 in terms of model specific timing information. Drop 'FUNCTION'
382 from PPC_FUNCTION_UNIT_xxx enums. Change PPC_UNIT_UNKNOWN ->
383 PPC_UNIT_BAD. Add TRACE(trace_tbd) for all data cache
384 instruction.s. Signal illegal instruciton if data cache block
385 invalidate is issued from problem state.
386
387 * igen.c (max_model_fields_len): New static to keep track of the
388 max size for the model specific fields.
389 (model_c_insn): Use max_model_fields_len to size fields.
390 (insn_table_insert_insn): Set max_model_fields_len.
391 (model_table_insert): Ditto.
392 (gen_model_{c,h}): Model_issue is now called with a processor
393 argument.
394
395 * debug.c (trace_description): Add support for trace_tbd.
396
397 * mon.c (mon_issue): Pass processor argument to model_issue.
398
399 * Makefile.in: Delete all function unit support, since the newer
400 table driven model support replaces it.
401 * cpu.{c,h}: Ditto.
402 * mon.c: Ditto.
403 * inline.{c,h}: Ditto.
404 * std-config.h: Ditto.
405 * options.c: Ditto.
406 * configure{,.in}: Ditto.
407 * Makefile.in: Ditto.
408 * psim.c: Ditto.
409 * function_unit.{c,h}: Delete these now usused files.
410
411 * std-config.h (WITH_MODEL_ISSUE): Add new macro on whether to
412 trace instructions in a model specific manor.
413 * options.c (print_options): Print it out.
414 * configure{,.in}: Add --enable-sim-model-issue option.
415 * Makefile.in: Add --enable-sim-model-issue flags.
416 * igen.c (lf_print_c_semantic): Add call to mon_issue here. Check
417 for WITH_MODEL_ISSUE.
418 * mon.c (mon_issue): Remove call to mon_issue_here.
419
420 * ppc-instructions: Move branch tracing to the actual branch
421 instructions, rather than testing it in model_issue. Add code to
422 code successful/unsuccessful branch predictions, and the number of
423 conditional branches that fell through.
424
425 Wed Nov 15 17:32:13 1995 Michael Meissner <meissner@tiktok.cygnus.com>
426
427 * cpu.h (cpu_model): Add declaration.
428
429 * cpu.c (struct _cpu): Add model_ptr to hold model specific
430 information.
431 (cpu_model): Return the model internal pointer.
432 (cpu_{create,init,halt}): Call the appropriate model function.
433
434 * inline.c (mon.c): Move include of mon.c after model.c.
435
436 * mon.c (_cpu_mon): Add fields to count unaligned memory
437 references.
438 (mon_issue): Call model_issue, not function_unit_issue.
439 (mon_{read,write}): Count # of unaligned memory accesses.
440 (mon_print_info): Switch to calling model_mon_info and
441 model_mon_info_free instead of function_unit version. Print out
442 number of unaligned reads/writes.
443
444 * {ppc-instructions,igen.c}: More global changes to add model
445 specific features.
446
447 * inline.{c,h}: Provide for inlining options.c.
448 * options.{c,h}: Ditto.
449 * std-config.h: Add OPTIONS_INLINE.
450
451 Tue Nov 14 04:47:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
452
453 * Makefile.in (devices.o, main.o): Update dependency.
454
455 * igen.c (gen_model_h): Use correct variable in loop.
456 (gen_model_c): Use strcmp, strcasecmp.
457 (gen_model_c): Use EXTERN_MODEL for arrays.
458 (gen_model_h): Use STATIC_MODEL for arrays.
459 (lf_print_c_semantic_function_header): Delete unused function.
460
461 * main.c (cpu.h): Include cpu.h to get model.h.
462
463 * inline.h ({EXTERN,STATIC}_MODEL): Define.
464
465 Mon Nov 13 09:14:13 1995 Michael Meissner <meissner@tiktok.cygnus.com>
466
467 * igen.c ({insn,model}_table_fields): Spell mnemonic correctly.
468 (gen_itable_h,itable_c_insn): Ditto.
469 (model support): Move model support around, add support for
470 model-data, model-internal. Use annex field for model-macros
471 now.
472
473 * configure.in (--enable-sim-inline): If --enable-sim-inline=no,
474 also define INLINE as nothing.
475 * configure: Regenerate.
476
477 * std-config.h (INLINE): Rather than nuking INLINE, only define it
478 as __inline__ if any of the INLINE flags are non-zero.
479
480 * options.c (print_options): Print out WITH_XOR_ENDAIN.
481
482 Mon Nov 13 23:03:45 1995 Andrew Cagney <cagneyhighland.com.au>
483
484 * ppc-instructions (rfi): Add missing code.
485
486 * cpu.c (cpu_get_time_base): Fix calculation of current value of
487 time base register.
488
489 * ppc-spr-table (TBL, TBU): Fix TBL/TBU entries - was confusing
490 m[tf]tb with m[tf]spr.
491
492 * ppc-instructions (mtspr, mfspr): Fix mttbl - wasn't storing
493 lower word.
494
495 Mon Nov 13 21:35:37 1995 Andrew Cagney <cagneyhighland.com.au>
496
497 * std-config.h (INLINE, STATIC_INLINE): Was being set to static
498 inline.. Only problem being that with ppc-opcode-simple this gave
499 it the chance to inline all the idecode functions with potentially
500 disasterous results on a 16mb PC. For moment hobble INLINE.
501
502 * configure.in, std-config.h (WITH_SMP): Make that 5 processors by
503 default ...
504
505 * configure.in: Tweek flags passed to gcc for --with-sim-warnings.
506 Firstly make them errors and secondly remove the options gcc-245
507 doesn't reconize.
508
509 Mon Nov 13 17:57:24 1995 Andrew Cagney <cagney@highland.com.au>
510
511 * misc.c (zalloc), cpu.c (cpu_init), devices
512 (console_io_read_buffer_callback, icu_io_read_buffer_callback,
513 vm_io_read_buffer_callback), main.c (zalloc), mon.c (memset),
514 sim_calls.c (zalloc) : replace bzero() with memset().
515
516 * emul_netbsd.c (write_direntries), psim.c (psim_read_register,
517 psim_write_register): replace bcopy() with memcpy().
518
519 Sun Nov 12 20:55:41 1995 Andrew Cagney <cagneyhighland.com.au>
520
521 * configure.in: for --disable-sim-inline (--enable-sim-inline=no),
522 force DEFAULT_INLINE to 0 rather then trusting the std
523 configuration.
524
525 Sun Nov 12 20:55:41 1995 Andrew Cagney <cagneyhighland.com.au>
526
527 * igen.c (lf_print_idecode_table, idecode_table_leaf): Fix
528 generation of switch entries in tables - treat the same as
529 cracking/semantic functions.
530
531 * igen.c (idecode_switch_end, idecode_switch_leaf): Fix generation
532 of a boolean switch statement (field zero or non-zero).
533
534 * ppc-opcode-test-1, ppc-opcode-test-2: New files. These test the
535 switch/table generation ability of igen.
536
537 * igen.c (idecode_switch_leaf): Fix code output when a switch
538 statement needs to look up a table.
539
540 * igen.c (idecode_declare_if_switch): New function called from
541 gen_idecode_c - need to declare any idecode switch functions
542 before they are used in idecode tables.
543
544 * igen.c (lf_print_c_cracker_function, idecode_crack_leaf,
545 idecode_crack_insn): Add is_inline_function argument to code
546 printing cracker functions which indicates if STATIC_IDECODE or
547 STATIC_INLINE_IDECODE should be used for definition. For
548 idecode_crack_insn (which implies not duplicating/expanding) don't
549 declare function as inline - we assume that the only time this is
550 code is generated is when things are being tested. For
551 idecode_crack_leaf, make static (instead of INLINE) if the
552 instructions parent is a table as function will always be called
553 via a table.
554
555 * igen.c (idecode_expand_if_switch): Declare as STATIC_IDECODE not
556 STATIC_INLINE_IDECODE. Only the outermost idecode switch will be
557 called directly, all others are called via a table.
558
559 * igen.c (lf_print_semantic_function_header, semantics_h_leaf,
560 semantics_h_insn, semantics_h_function,
561 lf_print_c_semantic_function, semantics_c_function): Add
562 is_inline_function argument to lf_print_semantic_function_header
563 to indicate if an inline or static function declaration/definition
564 should be output. Depending on situtation call accordingly:
565 functions (not instruction semantic routines) are always inline;
566 Semantic routines are made inline when there is no icache (cache
567 will contain the function address) and are duplicating (see above)
568 and the parent of the instruction is a switch statement.
569
570 * igen.c (opcode_field_new): Delete. Code changed to use ZALLOC
571 and moved to insn_table_find_opcode_field.
572
573 * table.c (table_open): Fix typo (nr_model_fields vs nr_fields).
574
575 * igen.c (model_c_insn): Suggestion - document the name of the
576 instruction on each line of the instruction model table.
577
578 Fri Nov 10 00:44:38 1995 Andrew Cagney <cagneyhighland.com.au>
579
580 * emul_netbsd.c (do_ioctl): Cleanup compilation.
581
582 * sim_callbacks.h (__attribute__): Only define if not defined (was
583 already defined on NetBSD host).
584
585 Wed Nov 8 21:49:52 1995 Andrew Cagney <cagneyhighland.com.au>
586
587 * std-config.h (WITH_XOR_ENDIAN), configure.in, Makefile.in: New
588 macro, indicates if the PowerPC's horrible XOR endian mode should
589 be suported. Add to configure and make.
590
591 * vm_n.h (vm_data_map_read_N, vm_data_map_write_N), vm.c
592 (vm_instruction_map_read): If XOR endian, xor the address
593 with a value from an xor table (indexed by size of access).
594
595 * vm.c (vm_synchronize_context), cpu.c (cpu_synchronize_context):
596 set up xor table to xor if there is a conflict between the
597 CURRENT_TARGET_ENDIAN and the endian indicated in the MSR. Move
598 check of suported change of endian mode from cpu.c to vm.c.
599
600 * vm.c (vm_data_map_write_buffer, vm_data_map_read_buffer):
601 Hopefully added correct hack to handle XOR endian mode.
602
603 FIXME: If NONSTRICT alignment and XOR ENDIAN and MSR indicates
604 little endian mode, the model accepts miss aligned transfers.
605
606 FIXME: Need to create an `init' device that, during
607 initializatioin for XOR mode, it mushes (XOR address) all the dma
608 data before passing it on to the core for storage. Just like the
609 real thing really.
610
611 Wed Nov 8 21:49:52 1995 Andrew Cagney <cagneyhighland.com.au>
612
613 * devices.c (halt_io_write_buffer_callback): Use value written to
614 halt device to determine exit status. Thus allowing
615 success/failure of OEA tests.
616
617 Wed Nov 8 00:10:38 1995 Andrew Cagney <cagneyhighland.com.au>
618
619 * ppc-instructions (icbi): If icache present flush it.
620
621 Tue Nov 7 23:36:31 1995 Andrew Cagney <cagneyhighland.com.au>
622
623 * devices.c (htab_init_callback): Add code to create htab/pte.
624
625 * devices.c (dma_file, file_init_callback, htab_init_callback):
626 New function - Dma the named file into memory at the specified
627 address. Use.
628
629 * device_tree.h, device_tree.c (scand_*): New functions.
630
631 Tue Nov 7 23:36:31 1995 Andrew Cagney <cagneyhighland.com.au>
632
633 * filter_filename.c, Makefile.in: Change so that only dependant on
634 a very limited nr of files. Stops an unnecessary dependency.
635
636 Tue Nov 7 15:44:33 1995 Andrew Cagney <cagney@highland.com.au>
637
638 * core.c (core_map_find_mapping): Use cpu_halt rather than error
639 to abort an access to an undefined address.
640
641 Sun Nov 12 07:58:09 1995 Michael Meissner <meissner@tiktok.cygnus.com>
642
643 * igen.c (model_table_insert_{macro,function}): New functions.
644 (insn_table_load_insns): Call them.
645 (gen_model_h): Move section emiting model-macros to be first.
646 (model_{c,h}_function): New functions cloned from semantic
647 functions to print out the prototype and function for
648 model-functions.
649 (gen_model_{c,h}): Print out model-functions.
650
651 * ppc-instructions (model_{start,halt,print_info}): Add dummy
652 model-functions.
653
654 * options.c (print_options): Print out WITH_{,DEFAULT_}MODEL, not
655 WITH_PPC_{,DEFAULT_}_MODEL.
656 (options_ppc): Delete now unused function.
657 (cpu.h): Include cpu.h, not just basics.h.
658
659 * std-config.h (WITH_{,DEFAULT_}MODEL): Define.
660
661 * igen.c (model_macros, last_model_macro): New statics to keep
662 track of macros to go in model.h.
663 (insn_table_load_insns): Add model-macros to model_macros linked
664 list.
665 (model_table_fields): Add field for printable name.
666 (gen_model_h): If there are model macros defined, print them out.
667 Print out DEFAULT_MODEL as the first model if there any models
668 specified, otherwise MODEL_NONE. Print out external decl for
669 current_model. Print out decl for model_set.
670 (gen_model_c): Add function model_set. Switch to use printable
671 name for the model, not the internal identifier used.
672
673 * psim.c (current_model): New global variable.
674
675 * ppc-instructions: Add macros for flag defines. Switch first
676 model so 604 is first.
677
678 * main.c (main): Call model_set, not function_unit_model.
679 * sim_calls.c (sim_open): Ditto.
680 * sim_calls.c, Makefile.in: sim_calls.c now includes cpu.h.
681
682 Sat Nov 11 07:27:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
683
684 * mon.h (mon_events): New enumeration for other events we want to
685 handle.
686 (mon_event): Add declaration for function.
687
688 * mon.c (mon_event): New function.
689 (mon_print_info): Print icache misses.
690
691 * psim.c (run_until_stop): Monitor icache misses.
692
693 * configure.in (--enable-sim-inline): Fix typos in handling comma
694 separated inline options.
695 (--enable-sim-icache): Echo icache size.
696 * configure: Regenerate.
697
698 * igen.c (semantics_h_print_function): Emit STATIC_SEMANTICS
699 instead of INLINE_SEMANTICS so that the compiler won't keep all of
700 the semantic functions as inline RTL, given that the address of
701 the function is taken which forces outline calls anyway.
702 (lf_print_c_semantic_function_header): Ditto.
703 (gen_semantics_h): Define STATIC_SEMANTICS as nothing if not
704 defined.
705 (lf_print_c_cracker_function): Emit STATIC_IDECODE instead of
706 STATIC_INLINE_IDECODE.
707 (gen_idecode_c): Define STATIC_IDECODE if not defined.
708 (gen_model_h): Use #ifdefs to define types to hold model units,
709 cycles, and flags.
710 (model_table_insert): Add a sentinel functional unit at the end to
711 simplify loop processing.
712 (model_c_insn): Use <function-unit>_SENTINAL instead of 0 for any
713 instruction not specifing a function unit for the current model.
714 (gen_model_{c,h}): Provide bounds for model_time_mapping.
715
716 * inline.h (STATIC_SEMANTICS): Define to be static if
717 SEMANTICS_INLINE is defined.
718 (STATIC_IDECODE): Define to be static if IDECODE_INLINE is
719 defined.
720
721 * options.c (print_options): Fix typo.
722
723 Fri Nov 10 06:39:46 1995 Michael Meissner <meissner@tiktok.cygnus.com>
724
725 * configure.in (--enable-sim-{opcode,config}): Use $srcdir when
726 check for the existence of files.
727 * configure: Regenerate.
728
729 * table.c (table): New field nr_model_fields.
730 (table_open): New parameter nr_model_fields.
731 (table_entry_read): Parse model fields that begin with a '*' after
732 each instruction.
733 * igen.c, dgen.c: Change callers of table_open.
734
735 * igen.c: Add support for dumping model specific information in
736 model.h and model.c.
737 (insn_field_name): Delete unused array.
738 (global variables): Make global variables static, so we can tell
739 when they are no longer used.
740 (cache_semantic_actual): Delete unused variable.
741 (insn_table_load_insns): If the insn is really a machine model,
742 call model_table_insert instead of other processing.
743 (model_table_insert): New function to handle defining the
744 functional units of a particular machine model.
745 (insn_table): Add last_function field so we can add functions at
746 the end.
747 (insn_table_insert_function): Use last_function field when
748 appending new function.
749
750 * ppc-instructions: Add a few model specific information for 603,
751 603e, and 604 for testing purposes.
752
753 * table.h (table_model_entry): New linked list to hold model
754 specific information, one per line.
755 (table_entry): Add model_first, model_last fields.
756
757 * configure.in (--enable-sim-inline): If gcc is found and
758 --enable-sim-inline is not specified, defaine DEFAULT_INLINE to 1,
759 not 2.
760 (--enable-sim-reserved-bits): New switch to check whether reserved
761 bits are set in the instruction.
762 (--enable-sim-opcode): Make complex the default.
763 (all switches): Add appropriate checks and error messages.
764 * configure: Regenerate.
765
766 * Makefile.in (RESERVED_CFLAGS): New variable set by
767 --enable-sim-reserved-bits.
768 (CONFIG_CFLAGS): Include RESERVED_CFLAGS.
769 (BUILT_SRC): igen now generates model.c and model.h.
770 (LIB_OBJ): Include table.o.
771 (tmp-igen): Add -m/-M options to write model.c/model.h.
772 (model.o): New object.
773 (CPU_H): Include model.h.
774
775 * cpu.h: Include model.h.
776
777 * std-config.h (WITH_RESERVED_BITS): Define.
778 (MODEL_INLINE): Ditto.
779
780 * options.c (print_options): Print out WITH_RESERVED_BITS.
781
782 Thu Nov 9 12:22:15 1995 Michael Meissner <meissner@tiktok.cygnus.com>
783
784 * configure.in: If --silent, don't output information messages.
785 * configure: Regenerate.
786
787 * configure.in (--enable-sim-alignment): Fix typo in specifing non
788 strict alignment.
789 (--enable-sim-switch): Make default on.
790 (--enable-sim-duplicate): Make default on.
791 (--enable-sim-smp): Make default 0.
792 (--enable-sim-mon): Don't set sim_float if not set.
793 (--enable-sim-inline): If gcc is found and --enable-sim-inline is
794 not specified, define DEFAULT_INLINE to be 2.
795 (all --enable-sim-* rules): Echo rules set to non empty to file
796 descriptor 6.
797 * configure: Regenerate.
798
799 * options.c (options_env): Fix typo if WITH_ENV is 0.
800 (print_options): Print GCC compiler version if available and
801 date/time options was compiled. If OPCODE_RULES, IGEN_FLAGS,
802 and/or DGEN_FLAGS are defined, print them.
803
804 * Makefile.in (all link actions): Pass SIM_CFLAGS as well as
805 CFLAGS.
806 (options.o): Compile options.o with OPCODE_RULES, IGEN_FLAGS, and
807 DGEN_FLAGS defined, so they can be printed out.
808
809 * igen.c (lf_print_c_validate): Check for WITH_ASSERT, so that
810 this test can be compiled away if the user really wants a fast
811 simulator by not doing assertion failures.
812
813 Wed Nov 8 13:19:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
814
815 * options.c: New file to print out all of the WITH_ options.
816 * options.h: New include file to declare print_options.
817 * debug.h (trace_options): Add trace_opts to call print_options.
818 * debug.c (trace_description): Add trace_opts support.
819 * main.c (main): If user requested options, print them.
820 * sim_calls.c (sim_open): Ditto.
821
822 * igen.c (opcode_field_new): Add void to make it a proper prototype.
823
824 * emul_generic.c (emul_enter_call): Make printf_filtered arguments
825 type correct.
826 * emul_netbsd.c (do_kill): Ditto.
827 * registers.c (registers_dump): Ditto.
828 * vm.c (om_translate_effective_to_real): Ditto.
829 * vm_n.h (vm_data_map_read_N): Ditto.
830 (vm_data_map_write_N): Ditto.
831 * devices.h (DTRACE_INIT): Ditto.
832 (DTRACE_{ATTACH,DETACH}_ADDRESS): Ditto.
833 (DTRACE_IO_{READ,WRITE}_BUFFER): Ditto.
834 (DTRACE_DMA_{READ,WRITE}_BUFFER): Ditto.
835 * devices.c (update_for_binary_section): Ditto.
836 (write_stack_arguments): Ditto.
837 (stack_ioctl_callback): Ditto.
838 * device_tree.c (device_tree_add_passthrough): Ditto.
839 (device_tree_{add,find}_device): Ditto.
840 (device_tree_{add,find}_integer): Ditto.
841 (device_tree_find_{string,boolean}): Ditto.
842 (device_tree_init{,_device}): Ditto.
843 (device_tree_dump): Ditto.
844 * sim_calls.c (sim_{read,write}): Ditto.
845 (sim_{fetch,store}_register): Ditto.
846 (sim_stop_reason): Ditto.
847
848 * sim_callbacks.h (printf_filtered): Declare with attribute
849 printf, so we can enable format checks.
850
851 * devices.c (console_io_{read,write}_buffer_callback): Cast swtich
852 argument to int, since ANSI doesn't allow long switch values.
853 * emul_netbsd.c (do___sysctl): Ditto.
854
855 * emul_netbsd.c (do___sysctl): Fix up printf call.
856
857 * corefile.c (core_translate): Don't do arithmetic with void *
858 pointers. Cast to char * first.
859
860 * function_unit.c (FUNC_{LOAD,STORE}): Rename from {LOAD,STORE}
861 and change all uses.
862
863 * Makefile.in ({FUNC,MODEL,WARNING}_CFLAGS): New flags set by
864 configure --enable switches.
865 (CONFIG_CFLAGS): Include FUNC_CFLAGS and MODE_CFLAGS.
866 (.c.o): Include WARNING_CFLAGS.
867 (CPU_H): Include function_unit.h.
868 (LIB_OBJ): Include function_unit.o.
869 (BUILT_SRC_WO_CONFIG): Split from BUILT_SRC and do not include
870 config.h or ppc-config.h.
871 (BUILT_SRC): Include BUILT_SRC_WO_CONFIG, config.h and
872 ppc-config.h.
873 (filter_filename.o): Include config.h/ppc-config.h dependencies.
874 (idecode.o, semantics.o, psim.o): Specify CC line without
875 WARNING_CFLAGS so that we don't get all of the unused variable
876 warnings that are generated.
877 (function_unit.o): Add rule to build.
878 (main.o, sim_calls.o): Add function_unit.h, itable.h dependencies.
879 (mon.o): Include mon.c dependency.
880 (TAGS): Depend on BUILT_SRC.
881 (clean): Don't delete config.h or ppc-config.h
882
883 * basics.h (sim_callbacks.h): Move include after the include of
884 config.h and ppc-config.h.
885
886 * bits.{h,c} (ROTL32,ROTL64): Move these functions to bits.c. Add
887 support for BITS_INLINE to inline these. Add declarations to
888 bits.h.
889
890 * configure.in (--enable-sim-warnings): Add new option to specify
891 compiler warnings for all modules except idecode.o and semantics.o
892 which have lots of unused variables because they are machine
893 generated.
894 (--enable-sim-function-unit): New switch to configure whether
895 function unit support is compiled in or not.
896 (--enable-sim-{,default-}mode): New switches to control which cpu
897 model is used.
898 * configure: Regenerate.
899
900 * corefile.c (core_attach_address_callback): Delete unused
901 variable device_address.
902
903 * cpu.c (struct _cpu): Add function unit pointer field func_unit.
904 (cpu_create): If WITH_FUNCTION_UNIT, call function_unit_create.
905 (cpu_init): If WITH_FUNCTION_UNIT, call function_unit_init.
906 (cpu_halt): If WITH_FUNCTION_UNIT, call function_unit_halt.
907 (cpu_function_unit): New function to return func_unit field.
908
909 * cpu.h (function_unit.h): Include new include file.
910 (cpu_function_unit): Declare.
911
912 * debug.c (stdlib.h): Test HAVE_STDLIB_H, not HAVE_STDLIB.
913 (config.h): Include config.h.
914
915 * devices.c (icu_io_write_buffer_callback): Delete unused variable
916 system.
917
918 * emul_generic.c (emul_exit_call): Print out status value.
919
920 * emul_netbsd.c (do_read): Delete unused variable nr_moved.
921
922 * filter_filename.h (includes): Include config.h, ppc-config.h,
923 not basics.h.
924
925 * inline.c: Include bits.c if BITS_INLINE. Include
926 function_unit.c if FUNCTION_UNIT_INLINE.
927
928 * inline.h (INLINE_BITS): Define if BITS_INLINE.
929 (INLINE_FUNCTION_UNIT): Define if FUNCTION_UNIT_INLINE.
930
931 * interrupts.c (instruction_storage_interrupt): Delete unused
932 variable nia.
933
934 * lf.h (config.h): Include config.h.
935
936 * main.c (includes): Include function_unit.c. If HAVE_UNISTD_H,
937 include unistd.h.
938 (usage): Update for -m model, -i, and -I options.
939 (main): Delete unused variables stack_pointer and i. Add support
940 for -i, -m model arguments. Call psim_print_info with verbose ==
941 1 if -i, and verbose == 2 if -I.
942
943 * mon.c (stdio.h): Include stdio.h to pick up sprintf prototype.
944 (mon_issue): Call function_unit_issue if function units are
945 supported.
946 (mon_print_info): Take psim * argument. Print out information
947 from function_unit if available. Move read/write stats to always
948 print, instead of printing if verbose > 1. Fix up plural
949 vs. singular usage.
950
951 * mon.h (mon_print_info): Update prototype.
952
953 * psim.c (current_ppc_model): Add global variable.
954 (psim_print_info): Pass system argument to mon_print_info.
955
956 * sim_calls.c (function_unit.h): Include.
957 (sim_open): Add support for -i and -m model options. If -i call
958 psim_print_info with verbose == 1, if -I, with verbose == 2.
959 (sim_resume): Delete unused variable program_counter.
960
961 * std-config.h (WITH_FUNCTION_UNIT): Define.
962 (ppc_model): Add enumeration giving all PowerPC models currently
963 known about.
964 ({WITH,CURRENT}_PPC_MODEL): Define.
965 (FUNCTION_UNIT_INLINE): Define.
966
967 * table.c (config.h): Include config.h.
968
969 * vm.c (om_virtual_to_real): Print pte_word_{0,1} so the compiler
970 doesn't complain that they're unused.
971
972 * vm_n.h (vm_data_map_read_N): Delete unused variable rval.
973
974 Mon Nov 6 23:15:54 1995 Andrew Cagney <cagney@highland.com.au>
975
976 * sim-endian.c (ppc-endian.c), sim-endian.h (ppc-endian.h):
977 renameed. These files are target independant.
978 * Makefile.in, basics.h: update for new name.
979
980 * sim-endian.h (SWAP_N), sim-endian.c (_SWAP_1): Rename existing
981 SWAP_<N> to _SWAP_<N> so that sim-endian.h can contain SWAP_N
982 macro's as required.
983
984 * sim-endian.c, sim-endian-n.h (new file): Move endian code into a
985 debugable header file.
986
987 * ppc-instructions (Byte-Reverse): Enable byte reverse
988 instructions using SWAP_N macros.
989
990 Mon Nov 6 10:39:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
991
992 * Makefile.in (config.status): Remove references to config.make
993 and config.hdr.
994
995 * config.{make,hdr}: Delete, no longer used.
996 * build-psim: Ditto.
997
998 Mon Nov 6 20:49:56 1995 Andrew Cagney <cagney@highland.com.au>
999
1000 * sim_calls.c (sim_open): Fix parsing of `target sim' options.
1001
1002 * device_tree.c (device_tree_add_string): Wasn't saving the value
1003 of the string being entered into the tree.
1004
1005 * psim.c (create_filed_device_tree): Not terminating string device
1006 names with a null.
1007
1008 * psim.c (psim_create): Use `env' instead of
1009 `environment-architecture' to be consistent with configure.
1010 Reconize user/uea, virtual/vea and operating/oea.
1011
1012 Sat Nov 4 12:29:45 1995 Fred Fish <fnf@cygnus.com>
1013
1014 * core.c: Rename to corefile.c
1015 * core.h: Rename to corefile.h
1016 * inline.c: Include corefile.h, renamed from core.h.
1017 * cpu.h: Include corefile.h, renamed from core.h
1018 * vm.c: Include corefile.h, renamed from core.h
1019 * corefile.c: Include corefile.h rather than core.h
1020 * README.psim (KNOWN PROBLEMS): Change core.* references to corefile.*
1021 references.
1022 * Makefile.in (CPU_H): Change core.h to corefile.h
1023 (vm.o): Change dependency to corefile.h
1024 (LIB_SRC): Change core.c to corefile.c.
1025 (LIB_OBJ): Change core.o to corefile.o.
1026 (corefile.o): Change dependencies to corefile.c, corefile.h.
1027
1028 Fri Nov 3 11:37:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1029
1030 * ppc-instructions (data cache instructions): Make all data cache
1031 instructions nops instead of invalid instructions.
1032
1033 * Makefile.in (CONFIG_CFLAGS): Add ALIGNMENT_CFLAGS and
1034 TIMEBASE_CFLAGS which weren't included.
1035
1036 Thu Nov 2 08:54:04 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1037
1038 * Makefile.in: Uncomment built file dependencies.
1039
1040 * configure.in: Rewrite --enable-sim switch handling to use the
1041 autoconf builtins so it works correctly if the configure or
1042 Makefile.in files are modified and make decides to rebuild
1043 Makefile. Also document all of the --enable-sim switches
1044 supported. Check whether getrusage and sys/resource.h are
1045 supported.
1046 * config.in: Regenerate.
1047 * configure: Regenerate.
1048 * Makefile.in: Add support for all of the variables set with
1049 --enable-sim switches.
1050
1051 * Makefile.in (clean): make clean now removes all built sources as
1052 well.
1053
1054 * cpu.c: Use HAVE_STRING_H, HAVE_STRINGS_H, HAVE_UNISTD_H,
1055 HAVE_TIME_H, HAVE_SYS_TIMES_H, HAVE_SYS_RESOURCE_H defined in
1056 the generated config.h.
1057 * debug.c: Ditto.
1058 * device_tree.c: Ditto.
1059 * devices.c: Ditto.
1060 * dgen.c: Ditto.
1061 * emul_netbsd.c: Ditto.
1062 * igen.c: Ditto.
1063 * lf.c: Ditto.
1064 * misc.c: Ditto.
1065 * psim.c: Ditto.
1066 * registers.c: Ditto.
1067 * sim_calls.c: Ditt.
1068 * table.c: Ditto.
1069
1070
1071 * main.c (main): Call psim_print_info with verbose == 2.
1072
1073 * mon.c (mon_print_info): Align the cpu number and number of
1074 instructions fields. Do not print an instruction category if the
1075 CPU did not execute any of those instructions. Print out number
1076 of reads and writes. If getrusage is supported, print out number
1077 of simulated instructins per second.
1078
1079 * configure.in: Add support for --enable-sim-opcode=stupid.
1080 * configure: Regenerate.
1081
1082 Wed Nov 1 23:46:59 1995 Andrew Cagney <cagney@highland.com.au>
1083
1084 * std-config (INLINE_DEVICE_TREE): Don't inline either of
1085 device_tree.c or devices.c. There is no significant gain.
1086
1087 * configure.in, Makefile.in: add --enable-sim-icache=[0-9]* and
1088 IGEN_ICACHE macro.
1089
1090 Wed Nov 1 23:46:59 1995 Andrew Cagney <cagney@highland.com.au>
1091
1092 * igen.c (main), misc.h (target_a2i, i2target), misc.c: Add
1093 functions to convert between target and igen internal bit numbers.
1094 Make IO go through these functions. Add -b (bit size) and -h (high
1095 bit nr) options to igen. Typical usage would be: ./igen -b 16 -h
1096 15 for a 16 bit instruction format with the msb given a number 15.
1097
1098 Wed Nov 1 22:17:32 1995 Andrew Cagney <cagney@highland.com.au>
1099
1100 * dgen.c (main): Was outputting optarg even when it was NULL.
1101
1102 Tue Oct 31 23:48:33 1995 Andrew Cagney <cagney@highland.com.au>
1103
1104 * vm_n.h (vm_data_map_load_N, vm_data_map_store_n), debug.h,
1105 debug.c: Add tracing of load/store unit (virtual) with -t
1106 load-store.
1107
1108 Tue Oct 31 21:44:01 1995 Andrew Cagney <cagney@highland.com.au>
1109
1110 * std-config.h (WITH_ENVIRONMENT): Add USER_ENVIRONMENT which does
1111 not include things such as the time base and events.
1112
1113 * interrupt.c, sim_calls.c, cpu.h, vm.c, configure.in: Add UEA to
1114 all environment switches for above.
1115
1116 * psim.c (psim_create): ditto - new device tree node name is
1117 /options/environment-architecture with values user, virtual and
1118 operating.
1119
1120 Tue Oct 31 21:31:32 1995 Andrew Cagney <cagney@highland.com.au>
1121
1122 * ppc-opcode-stupid: Third example of use of opcode table - this
1123 one expands all mtspr/mfspr and branch instructions. Appears to
1124 give about a 10% gain in performance if everything enabled. Also
1125 takes about 150mb of swap to build.
1126
1127 Wed Nov 1 10:49:48 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1128
1129 * emul_netbsd.c (do_exit): Print arguments and close parenthesis
1130 if tracing, since exit doesn't go through emul_exit_call.
1131 (do_read): Print arguments if tracing.
1132 (do_write): Ditto.
1133 (do_open): Ditto.
1134 (do_break): Ditto.
1135 (do_kill): Ditto.
1136 (do_dup): Ditto.
1137 (do_sigprocmask): Replace trace with printing arguments if
1138 tracing.
1139 (do_ioctl): Print arguments if tracing.
1140 (do_umask): Ditto.
1141 (do_dup2): Ditto.
1142 (do_fcntl): Ditto.
1143 (do_gettimeofday): Ditto.
1144 (do_getrusage): Ditto.
1145 (do_fstatfs): Ditto.
1146
1147 * filter_filename.c: New file to provide filter_filename to strip
1148 the directory prefix from a file.
1149 * filter_filename.h: New include file to declare filter_filename.
1150
1151 * debug.h: Include filter_filename.h.
1152 (TRACE,DTRACE,ERROR): Use filter_filename on __FILE__.
1153
1154 * misc.h: Include filter_filename.h.
1155 (ASSERT): Use filter_filename on __FILE__.
1156
1157 * igen.c (lf_print_my_prefix): Use filter_filename on the filename
1158 argument.
1159
1160 * Makefile.in: Add filter_filename support.
1161
1162 * ppc-instructions (dcbi, icbi): Make these NOPs rather than
1163 invalid instructions.
1164
1165 * configure.in: Add support for more --enable-sim-* switches.
1166 Use config.make and config.hdr to write to Makefile and config.h
1167 respectively. Don't rewrite Makefile, just append to it.
1168 * configure: Regenerate.
1169 * config.{make,hdr}: New shell scripts.
1170
1171 * Makefile.in: Remove all variables set by configure.in.
1172 (psim.o): Depend on $(BUILT_SRC) also.
1173
1174 * emul_netbsd.c (do_gettimeofday,do_getrusage): When comparing an
1175 integer, use 0, not NULL.
1176
1177 Tue Oct 31 15:20:04 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1178
1179 * configure.in: Add support for --enable-sim-inline,
1180 --enable-sim-bswap, --enable-sim-cflags, --enable-sim-complex,
1181 --enable-sim-switch, --enable-sim-duplicate, --enable-sim-filter,
1182 and --enable-sim-endian switch to control various Makefile
1183 variables.
1184 * configure: Regenerate from configure.in.
1185 * Makefile.in: Add various Make variables that the various
1186 switches alter.
1187
1188 * std-config.h (DEFAULT_INLINE): Don't set this to 2 if using GCC
1189 and optimizing by default.
1190
1191 Fri Oct 27 19:26:27 1995 Andrew Cagney <cagney@highland.com.au>
1192
1193 * bits.h (ROTL32, ROTL64): Were functions, made them macros, now
1194 make them functions again. Appears 2.6.3 is confused by just a
1195 macro.
1196
1197 Thu Oct 26 18:31:58 1995 Andrew Cagney <cagney@highland.com.au>
1198
1199 * ppc-endian.c (SWAP_8): Fix 8 byte swap!
1200
1201 * psim.c (psim_create): Not correctly checking that runtime
1202 configuration of things like ENDIAN, ENVIRONMENT and ALIGNMENT
1203 matched the compiled in ones.
1204
1205 * debug.h (ITRACE), igen.c: Tidy up more tracing flags -
1206 trace_semantics is now different to trace_idecode, the former
1207 checks the cache.
1208
1209 Tue Oct 24 21:54:13 1995 Andrew Cagney <cagney@highland.com.au>
1210
1211 * ppc-instructions (mtsrin): Missing instruction
1212 * ppc-instructions (mfsrin): Missing instruction
1213 * ppc-instructions (eieio): Missing instruction
1214
1215 Tue Oct 24 20:55:29 1995 Andrew Cagney <cagney@highland.com.au>
1216
1217 * build-psim: New shell script - see internals for usage,
1218 simplifies the process of building custom simulators.
1219
1220 Mon Oct 23 23:48:59 1995 Andrew Cagney <cagney@highland.com.au>
1221
1222 * std-config.h (SEMANTICS_INLINE): Tidy up notes on each of the
1223 INLINE macros. Make SEMANTICS_INLINE == 1 if DEFAULT_INLINE == 2.
1224 Don't use DEFAULT_INLINE to define REGISTERS_INLINE DEVICES_INLINE
1225 DEVICE_TREE_INLINE or INTERRUPTS_INLINE as none of these are on
1226 the instruction or data critical paths.
1227
1228 * FIXME: devices.c/emul_netbsd.c would benefit (slightly) from
1229 the inclusion of device_tree.c/emul_generic.c.
1230
1231 Mon Oct 23 00:31:50 1995 Andrew Cagney <cagney@highland.com.au>
1232
1233 * os_emul.[hc], emul_generic.[hc], emul_netbsd.[hc]: replace
1234 system.[hc]. Start of suport for multiple emulations and
1235 emulation state (os_emul object).
1236
1237 * emul_generic.[hc]: Start of code to implement proper system call
1238 tracing (from spy).
1239
1240 Sun Oct 22 21:33:51 1995 Andrew Cagney <cagney@highland.com.au>
1241
1242 * cpu.h, cpu.c (cpu_init): New function, zero the registers before
1243 the processor is started. Fixes problem of registers being
1244 undefined when restarting from within gdb.
1245
1246 * cpu.h, cpu.c (cpu_flush_icache): New function, flushes the
1247 instruction cache (if present). Fixes problem of cpu caching gdb
1248 breakpoint instructions.
1249
1250 FIXME: PSIM sometimes aborts calling error(), it should instead
1251 call sim_error() say which takes care of housekeeping such as
1252 saving the CIA before calling error.
1253
1254 * NOTE: cpu_flush_cache() instead of cpu_synchronize_context() is
1255 used when restarting a simulation because the latter has the
1256 unwanted side effect (well I as a kernel hacker think it is) of
1257 performing an isync when the instruction stream doesn't contain
1258 one.
1259
1260 Sun Oct 22 19:27:48 1995 Andrew Cagney <cagney@highland.com.au>
1261
1262 * mon.h (new), mon.c (new), std-config.h (WITH_MON): Performance
1263 monitoring module. Counts both instructions issued and
1264 load/stores.
1265
1266 * NOTE: mon does not contain to count instruction loads as this
1267 information is already available from the mon_issue() hook.
1268
1269 * igen.c (lf_print_c_semantic), vm_n.h: Add counting code.
1270
1271 * psim.h, psim.c (psim_create), cpu.h, cpu.c (cpu_create): Attach
1272 a common monitor to each of the cpus. Delete
1273 cpu_increment_number_of_insns() and cpu_get_number_of_insns()
1274 replaced by copied code in mon.[hc].
1275
1276 Sun Oct 22 18:42:45 1995 Andrew Cagney <cagney@highland.com.au>
1277
1278 * sim_calls.c, main.c, psim.c (psim_create): always create
1279 `WITH_SMP' cpus. The actual number of CPU's active in a
1280 simulation run is taken from the device node: /init/smp (an
1281 integer). WITH_SMP changed to 2 (remember to put it back to 0).
1282
1283 Fri Oct 20 17:26:54 1995 Andrew Cagney <cagney@highland.com.au>
1284
1285 * system.c: More system call emulation. If code appears NetBSD
1286 specific, make conditional to being compiled on a NetBSD system
1287 (sigh).
1288
1289 Wed Oct 18 23:02:20 1995 Andrew Cagney <cagney@highland.com.au>
1290
1291 * Makefile.in, gen.c(delete), igen.c(new), dgen.c(new),
1292 lf.[ch](new), table.[ch](new): Split into two generators - igen
1293 that outputs the instruction tables and dgen that outputs the spr
1294 tables. Add -f (filter out) flag to igen to filter out certain
1295 instructions (ex 64 bit ones) from the created tables. Include
1296 $(LIBIBERTY_LIB) in link options in case host lacks some libc
1297 functions.
1298
1299 * NOTE: igen, since it was originally written for the
1300 PowerPC/RS6000, things the MSB is 0 and the LSB is 63{31}.
1301
1302 * Makefile.in, std-config.h, ppc-cache-rules(new),
1303 ppc-opcode-complex(new), ppc-opcode-simple(new): (for igen) Create
1304 cache-rule and opcode-rule tables from macros found std-config.h.
1305 Delete corresponding macro's from std-config.h.
1306
1307 * igen.c (gen_itable_c, gen_itable_h), Makefile.in: code to output
1308 an table of all the instructions. Code to output a type
1309 enumerating all the instructin names.
1310
1311 * igen.c(lf_print_c_semantic): Move call to increment instruction
1312 counter so that it occures _after_ the instruction has been fully
1313 validated, was double counting illegal/invalid instructions. Add
1314 conditional so only compiled in when WITH_PROFILE enabled (enabled
1315 by default).
1316
1317 * igen.c, cpu.h, cpu.c(cpu_increment_number_of_insns): Include
1318 itable.h, count individual instruction types not just total,
1319 adjust reporting functions to output this.
1320
1321 * ppc-instructions (64 bit Load Doubleword with Update Indexed):
1322 Had 32./ instead of 31./
1323
1324 * ppc-instructions (64 bit Store Double Word Conditional Indexed):
1325 bitrot - updated to use newer CR register operators.
1326
1327 * ppc-instructions (64bit Floating Convert from Integer
1328 Doubleword): Correct call to Round_Float().
1329
1330 Mon Oct 16 00:31:20 1995 Andrew Cagney <cagney@highland.com.au>
1331
1332 * basics.h: #include "sim_callbacks.h" earlier so that its
1333 prototypes are declared in all other header files.
1334
1335 * bits.h, bits.c, idecode_expression.h (ROTL32, ROTL64): Update
1336 doc in bits.h, remove dead code in bits.c, move ROTL32/ROTL64 into
1337 bits.h.
1338
1339 * cpu.c(cpu_add_commas), device_tree.h, device_tree.c(scand_*):
1340 Add size of buffer argument to functions writing a string into a
1341 buffer. Check for buffer overflow.
1342
1343 Sun Oct 15 22:16:11 1995 Andrew Cagney <cagney@highland.com.au>
1344
1345 * devices.h, devices.c, debug.h, debug.c: add macro's for tracing
1346 of each device. Make parameter names consistent so macros work.
1347 Use macro's in device functions.
1348
1349 * device_tree.c, devices.h, devices.c: include path to device in a
1350 devices node when creating it.
1351
1352 * device_tree.c, debug.h, debug.c: Add tracing of `device-tree'.
1353
1354 * core.c: add tracing of core-device, adjust parameter names in
1355 core functions to be consistent with those in devices*.
1356
1357 Sun Oct 15 20:33:20 1995 Andrew Cagney <cagney@highland.com.au>
1358
1359 * debug.h, debug.c (trace_option): New function. Parses the trace
1360 option, updating the trace array.
1361
1362 * debug.h, debug.c (trace_usage): New function. Outputs the list
1363 of all possible trace options.
1364
1365 * sim_calls.c (sim_open), main.c (main): Use new trace_option() to
1366 parse trace options specified with the simpler -t flag. Adjust
1367 usage.
1368
1369 * FIXME: basic parsing of command line options is still duplicated
1370 by main.c and sim_calls.c
1371
1372 Thu Oct 26 10:42:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1373
1374 * Makefile.in (clean): Delete *.i and *.out files.
1375
1376 * ppc-endian.c (SWAP_n): Add SET argument to allow use of SWAP
1377 macros for either assignment or return. Fix SWAP_8 to use a
1378 union, and two SWAP_4's. Delete SWAP_N, since nobody uses it now.
1379 (ENDIAN_N): Add SET argument to SWAP_n calls. Delete macro defs
1380 that hardwired swapping on/off, let optimizer delete dead code.
1381
1382 * main.c (main): Add printf that we caught a signal and print out
1383 the failing address.
1384
1385 Thu Oct 19 21:43:39 1995 Fred Fish <fnf@fishfood.amigalib.com>
1386
1387 * Makefile.in: Remove tabs from otherwise empty line.
1388 Confuses many non-GNU versions of "make".
1389
1390 Wed Oct 18 08:51:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1391
1392 * Makefile.in (clean): Delete files produced by gen.
1393
1394 Mon Oct 16 17:34:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1395
1396 * gen.c (lf_print_c_semantic_function): Move counting # of
1397 instructions here so it works with caching.
1398 (gen_idecode_c): Move from here.
1399
1400 Wed Oct 11 17:13:15 1995 Andrew Cagney <cagney@highland.com.au>
1401
1402 * gen.c, ppc-instructions, psim.c: Fix code for generating
1403 cracking instruction cache. Delete the code that cached just the
1404 result from doing an instruction lookup - this ran slower than no
1405 cache at all.
1406
1407 Fri Oct 13 09:58:43 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1408
1409 * Makefile.in (gen.o): Include $(INLINE_CFLAGS).
1410
1411 * debug.h (ppc_trace): Rename from trace, to avoid a conflict with
1412 TCL when gdb is linked with the simulator.
1413 * debug.c (ppc_trace): Ditto.
1414 * sim_calls.c (sim_open): Change trace -> ppc_trace.
1415 * main.c (main): Ditto.
1416
1417 * cpu.c (cpu_add_commas): Remove extra static.
1418
1419 Thu Oct 12 11:35:53 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1420
1421 * Makefile.in (psim.o): Now that inlines are turned on, make
1422 psim.o depend on all sources.
1423
1424 * cpu.c (cpu_add_commas): New function to format a long with
1425 commas.
1426 (cpu_print_info): Use it to print number_of_insns.
1427
1428 * ppc-endian.c (SWAP_n): New macros to speed up byte swapping for
1429 2, 4, and 8 bytes.
1430 (ENDIAN_N): If both target and host byte orders are known, don't
1431 bother testing CURRENT_{TARGET,HOST}_BYTE_ORDER.
1432
1433 * ppc-endian.h (target specific H2T_n/T2H_n macros): Remove #if 0
1434 to allow target specific H2T_n/T2H_n macros to be used.
1435 (htonl, ntohl): If compiled on a 486 by GCC and WITH_BSWAP is
1436 non-zero, redefine the htonl/ntohl macros to use the BSWAP instead
1437 of the 3 instruction sequence that runs on 386s.
1438
1439 * std-config.h (WITH_{HOST,TARGET}_BYTE_ORDER): Don't override if
1440 specified on the compile line.
1441 (WITH_BSWAP): If not defined, define as 0.
1442
1443 * Makefile.in (INLINE_CFLAGS): Add -DDEFAULT_INLINE=2 to add
1444 default inline support. Pass INLINE_CFLAGS when compiling.
1445
1446 * devices.{h,c} (unimp_device_ioctl): Use STATIC_DEVICES, not
1447 INLINE_DEVICES since GCC doesn't like inline functions that
1448 accept variable arguments.
1449 (stack_ioctl_callback): Make function just static because GCC
1450 doesn't like inline functions that accept variable arguments.
1451
1452 * devices.h (STATIC_DEVICES): Define as empty if not defined.
1453
1454 * inline.c: Correct pathnames of included C files to match current
1455 implementation.
1456
1457 * inline.h (STATIC_DEVICES): If DEVICES_INLINE is defined to be
1458 non-zero, define STATIC_DEVICES to be static.
1459
1460 * std-config.h (INLINE): If GNU C and optimizing, define this as
1461 __inline__.
1462 (DEFAULT_INLINE): If not defined, define as 0.
1463 (ENDIAN_INLINE): If not defined, define as DEFAULT_INLINE.
1464 ({CORE,VM,CPU,EVENTS,REGISTERS,INTERRUPTS}_INLINE): Ditto.
1465 ({SPREG,IDECODE}_INLINE): Ditto.
1466
1467 Wed Oct 11 17:13:15 1995 Andrew Cagney <cagney@highland.com.au>
1468
1469 * ppc-instructions: Initial cut of floating point suport added.
1470 Of note include - use of host IEEE floating point instructions,
1471 use of PowerPC manual pseudo code to handle the FPSCR. It is not
1472 currently a pretty sight.
1473
1474 * memory_map.h, memory_map.c, memory_map_n.h, core.h, core.c:
1475 merge into core.h, core.c, core_n.h. The type memory_map replaced
1476 with core_map. This removes a level of pointer indirection when
1477 translating an address.
1478
1479 * memory_map.h, memory_map.c, memory_map_n.h: delete.
1480
1481 * Makefile.in et.al (sorry): tweek to use new core, core_map and
1482 core.h.
1483
1484 Wed Oct 11 12:10:26 1995 Andrew Cagney <cagney@highland.com.au>
1485
1486 * sim_calls.c, main.c: Add -g (trace_gdb) option, add tracing to
1487 most of the other functions in sim_calls.c.
1488
1489 * basics.h (CONCAT3), memory_map.c, memory_map_n.h, Makefile.in:
1490 Add macros to better cover up `generic' code. Makes it possible
1491 to step through the generic code!
1492
1493 * vm.c, vm_n.h, Makefile.in: ditto
1494
1495 Tue Oct 10 15:42:59 1995 Andrew Cagney <cagney@highland.com.au>
1496
1497 * devices.h, devices.c, memory_map.h, memory_map.c: Changed
1498 callback interface so that there is a read/write buffer but no
1499 read/write_word. VEA default memory read/write handler sometimes
1500 couldn't resolve an access and of those some were for a memory
1501 fault and some were because gdb was making a bogus request.
1502
1503 * devices.h, devices.c, memory_map.h, memory_map.c, vm.h, vm.c:
1504 eliminate transfer_mode (raw or cooked) parameter from read/write
1505 buffer.
1506
1507 Fri Oct 6 20:23:56 1995 Andrew Cagney <cagney@highland.com.au>
1508
1509 * ppc-instructions (fmul, fmuls): correct instruction format - had
1510 FRB instead of FRC.
1511
1512 Wed Oct 4 17:31:12 1995 Andrew Cagney <cagney@highland.com.au>
1513
1514 * psim.c, device_tree.h, device_tree.c, devices.c (printd_*,
1515 scand_*): new functions to parse/print fields in device names
1516 while hiding any machine dependency.
1517
1518 * devices.c, psim.c: Change the stack init code so that it is
1519 handled by a device. Arguments passed across using a device ioctl
1520 (hack).
1521
1522 * devices.h, devices.c: device ioctl callback changed to allow a
1523 variable number of arguments. This gives greater flexability and
1524 greater chance of bugs.
1525
1526 Tue Oct 3 22:01:56 1995 Andrew Cagney <cagney@highland.com.au>
1527
1528 * main.c (printf_filtered, error): Missing va_end() to close off
1529 variable argument use.
1530
1531 * Makefile.in (tmp-gencode): comment out hack to get around some
1532 versions of make not handling files being created as side-effects.
1533
1534 * gen.c (lf_open): Add -n (real_file_name) option. Specifies an
1535 alternative file name to use in output files for things like #line
1536 macros.
1537
1538 Makefile.in (tmp-gencode): Use gen -n so that debug info is
1539 correct.
1540
1541 * Makefile.in (TARGETLIB): Use this instead of libsim.a in the
1542 Makefile.
1543
1544 Sat Oct 7 22:40:59 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1545
1546 * sim_calls.c (sim_set_callbacks): Define new function.
1547
1548 Fri Oct 6 17:23:10 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1549
1550 * psim.c (psim_print_info): Print exit status or signal number.
1551
1552 Mon Oct 2 11:46:37 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1553
1554 * cpu.c (struct _cpu): Add number_of_insns field to trace how many
1555 instructions are executed.
1556 (cpu_increment_number_of_insns): New function to increment the
1557 number of instructions issued.
1558 (cpu_get_number_of_insns): New function to return the number of
1559 instructions issued.
1560 (cpu_print_info): New function to print cpu related information.
1561 At present, print the number of instructions executed.
1562
1563 * gen_idecode_c: Emit call to cpu_increment_number_of_insns within
1564 idecode_issue.
1565
1566 * psim.c (psim_print_info): New function to iterate over each of
1567 the CPU's calling cpu_print_info.
1568
1569 * psim.h,cpu.h: Add new declarations.
1570
1571 * sim_calls.c (sim_open): Add argument processing to add the same
1572 switches main.c accepts for the standalone processor.
1573 (sim_close): Call psim_print_info if -I.
1574
1575 * main.c (main): Add comment saying to update sim_calls.c when
1576 adding switches. Add -I to call psim_print_info when done.
1577 (usage): Update usage message.
1578
1579 Sun Oct 1 13:52:59 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1580
1581 * main.c (printf_filtered): Correct to match new prototype.
1582
1583 Sat Sep 30 20:47:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1584
1585 * sim_callbacks.h (printf_filtered): Correct prototype.
1586
1587 Thu Sep 21 16:26:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1588
1589 * device_tree.c (OEA_MEMORY_SIZE): Define if not defined to
1590 0x100000.
1591 (clayton_memory_size): Define as OEA_MEMORY_SIZE.
1592
1593 * std-config.h (WITH_TRACE): Default to 1 now.
1594
1595 * psim.c (write_stack_arguments): Don't write any stack arguments
1596 if OEA.
1597
1598 * main.c (main): Switch to using getopt. Make -p also set
1599 trace_semantics. Make -a turn on all trace flags. Make -C turn
1600 on console tracing.
1601
1602 * device_tree.c (create_option_device_node): Assume a program is
1603 OEA if the start address is < 4096, not just == 0.
1604
1605 Wed Sep 20 13:36:06 1995 Ian Lance Taylor <ian@cygnus.com>
1606
1607 * Makefile.in (maintainer-clean): New synonym for realclean.
1608
1609 Sun Sep 10 10:23:56 1995 Michael Tiemann <tiemann@axon.cygnus.com>
1610
1611 * registers.c (register_description): Add gdb synonyms for cr
1612 (cnd) and msr (ps).
1613
1614 Fri Sep 8 13:16:10 1995 Ian Lance Taylor <ian@cygnus.com>
1615
1616 * Makefile.in (install): Don't install in $(tooldir).
1617
1618 * configure.in: Call AC_CONFIG_HEADER. Don't try to use
1619 bfd/hosts/*.h file or bfd/config/*.mh file. Call AC_PROG_CC and
1620 AC_PROG_RANLIB. Substitute in values for CFLAGS, HDEFINES, AR,
1621 and CC_FOR_BUILD. Call AC_CHECK_HEADERS for various header files.
1622 Touch stamp.h if creating config.h.
1623 * configure: Rebuild.
1624 * config.in: New file, created by autoheader.
1625 * Makefile.in (AR): Define as @AR@.
1626 (CC): New variable, defined as @CC@.
1627 (CFLAGS): Define as @CFLAGS@.
1628 (CC_FOR_BUILD): New variable, defined as @CC_FOR_BUILD@.
1629 (RANLIB): Define as @RANLIB@.
1630 (HDEFINES, TDEFINES): New variables.
1631 (@host_makefile_frag@): Remove.
1632 (mostlyclean): Make the same as clean, not distclean.
1633 (clean): Remove config.log.
1634 (distclean): Remove config.h and stamp-h.
1635 (Makefile): Don't depend upon @frags@. Just rebuild Makefile when
1636 invoking config.status.
1637 (config.h, stamp-h): New targets.
1638 (gen, gen.o): Build with CC_FOR_BUILD, not CC.
1639 (ppc-config.h): Rename from old config.h build.
1640 * (basics.h,gen.c,ppc-endian.c,psim.c): Include ppc-config.h.
1641
1642 Fri Sep 8 09:51:03 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1643
1644 * configure{,.in}: Don't include sysdep.h from bfd, since bfd no
1645 longer provides it.
1646 * basics.h (sysdep.h): Don't include it.
1647 * Makefile.in (BASICS_H): Remove sysdep.h.
1648
1649 Wed Sep 6 13:25:42 1995 Andrew Cagney <cagney@highland.com.au>
1650
1651 * core.c (core_add_data): First growth of bss was being put at
1652 wrong address (0) instead of &end.
1653
1654 * core.c (core_add_stack, core_add_data): Was not handling case
1655 where bss/stack is grown across the current end-of-{bss,stack}.
1656
1657 Wed Sep 6 00:46:10 1995 Andrew Cagney <cagney@highland.com.au>
1658
1659 * system.c (system_call): Fix SYS_break - was aligning bss to a
1660 page boundary instead of just an 8 byte one; On first call sbrk(0)
1661 != sbrk(0).
1662
1663 Thu Aug 24 14:48:54 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1664
1665 * Makefile.in (install): Fix install rule.
1666
1667 Tue Aug 22 09:31:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1668
1669 * system.c (system_call): Add read support.
1670
1671 * main.c (main): -t sets trace_device_tree. Correct usage message
1672 to current reality.
1673
1674 * device_tree.c (update_memory_node_for_section): Make tracing
1675 output line up. If not code or readonly, assume that the section
1676 is a data section and has read/write permissions. Add readonly
1677 support.
1678
1679 * core.c (create_core_from_addresses): Print end address in traces
1680 and make tracing output line up.
1681
1682 * Makefile.in: Rewrite from Makefile to work with the Cygnus
1683 environment, and support compiling in a different directory than
1684 the sources reside in.
1685
1686 * ppc-endian.h: Rename from endian.h so that it doesn't get
1687 confused with /usr/include/sys/endian.h on Linux. Add Linux
1688 endian support.
1689
1690 * ppc-endian.c: Rename to be consistant with ppc-endian.h.
1691 Include ppc-endian.h, not endian.h.
1692
1693 * basics.h (sysdep.h): Include sysdep.h that configure makes.
1694 Include ppc-endian.h, not endian.h.
1695
1696 * std-config.h: Rename from ppc-config. Put #ifndefs around most
1697 configuration macros, so they can be overridden via CFLAGS. By
1698 default, turn off tracing.
1699
1700 * configure.in: Clone from other simulator targets.
1701 * configure: Generate via autoconf from configure.in.
1702
1703 Sat Aug 19 09:05:32 1995 Andrew Cagney <cagney@highland.com.au>
1704
1705 * ppc-instructions: fix srawi (was geting XER[CA] real wrong).
1706
1707 * interrupts.c (data_storage_interrupt): allow stack to grow by
1708 upto one MB per increment.
1709
1710 * ppc-instructions: divw was computing rA / rA not rA / rB
1711
1712 * main.c (main): really stupid. Wasn't exiting with correct status
1713
1714 Fri Aug 18 00:38:01 1995 Andrew Cagney <cagney@highland.com.au>
1715
1716 * system.c (system_call): add system calls kill(2) and getpid(2).
1717
1718 * main.c (main): Check/return exit status when simulation
1719 finishes.
1720
1721 Thu Aug 17 14:29:18 1995 Andrew Cagney <cagney@highland.com.au>
1722
1723 * device_tree.c (create_option_device_node): Alignment rules (at
1724 least for the moment) now are for strict alignment only for LE OEA
1725 mode. (Because of compiler problems).
1726
1727 * system.c (system_call) SYS_exit: Wasn't exiting with correct status.
1728
1729 Thu Aug 17 01:16:38 1995 Andrew Cagney <cagney@highland.com.au>
1730
1731 * vm.c (DEFINE_VM_DATA_MAP_WRITE_N): For miss aligned transfer
1732 forgot to return.
1733
1734 * system.c (system_call): didn't page align break argument before
1735 determining increment break increment.
1736
1737 * psim/ppc: Re-arange entire directory structure so that
1738 everything lives in the one directory. While a pain for cleaning,
1739 makes building across multiple architectures much simpler.
1740
1741 * devices.c, device_tree.c: Added code that provides a simple
1742 illustration of how an interrupt control device could be
1743 implemented.
1744
1745 * devices.c: Added code so that the dumb console device can read
1746 (from stdin) as well as write to stdout.
1747