1 Wed Nov 8 13:19:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3 * Makefile.in ({FUNC,MODEL,WARNING}_CFLAGS): New flags set by
4 configure --enable switches.
5 (CONFIG_CFLAGS): Include FUNC_CFLAGS and MODE_CFLAGS.
6 (.c.o): Include WARNING_CFLAGS.
7 (CPU_H): Include function_unit.h.
8 (LIB_OBJ): Include function_unit.o.
9 (BUILT_SRC_WO_CONFIG): Split from BUILT_SRC and do not include
10 config.h or ppc-config.h.
11 (BUILT_SRC): Include BUILT_SRC_WO_CONFIG, config.h and
13 (filter_filename.o): Include config.h/ppc-config.h dependencies.
14 (idecode.o, semantics.o): Specify CC line without WARNING_CFLAGS
15 so that we don't get all of the unused variable warnings that are
17 (function_unit.o): Add rule to build.
18 (main.o, sim_calls.o): Add function_unit.h, itable.h dependencies.
19 (mon.o): Include mon.c dependency.
20 (TAGS): Depend on BUILT_SRC.
21 (clean): Don't delete config.h or ppc-config.h
23 * basics.h (sim_callbacks.h): Move include after the include of
24 config.h and ppc-config.h.
26 * bits.{h,c} (ROTL32,ROTL64): Move these functions to bits.c. Add
27 support for BITS_INLINE to inline these. Add declarations to
30 * configure.in (--enable-sim-warnings): Add new option to specify
31 compiler warnings for all modules except idecode.o and semantics.o
32 which have lots of unused variables because they are machine
34 (--enable-sim-function-unit): New switch to configure whether
35 function unit support is compiled in or not.
36 (--enable-sim-{,default-}mode): New switches to control which cpu
38 * configure: Regenerate.
40 * corefile.c (core_attach_address_callback): Delete unused
41 variable device_address.
43 * cpu.c (struct _cpu): Add function unit pointer field func_unit.
44 (cpu_create): If WITH_FUNCTION_UNIT, call function_unit_create.
45 (cpu_init): If WITH_FUNCTION_UNIT, call function_unit_init.
46 (cpu_halt): If WITH_FUNCTION_UNIT, call function_unit_halt.
47 (cpu_function_unit): New function to return func_unit field.
49 * cpu.h (function_unit.h): Include new include file.
50 (cpu_function_unit): Declare.
52 * debug.c (stdlib.h): Test HAVE_STDLIB_H, not HAVE_STDLIB.
53 (config.h): Include config.h.
55 * devices.c (icu_io_write_buffer_callback): Delete unused variable
58 * emul_generic.c (emul_exit_call): Print out status value.
60 * emul_netbsd.c (do_read): Delete unused variable nr_moved.
62 * filter_filename.h (includes): Include config.h, ppc-config.h,
65 * inline.c: Include bits.c if BITS_INLINE. Include
66 function_unit.c if FUNCTION_UNIT_INLINE.
68 * inline.h (INLINE_BITS): Define if BITS_INLINE.
69 (INLINE_FUNCTION_UNIT): Define if FUNCTION_UNIT_INLINE.
71 * interrupts.c (instruction_storage_interrupt): Delete unused
74 * lf.h (config.h): Include config.h.
76 * main.c (includes): Include function_unit.c. If HAVE_UNISTD_H,
78 (usage): Update for -m model, -i, and -I options.
79 (main): Delete unused variables stack_pointer and i. Add support
80 for -i, -m model arguments. Call psim_print_info with verbose ==
81 1 if -i, and verbose == 2 if -I.
83 * mon.c (stdio.h): Include stdio.h to pick up sprintf prototype.
84 (mon_issue): Call function_unit_issue if function units are
86 (mon_print_info): Take psim * argument. Print out information
87 from function_unit if available. Move read/write stats to always
88 print, instead of printing if verbose > 1. Fix up plural
91 * mon.h (mon_print_info): Update prototype.
93 * psim.c (current_ppc_model): Add global variable.
94 (psim_print_info): Pass system argument to mon_print_info.
96 * sim_calls.c (function_unit.h): Include.
97 (sim_open): Add support for -i and -m model options. If -i call
98 psim_print_info with verbose == 1, if -I, with verbose == 2.
99 (sim_resume): Delete unused variable program_counter.
101 * std-config.h (WITH_FUNCTION_UNIT): Define.
102 (ppc_model): Add enumeration giving all PowerPC models currently
104 ({WITH,CURRENT}_PPC_MODEL): Define.
105 (FUNCTION_UNIT_INLINE): Define.
107 * table.c (config.h): Include config.h.
109 * vm.c (om_virtual_to_real): Print pte_word_{0,1} so the compiler
110 doesn't complain that they're unused.
112 * vm_n.h (vm_data_map_read_N): Delete unused variable rval.
114 Mon Nov 6 23:15:54 1995 Andrew Cagney <cagney@highland.com.au>
116 * sim-endian.c (ppc-endian.c), sim-endian.h (ppc-endian.h):
117 renameed. These files are target independant.
118 * Makefile.in, basics.h: update for new name.
120 * sim-endian.h (SWAP_N), sim-endian.c (_SWAP_1): Rename existing
121 SWAP_<N> to _SWAP_<N> so that sim-endian.h can contain SWAP_N
124 * sim-endian.c, sim-endian-n.h (new file): Move endian code into a
125 debugable header file.
127 * ppc-instructions (Byte-Reverse): Enable byte reverse
128 instructions using SWAP_N macros.
130 Mon Nov 6 10:39:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
132 * Makefile.in (config.status): Remove references to config.make
135 * config.{make,hdr}: Delete, no longer used.
138 Mon Nov 6 20:49:56 1995 Andrew Cagney <cagney@highland.com.au>
140 * sim_calls.c (sim_open): Fix parsing of `target sim' options.
142 * device_tree.c (device_tree_add_string): Wasn't saving the value
143 of the string being entered into the tree.
145 * psim.c (create_filed_device_tree): Not terminating string device
148 * psim.c (psim_create): Use `env' instead of
149 `environment-architecture' to be consistent with configure.
150 Reconize user/uea, virtual/vea and operating/oea.
152 Sat Nov 4 12:29:45 1995 Fred Fish <fnf@cygnus.com>
154 * core.c: Rename to corefile.c
155 * core.h: Rename to corefile.h
156 * inline.c: Include corefile.h, renamed from core.h.
157 * cpu.h: Include corefile.h, renamed from core.h
158 * vm.c: Include corefile.h, renamed from core.h
159 * corefile.c: Include corefile.h rather than core.h
160 * README.psim (KNOWN PROBLEMS): Change core.* references to corefile.*
162 * Makefile.in (CPU_H): Change core.h to corefile.h
163 (vm.o): Change dependency to corefile.h
164 (LIB_SRC): Change core.c to corefile.c.
165 (LIB_OBJ): Change core.o to corefile.o.
166 (corefile.o): Change dependencies to corefile.c, corefile.h.
168 Fri Nov 3 11:37:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
170 * ppc-instructions (data cache instructions): Make all data cache
171 instructions nops instead of invalid instructions.
173 * Makefile.in (CONFIG_CFLAGS): Add ALIGNMENT_CFLAGS and
174 TIMEBASE_CFLAGS which weren't included.
176 Thu Nov 2 08:54:04 1995 Michael Meissner <meissner@tiktok.cygnus.com>
178 * Makefile.in: Uncomment built file dependencies.
180 * configure.in: Rewrite --enable-sim switch handling to use the
181 autoconf builtins so it works correctly if the configure or
182 Makefile.in files are modified and make decides to rebuild
183 Makefile. Also document all of the --enable-sim switches
184 supported. Check whether getrusage and sys/resource.h are
186 * config.in: Regenerate.
187 * configure: Regenerate.
188 * Makefile.in: Add support for all of the variables set with
189 --enable-sim switches.
191 * Makefile.in (clean): make clean now removes all built sources as
194 * cpu.c: Use HAVE_STRING_H, HAVE_STRINGS_H, HAVE_UNISTD_H,
195 HAVE_TIME_H, HAVE_SYS_TIMES_H, HAVE_SYS_RESOURCE_H defined in
196 the generated config.h.
198 * device_tree.c: Ditto.
201 * emul_netbsd.c: Ditto.
206 * registers.c: Ditto.
211 * main.c (main): Call psim_print_info with verbose == 2.
213 * mon.c (mon_print_info): Align the cpu number and number of
214 instructions fields. Do not print an instruction category if the
215 CPU did not execute any of those instructions. Print out number
216 of reads and writes. If getrusage is supported, print out number
217 of simulated instructins per second.
219 * configure.in: Add support for --enable-sim-opcode=stupid.
220 * configure: Regenerate.
222 Wed Nov 1 23:46:59 1995 Andrew Cagney - aka Noid <cagney@highland.com.au>
224 * std-config (INLINE_DEVICE_TREE): Don't inline either of
225 device_tree.c or devices.c. There is no significant gain.
227 * configure.in, Makefile.in: add --enable-sim-icache=[0-9]* and
230 Wed Nov 1 23:46:59 1995 Andrew Cagney - aka Noid <cagney@highland.com.au>
232 * igen.c (main), misc.h (target_a2i, i2target), misc.c: Add
233 functions to convert between target and igen internal bit numbers.
234 Make IO go through these functions. Add -b (bit size) and -h (high
235 bit nr) options to igen. Typical usage would be: ./igen -b 16 -h
236 15 for a 16 bit instruction format with the msb given a number 15.
238 Wed Nov 1 22:17:32 1995 Andrew Cagney - aka Noid <cagney@highland.com.au>
240 * dgen.c (main): Was outputting optarg even when it was NULL.
242 Tue Oct 31 23:48:33 1995 Andrew Cagney - aka Noid <cagney@highland.com.au>
244 * vm_n.h (vm_data_map_load_N, vm_data_map_store_n), debug.h,
245 debug.c: Add tracing of load/store unit (virtual) with -t
248 Tue Oct 31 21:44:01 1995 Andrew Cagney - aka Noid <cagney@highland.com.au>
250 * std-config.h (WITH_ENVIRONMENT): Add USER_ENVIRONMENT which does
251 not include things such as the time base and events.
253 * interrupt.c, sim_calls.c, cpu.h, vm.c, configure.in: Add UEA to
254 all environment switches for above.
256 * psim.c (psim_create): ditto - new device tree node name is
257 /options/environment-architecture with values user, virtual and
260 Tue Oct 31 21:31:32 1995 Andrew Cagney - aka Noid <cagney@highland.com.au>
262 * ppc-opcode-stupid: Third example of use of opcode table - this
263 one expands all mtspr/mfspr and branch instructions. Appears to
264 give about a 10% gain in performance if everything enabled. Also
265 takes about 150mb of swap to build.
267 Wed Nov 1 10:49:48 1995 Michael Meissner <meissner@tiktok.cygnus.com>
269 * emul_netbsd.c (do_exit): Print arguments and close parenthesis
270 if tracing, since exit doesn't go through emul_exit_call.
271 (do_read): Print arguments if tracing.
277 (do_sigprocmask): Replace trace with printing arguments if
279 (do_ioctl): Print arguments if tracing.
283 (do_gettimeofday): Ditto.
284 (do_getrusage): Ditto.
287 * filter_filename.c: New file to provide filter_filename to strip
288 the directory prefix from a file.
289 * filter_filename.h: New include file to declare filter_filename.
291 * debug.h: Include filter_filename.h.
292 (TRACE,DTRACE,ERROR): Use filter_filename on __FILE__.
294 * misc.h: Include filter_filename.h.
295 (ASSERT): Use filter_filename on __FILE__.
297 * igen.c (lf_print_my_prefix): Use filter_filename on the filename
300 * Makefile.in: Add filter_filename support.
302 * ppc-instructions (dcbi, icbi): Make these NOPs rather than
303 invalid instructions.
305 * configure.in: Add support for more --enable-sim-* switches.
306 Use config.make and config.hdr to write to Makefile and config.h
307 respectively. Don't rewrite Makefile, just append to it.
308 * configure: Regenerate.
309 * config.{make,hdr}: New shell scripts.
311 * Makefile.in: Remove all variables set by configure.in.
312 (psim.o): Depend on $(BUILT_SRC) also.
314 * emul_netbsd.c (do_gettimeofday,do_getrusage): When comparing an
315 integer, use 0, not NULL.
317 Tue Oct 31 15:20:04 1995 Michael Meissner <meissner@tiktok.cygnus.com>
319 * configure.in: Add support for --enable-sim-inline,
320 --enable-sim-bswap, --enable-sim-cflags, --enable-sim-complex,
321 --enable-sim-switch, --enable-sim-duplicate, --enable-sim-filter,
322 and --enable-sim-endian switch to control various Makefile
324 * configure: Regenerate from configure.in.
325 * Makefile.in: Add various Make variables that the various
328 * std-config.h (DEFAULT_INLINE): Don't set this to 2 if using GCC
329 and optimizing by default.
331 Fri Oct 27 19:26:27 1995 Andrew Cagney <cagney@highland.com.au>
333 * bits.h (ROTL32, ROTL64): Were functions, made them macros, now
334 make them functions again. Appears 2.6.3 is confused by just a
337 Thu Oct 26 18:31:58 1995 Andrew Cagney <cagney@highland.com.au>
339 * ppc-endian.c (SWAP_8): Fix 8 byte swap!
341 * psim.c (psim_create): Not correctly checking that runtime
342 configuration of things like ENDIAN, ENVIRONMENT and ALIGNMENT
343 matched the compiled in ones.
345 * debug.h (ITRACE), igen.c: Tidy up more tracing flags -
346 trace_semantics is now different to trace_idecode, the former
349 Tue Oct 24 21:54:13 1995 Andrew Cagney <cagney@highland.com.au>
351 * ppc-instructions (mtsrin): Missing instruction
352 * ppc-instructions (mfsrin): Missing instruction
353 * ppc-instructions (eieio): Missing instruction
355 Tue Oct 24 20:55:29 1995 Andrew Cagney <cagney@highland.com.au>
357 * build-psim: New shell script - see internals for usage,
358 simplifies the process of building custom simulators.
360 Mon Oct 23 23:48:59 1995 Andrew Cagney <cagney@highland.com.au>
362 * std-config.h (SEMANTICS_INLINE): Tidy up notes on each of the
363 INLINE macros. Make SEMANTICS_INLINE == 1 if DEFAULT_INLINE == 2.
364 Don't use DEFAULT_INLINE to define REGISTERS_INLINE DEVICES_INLINE
365 DEVICE_TREE_INLINE or INTERRUPTS_INLINE as none of these are on
366 the instruction or data critical paths.
368 * FIXME: need to set up OS_EMUL_INLINE/EMUL_GENERIC_INLINE but
369 not on critical path.
371 * FIXME: devices.c/emul_netbsd.c would benefit (slightly) from
372 the inclusion of device_tree.c/emul_generic.c.
374 Mon Oct 23 00:31:50 1995 Andrew Cagney <cagney@highland.com.au>
376 * os_emul.[hc], emul_generic.[hc], emul_netbsd.[hc]: replace
377 system.[hc]. Start of suport for multiple emulations and
378 emulation state (os_emul object).
380 * emul_generic.[hc]: Start of code to implement proper system call
383 Sun Oct 22 21:33:51 1995 Andrew Cagney <cagney@highland.com.au>
385 * cpu.h, cpu.c (cpu_init): New function, zero the registers before
386 the processor is started. Fixes problem of registers being
387 undefined when restarting from within gdb.
389 * cpu.h, cpu.c (cpu_flush_icache): New function, flushes the
390 instruction cache (if present). Fixes problem of cpu caching gdb
391 breakpoint instructions.
393 FIXME: PSIM sometimes aborts calling error(), it should instead
394 call sim_error() say which takes care of housekeeping such as
395 saving the CIA before calling error.
397 * NOTE: cpu_flush_cache() instead of cpu_synchronize_context() is
398 used when restarting a simulation because the latter has the
399 unwanted side effect (well I as a kernel hacker think it is) of
400 performing an isync when the instruction stream doesn't contain
403 Sun Oct 22 19:27:48 1995 Andrew Cagney <cagney@highland.com.au>
405 * mon.h (new), mon.c (new), std-config.h (WITH_MON): Performance
406 monitoring module. Counts both instructions issued and
409 * NOTE: mon does not contain to count instruction loads as this
410 information is already available from the mon_issue() hook.
412 * FIXME: mon doesn't have access to register usage information.
413 This is needed if the user wants to monitor things like register
416 * igen.c (lf_print_c_semantic), vm_n.h: Add counting code.
418 * psim.h, psim.c (psim_create), cpu.h, cpu.c (cpu_create): Attach
419 a common monitor to each of the cpus. Delete
420 cpu_increment_number_of_insns() and cpu_get_number_of_insns()
421 replaced by copied code in mon.[hc].
423 Sun Oct 22 18:42:45 1995 Andrew Cagney <cagney@highland.com.au>
425 * sim_calls.c, main.c, psim.c (psim_create): always create
426 `WITH_SMP' cpus. The actual number of CPU's active in a
427 simulation run is taken from the device node: /init/smp (an
428 integer). WITH_SMP changed to 2 (remember to put it back to 0).
430 Fri Oct 20 17:26:54 1995 Andrew Cagney <cagney@highland.com.au>
432 * system.c: More system call emulation. If code appears NetBSD
433 specific, make conditional to being compiled on a NetBSD system
436 Wed Oct 18 23:02:20 1995 Andrew Cagney <cagney@highland.com.au>
438 * Makefile.in, gen.c(delete), igen.c(new), dgen.c(new),
439 lf.[ch](new), table.[ch](new): Split into two generators - igen
440 that outputs the instruction tables and dgen that outputs the spr
441 tables. Add -f (filter out) flag to igen to filter out certain
442 instructions (ex 64 bit ones) from the created tables. Include
443 $(LIBIBERTY_LIB) in link options in case host lacks some libc
446 * NOTE: igen, since it was originally written for the
447 PowerPC/RS6000, things the MSB is 0 and the LSB is 63{31}.
449 * Makefile.in, std-config.h, ppc-cache-rules(new),
450 ppc-opcode-complex(new), ppc-opcode-simple(new): (for igen) Create
451 cache-rule and opcode-rule tables from macros found std-config.h.
452 Delete corresponding macro's from std-config.h.
454 * FIXME: under this new igen scheme, when playing around with igen
455 options, you'll find that depenencies don't work very well.
457 * igen.c (gen_itable_c, gen_itable_h), Makefile.in: code to output
458 an table of all the instructions. Code to output a type
459 enumerating all the instructin names.
461 * igen.c(lf_print_c_semantic): Move call to increment instruction
462 counter so that it occures _after_ the instruction has been fully
463 validated, was double counting illegal/invalid instructions. Add
464 conditional so only compiled in when WITH_PROFILE enabled (enabled
467 * igen.c, cpu.h, cpu.c(cpu_increment_number_of_insns): Include
468 itable.h, count individual instruction types not just total,
469 adjust reporting functions to output this.
471 * ppc-instructions (64 bit Load Doubleword with Update Indexed):
472 Had 32./ instead of 31./
474 * ppc-instructions (64 bit Store Double Word Conditional Indexed):
475 bitrot - updated to use newer CR register operators.
477 * ppc-instructions (64bit Floating Convert from Integer
478 Doubleword): Correct call to Round_Float().
480 Mon Oct 16 00:31:20 1995 Andrew Cagney <cagney@highland.com.au>
482 * basics.h: #include "sim_callbacks.h" earlier so that its
483 prototypes are declared in all other header files.
485 * bits.h, bits.c, idecode_expression.h (ROTL32, ROTL64): Update
486 doc in bits.h, remove dead code in bits.c, move ROTL32/ROTL64 into
489 * FIXME: the bits.h/bits.c macro's should be replaced with
490 (inline) c functions.
492 * cpu.c(cpu_add_commas), device_tree.h, device_tree.c(scand_*):
493 Add size of buffer argument to functions writing a string into a
494 buffer. Check for buffer overflow.
496 Sun Oct 15 22:16:11 1995 Andrew Cagney <cagney@highland.com.au>
498 * devices.h, devices.c, debug.h, debug.c: add macro's for tracing
499 of each device. Make parameter names consistent so macros work.
500 Use macro's in device functions.
502 * device_tree.c, devices.h, devices.c: include path to device in a
503 devices node when creating it.
505 * device_tree.c, debug.h, debug.c: Add tracing of `device-tree'.
507 * core.c: add tracing of core-device, adjust parameter names in
508 core functions to be consistent with those in devices*.
510 Sun Oct 15 20:33:20 1995 Andrew Cagney <cagney@highland.com.au>
512 * debug.h, debug.c (trace_option): New function. Parses the trace
513 option, updating the trace array.
515 * debug.h, debug.c (trace_usage): New function. Outputs the list
516 of all possible trace options.
518 * sim_calls.c (sim_open), main.c (main): Use new trace_option() to
519 parse trace options specified with the simpler -t flag. Adjust
522 * FIXME: basic parsing of command line options is still duplicated
523 by main.c and sim_calls.c
525 Thu Oct 26 10:42:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
527 * Makefile.in (clean): Delete *.i and *.out files.
529 * ppc-endian.c (SWAP_n): Add SET argument to allow use of SWAP
530 macros for either assignment or return. Fix SWAP_8 to use a
531 union, and two SWAP_4's. Delete SWAP_N, since nobody uses it now.
532 (ENDIAN_N): Add SET argument to SWAP_n calls. Delete macro defs
533 that hardwired swapping on/off, let optimizer delete dead code.
535 * main.c (main): Add printf that we caught a signal and print out
538 Thu Oct 19 21:43:39 1995 Fred Fish <fnf@fishfood.amigalib.com>
540 * Makefile.in: Remove tabs from otherwise empty line.
541 Confuses many non-GNU versions of "make".
543 Wed Oct 18 08:51:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
545 * Makefile.in (clean): Delete files produced by gen.
547 Mon Oct 16 17:34:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
549 * gen.c (lf_print_c_semantic_function): Move counting # of
550 instructions here so it works with caching.
551 (gen_idecode_c): Move from here.
553 Wed Oct 11 17:13:15 1995 Andrew Cagney <cagney@highland.com.au>
555 * gen.c, ppc-instructions, psim.c: Fix code for generating
556 cracking instruction cache. Delete the code that cached just the
557 result from doing an instruction lookup - this ran slower than no
560 Fri Oct 13 09:58:43 1995 Michael Meissner <meissner@tiktok.cygnus.com>
562 * Makefile.in (gen.o): Include $(INLINE_CFLAGS).
564 * debug.h (ppc_trace): Rename from trace, to avoid a conflict with
565 TCL when gdb is linked with the simulator.
566 * debug.c (ppc_trace): Ditto.
567 * sim_calls.c (sim_open): Change trace -> ppc_trace.
568 * main.c (main): Ditto.
570 * cpu.c (cpu_add_commas): Remove extra static.
572 Thu Oct 12 11:35:53 1995 Michael Meissner <meissner@tiktok.cygnus.com>
574 * Makefile.in (psim.o): Now that inlines are turned on, make
575 psim.o depend on all sources.
577 * cpu.c (cpu_add_commas): New function to format a long with
579 (cpu_print_info): Use it to print number_of_insns.
581 * ppc-endian.c (SWAP_n): New macros to speed up byte swapping for
583 (ENDIAN_N): If both target and host byte orders are known, don't
584 bother testing CURRENT_{TARGET,HOST}_BYTE_ORDER.
586 * ppc-endian.h (target specific H2T_n/T2H_n macros): Remove #if 0
587 to allow target specific H2T_n/T2H_n macros to be used.
588 (htonl, ntohl): If compiled on a 486 by GCC and WITH_BSWAP is
589 non-zero, redefine the htonl/ntohl macros to use the BSWAP instead
590 of the 3 instruction sequence that runs on 386s.
592 * std-config.h (WITH_{HOST,TARGET}_BYTE_ORDER): Don't override if
593 specified on the compile line.
594 (WITH_BSWAP): If not defined, define as 0.
596 * Makefile.in (INLINE_CFLAGS): Add -DDEFAULT_INLINE=2 to add
597 default inline support. Pass INLINE_CFLAGS when compiling.
599 * devices.{h,c} (unimp_device_ioctl): Use STATIC_DEVICES, not
600 INLINE_DEVICES since GCC doesn't like inline functions that
601 accept variable arguments.
602 (stack_ioctl_callback): Make function just static because GCC
603 doesn't like inline functions that accept variable arguments.
605 * devices.h (STATIC_DEVICES): Define as empty if not defined.
607 * inline.c: Correct pathnames of included C files to match current
610 * inline.h (STATIC_DEVICES): If DEVICES_INLINE is defined to be
611 non-zero, define STATIC_DEVICES to be static.
613 * std-config.h (INLINE): If GNU C and optimizing, define this as
615 (DEFAULT_INLINE): If not defined, define as 0.
616 (ENDIAN_INLINE): If not defined, define as DEFAULT_INLINE.
617 ({CORE,VM,CPU,EVENTS,REGISTERS,INTERRUPTS}_INLINE): Ditto.
618 ({SPREG,IDECODE}_INLINE): Ditto.
620 Wed Oct 11 17:13:15 1995 Andrew Cagney <cagney@highland.com.au>
622 * ppc-instructions: Initial cut of floating point suport added.
623 Of note include - use of host IEEE floating point instructions,
624 use of PowerPC manual pseudo code to handle the FPSCR. It is not
625 currently a pretty sight.
627 * memory_map.h, memory_map.c, memory_map_n.h, core.h, core.c:
628 merge into core.h, core.c, core_n.h. The type memory_map replaced
629 with core_map. This removes a level of pointer indirection when
630 translating an address.
632 * memory_map.h, memory_map.c, memory_map_n.h: delete.
634 * Makefile.in et.al (sorry): tweek to use new core, core_map and
637 Wed Oct 11 12:10:26 1995 Andrew Cagney <cagney@highland.com.au>
639 * sim_calls.c, main.c: Add -g (trace_gdb) option, add tracing to
640 most of the other functions in sim_calls.c.
642 * basics.h (CONCAT3), memory_map.c, memory_map_n.h, Makefile.in:
643 Add macros to better cover up `generic' code. Makes it possible
644 to step through the generic code!
646 * vm.c, vm_n.h, Makefile.in: ditto
648 Tue Oct 10 15:42:59 1995 Andrew Cagney <cagney@highland.com.au>
650 * devices.h, devices.c, memory_map.h, memory_map.c: Changed
651 callback interface so that there is a read/write buffer but no
652 read/write_word. VEA default memory read/write handler sometimes
653 couldn't resolve an access and of those some were for a memory
654 fault and some were because gdb was making a bogus request.
656 * devices.h, devices.c, memory_map.h, memory_map.c, vm.h, vm.c:
657 eliminate transfer_mode (raw or cooked) parameter from read/write
660 Fri Oct 6 20:23:56 1995 Andrew Cagney <cagney@highland.com.au>
662 * ppc-instructions (fmul, fmuls): correct instruction format - had
665 Wed Oct 4 17:31:12 1995 Andrew Cagney <cagney@highland.com.au>
667 * psim.c, device_tree.h, device_tree.c, devices.c (printd_*,
668 scand_*): new functions to parse/print fields in device names
669 while hiding any machine dependency.
671 * devices.c, psim.c: Change the stack init code so that it is
672 handled by a device. Arguments passed across using a device ioctl
675 * devices.h, devices.c: device ioctl callback changed to allow a
676 variable number of arguments. This gives greater flexability and
677 greater chance of bugs.
679 Tue Oct 3 22:01:56 1995 Andrew Cagney <cagney@highland.com.au>
681 * main.c (printf_filtered, error): Missing va_end() to close off
682 variable argument use.
684 * Makefile.in (tmp-gencode): comment out hack to get around some
685 versions of make not handling files being created as side-effects.
687 * gen.c (lf_open): Add -n (real_file_name) option. Specifies an
688 alternative file name to use in output files for things like #line
691 Makefile.in (tmp-gencode): Use gen -n so that debug info is
694 * Makefile.in (TARGETLIB): Use this instead of libsim.a in the
697 Sat Oct 7 22:40:59 1995 Michael Meissner <meissner@tiktok.cygnus.com>
699 * sim_calls.c (sim_set_callbacks): Define new function.
701 Fri Oct 6 17:23:10 1995 Michael Meissner <meissner@tiktok.cygnus.com>
703 * psim.c (psim_print_info): Print exit status or signal number.
705 Mon Oct 2 11:46:37 1995 Michael Meissner <meissner@tiktok.cygnus.com>
707 * cpu.c (struct _cpu): Add number_of_insns field to trace how many
708 instructions are executed.
709 (cpu_increment_number_of_insns): New function to increment the
710 number of instructions issued.
711 (cpu_get_number_of_insns): New function to return the number of
713 (cpu_print_info): New function to print cpu related information.
714 At present, print the number of instructions executed.
716 * gen_idecode_c: Emit call to cpu_increment_number_of_insns within
719 * psim.c (psim_print_info): New function to iterate over each of
720 the CPU's calling cpu_print_info.
722 * psim.h,cpu.h: Add new declarations.
724 * sim_calls.c (sim_open): Add argument processing to add the same
725 switches main.c accepts for the standalone processor.
726 (sim_close): Call psim_print_info if -I.
728 * main.c (main): Add comment saying to update sim_calls.c when
729 adding switches. Add -I to call psim_print_info when done.
730 (usage): Update usage message.
732 Sun Oct 1 13:52:59 1995 Michael Meissner <meissner@tiktok.cygnus.com>
734 * main.c (printf_filtered): Correct to match new prototype.
736 Sat Sep 30 20:47:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
738 * sim_callbacks.h (printf_filtered): Correct prototype.
740 Thu Sep 21 16:26:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
742 * device_tree.c (OEA_MEMORY_SIZE): Define if not defined to
744 (clayton_memory_size): Define as OEA_MEMORY_SIZE.
746 * std-config.h (WITH_TRACE): Default to 1 now.
748 * psim.c (write_stack_arguments): Don't write any stack arguments
751 * main.c (main): Switch to using getopt. Make -p also set
752 trace_semantics. Make -a turn on all trace flags. Make -C turn
755 * device_tree.c (create_option_device_node): Assume a program is
756 OEA if the start address is < 4096, not just == 0.
758 Wed Sep 20 13:36:06 1995 Ian Lance Taylor <ian@cygnus.com>
760 * Makefile.in (maintainer-clean): New synonym for realclean.
762 Sun Sep 10 10:23:56 1995 Michael Tiemann <tiemann@axon.cygnus.com>
764 * registers.c (register_description): Add gdb synonyms for cr
767 Fri Sep 8 13:16:10 1995 Ian Lance Taylor <ian@cygnus.com>
769 * Makefile.in (install): Don't install in $(tooldir).
771 * configure.in: Call AC_CONFIG_HEADER. Don't try to use
772 bfd/hosts/*.h file or bfd/config/*.mh file. Call AC_PROG_CC and
773 AC_PROG_RANLIB. Substitute in values for CFLAGS, HDEFINES, AR,
774 and CC_FOR_BUILD. Call AC_CHECK_HEADERS for various header files.
775 Touch stamp.h if creating config.h.
776 * configure: Rebuild.
777 * config.in: New file, created by autoheader.
778 * Makefile.in (AR): Define as @AR@.
779 (CC): New variable, defined as @CC@.
780 (CFLAGS): Define as @CFLAGS@.
781 (CC_FOR_BUILD): New variable, defined as @CC_FOR_BUILD@.
782 (RANLIB): Define as @RANLIB@.
783 (HDEFINES, TDEFINES): New variables.
784 (@host_makefile_frag@): Remove.
785 (mostlyclean): Make the same as clean, not distclean.
786 (clean): Remove config.log.
787 (distclean): Remove config.h and stamp-h.
788 (Makefile): Don't depend upon @frags@. Just rebuild Makefile when
789 invoking config.status.
790 (config.h, stamp-h): New targets.
791 (gen, gen.o): Build with CC_FOR_BUILD, not CC.
792 (ppc-config.h): Rename from old config.h build.
793 * (basics.h,gen.c,ppc-endian.c,psim.c): Include ppc-config.h.
795 Fri Sep 8 09:51:03 1995 Michael Meissner <meissner@tiktok.cygnus.com>
797 * configure{,.in}: Don't include sysdep.h from bfd, since bfd no
799 * basics.h (sysdep.h): Don't include it.
800 * Makefile.in (BASICS_H): Remove sysdep.h.
802 Wed Sep 6 13:25:42 1995 Andrew Cagney <cagney@highland.com.au>
804 * core.c (core_add_data): First growth of bss was being put at
805 wrong address (0) instead of &end.
807 * core.c (core_add_stack, core_add_data): Was not handling case
808 where bss/stack is grown across the current end-of-{bss,stack}.
810 Wed Sep 6 00:46:10 1995 Andrew Cagney <cagney@highland.com.au>
812 * system.c (system_call): Fix SYS_break - was aligning bss to a
813 page boundary instead of just an 8 byte one; On first call sbrk(0)
816 Thu Aug 24 14:48:54 1995 Michael Meissner <meissner@tiktok.cygnus.com>
818 * Makefile.in (install): Fix install rule.
820 Tue Aug 22 09:31:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
822 * system.c (system_call): Add read support.
824 * main.c (main): -t sets trace_device_tree. Correct usage message
827 * device_tree.c (update_memory_node_for_section): Make tracing
828 output line up. If not code or readonly, assume that the section
829 is a data section and has read/write permissions. Add readonly
832 * core.c (create_core_from_addresses): Print end address in traces
833 and make tracing output line up.
835 * Makefile.in: Rewrite from Makefile to work with the Cygnus
836 environment, and support compiling in a different directory than
837 the sources reside in.
839 * ppc-endian.h: Rename from endian.h so that it doesn't get
840 confused with /usr/include/sys/endian.h on Linux. Add Linux
843 * ppc-endian.c: Rename to be consistant with ppc-endian.h.
844 Include ppc-endian.h, not endian.h.
846 * basics.h (sysdep.h): Include sysdep.h that configure makes.
847 Include ppc-endian.h, not endian.h.
849 * std-config.h: Rename from ppc-config. Put #ifndefs around most
850 configuration macros, so they can be overridden via CFLAGS. By
851 default, turn off tracing.
853 * configure.in: Clone from other simulator targets.
854 * configure: Generate via autoconf from configure.in.
856 Sat Aug 19 09:05:32 1995 Andrew Cagney <cagney@highland.com.au>
858 * ppc-instructions: fix srawi (was geting XER[CA] real wrong).
860 * interrupts.c (data_storage_interrupt): allow stack to grow by
861 upto one MB per increment.
863 * ppc-instructions: divw was computing rA / rA not rA / rB
865 * main.c (main): really stupid. Wasn't exiting with correct status
867 Fri Aug 18 00:38:01 1995 Andrew Cagney <cagney@highland.com.au>
869 * system.c (system_call): add system calls kill(2) and getpid(2).
871 * main.c (main): Check/return exit status when simulation
874 Thu Aug 17 14:29:18 1995 Andrew Cagney <cagney@highland.com.au>
876 * device_tree.c (create_option_device_node): Alignment rules (at
877 least for the moment) now are for strict alignment only for LE OEA
878 mode. (Because of compiler problems).
880 * system.c (system_call) SYS_exit: Wasn't exiting with correct status.
882 Thu Aug 17 01:16:38 1995 Andrew Cagney <cagney@highland.com.au>
884 * vm.c (DEFINE_VM_DATA_MAP_WRITE_N): For miss aligned transfer
887 * system.c (system_call): didn't page align break argument before
888 determining increment break increment.
890 * psim/ppc: Re-arange entire directory structure so that
891 everything lives in the one directory. While a pain for cleaning,
892 makes building across multiple architectures much simpler.
894 * devices.c, device_tree.c: Added code that provides a simple
895 illustration of how an interrupt control device could be
898 * devices.c: Added code so that the dumb console device can read
899 (from stdin) as well as write to stdout.