1 Wed Nov 15 17:32:13 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3 * cpu.h (cpu_model): Add declaration.
5 * cpu.c (struct _cpu): Add model_ptr to hold model specific
7 (cpu_model): Return the model internal pointer.
8 (cpu_{create,init,halt}): Call the appropriate model function.
10 * inline.c (mon.c): Move include of mon.c after model.c.
12 * mon.c (_cpu_mon): Add fields to count unaligned memory
14 (mon_issue): Call model_issue, not function_unit_issue.
15 (mon_{read,write}): Count # of unaligned memory accesses.
16 (mon_print_info): Switch to calling model_mon_info and
17 model_mon_info_free instead of function_unit version. Print out
18 number of unaligned reads/writes.
20 * {ppc-instructions,igen.c}: More global changes to add model
23 * inline.{c,h}: Provide for inlining options.c.
24 * options.{c,h}: Ditto.
25 * std-config.h: Add OPTIONS_INLINE.
27 Tue Nov 14 04:47:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
29 * Makefile.in (devices.o, main.o): Update dependency.
31 * igen.c (gen_model_h): Use correct variable in loop.
32 (gen_model_c): Use strcmp, strcasecmp.
33 (gen_model_c): Use EXTERN_MODEL for arrays.
34 (gen_model_h): Use STATIC_MODEL for arrays.
35 (lf_print_c_semantic_function_header): Delete unused function.
37 * main.c (cpu.h): Include cpu.h to get model.h.
39 * inline.h ({EXTERN,STATIC}_MODEL): Define.
41 Mon Nov 13 09:14:13 1995 Michael Meissner <meissner@tiktok.cygnus.com>
43 * igen.c ({insn,model}_table_fields): Spell mnemonic correctly.
44 (gen_itable_h,itable_c_insn): Ditto.
45 (model support): Move model support around, add support for
46 model-data, model-internal. Use annex field for model-macros
49 * configure.in (--enable-sim-inline): If --enable-sim-inline=no,
50 also define INLINE as nothing.
51 * configure: Regenerate.
53 * std-config.h (INLINE): Rather than nuking INLINE, only define it
54 as __inline__ if any of the INLINE flags are non-zero.
56 * options.c (print_options): Print out WITH_XOR_ENDAIN.
58 Mon Nov 13 23:03:45 1995 Andrew Cagney <cagneyhighland.com.au>
60 * ppc-instructions (rfi): Add missing code.
62 * cpu.c (cpu_get_time_base): Fix calculation of current value of
65 * ppc-spr-table (TBL, TBU): Fix TBL/TBU entries - was confusing
66 m[tf]tb with m[tf]spr.
68 * ppc-instructions (mtspr, mfspr): Fix mttbl - wasn't storing
71 Mon Nov 13 21:35:37 1995 Andrew Cagney <cagneyhighland.com.au>
73 * std-config.h (INLINE, STATIC_INLINE): Was being set to static
74 inline.. Only problem being that with ppc-opcode-simple this gave
75 it the chance to inline all the idecode functions with potentially
76 disasterous results on a 16mb PC. For moment hobble INLINE.
78 * configure.in, std-config.h (WITH_SMP): Make that 5 processors by
81 * configure.in: Tweek flags passed to gcc for --with-sim-warnings.
82 Firstly make them errors and secondly remove the options gcc-245
85 Mon Nov 13 17:57:24 1995 Andrew Cagney <cagney@highland.com.au>
87 * misc.c (zalloc), cpu.c (cpu_init), devices
88 (console_io_read_buffer_callback, icu_io_read_buffer_callback,
89 vm_io_read_buffer_callback), main.c (zalloc), mon.c (memset),
90 sim_calls.c (zalloc) : replace bzero() with memset().
92 * emul_netbsd.c (write_direntries), psim.c (psim_read_register,
93 psim_write_register): replace bcopy() with memcpy().
95 Sun Nov 12 20:55:41 1995 Andrew Cagney <cagneyhighland.com.au>
97 * configure.in: for --disable-sim-inline (--enable-sim-inline=no),
98 force DEFAULT_INLINE to 0 rather then trusting the std
101 Sun Nov 12 20:55:41 1995 Andrew Cagney <cagneyhighland.com.au>
103 * igen.c (lf_print_idecode_table, idecode_table_leaf): Fix
104 generation of switch entries in tables - treat the same as
105 cracking/semantic functions.
107 * igen.c (idecode_switch_end, idecode_switch_leaf): Fix generation
108 of a boolean switch statement (field zero or non-zero).
110 * ppc-opcode-test-1, ppc-opcode-test-2: New files. These test the
111 switch/table generation ability of igen.
113 * igen.c (idecode_switch_leaf): Fix code output when a switch
114 statement needs to look up a table.
116 * igen.c (idecode_declare_if_switch): New function called from
117 gen_idecode_c - need to declare any idecode switch functions
118 before they are used in idecode tables.
120 * igen.c (lf_print_c_cracker_function, idecode_crack_leaf,
121 idecode_crack_insn): Add is_inline_function argument to code
122 printing cracker functions which indicates if STATIC_IDECODE or
123 STATIC_INLINE_IDECODE should be used for definition. For
124 idecode_crack_insn (which implies not duplicating/expanding) don't
125 declare function as inline - we assume that the only time this is
126 code is generated is when things are being tested. For
127 idecode_crack_leaf, make static (instead of INLINE) if the
128 instructions parent is a table as function will always be called
131 * igen.c (idecode_expand_if_switch): Declare as STATIC_IDECODE not
132 STATIC_INLINE_IDECODE. Only the outermost idecode switch will be
133 called directly, all others are called via a table.
135 * igen.c (lf_print_semantic_function_header, semantics_h_leaf,
136 semantics_h_insn, semantics_h_function,
137 lf_print_c_semantic_function, semantics_c_function): Add
138 is_inline_function argument to lf_print_semantic_function_header
139 to indicate if an inline or static function declaration/definition
140 should be output. Depending on situtation call accordingly:
141 functions (not instruction semantic routines) are always inline;
142 Semantic routines are made inline when there is no icache (cache
143 will contain the function address) and are duplicating (see above)
144 and the parent of the instruction is a switch statement.
146 * igen.c (opcode_field_new): Delete. Code changed to use ZALLOC
147 and moved to insn_table_find_opcode_field.
149 * table.c (table_open): Fix typo (nr_model_fields vs nr_fields).
151 * igen.c (model_c_insn): Suggestion - document the name of the
152 instruction on each line of the instruction model table.
154 Fri Nov 10 00:44:38 1995 Andrew Cagney <cagneyhighland.com.au>
156 * emul_netbsd.c (do_ioctl): Cleanup compilation.
158 * sim_callbacks.h (__attribute__): Only define if not defined (was
159 already defined on NetBSD host).
161 Wed Nov 8 21:49:52 1995 Andrew Cagney <cagneyhighland.com.au>
163 * std-config.h (WITH_XOR_ENDIAN), configure.in, Makefile.in: New
164 macro, indicates if the PowerPC's horrible XOR endian mode should
165 be suported. Add to configure and make.
167 * vm_n.h (vm_data_map_read_N, vm_data_map_write_N), vm.c
168 (vm_instruction_map_read): If XOR endian, xor the address
169 with a value from an xor table (indexed by size of access).
171 * vm.c (vm_synchronize_context), cpu.c (cpu_synchronize_context):
172 set up xor table to xor if there is a conflict between the
173 CURRENT_TARGET_ENDIAN and the endian indicated in the MSR. Move
174 check of suported change of endian mode from cpu.c to vm.c.
176 * vm.c (vm_data_map_write_buffer, vm_data_map_read_buffer):
177 Hopefully added correct hack to handle XOR endian mode.
179 FIXME: If NONSTRICT alignment and XOR ENDIAN and MSR indicates
180 little endian mode, the model accepts miss aligned transfers.
182 FIXME: Need to create an `init' device that, during
183 initializatioin for XOR mode, it mushes (XOR address) all the dma
184 data before passing it on to the core for storage. Just like the
187 Wed Nov 8 21:49:52 1995 Andrew Cagney <cagneyhighland.com.au>
189 * devices.c (halt_io_write_buffer_callback): Use value written to
190 halt device to determine exit status. Thus allowing
191 success/failure of OEA tests.
193 Wed Nov 8 00:10:38 1995 Andrew Cagney <cagneyhighland.com.au>
195 * ppc-instructions (icbi): If icache present flush it.
197 Tue Nov 7 23:36:31 1995 Andrew Cagney <cagneyhighland.com.au>
199 * devices.c (htab_init_callback): Add code to create htab/pte.
201 * devices.c (dma_file, file_init_callback, htab_init_callback):
202 New function - Dma the named file into memory at the specified
205 * device_tree.h, device_tree.c (scand_*): New functions.
207 Tue Nov 7 23:36:31 1995 Andrew Cagney <cagneyhighland.com.au>
209 * filter_filename.c, Makefile.in: Change so that only dependant on
210 a very limited nr of files. Stops an unnecessary dependency.
212 Tue Nov 7 15:44:33 1995 Andrew Cagney <cagney@highland.com.au>
214 * core.c (core_map_find_mapping): Use cpu_halt rather than error
215 to abort an access to an undefined address.
217 Sun Nov 12 07:58:09 1995 Michael Meissner <meissner@tiktok.cygnus.com>
219 * igen.c (model_table_insert_{macro,function}): New functions.
220 (insn_table_load_insns): Call them.
221 (gen_model_h): Move section emiting model-macros to be first.
222 (model_{c,h}_function): New functions cloned from semantic
223 functions to print out the prototype and function for
225 (gen_model_{c,h}): Print out model-functions.
227 * ppc-instructions (model_{start,halt,print_info}): Add dummy
230 * options.c (print_options): Print out WITH_{,DEFAULT_}MODEL, not
231 WITH_PPC_{,DEFAULT_}_MODEL.
232 (options_ppc): Delete now unused function.
233 (cpu.h): Include cpu.h, not just basics.h.
235 * std-config.h (WITH_{,DEFAULT_}MODEL): Define.
237 * igen.c (model_macros, last_model_macro): New statics to keep
238 track of macros to go in model.h.
239 (insn_table_load_insns): Add model-macros to model_macros linked
241 (model_table_fields): Add field for printable name.
242 (gen_model_h): If there are model macros defined, print them out.
243 Print out DEFAULT_MODEL as the first model if there any models
244 specified, otherwise MODEL_NONE. Print out external decl for
245 current_model. Print out decl for model_set.
246 (gen_model_c): Add function model_set. Switch to use printable
247 name for the model, not the internal identifier used.
249 * psim.c (current_model): New global variable.
251 * ppc-instructions: Add macros for flag defines. Switch first
252 model so 604 is first.
254 * main.c (main): Call model_set, not function_unit_model.
255 * sim_calls.c (sim_open): Ditto.
256 * sim_calls.c, Makefile.in: sim_calls.c now includes cpu.h.
258 Sat Nov 11 07:27:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
260 * mon.h (mon_events): New enumeration for other events we want to
262 (mon_event): Add declaration for function.
264 * mon.c (mon_event): New function.
265 (mon_print_info): Print icache misses.
267 * psim.c (run_until_stop): Monitor icache misses.
269 * configure.in (--enable-sim-inline): Fix typos in handling comma
270 separated inline options.
271 (--enable-sim-icache): Echo icache size.
272 * configure: Regenerate.
274 * igen.c (semantics_h_print_function): Emit STATIC_SEMANTICS
275 instead of INLINE_SEMANTICS so that the compiler won't keep all of
276 the semantic functions as inline RTL, given that the address of
277 the function is taken which forces outline calls anyway.
278 (lf_print_c_semantic_function_header): Ditto.
279 (gen_semantics_h): Define STATIC_SEMANTICS as nothing if not
281 (lf_print_c_cracker_function): Emit STATIC_IDECODE instead of
282 STATIC_INLINE_IDECODE.
283 (gen_idecode_c): Define STATIC_IDECODE if not defined.
284 (gen_model_h): Use #ifdefs to define types to hold model units,
286 (model_table_insert): Add a sentinel functional unit at the end to
287 simplify loop processing.
288 (model_c_insn): Use <function-unit>_SENTINAL instead of 0 for any
289 instruction not specifing a function unit for the current model.
290 (gen_model_{c,h}): Provide bounds for model_time_mapping.
292 * inline.h (STATIC_SEMANTICS): Define to be static if
293 SEMANTICS_INLINE is defined.
294 (STATIC_IDECODE): Define to be static if IDECODE_INLINE is
297 * options.c (print_options): Fix typo.
299 Fri Nov 10 06:39:46 1995 Michael Meissner <meissner@tiktok.cygnus.com>
301 * configure.in (--enable-sim-{opcode,config}): Use $srcdir when
302 check for the existence of files.
303 * configure: Regenerate.
305 * table.c (table): New field nr_model_fields.
306 (table_open): New parameter nr_model_fields.
307 (table_entry_read): Parse model fields that begin with a '*' after
309 * igen.c, dgen.c: Change callers of table_open.
311 * igen.c: Add support for dumping model specific information in
313 (insn_field_name): Delete unused array.
314 (global variables): Make global variables static, so we can tell
315 when they are no longer used.
316 (cache_semantic_actual): Delete unused variable.
317 (insn_table_load_insns): If the insn is really a machine model,
318 call model_table_insert instead of other processing.
319 (model_table_insert): New function to handle defining the
320 functional units of a particular machine model.
321 (insn_table): Add last_function field so we can add functions at
323 (insn_table_insert_function): Use last_function field when
324 appending new function.
326 * ppc-instructions: Add a few model specific information for 603,
327 603e, and 604 for testing purposes.
329 * table.h (table_model_entry): New linked list to hold model
330 specific information, one per line.
331 (table_entry): Add model_first, model_last fields.
333 * configure.in (--enable-sim-inline): If gcc is found and
334 --enable-sim-inline is not specified, defaine DEFAULT_INLINE to 1,
336 (--enable-sim-reserved-bits): New switch to check whether reserved
337 bits are set in the instruction.
338 (--enable-sim-opcode): Make complex the default.
339 (all switches): Add appropriate checks and error messages.
340 * configure: Regenerate.
342 * Makefile.in (RESERVED_CFLAGS): New variable set by
343 --enable-sim-reserved-bits.
344 (CONFIG_CFLAGS): Include RESERVED_CFLAGS.
345 (BUILT_SRC): igen now generates model.c and model.h.
346 (LIB_OBJ): Include table.o.
347 (tmp-igen): Add -m/-M options to write model.c/model.h.
348 (model.o): New object.
349 (CPU_H): Include model.h.
351 * cpu.h: Include model.h.
353 * std-config.h (WITH_RESERVED_BITS): Define.
354 (MODEL_INLINE): Ditto.
356 * options.c (print_options): Print out WITH_RESERVED_BITS.
358 Thu Nov 9 12:22:15 1995 Michael Meissner <meissner@tiktok.cygnus.com>
360 * configure.in: If --silent, don't output information messages.
361 * configure: Regenerate.
363 * configure.in (--enable-sim-alignment): Fix typo in specifing non
365 (--enable-sim-switch): Make default on.
366 (--enable-sim-duplicate): Make default on.
367 (--enable-sim-smp): Make default 0.
368 (--enable-sim-mon): Don't set sim_float if not set.
369 (--enable-sim-inline): If gcc is found and --enable-sim-inline is
370 not specified, define DEFAULT_INLINE to be 2.
371 (all --enable-sim-* rules): Echo rules set to non empty to file
373 * configure: Regenerate.
375 * options.c (options_env): Fix typo if WITH_ENV is 0.
376 (print_options): Print GCC compiler version if available and
377 date/time options was compiled. If OPCODE_RULES, IGEN_FLAGS,
378 and/or DGEN_FLAGS are defined, print them.
380 * Makefile.in (all link actions): Pass SIM_CFLAGS as well as
382 (options.o): Compile options.o with OPCODE_RULES, IGEN_FLAGS, and
383 DGEN_FLAGS defined, so they can be printed out.
385 * igen.c (lf_print_c_validate): Check for WITH_ASSERT, so that
386 this test can be compiled away if the user really wants a fast
387 simulator by not doing assertion failures.
389 Wed Nov 8 13:19:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
391 * options.c: New file to print out all of the WITH_ options.
392 * options.h: New include file to declare print_options.
393 * debug.h (trace_options): Add trace_opts to call print_options.
394 * debug.c (trace_description): Add trace_opts support.
395 * main.c (main): If user requested options, print them.
396 * sim_calls.c (sim_open): Ditto.
398 * igen.c (opcode_field_new): Add void to make it a proper prototype.
400 * emul_generic.c (emul_enter_call): Make printf_filtered arguments
402 * emul_netbsd.c (do_kill): Ditto.
403 * registers.c (registers_dump): Ditto.
404 * vm.c (om_translate_effective_to_real): Ditto.
405 * vm_n.h (vm_data_map_read_N): Ditto.
406 (vm_data_map_write_N): Ditto.
407 * devices.h (DTRACE_INIT): Ditto.
408 (DTRACE_{ATTACH,DETACH}_ADDRESS): Ditto.
409 (DTRACE_IO_{READ,WRITE}_BUFFER): Ditto.
410 (DTRACE_DMA_{READ,WRITE}_BUFFER): Ditto.
411 * devices.c (update_for_binary_section): Ditto.
412 (write_stack_arguments): Ditto.
413 (stack_ioctl_callback): Ditto.
414 * device_tree.c (device_tree_add_passthrough): Ditto.
415 (device_tree_{add,find}_device): Ditto.
416 (device_tree_{add,find}_integer): Ditto.
417 (device_tree_find_{string,boolean}): Ditto.
418 (device_tree_init{,_device}): Ditto.
419 (device_tree_dump): Ditto.
420 * sim_calls.c (sim_{read,write}): Ditto.
421 (sim_{fetch,store}_register): Ditto.
422 (sim_stop_reason): Ditto.
424 * sim_callbacks.h (printf_filtered): Declare with attribute
425 printf, so we can enable format checks.
427 * devices.c (console_io_{read,write}_buffer_callback): Cast swtich
428 argument to int, since ANSI doesn't allow long switch values.
429 * emul_netbsd.c (do___sysctl): Ditto.
431 * emul_netbsd.c (do___sysctl): Fix up printf call.
433 * corefile.c (core_translate): Don't do arithmetic with void *
434 pointers. Cast to char * first.
436 * function_unit.c (FUNC_{LOAD,STORE}): Rename from {LOAD,STORE}
439 * Makefile.in ({FUNC,MODEL,WARNING}_CFLAGS): New flags set by
440 configure --enable switches.
441 (CONFIG_CFLAGS): Include FUNC_CFLAGS and MODE_CFLAGS.
442 (.c.o): Include WARNING_CFLAGS.
443 (CPU_H): Include function_unit.h.
444 (LIB_OBJ): Include function_unit.o.
445 (BUILT_SRC_WO_CONFIG): Split from BUILT_SRC and do not include
446 config.h or ppc-config.h.
447 (BUILT_SRC): Include BUILT_SRC_WO_CONFIG, config.h and
449 (filter_filename.o): Include config.h/ppc-config.h dependencies.
450 (idecode.o, semantics.o, psim.o): Specify CC line without
451 WARNING_CFLAGS so that we don't get all of the unused variable
452 warnings that are generated.
453 (function_unit.o): Add rule to build.
454 (main.o, sim_calls.o): Add function_unit.h, itable.h dependencies.
455 (mon.o): Include mon.c dependency.
456 (TAGS): Depend on BUILT_SRC.
457 (clean): Don't delete config.h or ppc-config.h
459 * basics.h (sim_callbacks.h): Move include after the include of
460 config.h and ppc-config.h.
462 * bits.{h,c} (ROTL32,ROTL64): Move these functions to bits.c. Add
463 support for BITS_INLINE to inline these. Add declarations to
466 * configure.in (--enable-sim-warnings): Add new option to specify
467 compiler warnings for all modules except idecode.o and semantics.o
468 which have lots of unused variables because they are machine
470 (--enable-sim-function-unit): New switch to configure whether
471 function unit support is compiled in or not.
472 (--enable-sim-{,default-}mode): New switches to control which cpu
474 * configure: Regenerate.
476 * corefile.c (core_attach_address_callback): Delete unused
477 variable device_address.
479 * cpu.c (struct _cpu): Add function unit pointer field func_unit.
480 (cpu_create): If WITH_FUNCTION_UNIT, call function_unit_create.
481 (cpu_init): If WITH_FUNCTION_UNIT, call function_unit_init.
482 (cpu_halt): If WITH_FUNCTION_UNIT, call function_unit_halt.
483 (cpu_function_unit): New function to return func_unit field.
485 * cpu.h (function_unit.h): Include new include file.
486 (cpu_function_unit): Declare.
488 * debug.c (stdlib.h): Test HAVE_STDLIB_H, not HAVE_STDLIB.
489 (config.h): Include config.h.
491 * devices.c (icu_io_write_buffer_callback): Delete unused variable
494 * emul_generic.c (emul_exit_call): Print out status value.
496 * emul_netbsd.c (do_read): Delete unused variable nr_moved.
498 * filter_filename.h (includes): Include config.h, ppc-config.h,
501 * inline.c: Include bits.c if BITS_INLINE. Include
502 function_unit.c if FUNCTION_UNIT_INLINE.
504 * inline.h (INLINE_BITS): Define if BITS_INLINE.
505 (INLINE_FUNCTION_UNIT): Define if FUNCTION_UNIT_INLINE.
507 * interrupts.c (instruction_storage_interrupt): Delete unused
510 * lf.h (config.h): Include config.h.
512 * main.c (includes): Include function_unit.c. If HAVE_UNISTD_H,
514 (usage): Update for -m model, -i, and -I options.
515 (main): Delete unused variables stack_pointer and i. Add support
516 for -i, -m model arguments. Call psim_print_info with verbose ==
517 1 if -i, and verbose == 2 if -I.
519 * mon.c (stdio.h): Include stdio.h to pick up sprintf prototype.
520 (mon_issue): Call function_unit_issue if function units are
522 (mon_print_info): Take psim * argument. Print out information
523 from function_unit if available. Move read/write stats to always
524 print, instead of printing if verbose > 1. Fix up plural
527 * mon.h (mon_print_info): Update prototype.
529 * psim.c (current_ppc_model): Add global variable.
530 (psim_print_info): Pass system argument to mon_print_info.
532 * sim_calls.c (function_unit.h): Include.
533 (sim_open): Add support for -i and -m model options. If -i call
534 psim_print_info with verbose == 1, if -I, with verbose == 2.
535 (sim_resume): Delete unused variable program_counter.
537 * std-config.h (WITH_FUNCTION_UNIT): Define.
538 (ppc_model): Add enumeration giving all PowerPC models currently
540 ({WITH,CURRENT}_PPC_MODEL): Define.
541 (FUNCTION_UNIT_INLINE): Define.
543 * table.c (config.h): Include config.h.
545 * vm.c (om_virtual_to_real): Print pte_word_{0,1} so the compiler
546 doesn't complain that they're unused.
548 * vm_n.h (vm_data_map_read_N): Delete unused variable rval.
550 Mon Nov 6 23:15:54 1995 Andrew Cagney <cagney@highland.com.au>
552 * sim-endian.c (ppc-endian.c), sim-endian.h (ppc-endian.h):
553 renameed. These files are target independant.
554 * Makefile.in, basics.h: update for new name.
556 * sim-endian.h (SWAP_N), sim-endian.c (_SWAP_1): Rename existing
557 SWAP_<N> to _SWAP_<N> so that sim-endian.h can contain SWAP_N
560 * sim-endian.c, sim-endian-n.h (new file): Move endian code into a
561 debugable header file.
563 * ppc-instructions (Byte-Reverse): Enable byte reverse
564 instructions using SWAP_N macros.
566 Mon Nov 6 10:39:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
568 * Makefile.in (config.status): Remove references to config.make
571 * config.{make,hdr}: Delete, no longer used.
574 Mon Nov 6 20:49:56 1995 Andrew Cagney <cagney@highland.com.au>
576 * sim_calls.c (sim_open): Fix parsing of `target sim' options.
578 * device_tree.c (device_tree_add_string): Wasn't saving the value
579 of the string being entered into the tree.
581 * psim.c (create_filed_device_tree): Not terminating string device
584 * psim.c (psim_create): Use `env' instead of
585 `environment-architecture' to be consistent with configure.
586 Reconize user/uea, virtual/vea and operating/oea.
588 Sat Nov 4 12:29:45 1995 Fred Fish <fnf@cygnus.com>
590 * core.c: Rename to corefile.c
591 * core.h: Rename to corefile.h
592 * inline.c: Include corefile.h, renamed from core.h.
593 * cpu.h: Include corefile.h, renamed from core.h
594 * vm.c: Include corefile.h, renamed from core.h
595 * corefile.c: Include corefile.h rather than core.h
596 * README.psim (KNOWN PROBLEMS): Change core.* references to corefile.*
598 * Makefile.in (CPU_H): Change core.h to corefile.h
599 (vm.o): Change dependency to corefile.h
600 (LIB_SRC): Change core.c to corefile.c.
601 (LIB_OBJ): Change core.o to corefile.o.
602 (corefile.o): Change dependencies to corefile.c, corefile.h.
604 Fri Nov 3 11:37:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
606 * ppc-instructions (data cache instructions): Make all data cache
607 instructions nops instead of invalid instructions.
609 * Makefile.in (CONFIG_CFLAGS): Add ALIGNMENT_CFLAGS and
610 TIMEBASE_CFLAGS which weren't included.
612 Thu Nov 2 08:54:04 1995 Michael Meissner <meissner@tiktok.cygnus.com>
614 * Makefile.in: Uncomment built file dependencies.
616 * configure.in: Rewrite --enable-sim switch handling to use the
617 autoconf builtins so it works correctly if the configure or
618 Makefile.in files are modified and make decides to rebuild
619 Makefile. Also document all of the --enable-sim switches
620 supported. Check whether getrusage and sys/resource.h are
622 * config.in: Regenerate.
623 * configure: Regenerate.
624 * Makefile.in: Add support for all of the variables set with
625 --enable-sim switches.
627 * Makefile.in (clean): make clean now removes all built sources as
630 * cpu.c: Use HAVE_STRING_H, HAVE_STRINGS_H, HAVE_UNISTD_H,
631 HAVE_TIME_H, HAVE_SYS_TIMES_H, HAVE_SYS_RESOURCE_H defined in
632 the generated config.h.
634 * device_tree.c: Ditto.
637 * emul_netbsd.c: Ditto.
642 * registers.c: Ditto.
647 * main.c (main): Call psim_print_info with verbose == 2.
649 * mon.c (mon_print_info): Align the cpu number and number of
650 instructions fields. Do not print an instruction category if the
651 CPU did not execute any of those instructions. Print out number
652 of reads and writes. If getrusage is supported, print out number
653 of simulated instructins per second.
655 * configure.in: Add support for --enable-sim-opcode=stupid.
656 * configure: Regenerate.
658 Wed Nov 1 23:46:59 1995 Andrew Cagney <cagney@highland.com.au>
660 * std-config (INLINE_DEVICE_TREE): Don't inline either of
661 device_tree.c or devices.c. There is no significant gain.
663 * configure.in, Makefile.in: add --enable-sim-icache=[0-9]* and
666 Wed Nov 1 23:46:59 1995 Andrew Cagney <cagney@highland.com.au>
668 * igen.c (main), misc.h (target_a2i, i2target), misc.c: Add
669 functions to convert between target and igen internal bit numbers.
670 Make IO go through these functions. Add -b (bit size) and -h (high
671 bit nr) options to igen. Typical usage would be: ./igen -b 16 -h
672 15 for a 16 bit instruction format with the msb given a number 15.
674 Wed Nov 1 22:17:32 1995 Andrew Cagney <cagney@highland.com.au>
676 * dgen.c (main): Was outputting optarg even when it was NULL.
678 Tue Oct 31 23:48:33 1995 Andrew Cagney <cagney@highland.com.au>
680 * vm_n.h (vm_data_map_load_N, vm_data_map_store_n), debug.h,
681 debug.c: Add tracing of load/store unit (virtual) with -t
684 Tue Oct 31 21:44:01 1995 Andrew Cagney <cagney@highland.com.au>
686 * std-config.h (WITH_ENVIRONMENT): Add USER_ENVIRONMENT which does
687 not include things such as the time base and events.
689 * interrupt.c, sim_calls.c, cpu.h, vm.c, configure.in: Add UEA to
690 all environment switches for above.
692 * psim.c (psim_create): ditto - new device tree node name is
693 /options/environment-architecture with values user, virtual and
696 Tue Oct 31 21:31:32 1995 Andrew Cagney <cagney@highland.com.au>
698 * ppc-opcode-stupid: Third example of use of opcode table - this
699 one expands all mtspr/mfspr and branch instructions. Appears to
700 give about a 10% gain in performance if everything enabled. Also
701 takes about 150mb of swap to build.
703 Wed Nov 1 10:49:48 1995 Michael Meissner <meissner@tiktok.cygnus.com>
705 * emul_netbsd.c (do_exit): Print arguments and close parenthesis
706 if tracing, since exit doesn't go through emul_exit_call.
707 (do_read): Print arguments if tracing.
713 (do_sigprocmask): Replace trace with printing arguments if
715 (do_ioctl): Print arguments if tracing.
719 (do_gettimeofday): Ditto.
720 (do_getrusage): Ditto.
723 * filter_filename.c: New file to provide filter_filename to strip
724 the directory prefix from a file.
725 * filter_filename.h: New include file to declare filter_filename.
727 * debug.h: Include filter_filename.h.
728 (TRACE,DTRACE,ERROR): Use filter_filename on __FILE__.
730 * misc.h: Include filter_filename.h.
731 (ASSERT): Use filter_filename on __FILE__.
733 * igen.c (lf_print_my_prefix): Use filter_filename on the filename
736 * Makefile.in: Add filter_filename support.
738 * ppc-instructions (dcbi, icbi): Make these NOPs rather than
739 invalid instructions.
741 * configure.in: Add support for more --enable-sim-* switches.
742 Use config.make and config.hdr to write to Makefile and config.h
743 respectively. Don't rewrite Makefile, just append to it.
744 * configure: Regenerate.
745 * config.{make,hdr}: New shell scripts.
747 * Makefile.in: Remove all variables set by configure.in.
748 (psim.o): Depend on $(BUILT_SRC) also.
750 * emul_netbsd.c (do_gettimeofday,do_getrusage): When comparing an
751 integer, use 0, not NULL.
753 Tue Oct 31 15:20:04 1995 Michael Meissner <meissner@tiktok.cygnus.com>
755 * configure.in: Add support for --enable-sim-inline,
756 --enable-sim-bswap, --enable-sim-cflags, --enable-sim-complex,
757 --enable-sim-switch, --enable-sim-duplicate, --enable-sim-filter,
758 and --enable-sim-endian switch to control various Makefile
760 * configure: Regenerate from configure.in.
761 * Makefile.in: Add various Make variables that the various
764 * std-config.h (DEFAULT_INLINE): Don't set this to 2 if using GCC
765 and optimizing by default.
767 Fri Oct 27 19:26:27 1995 Andrew Cagney <cagney@highland.com.au>
769 * bits.h (ROTL32, ROTL64): Were functions, made them macros, now
770 make them functions again. Appears 2.6.3 is confused by just a
773 Thu Oct 26 18:31:58 1995 Andrew Cagney <cagney@highland.com.au>
775 * ppc-endian.c (SWAP_8): Fix 8 byte swap!
777 * psim.c (psim_create): Not correctly checking that runtime
778 configuration of things like ENDIAN, ENVIRONMENT and ALIGNMENT
779 matched the compiled in ones.
781 * debug.h (ITRACE), igen.c: Tidy up more tracing flags -
782 trace_semantics is now different to trace_idecode, the former
785 Tue Oct 24 21:54:13 1995 Andrew Cagney <cagney@highland.com.au>
787 * ppc-instructions (mtsrin): Missing instruction
788 * ppc-instructions (mfsrin): Missing instruction
789 * ppc-instructions (eieio): Missing instruction
791 Tue Oct 24 20:55:29 1995 Andrew Cagney <cagney@highland.com.au>
793 * build-psim: New shell script - see internals for usage,
794 simplifies the process of building custom simulators.
796 Mon Oct 23 23:48:59 1995 Andrew Cagney <cagney@highland.com.au>
798 * std-config.h (SEMANTICS_INLINE): Tidy up notes on each of the
799 INLINE macros. Make SEMANTICS_INLINE == 1 if DEFAULT_INLINE == 2.
800 Don't use DEFAULT_INLINE to define REGISTERS_INLINE DEVICES_INLINE
801 DEVICE_TREE_INLINE or INTERRUPTS_INLINE as none of these are on
802 the instruction or data critical paths.
804 * FIXME: need to set up OS_EMUL_INLINE/EMUL_GENERIC_INLINE but
805 not on critical path.
807 * FIXME: devices.c/emul_netbsd.c would benefit (slightly) from
808 the inclusion of device_tree.c/emul_generic.c.
810 Mon Oct 23 00:31:50 1995 Andrew Cagney <cagney@highland.com.au>
812 * os_emul.[hc], emul_generic.[hc], emul_netbsd.[hc]: replace
813 system.[hc]. Start of suport for multiple emulations and
814 emulation state (os_emul object).
816 * emul_generic.[hc]: Start of code to implement proper system call
819 Sun Oct 22 21:33:51 1995 Andrew Cagney <cagney@highland.com.au>
821 * cpu.h, cpu.c (cpu_init): New function, zero the registers before
822 the processor is started. Fixes problem of registers being
823 undefined when restarting from within gdb.
825 * cpu.h, cpu.c (cpu_flush_icache): New function, flushes the
826 instruction cache (if present). Fixes problem of cpu caching gdb
827 breakpoint instructions.
829 FIXME: PSIM sometimes aborts calling error(), it should instead
830 call sim_error() say which takes care of housekeeping such as
831 saving the CIA before calling error.
833 * NOTE: cpu_flush_cache() instead of cpu_synchronize_context() is
834 used when restarting a simulation because the latter has the
835 unwanted side effect (well I as a kernel hacker think it is) of
836 performing an isync when the instruction stream doesn't contain
839 Sun Oct 22 19:27:48 1995 Andrew Cagney <cagney@highland.com.au>
841 * mon.h (new), mon.c (new), std-config.h (WITH_MON): Performance
842 monitoring module. Counts both instructions issued and
845 * NOTE: mon does not contain to count instruction loads as this
846 information is already available from the mon_issue() hook.
848 * FIXME: mon doesn't have access to register usage information.
849 This is needed if the user wants to monitor things like register
852 * igen.c (lf_print_c_semantic), vm_n.h: Add counting code.
854 * psim.h, psim.c (psim_create), cpu.h, cpu.c (cpu_create): Attach
855 a common monitor to each of the cpus. Delete
856 cpu_increment_number_of_insns() and cpu_get_number_of_insns()
857 replaced by copied code in mon.[hc].
859 Sun Oct 22 18:42:45 1995 Andrew Cagney <cagney@highland.com.au>
861 * sim_calls.c, main.c, psim.c (psim_create): always create
862 `WITH_SMP' cpus. The actual number of CPU's active in a
863 simulation run is taken from the device node: /init/smp (an
864 integer). WITH_SMP changed to 2 (remember to put it back to 0).
866 Fri Oct 20 17:26:54 1995 Andrew Cagney <cagney@highland.com.au>
868 * system.c: More system call emulation. If code appears NetBSD
869 specific, make conditional to being compiled on a NetBSD system
872 Wed Oct 18 23:02:20 1995 Andrew Cagney <cagney@highland.com.au>
874 * Makefile.in, gen.c(delete), igen.c(new), dgen.c(new),
875 lf.[ch](new), table.[ch](new): Split into two generators - igen
876 that outputs the instruction tables and dgen that outputs the spr
877 tables. Add -f (filter out) flag to igen to filter out certain
878 instructions (ex 64 bit ones) from the created tables. Include
879 $(LIBIBERTY_LIB) in link options in case host lacks some libc
882 * NOTE: igen, since it was originally written for the
883 PowerPC/RS6000, things the MSB is 0 and the LSB is 63{31}.
885 * Makefile.in, std-config.h, ppc-cache-rules(new),
886 ppc-opcode-complex(new), ppc-opcode-simple(new): (for igen) Create
887 cache-rule and opcode-rule tables from macros found std-config.h.
888 Delete corresponding macro's from std-config.h.
890 * FIXME: under this new igen scheme, when playing around with igen
891 options, you'll find that depenencies don't work very well.
893 * igen.c (gen_itable_c, gen_itable_h), Makefile.in: code to output
894 an table of all the instructions. Code to output a type
895 enumerating all the instructin names.
897 * igen.c(lf_print_c_semantic): Move call to increment instruction
898 counter so that it occures _after_ the instruction has been fully
899 validated, was double counting illegal/invalid instructions. Add
900 conditional so only compiled in when WITH_PROFILE enabled (enabled
903 * igen.c, cpu.h, cpu.c(cpu_increment_number_of_insns): Include
904 itable.h, count individual instruction types not just total,
905 adjust reporting functions to output this.
907 * ppc-instructions (64 bit Load Doubleword with Update Indexed):
908 Had 32./ instead of 31./
910 * ppc-instructions (64 bit Store Double Word Conditional Indexed):
911 bitrot - updated to use newer CR register operators.
913 * ppc-instructions (64bit Floating Convert from Integer
914 Doubleword): Correct call to Round_Float().
916 Mon Oct 16 00:31:20 1995 Andrew Cagney <cagney@highland.com.au>
918 * basics.h: #include "sim_callbacks.h" earlier so that its
919 prototypes are declared in all other header files.
921 * bits.h, bits.c, idecode_expression.h (ROTL32, ROTL64): Update
922 doc in bits.h, remove dead code in bits.c, move ROTL32/ROTL64 into
925 * FIXME: the bits.h/bits.c macro's should be replaced with
926 (inline) c functions.
928 * cpu.c(cpu_add_commas), device_tree.h, device_tree.c(scand_*):
929 Add size of buffer argument to functions writing a string into a
930 buffer. Check for buffer overflow.
932 Sun Oct 15 22:16:11 1995 Andrew Cagney <cagney@highland.com.au>
934 * devices.h, devices.c, debug.h, debug.c: add macro's for tracing
935 of each device. Make parameter names consistent so macros work.
936 Use macro's in device functions.
938 * device_tree.c, devices.h, devices.c: include path to device in a
939 devices node when creating it.
941 * device_tree.c, debug.h, debug.c: Add tracing of `device-tree'.
943 * core.c: add tracing of core-device, adjust parameter names in
944 core functions to be consistent with those in devices*.
946 Sun Oct 15 20:33:20 1995 Andrew Cagney <cagney@highland.com.au>
948 * debug.h, debug.c (trace_option): New function. Parses the trace
949 option, updating the trace array.
951 * debug.h, debug.c (trace_usage): New function. Outputs the list
952 of all possible trace options.
954 * sim_calls.c (sim_open), main.c (main): Use new trace_option() to
955 parse trace options specified with the simpler -t flag. Adjust
958 * FIXME: basic parsing of command line options is still duplicated
959 by main.c and sim_calls.c
961 Thu Oct 26 10:42:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
963 * Makefile.in (clean): Delete *.i and *.out files.
965 * ppc-endian.c (SWAP_n): Add SET argument to allow use of SWAP
966 macros for either assignment or return. Fix SWAP_8 to use a
967 union, and two SWAP_4's. Delete SWAP_N, since nobody uses it now.
968 (ENDIAN_N): Add SET argument to SWAP_n calls. Delete macro defs
969 that hardwired swapping on/off, let optimizer delete dead code.
971 * main.c (main): Add printf that we caught a signal and print out
974 Thu Oct 19 21:43:39 1995 Fred Fish <fnf@fishfood.amigalib.com>
976 * Makefile.in: Remove tabs from otherwise empty line.
977 Confuses many non-GNU versions of "make".
979 Wed Oct 18 08:51:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
981 * Makefile.in (clean): Delete files produced by gen.
983 Mon Oct 16 17:34:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
985 * gen.c (lf_print_c_semantic_function): Move counting # of
986 instructions here so it works with caching.
987 (gen_idecode_c): Move from here.
989 Wed Oct 11 17:13:15 1995 Andrew Cagney <cagney@highland.com.au>
991 * gen.c, ppc-instructions, psim.c: Fix code for generating
992 cracking instruction cache. Delete the code that cached just the
993 result from doing an instruction lookup - this ran slower than no
996 Fri Oct 13 09:58:43 1995 Michael Meissner <meissner@tiktok.cygnus.com>
998 * Makefile.in (gen.o): Include $(INLINE_CFLAGS).
1000 * debug.h (ppc_trace): Rename from trace, to avoid a conflict with
1001 TCL when gdb is linked with the simulator.
1002 * debug.c (ppc_trace): Ditto.
1003 * sim_calls.c (sim_open): Change trace -> ppc_trace.
1004 * main.c (main): Ditto.
1006 * cpu.c (cpu_add_commas): Remove extra static.
1008 Thu Oct 12 11:35:53 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1010 * Makefile.in (psim.o): Now that inlines are turned on, make
1011 psim.o depend on all sources.
1013 * cpu.c (cpu_add_commas): New function to format a long with
1015 (cpu_print_info): Use it to print number_of_insns.
1017 * ppc-endian.c (SWAP_n): New macros to speed up byte swapping for
1019 (ENDIAN_N): If both target and host byte orders are known, don't
1020 bother testing CURRENT_{TARGET,HOST}_BYTE_ORDER.
1022 * ppc-endian.h (target specific H2T_n/T2H_n macros): Remove #if 0
1023 to allow target specific H2T_n/T2H_n macros to be used.
1024 (htonl, ntohl): If compiled on a 486 by GCC and WITH_BSWAP is
1025 non-zero, redefine the htonl/ntohl macros to use the BSWAP instead
1026 of the 3 instruction sequence that runs on 386s.
1028 * std-config.h (WITH_{HOST,TARGET}_BYTE_ORDER): Don't override if
1029 specified on the compile line.
1030 (WITH_BSWAP): If not defined, define as 0.
1032 * Makefile.in (INLINE_CFLAGS): Add -DDEFAULT_INLINE=2 to add
1033 default inline support. Pass INLINE_CFLAGS when compiling.
1035 * devices.{h,c} (unimp_device_ioctl): Use STATIC_DEVICES, not
1036 INLINE_DEVICES since GCC doesn't like inline functions that
1037 accept variable arguments.
1038 (stack_ioctl_callback): Make function just static because GCC
1039 doesn't like inline functions that accept variable arguments.
1041 * devices.h (STATIC_DEVICES): Define as empty if not defined.
1043 * inline.c: Correct pathnames of included C files to match current
1046 * inline.h (STATIC_DEVICES): If DEVICES_INLINE is defined to be
1047 non-zero, define STATIC_DEVICES to be static.
1049 * std-config.h (INLINE): If GNU C and optimizing, define this as
1051 (DEFAULT_INLINE): If not defined, define as 0.
1052 (ENDIAN_INLINE): If not defined, define as DEFAULT_INLINE.
1053 ({CORE,VM,CPU,EVENTS,REGISTERS,INTERRUPTS}_INLINE): Ditto.
1054 ({SPREG,IDECODE}_INLINE): Ditto.
1056 Wed Oct 11 17:13:15 1995 Andrew Cagney <cagney@highland.com.au>
1058 * ppc-instructions: Initial cut of floating point suport added.
1059 Of note include - use of host IEEE floating point instructions,
1060 use of PowerPC manual pseudo code to handle the FPSCR. It is not
1061 currently a pretty sight.
1063 * memory_map.h, memory_map.c, memory_map_n.h, core.h, core.c:
1064 merge into core.h, core.c, core_n.h. The type memory_map replaced
1065 with core_map. This removes a level of pointer indirection when
1066 translating an address.
1068 * memory_map.h, memory_map.c, memory_map_n.h: delete.
1070 * Makefile.in et.al (sorry): tweek to use new core, core_map and
1073 Wed Oct 11 12:10:26 1995 Andrew Cagney <cagney@highland.com.au>
1075 * sim_calls.c, main.c: Add -g (trace_gdb) option, add tracing to
1076 most of the other functions in sim_calls.c.
1078 * basics.h (CONCAT3), memory_map.c, memory_map_n.h, Makefile.in:
1079 Add macros to better cover up `generic' code. Makes it possible
1080 to step through the generic code!
1082 * vm.c, vm_n.h, Makefile.in: ditto
1084 Tue Oct 10 15:42:59 1995 Andrew Cagney <cagney@highland.com.au>
1086 * devices.h, devices.c, memory_map.h, memory_map.c: Changed
1087 callback interface so that there is a read/write buffer but no
1088 read/write_word. VEA default memory read/write handler sometimes
1089 couldn't resolve an access and of those some were for a memory
1090 fault and some were because gdb was making a bogus request.
1092 * devices.h, devices.c, memory_map.h, memory_map.c, vm.h, vm.c:
1093 eliminate transfer_mode (raw or cooked) parameter from read/write
1096 Fri Oct 6 20:23:56 1995 Andrew Cagney <cagney@highland.com.au>
1098 * ppc-instructions (fmul, fmuls): correct instruction format - had
1101 Wed Oct 4 17:31:12 1995 Andrew Cagney <cagney@highland.com.au>
1103 * psim.c, device_tree.h, device_tree.c, devices.c (printd_*,
1104 scand_*): new functions to parse/print fields in device names
1105 while hiding any machine dependency.
1107 * devices.c, psim.c: Change the stack init code so that it is
1108 handled by a device. Arguments passed across using a device ioctl
1111 * devices.h, devices.c: device ioctl callback changed to allow a
1112 variable number of arguments. This gives greater flexability and
1113 greater chance of bugs.
1115 Tue Oct 3 22:01:56 1995 Andrew Cagney <cagney@highland.com.au>
1117 * main.c (printf_filtered, error): Missing va_end() to close off
1118 variable argument use.
1120 * Makefile.in (tmp-gencode): comment out hack to get around some
1121 versions of make not handling files being created as side-effects.
1123 * gen.c (lf_open): Add -n (real_file_name) option. Specifies an
1124 alternative file name to use in output files for things like #line
1127 Makefile.in (tmp-gencode): Use gen -n so that debug info is
1130 * Makefile.in (TARGETLIB): Use this instead of libsim.a in the
1133 Sat Oct 7 22:40:59 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1135 * sim_calls.c (sim_set_callbacks): Define new function.
1137 Fri Oct 6 17:23:10 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1139 * psim.c (psim_print_info): Print exit status or signal number.
1141 Mon Oct 2 11:46:37 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1143 * cpu.c (struct _cpu): Add number_of_insns field to trace how many
1144 instructions are executed.
1145 (cpu_increment_number_of_insns): New function to increment the
1146 number of instructions issued.
1147 (cpu_get_number_of_insns): New function to return the number of
1148 instructions issued.
1149 (cpu_print_info): New function to print cpu related information.
1150 At present, print the number of instructions executed.
1152 * gen_idecode_c: Emit call to cpu_increment_number_of_insns within
1155 * psim.c (psim_print_info): New function to iterate over each of
1156 the CPU's calling cpu_print_info.
1158 * psim.h,cpu.h: Add new declarations.
1160 * sim_calls.c (sim_open): Add argument processing to add the same
1161 switches main.c accepts for the standalone processor.
1162 (sim_close): Call psim_print_info if -I.
1164 * main.c (main): Add comment saying to update sim_calls.c when
1165 adding switches. Add -I to call psim_print_info when done.
1166 (usage): Update usage message.
1168 Sun Oct 1 13:52:59 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1170 * main.c (printf_filtered): Correct to match new prototype.
1172 Sat Sep 30 20:47:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1174 * sim_callbacks.h (printf_filtered): Correct prototype.
1176 Thu Sep 21 16:26:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1178 * device_tree.c (OEA_MEMORY_SIZE): Define if not defined to
1180 (clayton_memory_size): Define as OEA_MEMORY_SIZE.
1182 * std-config.h (WITH_TRACE): Default to 1 now.
1184 * psim.c (write_stack_arguments): Don't write any stack arguments
1187 * main.c (main): Switch to using getopt. Make -p also set
1188 trace_semantics. Make -a turn on all trace flags. Make -C turn
1191 * device_tree.c (create_option_device_node): Assume a program is
1192 OEA if the start address is < 4096, not just == 0.
1194 Wed Sep 20 13:36:06 1995 Ian Lance Taylor <ian@cygnus.com>
1196 * Makefile.in (maintainer-clean): New synonym for realclean.
1198 Sun Sep 10 10:23:56 1995 Michael Tiemann <tiemann@axon.cygnus.com>
1200 * registers.c (register_description): Add gdb synonyms for cr
1203 Fri Sep 8 13:16:10 1995 Ian Lance Taylor <ian@cygnus.com>
1205 * Makefile.in (install): Don't install in $(tooldir).
1207 * configure.in: Call AC_CONFIG_HEADER. Don't try to use
1208 bfd/hosts/*.h file or bfd/config/*.mh file. Call AC_PROG_CC and
1209 AC_PROG_RANLIB. Substitute in values for CFLAGS, HDEFINES, AR,
1210 and CC_FOR_BUILD. Call AC_CHECK_HEADERS for various header files.
1211 Touch stamp.h if creating config.h.
1212 * configure: Rebuild.
1213 * config.in: New file, created by autoheader.
1214 * Makefile.in (AR): Define as @AR@.
1215 (CC): New variable, defined as @CC@.
1216 (CFLAGS): Define as @CFLAGS@.
1217 (CC_FOR_BUILD): New variable, defined as @CC_FOR_BUILD@.
1218 (RANLIB): Define as @RANLIB@.
1219 (HDEFINES, TDEFINES): New variables.
1220 (@host_makefile_frag@): Remove.
1221 (mostlyclean): Make the same as clean, not distclean.
1222 (clean): Remove config.log.
1223 (distclean): Remove config.h and stamp-h.
1224 (Makefile): Don't depend upon @frags@. Just rebuild Makefile when
1225 invoking config.status.
1226 (config.h, stamp-h): New targets.
1227 (gen, gen.o): Build with CC_FOR_BUILD, not CC.
1228 (ppc-config.h): Rename from old config.h build.
1229 * (basics.h,gen.c,ppc-endian.c,psim.c): Include ppc-config.h.
1231 Fri Sep 8 09:51:03 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1233 * configure{,.in}: Don't include sysdep.h from bfd, since bfd no
1235 * basics.h (sysdep.h): Don't include it.
1236 * Makefile.in (BASICS_H): Remove sysdep.h.
1238 Wed Sep 6 13:25:42 1995 Andrew Cagney <cagney@highland.com.au>
1240 * core.c (core_add_data): First growth of bss was being put at
1241 wrong address (0) instead of &end.
1243 * core.c (core_add_stack, core_add_data): Was not handling case
1244 where bss/stack is grown across the current end-of-{bss,stack}.
1246 Wed Sep 6 00:46:10 1995 Andrew Cagney <cagney@highland.com.au>
1248 * system.c (system_call): Fix SYS_break - was aligning bss to a
1249 page boundary instead of just an 8 byte one; On first call sbrk(0)
1252 Thu Aug 24 14:48:54 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1254 * Makefile.in (install): Fix install rule.
1256 Tue Aug 22 09:31:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1258 * system.c (system_call): Add read support.
1260 * main.c (main): -t sets trace_device_tree. Correct usage message
1263 * device_tree.c (update_memory_node_for_section): Make tracing
1264 output line up. If not code or readonly, assume that the section
1265 is a data section and has read/write permissions. Add readonly
1268 * core.c (create_core_from_addresses): Print end address in traces
1269 and make tracing output line up.
1271 * Makefile.in: Rewrite from Makefile to work with the Cygnus
1272 environment, and support compiling in a different directory than
1273 the sources reside in.
1275 * ppc-endian.h: Rename from endian.h so that it doesn't get
1276 confused with /usr/include/sys/endian.h on Linux. Add Linux
1279 * ppc-endian.c: Rename to be consistant with ppc-endian.h.
1280 Include ppc-endian.h, not endian.h.
1282 * basics.h (sysdep.h): Include sysdep.h that configure makes.
1283 Include ppc-endian.h, not endian.h.
1285 * std-config.h: Rename from ppc-config. Put #ifndefs around most
1286 configuration macros, so they can be overridden via CFLAGS. By
1287 default, turn off tracing.
1289 * configure.in: Clone from other simulator targets.
1290 * configure: Generate via autoconf from configure.in.
1292 Sat Aug 19 09:05:32 1995 Andrew Cagney <cagney@highland.com.au>
1294 * ppc-instructions: fix srawi (was geting XER[CA] real wrong).
1296 * interrupts.c (data_storage_interrupt): allow stack to grow by
1297 upto one MB per increment.
1299 * ppc-instructions: divw was computing rA / rA not rA / rB
1301 * main.c (main): really stupid. Wasn't exiting with correct status
1303 Fri Aug 18 00:38:01 1995 Andrew Cagney <cagney@highland.com.au>
1305 * system.c (system_call): add system calls kill(2) and getpid(2).
1307 * main.c (main): Check/return exit status when simulation
1310 Thu Aug 17 14:29:18 1995 Andrew Cagney <cagney@highland.com.au>
1312 * device_tree.c (create_option_device_node): Alignment rules (at
1313 least for the moment) now are for strict alignment only for LE OEA
1314 mode. (Because of compiler problems).
1316 * system.c (system_call) SYS_exit: Wasn't exiting with correct status.
1318 Thu Aug 17 01:16:38 1995 Andrew Cagney <cagney@highland.com.au>
1320 * vm.c (DEFINE_VM_DATA_MAP_WRITE_N): For miss aligned transfer
1323 * system.c (system_call): didn't page align break argument before
1324 determining increment break increment.
1326 * psim/ppc: Re-arange entire directory structure so that
1327 everything lives in the one directory. While a pain for cleaning,
1328 makes building across multiple architectures much simpler.
1330 * devices.c, device_tree.c: Added code that provides a simple
1331 illustration of how an interrupt control device could be
1334 * devices.c: Added code so that the dumb console device can read
1335 (from stdin) as well as write to stdout.