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