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