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