1 Thu Nov 16 09:52:26 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3 * table.c (table_entry_read): Allow the annex to have blank lines.
5 * ppc-instructions: Change lines in model stuff that just have a
6 tab to just newline. Add 601 support. Document most instructions
7 in terms of model specific timing information. Drop 'FUNCTION'
8 from PPC_FUNCTION_UNIT_xxx enums. Change PPC_UNIT_UNKNOWN ->
9 PPC_UNIT_BAD. Add TRACE(trace_tbd) for all data cache
10 instruction.s. Signal illegal instruciton if data cache block
11 invalidate is issued from problem state.
13 * igen.c (max_model_fields_len): New static to keep track of the
14 max size for the model specific fields.
15 (model_c_insn): Use max_model_fields_len to size fields.
16 (insn_table_insert_insn): Set max_model_fields_len.
17 (model_table_insert): Ditto.
19 * debug.c (trace_description): Add support for trace_tbd.
21 Wed Nov 15 17:32:13 1995 Michael Meissner <meissner@tiktok.cygnus.com>
23 * cpu.h (cpu_model): Add declaration.
25 * cpu.c (struct _cpu): Add model_ptr to hold model specific
27 (cpu_model): Return the model internal pointer.
28 (cpu_{create,init,halt}): Call the appropriate model function.
30 * inline.c (mon.c): Move include of mon.c after model.c.
32 * mon.c (_cpu_mon): Add fields to count unaligned memory
34 (mon_issue): Call model_issue, not function_unit_issue.
35 (mon_{read,write}): Count # of unaligned memory accesses.
36 (mon_print_info): Switch to calling model_mon_info and
37 model_mon_info_free instead of function_unit version. Print out
38 number of unaligned reads/writes.
40 * {ppc-instructions,igen.c}: More global changes to add model
43 * inline.{c,h}: Provide for inlining options.c.
44 * options.{c,h}: Ditto.
45 * std-config.h: Add OPTIONS_INLINE.
47 Tue Nov 14 04:47:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
49 * Makefile.in (devices.o, main.o): Update dependency.
51 * igen.c (gen_model_h): Use correct variable in loop.
52 (gen_model_c): Use strcmp, strcasecmp.
53 (gen_model_c): Use EXTERN_MODEL for arrays.
54 (gen_model_h): Use STATIC_MODEL for arrays.
55 (lf_print_c_semantic_function_header): Delete unused function.
57 * main.c (cpu.h): Include cpu.h to get model.h.
59 * inline.h ({EXTERN,STATIC}_MODEL): Define.
61 Mon Nov 13 09:14:13 1995 Michael Meissner <meissner@tiktok.cygnus.com>
63 * igen.c ({insn,model}_table_fields): Spell mnemonic correctly.
64 (gen_itable_h,itable_c_insn): Ditto.
65 (model support): Move model support around, add support for
66 model-data, model-internal. Use annex field for model-macros
69 * configure.in (--enable-sim-inline): If --enable-sim-inline=no,
70 also define INLINE as nothing.
71 * configure: Regenerate.
73 * std-config.h (INLINE): Rather than nuking INLINE, only define it
74 as __inline__ if any of the INLINE flags are non-zero.
76 * options.c (print_options): Print out WITH_XOR_ENDAIN.
78 Mon Nov 13 23:03:45 1995 Andrew Cagney <cagneyhighland.com.au>
80 * ppc-instructions (rfi): Add missing code.
82 * cpu.c (cpu_get_time_base): Fix calculation of current value of
85 * ppc-spr-table (TBL, TBU): Fix TBL/TBU entries - was confusing
86 m[tf]tb with m[tf]spr.
88 * ppc-instructions (mtspr, mfspr): Fix mttbl - wasn't storing
91 Mon Nov 13 21:35:37 1995 Andrew Cagney <cagneyhighland.com.au>
93 * std-config.h (INLINE, STATIC_INLINE): Was being set to static
94 inline.. Only problem being that with ppc-opcode-simple this gave
95 it the chance to inline all the idecode functions with potentially
96 disasterous results on a 16mb PC. For moment hobble INLINE.
98 * configure.in, std-config.h (WITH_SMP): Make that 5 processors by
101 * configure.in: Tweek flags passed to gcc for --with-sim-warnings.
102 Firstly make them errors and secondly remove the options gcc-245
105 Mon Nov 13 17:57:24 1995 Andrew Cagney <cagney@highland.com.au>
107 * misc.c (zalloc), cpu.c (cpu_init), devices
108 (console_io_read_buffer_callback, icu_io_read_buffer_callback,
109 vm_io_read_buffer_callback), main.c (zalloc), mon.c (memset),
110 sim_calls.c (zalloc) : replace bzero() with memset().
112 * emul_netbsd.c (write_direntries), psim.c (psim_read_register,
113 psim_write_register): replace bcopy() with memcpy().
115 Sun Nov 12 20:55:41 1995 Andrew Cagney <cagneyhighland.com.au>
117 * configure.in: for --disable-sim-inline (--enable-sim-inline=no),
118 force DEFAULT_INLINE to 0 rather then trusting the std
121 Sun Nov 12 20:55:41 1995 Andrew Cagney <cagneyhighland.com.au>
123 * igen.c (lf_print_idecode_table, idecode_table_leaf): Fix
124 generation of switch entries in tables - treat the same as
125 cracking/semantic functions.
127 * igen.c (idecode_switch_end, idecode_switch_leaf): Fix generation
128 of a boolean switch statement (field zero or non-zero).
130 * ppc-opcode-test-1, ppc-opcode-test-2: New files. These test the
131 switch/table generation ability of igen.
133 * igen.c (idecode_switch_leaf): Fix code output when a switch
134 statement needs to look up a table.
136 * igen.c (idecode_declare_if_switch): New function called from
137 gen_idecode_c - need to declare any idecode switch functions
138 before they are used in idecode tables.
140 * igen.c (lf_print_c_cracker_function, idecode_crack_leaf,
141 idecode_crack_insn): Add is_inline_function argument to code
142 printing cracker functions which indicates if STATIC_IDECODE or
143 STATIC_INLINE_IDECODE should be used for definition. For
144 idecode_crack_insn (which implies not duplicating/expanding) don't
145 declare function as inline - we assume that the only time this is
146 code is generated is when things are being tested. For
147 idecode_crack_leaf, make static (instead of INLINE) if the
148 instructions parent is a table as function will always be called
151 * igen.c (idecode_expand_if_switch): Declare as STATIC_IDECODE not
152 STATIC_INLINE_IDECODE. Only the outermost idecode switch will be
153 called directly, all others are called via a table.
155 * igen.c (lf_print_semantic_function_header, semantics_h_leaf,
156 semantics_h_insn, semantics_h_function,
157 lf_print_c_semantic_function, semantics_c_function): Add
158 is_inline_function argument to lf_print_semantic_function_header
159 to indicate if an inline or static function declaration/definition
160 should be output. Depending on situtation call accordingly:
161 functions (not instruction semantic routines) are always inline;
162 Semantic routines are made inline when there is no icache (cache
163 will contain the function address) and are duplicating (see above)
164 and the parent of the instruction is a switch statement.
166 * igen.c (opcode_field_new): Delete. Code changed to use ZALLOC
167 and moved to insn_table_find_opcode_field.
169 * table.c (table_open): Fix typo (nr_model_fields vs nr_fields).
171 * igen.c (model_c_insn): Suggestion - document the name of the
172 instruction on each line of the instruction model table.
174 Fri Nov 10 00:44:38 1995 Andrew Cagney <cagneyhighland.com.au>
176 * emul_netbsd.c (do_ioctl): Cleanup compilation.
178 * sim_callbacks.h (__attribute__): Only define if not defined (was
179 already defined on NetBSD host).
181 Wed Nov 8 21:49:52 1995 Andrew Cagney <cagneyhighland.com.au>
183 * std-config.h (WITH_XOR_ENDIAN), configure.in, Makefile.in: New
184 macro, indicates if the PowerPC's horrible XOR endian mode should
185 be suported. Add to configure and make.
187 * vm_n.h (vm_data_map_read_N, vm_data_map_write_N), vm.c
188 (vm_instruction_map_read): If XOR endian, xor the address
189 with a value from an xor table (indexed by size of access).
191 * vm.c (vm_synchronize_context), cpu.c (cpu_synchronize_context):
192 set up xor table to xor if there is a conflict between the
193 CURRENT_TARGET_ENDIAN and the endian indicated in the MSR. Move
194 check of suported change of endian mode from cpu.c to vm.c.
196 * vm.c (vm_data_map_write_buffer, vm_data_map_read_buffer):
197 Hopefully added correct hack to handle XOR endian mode.
199 FIXME: If NONSTRICT alignment and XOR ENDIAN and MSR indicates
200 little endian mode, the model accepts miss aligned transfers.
202 FIXME: Need to create an `init' device that, during
203 initializatioin for XOR mode, it mushes (XOR address) all the dma
204 data before passing it on to the core for storage. Just like the
207 Wed Nov 8 21:49:52 1995 Andrew Cagney <cagneyhighland.com.au>
209 * devices.c (halt_io_write_buffer_callback): Use value written to
210 halt device to determine exit status. Thus allowing
211 success/failure of OEA tests.
213 Wed Nov 8 00:10:38 1995 Andrew Cagney <cagneyhighland.com.au>
215 * ppc-instructions (icbi): If icache present flush it.
217 Tue Nov 7 23:36:31 1995 Andrew Cagney <cagneyhighland.com.au>
219 * devices.c (htab_init_callback): Add code to create htab/pte.
221 * devices.c (dma_file, file_init_callback, htab_init_callback):
222 New function - Dma the named file into memory at the specified
225 * device_tree.h, device_tree.c (scand_*): New functions.
227 Tue Nov 7 23:36:31 1995 Andrew Cagney <cagneyhighland.com.au>
229 * filter_filename.c, Makefile.in: Change so that only dependant on
230 a very limited nr of files. Stops an unnecessary dependency.
232 Tue Nov 7 15:44:33 1995 Andrew Cagney <cagney@highland.com.au>
234 * core.c (core_map_find_mapping): Use cpu_halt rather than error
235 to abort an access to an undefined address.
237 Sun Nov 12 07:58:09 1995 Michael Meissner <meissner@tiktok.cygnus.com>
239 * igen.c (model_table_insert_{macro,function}): New functions.
240 (insn_table_load_insns): Call them.
241 (gen_model_h): Move section emiting model-macros to be first.
242 (model_{c,h}_function): New functions cloned from semantic
243 functions to print out the prototype and function for
245 (gen_model_{c,h}): Print out model-functions.
247 * ppc-instructions (model_{start,halt,print_info}): Add dummy
250 * options.c (print_options): Print out WITH_{,DEFAULT_}MODEL, not
251 WITH_PPC_{,DEFAULT_}_MODEL.
252 (options_ppc): Delete now unused function.
253 (cpu.h): Include cpu.h, not just basics.h.
255 * std-config.h (WITH_{,DEFAULT_}MODEL): Define.
257 * igen.c (model_macros, last_model_macro): New statics to keep
258 track of macros to go in model.h.
259 (insn_table_load_insns): Add model-macros to model_macros linked
261 (model_table_fields): Add field for printable name.
262 (gen_model_h): If there are model macros defined, print them out.
263 Print out DEFAULT_MODEL as the first model if there any models
264 specified, otherwise MODEL_NONE. Print out external decl for
265 current_model. Print out decl for model_set.
266 (gen_model_c): Add function model_set. Switch to use printable
267 name for the model, not the internal identifier used.
269 * psim.c (current_model): New global variable.
271 * ppc-instructions: Add macros for flag defines. Switch first
272 model so 604 is first.
274 * main.c (main): Call model_set, not function_unit_model.
275 * sim_calls.c (sim_open): Ditto.
276 * sim_calls.c, Makefile.in: sim_calls.c now includes cpu.h.
278 Sat Nov 11 07:27:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
280 * mon.h (mon_events): New enumeration for other events we want to
282 (mon_event): Add declaration for function.
284 * mon.c (mon_event): New function.
285 (mon_print_info): Print icache misses.
287 * psim.c (run_until_stop): Monitor icache misses.
289 * configure.in (--enable-sim-inline): Fix typos in handling comma
290 separated inline options.
291 (--enable-sim-icache): Echo icache size.
292 * configure: Regenerate.
294 * igen.c (semantics_h_print_function): Emit STATIC_SEMANTICS
295 instead of INLINE_SEMANTICS so that the compiler won't keep all of
296 the semantic functions as inline RTL, given that the address of
297 the function is taken which forces outline calls anyway.
298 (lf_print_c_semantic_function_header): Ditto.
299 (gen_semantics_h): Define STATIC_SEMANTICS as nothing if not
301 (lf_print_c_cracker_function): Emit STATIC_IDECODE instead of
302 STATIC_INLINE_IDECODE.
303 (gen_idecode_c): Define STATIC_IDECODE if not defined.
304 (gen_model_h): Use #ifdefs to define types to hold model units,
306 (model_table_insert): Add a sentinel functional unit at the end to
307 simplify loop processing.
308 (model_c_insn): Use <function-unit>_SENTINAL instead of 0 for any
309 instruction not specifing a function unit for the current model.
310 (gen_model_{c,h}): Provide bounds for model_time_mapping.
312 * inline.h (STATIC_SEMANTICS): Define to be static if
313 SEMANTICS_INLINE is defined.
314 (STATIC_IDECODE): Define to be static if IDECODE_INLINE is
317 * options.c (print_options): Fix typo.
319 Fri Nov 10 06:39:46 1995 Michael Meissner <meissner@tiktok.cygnus.com>
321 * configure.in (--enable-sim-{opcode,config}): Use $srcdir when
322 check for the existence of files.
323 * configure: Regenerate.
325 * table.c (table): New field nr_model_fields.
326 (table_open): New parameter nr_model_fields.
327 (table_entry_read): Parse model fields that begin with a '*' after
329 * igen.c, dgen.c: Change callers of table_open.
331 * igen.c: Add support for dumping model specific information in
333 (insn_field_name): Delete unused array.
334 (global variables): Make global variables static, so we can tell
335 when they are no longer used.
336 (cache_semantic_actual): Delete unused variable.
337 (insn_table_load_insns): If the insn is really a machine model,
338 call model_table_insert instead of other processing.
339 (model_table_insert): New function to handle defining the
340 functional units of a particular machine model.
341 (insn_table): Add last_function field so we can add functions at
343 (insn_table_insert_function): Use last_function field when
344 appending new function.
346 * ppc-instructions: Add a few model specific information for 603,
347 603e, and 604 for testing purposes.
349 * table.h (table_model_entry): New linked list to hold model
350 specific information, one per line.
351 (table_entry): Add model_first, model_last fields.
353 * configure.in (--enable-sim-inline): If gcc is found and
354 --enable-sim-inline is not specified, defaine DEFAULT_INLINE to 1,
356 (--enable-sim-reserved-bits): New switch to check whether reserved
357 bits are set in the instruction.
358 (--enable-sim-opcode): Make complex the default.
359 (all switches): Add appropriate checks and error messages.
360 * configure: Regenerate.
362 * Makefile.in (RESERVED_CFLAGS): New variable set by
363 --enable-sim-reserved-bits.
364 (CONFIG_CFLAGS): Include RESERVED_CFLAGS.
365 (BUILT_SRC): igen now generates model.c and model.h.
366 (LIB_OBJ): Include table.o.
367 (tmp-igen): Add -m/-M options to write model.c/model.h.
368 (model.o): New object.
369 (CPU_H): Include model.h.
371 * cpu.h: Include model.h.
373 * std-config.h (WITH_RESERVED_BITS): Define.
374 (MODEL_INLINE): Ditto.
376 * options.c (print_options): Print out WITH_RESERVED_BITS.
378 Thu Nov 9 12:22:15 1995 Michael Meissner <meissner@tiktok.cygnus.com>
380 * configure.in: If --silent, don't output information messages.
381 * configure: Regenerate.
383 * configure.in (--enable-sim-alignment): Fix typo in specifing non
385 (--enable-sim-switch): Make default on.
386 (--enable-sim-duplicate): Make default on.
387 (--enable-sim-smp): Make default 0.
388 (--enable-sim-mon): Don't set sim_float if not set.
389 (--enable-sim-inline): If gcc is found and --enable-sim-inline is
390 not specified, define DEFAULT_INLINE to be 2.
391 (all --enable-sim-* rules): Echo rules set to non empty to file
393 * configure: Regenerate.
395 * options.c (options_env): Fix typo if WITH_ENV is 0.
396 (print_options): Print GCC compiler version if available and
397 date/time options was compiled. If OPCODE_RULES, IGEN_FLAGS,
398 and/or DGEN_FLAGS are defined, print them.
400 * Makefile.in (all link actions): Pass SIM_CFLAGS as well as
402 (options.o): Compile options.o with OPCODE_RULES, IGEN_FLAGS, and
403 DGEN_FLAGS defined, so they can be printed out.
405 * igen.c (lf_print_c_validate): Check for WITH_ASSERT, so that
406 this test can be compiled away if the user really wants a fast
407 simulator by not doing assertion failures.
409 Wed Nov 8 13:19:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
411 * options.c: New file to print out all of the WITH_ options.
412 * options.h: New include file to declare print_options.
413 * debug.h (trace_options): Add trace_opts to call print_options.
414 * debug.c (trace_description): Add trace_opts support.
415 * main.c (main): If user requested options, print them.
416 * sim_calls.c (sim_open): Ditto.
418 * igen.c (opcode_field_new): Add void to make it a proper prototype.
420 * emul_generic.c (emul_enter_call): Make printf_filtered arguments
422 * emul_netbsd.c (do_kill): Ditto.
423 * registers.c (registers_dump): Ditto.
424 * vm.c (om_translate_effective_to_real): Ditto.
425 * vm_n.h (vm_data_map_read_N): Ditto.
426 (vm_data_map_write_N): Ditto.
427 * devices.h (DTRACE_INIT): Ditto.
428 (DTRACE_{ATTACH,DETACH}_ADDRESS): Ditto.
429 (DTRACE_IO_{READ,WRITE}_BUFFER): Ditto.
430 (DTRACE_DMA_{READ,WRITE}_BUFFER): Ditto.
431 * devices.c (update_for_binary_section): Ditto.
432 (write_stack_arguments): Ditto.
433 (stack_ioctl_callback): Ditto.
434 * device_tree.c (device_tree_add_passthrough): Ditto.
435 (device_tree_{add,find}_device): Ditto.
436 (device_tree_{add,find}_integer): Ditto.
437 (device_tree_find_{string,boolean}): Ditto.
438 (device_tree_init{,_device}): Ditto.
439 (device_tree_dump): Ditto.
440 * sim_calls.c (sim_{read,write}): Ditto.
441 (sim_{fetch,store}_register): Ditto.
442 (sim_stop_reason): Ditto.
444 * sim_callbacks.h (printf_filtered): Declare with attribute
445 printf, so we can enable format checks.
447 * devices.c (console_io_{read,write}_buffer_callback): Cast swtich
448 argument to int, since ANSI doesn't allow long switch values.
449 * emul_netbsd.c (do___sysctl): Ditto.
451 * emul_netbsd.c (do___sysctl): Fix up printf call.
453 * corefile.c (core_translate): Don't do arithmetic with void *
454 pointers. Cast to char * first.
456 * function_unit.c (FUNC_{LOAD,STORE}): Rename from {LOAD,STORE}
459 * Makefile.in ({FUNC,MODEL,WARNING}_CFLAGS): New flags set by
460 configure --enable switches.
461 (CONFIG_CFLAGS): Include FUNC_CFLAGS and MODE_CFLAGS.
462 (.c.o): Include WARNING_CFLAGS.
463 (CPU_H): Include function_unit.h.
464 (LIB_OBJ): Include function_unit.o.
465 (BUILT_SRC_WO_CONFIG): Split from BUILT_SRC and do not include
466 config.h or ppc-config.h.
467 (BUILT_SRC): Include BUILT_SRC_WO_CONFIG, config.h and
469 (filter_filename.o): Include config.h/ppc-config.h dependencies.
470 (idecode.o, semantics.o, psim.o): Specify CC line without
471 WARNING_CFLAGS so that we don't get all of the unused variable
472 warnings that are generated.
473 (function_unit.o): Add rule to build.
474 (main.o, sim_calls.o): Add function_unit.h, itable.h dependencies.
475 (mon.o): Include mon.c dependency.
476 (TAGS): Depend on BUILT_SRC.
477 (clean): Don't delete config.h or ppc-config.h
479 * basics.h (sim_callbacks.h): Move include after the include of
480 config.h and ppc-config.h.
482 * bits.{h,c} (ROTL32,ROTL64): Move these functions to bits.c. Add
483 support for BITS_INLINE to inline these. Add declarations to
486 * configure.in (--enable-sim-warnings): Add new option to specify
487 compiler warnings for all modules except idecode.o and semantics.o
488 which have lots of unused variables because they are machine
490 (--enable-sim-function-unit): New switch to configure whether
491 function unit support is compiled in or not.
492 (--enable-sim-{,default-}mode): New switches to control which cpu
494 * configure: Regenerate.
496 * corefile.c (core_attach_address_callback): Delete unused
497 variable device_address.
499 * cpu.c (struct _cpu): Add function unit pointer field func_unit.
500 (cpu_create): If WITH_FUNCTION_UNIT, call function_unit_create.
501 (cpu_init): If WITH_FUNCTION_UNIT, call function_unit_init.
502 (cpu_halt): If WITH_FUNCTION_UNIT, call function_unit_halt.
503 (cpu_function_unit): New function to return func_unit field.
505 * cpu.h (function_unit.h): Include new include file.
506 (cpu_function_unit): Declare.
508 * debug.c (stdlib.h): Test HAVE_STDLIB_H, not HAVE_STDLIB.
509 (config.h): Include config.h.
511 * devices.c (icu_io_write_buffer_callback): Delete unused variable
514 * emul_generic.c (emul_exit_call): Print out status value.
516 * emul_netbsd.c (do_read): Delete unused variable nr_moved.
518 * filter_filename.h (includes): Include config.h, ppc-config.h,
521 * inline.c: Include bits.c if BITS_INLINE. Include
522 function_unit.c if FUNCTION_UNIT_INLINE.
524 * inline.h (INLINE_BITS): Define if BITS_INLINE.
525 (INLINE_FUNCTION_UNIT): Define if FUNCTION_UNIT_INLINE.
527 * interrupts.c (instruction_storage_interrupt): Delete unused
530 * lf.h (config.h): Include config.h.
532 * main.c (includes): Include function_unit.c. If HAVE_UNISTD_H,
534 (usage): Update for -m model, -i, and -I options.
535 (main): Delete unused variables stack_pointer and i. Add support
536 for -i, -m model arguments. Call psim_print_info with verbose ==
537 1 if -i, and verbose == 2 if -I.
539 * mon.c (stdio.h): Include stdio.h to pick up sprintf prototype.
540 (mon_issue): Call function_unit_issue if function units are
542 (mon_print_info): Take psim * argument. Print out information
543 from function_unit if available. Move read/write stats to always
544 print, instead of printing if verbose > 1. Fix up plural
547 * mon.h (mon_print_info): Update prototype.
549 * psim.c (current_ppc_model): Add global variable.
550 (psim_print_info): Pass system argument to mon_print_info.
552 * sim_calls.c (function_unit.h): Include.
553 (sim_open): Add support for -i and -m model options. If -i call
554 psim_print_info with verbose == 1, if -I, with verbose == 2.
555 (sim_resume): Delete unused variable program_counter.
557 * std-config.h (WITH_FUNCTION_UNIT): Define.
558 (ppc_model): Add enumeration giving all PowerPC models currently
560 ({WITH,CURRENT}_PPC_MODEL): Define.
561 (FUNCTION_UNIT_INLINE): Define.
563 * table.c (config.h): Include config.h.
565 * vm.c (om_virtual_to_real): Print pte_word_{0,1} so the compiler
566 doesn't complain that they're unused.
568 * vm_n.h (vm_data_map_read_N): Delete unused variable rval.
570 Mon Nov 6 23:15:54 1995 Andrew Cagney <cagney@highland.com.au>
572 * sim-endian.c (ppc-endian.c), sim-endian.h (ppc-endian.h):
573 renameed. These files are target independant.
574 * Makefile.in, basics.h: update for new name.
576 * sim-endian.h (SWAP_N), sim-endian.c (_SWAP_1): Rename existing
577 SWAP_<N> to _SWAP_<N> so that sim-endian.h can contain SWAP_N
580 * sim-endian.c, sim-endian-n.h (new file): Move endian code into a
581 debugable header file.
583 * ppc-instructions (Byte-Reverse): Enable byte reverse
584 instructions using SWAP_N macros.
586 Mon Nov 6 10:39:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
588 * Makefile.in (config.status): Remove references to config.make
591 * config.{make,hdr}: Delete, no longer used.
594 Mon Nov 6 20:49:56 1995 Andrew Cagney <cagney@highland.com.au>
596 * sim_calls.c (sim_open): Fix parsing of `target sim' options.
598 * device_tree.c (device_tree_add_string): Wasn't saving the value
599 of the string being entered into the tree.
601 * psim.c (create_filed_device_tree): Not terminating string device
604 * psim.c (psim_create): Use `env' instead of
605 `environment-architecture' to be consistent with configure.
606 Reconize user/uea, virtual/vea and operating/oea.
608 Sat Nov 4 12:29:45 1995 Fred Fish <fnf@cygnus.com>
610 * core.c: Rename to corefile.c
611 * core.h: Rename to corefile.h
612 * inline.c: Include corefile.h, renamed from core.h.
613 * cpu.h: Include corefile.h, renamed from core.h
614 * vm.c: Include corefile.h, renamed from core.h
615 * corefile.c: Include corefile.h rather than core.h
616 * README.psim (KNOWN PROBLEMS): Change core.* references to corefile.*
618 * Makefile.in (CPU_H): Change core.h to corefile.h
619 (vm.o): Change dependency to corefile.h
620 (LIB_SRC): Change core.c to corefile.c.
621 (LIB_OBJ): Change core.o to corefile.o.
622 (corefile.o): Change dependencies to corefile.c, corefile.h.
624 Fri Nov 3 11:37:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
626 * ppc-instructions (data cache instructions): Make all data cache
627 instructions nops instead of invalid instructions.
629 * Makefile.in (CONFIG_CFLAGS): Add ALIGNMENT_CFLAGS and
630 TIMEBASE_CFLAGS which weren't included.
632 Thu Nov 2 08:54:04 1995 Michael Meissner <meissner@tiktok.cygnus.com>
634 * Makefile.in: Uncomment built file dependencies.
636 * configure.in: Rewrite --enable-sim switch handling to use the
637 autoconf builtins so it works correctly if the configure or
638 Makefile.in files are modified and make decides to rebuild
639 Makefile. Also document all of the --enable-sim switches
640 supported. Check whether getrusage and sys/resource.h are
642 * config.in: Regenerate.
643 * configure: Regenerate.
644 * Makefile.in: Add support for all of the variables set with
645 --enable-sim switches.
647 * Makefile.in (clean): make clean now removes all built sources as
650 * cpu.c: Use HAVE_STRING_H, HAVE_STRINGS_H, HAVE_UNISTD_H,
651 HAVE_TIME_H, HAVE_SYS_TIMES_H, HAVE_SYS_RESOURCE_H defined in
652 the generated config.h.
654 * device_tree.c: Ditto.
657 * emul_netbsd.c: Ditto.
662 * registers.c: Ditto.
667 * main.c (main): Call psim_print_info with verbose == 2.
669 * mon.c (mon_print_info): Align the cpu number and number of
670 instructions fields. Do not print an instruction category if the
671 CPU did not execute any of those instructions. Print out number
672 of reads and writes. If getrusage is supported, print out number
673 of simulated instructins per second.
675 * configure.in: Add support for --enable-sim-opcode=stupid.
676 * configure: Regenerate.
678 Wed Nov 1 23:46:59 1995 Andrew Cagney <cagney@highland.com.au>
680 * std-config (INLINE_DEVICE_TREE): Don't inline either of
681 device_tree.c or devices.c. There is no significant gain.
683 * configure.in, Makefile.in: add --enable-sim-icache=[0-9]* and
686 Wed Nov 1 23:46:59 1995 Andrew Cagney <cagney@highland.com.au>
688 * igen.c (main), misc.h (target_a2i, i2target), misc.c: Add
689 functions to convert between target and igen internal bit numbers.
690 Make IO go through these functions. Add -b (bit size) and -h (high
691 bit nr) options to igen. Typical usage would be: ./igen -b 16 -h
692 15 for a 16 bit instruction format with the msb given a number 15.
694 Wed Nov 1 22:17:32 1995 Andrew Cagney <cagney@highland.com.au>
696 * dgen.c (main): Was outputting optarg even when it was NULL.
698 Tue Oct 31 23:48:33 1995 Andrew Cagney <cagney@highland.com.au>
700 * vm_n.h (vm_data_map_load_N, vm_data_map_store_n), debug.h,
701 debug.c: Add tracing of load/store unit (virtual) with -t
704 Tue Oct 31 21:44:01 1995 Andrew Cagney <cagney@highland.com.au>
706 * std-config.h (WITH_ENVIRONMENT): Add USER_ENVIRONMENT which does
707 not include things such as the time base and events.
709 * interrupt.c, sim_calls.c, cpu.h, vm.c, configure.in: Add UEA to
710 all environment switches for above.
712 * psim.c (psim_create): ditto - new device tree node name is
713 /options/environment-architecture with values user, virtual and
716 Tue Oct 31 21:31:32 1995 Andrew Cagney <cagney@highland.com.au>
718 * ppc-opcode-stupid: Third example of use of opcode table - this
719 one expands all mtspr/mfspr and branch instructions. Appears to
720 give about a 10% gain in performance if everything enabled. Also
721 takes about 150mb of swap to build.
723 Wed Nov 1 10:49:48 1995 Michael Meissner <meissner@tiktok.cygnus.com>
725 * emul_netbsd.c (do_exit): Print arguments and close parenthesis
726 if tracing, since exit doesn't go through emul_exit_call.
727 (do_read): Print arguments if tracing.
733 (do_sigprocmask): Replace trace with printing arguments if
735 (do_ioctl): Print arguments if tracing.
739 (do_gettimeofday): Ditto.
740 (do_getrusage): Ditto.
743 * filter_filename.c: New file to provide filter_filename to strip
744 the directory prefix from a file.
745 * filter_filename.h: New include file to declare filter_filename.
747 * debug.h: Include filter_filename.h.
748 (TRACE,DTRACE,ERROR): Use filter_filename on __FILE__.
750 * misc.h: Include filter_filename.h.
751 (ASSERT): Use filter_filename on __FILE__.
753 * igen.c (lf_print_my_prefix): Use filter_filename on the filename
756 * Makefile.in: Add filter_filename support.
758 * ppc-instructions (dcbi, icbi): Make these NOPs rather than
759 invalid instructions.
761 * configure.in: Add support for more --enable-sim-* switches.
762 Use config.make and config.hdr to write to Makefile and config.h
763 respectively. Don't rewrite Makefile, just append to it.
764 * configure: Regenerate.
765 * config.{make,hdr}: New shell scripts.
767 * Makefile.in: Remove all variables set by configure.in.
768 (psim.o): Depend on $(BUILT_SRC) also.
770 * emul_netbsd.c (do_gettimeofday,do_getrusage): When comparing an
771 integer, use 0, not NULL.
773 Tue Oct 31 15:20:04 1995 Michael Meissner <meissner@tiktok.cygnus.com>
775 * configure.in: Add support for --enable-sim-inline,
776 --enable-sim-bswap, --enable-sim-cflags, --enable-sim-complex,
777 --enable-sim-switch, --enable-sim-duplicate, --enable-sim-filter,
778 and --enable-sim-endian switch to control various Makefile
780 * configure: Regenerate from configure.in.
781 * Makefile.in: Add various Make variables that the various
784 * std-config.h (DEFAULT_INLINE): Don't set this to 2 if using GCC
785 and optimizing by default.
787 Fri Oct 27 19:26:27 1995 Andrew Cagney <cagney@highland.com.au>
789 * bits.h (ROTL32, ROTL64): Were functions, made them macros, now
790 make them functions again. Appears 2.6.3 is confused by just a
793 Thu Oct 26 18:31:58 1995 Andrew Cagney <cagney@highland.com.au>
795 * ppc-endian.c (SWAP_8): Fix 8 byte swap!
797 * psim.c (psim_create): Not correctly checking that runtime
798 configuration of things like ENDIAN, ENVIRONMENT and ALIGNMENT
799 matched the compiled in ones.
801 * debug.h (ITRACE), igen.c: Tidy up more tracing flags -
802 trace_semantics is now different to trace_idecode, the former
805 Tue Oct 24 21:54:13 1995 Andrew Cagney <cagney@highland.com.au>
807 * ppc-instructions (mtsrin): Missing instruction
808 * ppc-instructions (mfsrin): Missing instruction
809 * ppc-instructions (eieio): Missing instruction
811 Tue Oct 24 20:55:29 1995 Andrew Cagney <cagney@highland.com.au>
813 * build-psim: New shell script - see internals for usage,
814 simplifies the process of building custom simulators.
816 Mon Oct 23 23:48:59 1995 Andrew Cagney <cagney@highland.com.au>
818 * std-config.h (SEMANTICS_INLINE): Tidy up notes on each of the
819 INLINE macros. Make SEMANTICS_INLINE == 1 if DEFAULT_INLINE == 2.
820 Don't use DEFAULT_INLINE to define REGISTERS_INLINE DEVICES_INLINE
821 DEVICE_TREE_INLINE or INTERRUPTS_INLINE as none of these are on
822 the instruction or data critical paths.
824 * FIXME: need to set up OS_EMUL_INLINE/EMUL_GENERIC_INLINE but
825 not on critical path.
827 * FIXME: devices.c/emul_netbsd.c would benefit (slightly) from
828 the inclusion of device_tree.c/emul_generic.c.
830 Mon Oct 23 00:31:50 1995 Andrew Cagney <cagney@highland.com.au>
832 * os_emul.[hc], emul_generic.[hc], emul_netbsd.[hc]: replace
833 system.[hc]. Start of suport for multiple emulations and
834 emulation state (os_emul object).
836 * emul_generic.[hc]: Start of code to implement proper system call
839 Sun Oct 22 21:33:51 1995 Andrew Cagney <cagney@highland.com.au>
841 * cpu.h, cpu.c (cpu_init): New function, zero the registers before
842 the processor is started. Fixes problem of registers being
843 undefined when restarting from within gdb.
845 * cpu.h, cpu.c (cpu_flush_icache): New function, flushes the
846 instruction cache (if present). Fixes problem of cpu caching gdb
847 breakpoint instructions.
849 FIXME: PSIM sometimes aborts calling error(), it should instead
850 call sim_error() say which takes care of housekeeping such as
851 saving the CIA before calling error.
853 * NOTE: cpu_flush_cache() instead of cpu_synchronize_context() is
854 used when restarting a simulation because the latter has the
855 unwanted side effect (well I as a kernel hacker think it is) of
856 performing an isync when the instruction stream doesn't contain
859 Sun Oct 22 19:27:48 1995 Andrew Cagney <cagney@highland.com.au>
861 * mon.h (new), mon.c (new), std-config.h (WITH_MON): Performance
862 monitoring module. Counts both instructions issued and
865 * NOTE: mon does not contain to count instruction loads as this
866 information is already available from the mon_issue() hook.
868 * FIXME: mon doesn't have access to register usage information.
869 This is needed if the user wants to monitor things like register
872 * igen.c (lf_print_c_semantic), vm_n.h: Add counting code.
874 * psim.h, psim.c (psim_create), cpu.h, cpu.c (cpu_create): Attach
875 a common monitor to each of the cpus. Delete
876 cpu_increment_number_of_insns() and cpu_get_number_of_insns()
877 replaced by copied code in mon.[hc].
879 Sun Oct 22 18:42:45 1995 Andrew Cagney <cagney@highland.com.au>
881 * sim_calls.c, main.c, psim.c (psim_create): always create
882 `WITH_SMP' cpus. The actual number of CPU's active in a
883 simulation run is taken from the device node: /init/smp (an
884 integer). WITH_SMP changed to 2 (remember to put it back to 0).
886 Fri Oct 20 17:26:54 1995 Andrew Cagney <cagney@highland.com.au>
888 * system.c: More system call emulation. If code appears NetBSD
889 specific, make conditional to being compiled on a NetBSD system
892 Wed Oct 18 23:02:20 1995 Andrew Cagney <cagney@highland.com.au>
894 * Makefile.in, gen.c(delete), igen.c(new), dgen.c(new),
895 lf.[ch](new), table.[ch](new): Split into two generators - igen
896 that outputs the instruction tables and dgen that outputs the spr
897 tables. Add -f (filter out) flag to igen to filter out certain
898 instructions (ex 64 bit ones) from the created tables. Include
899 $(LIBIBERTY_LIB) in link options in case host lacks some libc
902 * NOTE: igen, since it was originally written for the
903 PowerPC/RS6000, things the MSB is 0 and the LSB is 63{31}.
905 * Makefile.in, std-config.h, ppc-cache-rules(new),
906 ppc-opcode-complex(new), ppc-opcode-simple(new): (for igen) Create
907 cache-rule and opcode-rule tables from macros found std-config.h.
908 Delete corresponding macro's from std-config.h.
910 * FIXME: under this new igen scheme, when playing around with igen
911 options, you'll find that depenencies don't work very well.
913 * igen.c (gen_itable_c, gen_itable_h), Makefile.in: code to output
914 an table of all the instructions. Code to output a type
915 enumerating all the instructin names.
917 * igen.c(lf_print_c_semantic): Move call to increment instruction
918 counter so that it occures _after_ the instruction has been fully
919 validated, was double counting illegal/invalid instructions. Add
920 conditional so only compiled in when WITH_PROFILE enabled (enabled
923 * igen.c, cpu.h, cpu.c(cpu_increment_number_of_insns): Include
924 itable.h, count individual instruction types not just total,
925 adjust reporting functions to output this.
927 * ppc-instructions (64 bit Load Doubleword with Update Indexed):
928 Had 32./ instead of 31./
930 * ppc-instructions (64 bit Store Double Word Conditional Indexed):
931 bitrot - updated to use newer CR register operators.
933 * ppc-instructions (64bit Floating Convert from Integer
934 Doubleword): Correct call to Round_Float().
936 Mon Oct 16 00:31:20 1995 Andrew Cagney <cagney@highland.com.au>
938 * basics.h: #include "sim_callbacks.h" earlier so that its
939 prototypes are declared in all other header files.
941 * bits.h, bits.c, idecode_expression.h (ROTL32, ROTL64): Update
942 doc in bits.h, remove dead code in bits.c, move ROTL32/ROTL64 into
945 * FIXME: the bits.h/bits.c macro's should be replaced with
946 (inline) c functions.
948 * cpu.c(cpu_add_commas), device_tree.h, device_tree.c(scand_*):
949 Add size of buffer argument to functions writing a string into a
950 buffer. Check for buffer overflow.
952 Sun Oct 15 22:16:11 1995 Andrew Cagney <cagney@highland.com.au>
954 * devices.h, devices.c, debug.h, debug.c: add macro's for tracing
955 of each device. Make parameter names consistent so macros work.
956 Use macro's in device functions.
958 * device_tree.c, devices.h, devices.c: include path to device in a
959 devices node when creating it.
961 * device_tree.c, debug.h, debug.c: Add tracing of `device-tree'.
963 * core.c: add tracing of core-device, adjust parameter names in
964 core functions to be consistent with those in devices*.
966 Sun Oct 15 20:33:20 1995 Andrew Cagney <cagney@highland.com.au>
968 * debug.h, debug.c (trace_option): New function. Parses the trace
969 option, updating the trace array.
971 * debug.h, debug.c (trace_usage): New function. Outputs the list
972 of all possible trace options.
974 * sim_calls.c (sim_open), main.c (main): Use new trace_option() to
975 parse trace options specified with the simpler -t flag. Adjust
978 * FIXME: basic parsing of command line options is still duplicated
979 by main.c and sim_calls.c
981 Thu Oct 26 10:42:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
983 * Makefile.in (clean): Delete *.i and *.out files.
985 * ppc-endian.c (SWAP_n): Add SET argument to allow use of SWAP
986 macros for either assignment or return. Fix SWAP_8 to use a
987 union, and two SWAP_4's. Delete SWAP_N, since nobody uses it now.
988 (ENDIAN_N): Add SET argument to SWAP_n calls. Delete macro defs
989 that hardwired swapping on/off, let optimizer delete dead code.
991 * main.c (main): Add printf that we caught a signal and print out
994 Thu Oct 19 21:43:39 1995 Fred Fish <fnf@fishfood.amigalib.com>
996 * Makefile.in: Remove tabs from otherwise empty line.
997 Confuses many non-GNU versions of "make".
999 Wed Oct 18 08:51:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1001 * Makefile.in (clean): Delete files produced by gen.
1003 Mon Oct 16 17:34:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1005 * gen.c (lf_print_c_semantic_function): Move counting # of
1006 instructions here so it works with caching.
1007 (gen_idecode_c): Move from here.
1009 Wed Oct 11 17:13:15 1995 Andrew Cagney <cagney@highland.com.au>
1011 * gen.c, ppc-instructions, psim.c: Fix code for generating
1012 cracking instruction cache. Delete the code that cached just the
1013 result from doing an instruction lookup - this ran slower than no
1016 Fri Oct 13 09:58:43 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1018 * Makefile.in (gen.o): Include $(INLINE_CFLAGS).
1020 * debug.h (ppc_trace): Rename from trace, to avoid a conflict with
1021 TCL when gdb is linked with the simulator.
1022 * debug.c (ppc_trace): Ditto.
1023 * sim_calls.c (sim_open): Change trace -> ppc_trace.
1024 * main.c (main): Ditto.
1026 * cpu.c (cpu_add_commas): Remove extra static.
1028 Thu Oct 12 11:35:53 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1030 * Makefile.in (psim.o): Now that inlines are turned on, make
1031 psim.o depend on all sources.
1033 * cpu.c (cpu_add_commas): New function to format a long with
1035 (cpu_print_info): Use it to print number_of_insns.
1037 * ppc-endian.c (SWAP_n): New macros to speed up byte swapping for
1039 (ENDIAN_N): If both target and host byte orders are known, don't
1040 bother testing CURRENT_{TARGET,HOST}_BYTE_ORDER.
1042 * ppc-endian.h (target specific H2T_n/T2H_n macros): Remove #if 0
1043 to allow target specific H2T_n/T2H_n macros to be used.
1044 (htonl, ntohl): If compiled on a 486 by GCC and WITH_BSWAP is
1045 non-zero, redefine the htonl/ntohl macros to use the BSWAP instead
1046 of the 3 instruction sequence that runs on 386s.
1048 * std-config.h (WITH_{HOST,TARGET}_BYTE_ORDER): Don't override if
1049 specified on the compile line.
1050 (WITH_BSWAP): If not defined, define as 0.
1052 * Makefile.in (INLINE_CFLAGS): Add -DDEFAULT_INLINE=2 to add
1053 default inline support. Pass INLINE_CFLAGS when compiling.
1055 * devices.{h,c} (unimp_device_ioctl): Use STATIC_DEVICES, not
1056 INLINE_DEVICES since GCC doesn't like inline functions that
1057 accept variable arguments.
1058 (stack_ioctl_callback): Make function just static because GCC
1059 doesn't like inline functions that accept variable arguments.
1061 * devices.h (STATIC_DEVICES): Define as empty if not defined.
1063 * inline.c: Correct pathnames of included C files to match current
1066 * inline.h (STATIC_DEVICES): If DEVICES_INLINE is defined to be
1067 non-zero, define STATIC_DEVICES to be static.
1069 * std-config.h (INLINE): If GNU C and optimizing, define this as
1071 (DEFAULT_INLINE): If not defined, define as 0.
1072 (ENDIAN_INLINE): If not defined, define as DEFAULT_INLINE.
1073 ({CORE,VM,CPU,EVENTS,REGISTERS,INTERRUPTS}_INLINE): Ditto.
1074 ({SPREG,IDECODE}_INLINE): Ditto.
1076 Wed Oct 11 17:13:15 1995 Andrew Cagney <cagney@highland.com.au>
1078 * ppc-instructions: Initial cut of floating point suport added.
1079 Of note include - use of host IEEE floating point instructions,
1080 use of PowerPC manual pseudo code to handle the FPSCR. It is not
1081 currently a pretty sight.
1083 * memory_map.h, memory_map.c, memory_map_n.h, core.h, core.c:
1084 merge into core.h, core.c, core_n.h. The type memory_map replaced
1085 with core_map. This removes a level of pointer indirection when
1086 translating an address.
1088 * memory_map.h, memory_map.c, memory_map_n.h: delete.
1090 * Makefile.in et.al (sorry): tweek to use new core, core_map and
1093 Wed Oct 11 12:10:26 1995 Andrew Cagney <cagney@highland.com.au>
1095 * sim_calls.c, main.c: Add -g (trace_gdb) option, add tracing to
1096 most of the other functions in sim_calls.c.
1098 * basics.h (CONCAT3), memory_map.c, memory_map_n.h, Makefile.in:
1099 Add macros to better cover up `generic' code. Makes it possible
1100 to step through the generic code!
1102 * vm.c, vm_n.h, Makefile.in: ditto
1104 Tue Oct 10 15:42:59 1995 Andrew Cagney <cagney@highland.com.au>
1106 * devices.h, devices.c, memory_map.h, memory_map.c: Changed
1107 callback interface so that there is a read/write buffer but no
1108 read/write_word. VEA default memory read/write handler sometimes
1109 couldn't resolve an access and of those some were for a memory
1110 fault and some were because gdb was making a bogus request.
1112 * devices.h, devices.c, memory_map.h, memory_map.c, vm.h, vm.c:
1113 eliminate transfer_mode (raw or cooked) parameter from read/write
1116 Fri Oct 6 20:23:56 1995 Andrew Cagney <cagney@highland.com.au>
1118 * ppc-instructions (fmul, fmuls): correct instruction format - had
1121 Wed Oct 4 17:31:12 1995 Andrew Cagney <cagney@highland.com.au>
1123 * psim.c, device_tree.h, device_tree.c, devices.c (printd_*,
1124 scand_*): new functions to parse/print fields in device names
1125 while hiding any machine dependency.
1127 * devices.c, psim.c: Change the stack init code so that it is
1128 handled by a device. Arguments passed across using a device ioctl
1131 * devices.h, devices.c: device ioctl callback changed to allow a
1132 variable number of arguments. This gives greater flexability and
1133 greater chance of bugs.
1135 Tue Oct 3 22:01:56 1995 Andrew Cagney <cagney@highland.com.au>
1137 * main.c (printf_filtered, error): Missing va_end() to close off
1138 variable argument use.
1140 * Makefile.in (tmp-gencode): comment out hack to get around some
1141 versions of make not handling files being created as side-effects.
1143 * gen.c (lf_open): Add -n (real_file_name) option. Specifies an
1144 alternative file name to use in output files for things like #line
1147 Makefile.in (tmp-gencode): Use gen -n so that debug info is
1150 * Makefile.in (TARGETLIB): Use this instead of libsim.a in the
1153 Sat Oct 7 22:40:59 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1155 * sim_calls.c (sim_set_callbacks): Define new function.
1157 Fri Oct 6 17:23:10 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1159 * psim.c (psim_print_info): Print exit status or signal number.
1161 Mon Oct 2 11:46:37 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1163 * cpu.c (struct _cpu): Add number_of_insns field to trace how many
1164 instructions are executed.
1165 (cpu_increment_number_of_insns): New function to increment the
1166 number of instructions issued.
1167 (cpu_get_number_of_insns): New function to return the number of
1168 instructions issued.
1169 (cpu_print_info): New function to print cpu related information.
1170 At present, print the number of instructions executed.
1172 * gen_idecode_c: Emit call to cpu_increment_number_of_insns within
1175 * psim.c (psim_print_info): New function to iterate over each of
1176 the CPU's calling cpu_print_info.
1178 * psim.h,cpu.h: Add new declarations.
1180 * sim_calls.c (sim_open): Add argument processing to add the same
1181 switches main.c accepts for the standalone processor.
1182 (sim_close): Call psim_print_info if -I.
1184 * main.c (main): Add comment saying to update sim_calls.c when
1185 adding switches. Add -I to call psim_print_info when done.
1186 (usage): Update usage message.
1188 Sun Oct 1 13:52:59 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1190 * main.c (printf_filtered): Correct to match new prototype.
1192 Sat Sep 30 20:47:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1194 * sim_callbacks.h (printf_filtered): Correct prototype.
1196 Thu Sep 21 16:26:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1198 * device_tree.c (OEA_MEMORY_SIZE): Define if not defined to
1200 (clayton_memory_size): Define as OEA_MEMORY_SIZE.
1202 * std-config.h (WITH_TRACE): Default to 1 now.
1204 * psim.c (write_stack_arguments): Don't write any stack arguments
1207 * main.c (main): Switch to using getopt. Make -p also set
1208 trace_semantics. Make -a turn on all trace flags. Make -C turn
1211 * device_tree.c (create_option_device_node): Assume a program is
1212 OEA if the start address is < 4096, not just == 0.
1214 Wed Sep 20 13:36:06 1995 Ian Lance Taylor <ian@cygnus.com>
1216 * Makefile.in (maintainer-clean): New synonym for realclean.
1218 Sun Sep 10 10:23:56 1995 Michael Tiemann <tiemann@axon.cygnus.com>
1220 * registers.c (register_description): Add gdb synonyms for cr
1223 Fri Sep 8 13:16:10 1995 Ian Lance Taylor <ian@cygnus.com>
1225 * Makefile.in (install): Don't install in $(tooldir).
1227 * configure.in: Call AC_CONFIG_HEADER. Don't try to use
1228 bfd/hosts/*.h file or bfd/config/*.mh file. Call AC_PROG_CC and
1229 AC_PROG_RANLIB. Substitute in values for CFLAGS, HDEFINES, AR,
1230 and CC_FOR_BUILD. Call AC_CHECK_HEADERS for various header files.
1231 Touch stamp.h if creating config.h.
1232 * configure: Rebuild.
1233 * config.in: New file, created by autoheader.
1234 * Makefile.in (AR): Define as @AR@.
1235 (CC): New variable, defined as @CC@.
1236 (CFLAGS): Define as @CFLAGS@.
1237 (CC_FOR_BUILD): New variable, defined as @CC_FOR_BUILD@.
1238 (RANLIB): Define as @RANLIB@.
1239 (HDEFINES, TDEFINES): New variables.
1240 (@host_makefile_frag@): Remove.
1241 (mostlyclean): Make the same as clean, not distclean.
1242 (clean): Remove config.log.
1243 (distclean): Remove config.h and stamp-h.
1244 (Makefile): Don't depend upon @frags@. Just rebuild Makefile when
1245 invoking config.status.
1246 (config.h, stamp-h): New targets.
1247 (gen, gen.o): Build with CC_FOR_BUILD, not CC.
1248 (ppc-config.h): Rename from old config.h build.
1249 * (basics.h,gen.c,ppc-endian.c,psim.c): Include ppc-config.h.
1251 Fri Sep 8 09:51:03 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1253 * configure{,.in}: Don't include sysdep.h from bfd, since bfd no
1255 * basics.h (sysdep.h): Don't include it.
1256 * Makefile.in (BASICS_H): Remove sysdep.h.
1258 Wed Sep 6 13:25:42 1995 Andrew Cagney <cagney@highland.com.au>
1260 * core.c (core_add_data): First growth of bss was being put at
1261 wrong address (0) instead of &end.
1263 * core.c (core_add_stack, core_add_data): Was not handling case
1264 where bss/stack is grown across the current end-of-{bss,stack}.
1266 Wed Sep 6 00:46:10 1995 Andrew Cagney <cagney@highland.com.au>
1268 * system.c (system_call): Fix SYS_break - was aligning bss to a
1269 page boundary instead of just an 8 byte one; On first call sbrk(0)
1272 Thu Aug 24 14:48:54 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1274 * Makefile.in (install): Fix install rule.
1276 Tue Aug 22 09:31:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1278 * system.c (system_call): Add read support.
1280 * main.c (main): -t sets trace_device_tree. Correct usage message
1283 * device_tree.c (update_memory_node_for_section): Make tracing
1284 output line up. If not code or readonly, assume that the section
1285 is a data section and has read/write permissions. Add readonly
1288 * core.c (create_core_from_addresses): Print end address in traces
1289 and make tracing output line up.
1291 * Makefile.in: Rewrite from Makefile to work with the Cygnus
1292 environment, and support compiling in a different directory than
1293 the sources reside in.
1295 * ppc-endian.h: Rename from endian.h so that it doesn't get
1296 confused with /usr/include/sys/endian.h on Linux. Add Linux
1299 * ppc-endian.c: Rename to be consistant with ppc-endian.h.
1300 Include ppc-endian.h, not endian.h.
1302 * basics.h (sysdep.h): Include sysdep.h that configure makes.
1303 Include ppc-endian.h, not endian.h.
1305 * std-config.h: Rename from ppc-config. Put #ifndefs around most
1306 configuration macros, so they can be overridden via CFLAGS. By
1307 default, turn off tracing.
1309 * configure.in: Clone from other simulator targets.
1310 * configure: Generate via autoconf from configure.in.
1312 Sat Aug 19 09:05:32 1995 Andrew Cagney <cagney@highland.com.au>
1314 * ppc-instructions: fix srawi (was geting XER[CA] real wrong).
1316 * interrupts.c (data_storage_interrupt): allow stack to grow by
1317 upto one MB per increment.
1319 * ppc-instructions: divw was computing rA / rA not rA / rB
1321 * main.c (main): really stupid. Wasn't exiting with correct status
1323 Fri Aug 18 00:38:01 1995 Andrew Cagney <cagney@highland.com.au>
1325 * system.c (system_call): add system calls kill(2) and getpid(2).
1327 * main.c (main): Check/return exit status when simulation
1330 Thu Aug 17 14:29:18 1995 Andrew Cagney <cagney@highland.com.au>
1332 * device_tree.c (create_option_device_node): Alignment rules (at
1333 least for the moment) now are for strict alignment only for LE OEA
1334 mode. (Because of compiler problems).
1336 * system.c (system_call) SYS_exit: Wasn't exiting with correct status.
1338 Thu Aug 17 01:16:38 1995 Andrew Cagney <cagney@highland.com.au>
1340 * vm.c (DEFINE_VM_DATA_MAP_WRITE_N): For miss aligned transfer
1343 * system.c (system_call): didn't page align break argument before
1344 determining increment break increment.
1346 * psim/ppc: Re-arange entire directory structure so that
1347 everything lives in the one directory. While a pain for cleaning,
1348 makes building across multiple architectures much simpler.
1350 * devices.c, device_tree.c: Added code that provides a simple
1351 illustration of how an interrupt control device could be
1354 * devices.c: Added code so that the dumb console device can read
1355 (from stdin) as well as write to stdout.