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