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