1 Mon Nov 6 10:39:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3 * Makefile.in (config.status): Remove references to config.make
6 * config.{make,hdr}: Delete, no longer used.
9 Mon Nov 6 20:49:56 1995 Andrew Cagney <cagney@highland.com.au>
11 * sim_calls.c (sim_open): Fix parsing of `target sim' options.
13 * device_tree.c (device_tree_add_string): Wasn't saving the value
14 of the string being entered into the tree.
16 * psim.c (create_filed_device_tree): Not terminating string device
19 * psim.c (psim_create): Use `env' instead of
20 `environment-architecture' to be consistent with configure.
21 Reconize user/uea, virtual/vea and operating/oea.
23 Sat Nov 4 12:29:45 1995 Fred Fish <fnf@cygnus.com>
25 * core.c: Rename to corefile.c
26 * core.h: Rename to corefile.h
27 * inline.c: Include corefile.h, renamed from core.h.
28 * cpu.h: Include corefile.h, renamed from core.h
29 * vm.c: Include corefile.h, renamed from core.h
30 * corefile.c: Include corefile.h rather than core.h
31 * README.psim (KNOWN PROBLEMS): Change core.* references to corefile.*
33 * Makefile.in (CPU_H): Change core.h to corefile.h
34 (vm.o): Change dependency to corefile.h
35 (LIB_SRC): Change core.c to corefile.c.
36 (LIB_OBJ): Change core.o to corefile.o.
37 (corefile.o): Change dependencies to corefile.c, corefile.h.
39 Fri Nov 3 11:37:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
41 * ppc-instructions (data cache instructions): Make all data cache
42 instructions nops instead of invalid instructions.
44 * Makefile.in (CONFIG_CFLAGS): Add ALIGNMENT_CFLAGS and
45 TIMEBASE_CFLAGS which weren't included.
47 Thu Nov 2 08:54:04 1995 Michael Meissner <meissner@tiktok.cygnus.com>
49 * Makefile.in: Uncomment built file dependencies.
51 * configure.in: Rewrite --enable-sim switch handling to use the
52 autoconf builtins so it works correctly if the configure or
53 Makefile.in files are modified and make decides to rebuild
54 Makefile. Also document all of the --enable-sim switches
55 supported. Check whether getrusage and sys/resource.h are
57 * config.in: Regenerate.
58 * configure: Regenerate.
59 * Makefile.in: Add support for all of the variables set with
60 --enable-sim switches.
62 * Makefile.in (clean): make clean now removes all built sources as
65 * cpu.c: Use HAVE_STRING_H, HAVE_STRINGS_H, HAVE_UNISTD_H,
66 HAVE_TIME_H, HAVE_SYS_TIMES_H, HAVE_SYS_RESOURCE_H defined in
67 the generated config.h.
69 * device_tree.c: Ditto.
72 * emul_netbsd.c: Ditto.
82 * main.c (main): Call psim_print_info with verbose == 2.
84 * mon.c (mon_print_info): Align the cpu number and number of
85 instructions fields. Do not print an instruction category if the
86 CPU did not execute any of those instructions. Print out number
87 of reads and writes. If getrusage is supported, print out number
88 of simulated instructins per second.
90 * configure.in: Add support for --enable-sim-opcode=stupid.
91 * configure: Regenerate.
93 Wed Nov 1 23:46:59 1995 Andrew Cagney - aka Noid <cagney@highland.com.au>
95 * std-config (INLINE_DEVICE_TREE): Don't inline either of
96 device_tree.c or devices.c. There is no significant gain.
98 * configure.in, Makefile.in: add --enable-sim-icache=[0-9]* and
101 Wed Nov 1 23:46:59 1995 Andrew Cagney - aka Noid <cagney@highland.com.au>
103 * igen.c (main), misc.h (target_a2i, i2target), misc.c: Add
104 functions to convert between target and igen internal bit numbers.
105 Make IO go through these functions. Add -b (bit size) and -h (high
106 bit nr) options to igen. Typical usage would be: ./igen -b 16 -h
107 15 for a 16 bit instruction format with the msb given a number 15.
109 Wed Nov 1 22:17:32 1995 Andrew Cagney - aka Noid <cagney@highland.com.au>
111 * dgen.c (main): Was outputting optarg even when it was NULL.
113 Tue Oct 31 23:48:33 1995 Andrew Cagney - aka Noid <cagney@highland.com.au>
115 * vm_n.h (vm_data_map_load_N, vm_data_map_store_n), debug.h,
116 debug.c: Add tracing of load/store unit (virtual) with -t
119 Tue Oct 31 21:44:01 1995 Andrew Cagney - aka Noid <cagney@highland.com.au>
121 * std-config.h (WITH_ENVIRONMENT): Add USER_ENVIRONMENT which does
122 not include things such as the time base and events.
124 * interrupt.c, sim_calls.c, cpu.h, vm.c, configure.in: Add UEA to
125 all environment switches for above.
127 * psim.c (psim_create): ditto - new device tree node name is
128 /options/environment-architecture with values user, virtual and
131 Tue Oct 31 21:31:32 1995 Andrew Cagney - aka Noid <cagney@highland.com.au>
133 * ppc-opcode-stupid: Third example of use of opcode table - this
134 one expands all mtspr/mfspr and branch instructions. Appears to
135 give about a 10% gain in performance if everything enabled. Also
136 takes about 150mb of swap to build.
138 Wed Nov 1 10:49:48 1995 Michael Meissner <meissner@tiktok.cygnus.com>
140 * emul_netbsd.c (do_exit): Print arguments and close parenthesis
141 if tracing, since exit doesn't go through emul_exit_call.
142 (do_read): Print arguments if tracing.
148 (do_sigprocmask): Replace trace with printing arguments if
150 (do_ioctl): Print arguments if tracing.
154 (do_gettimeofday): Ditto.
155 (do_getrusage): Ditto.
158 * filter_filename.c: New file to provide filter_filename to strip
159 the directory prefix from a file.
160 * filter_filename.h: New include file to declare filter_filename.
162 * debug.h: Include filter_filename.h.
163 (TRACE,DTRACE,ERROR): Use filter_filename on __FILE__.
165 * misc.h: Include filter_filename.h.
166 (ASSERT): Use filter_filename on __FILE__.
168 * igen.c (lf_print_my_prefix): Use filter_filename on the filename
171 * Makefile.in: Add filter_filename support.
173 * ppc-instructions (dcbi, icbi): Make these NOPs rather than
174 invalid instructions.
176 * configure.in: Add support for more --enable-sim-* switches.
177 Use config.make and config.hdr to write to Makefile and config.h
178 respectively. Don't rewrite Makefile, just append to it.
179 * configure: Regenerate.
180 * config.{make,hdr}: New shell scripts.
182 * Makefile.in: Remove all variables set by configure.in.
183 (psim.o): Depend on $(BUILT_SRC) also.
185 * emul_netbsd.c (do_gettimeofday,do_getrusage): When comparing an
186 integer, use 0, not NULL.
188 Tue Oct 31 15:20:04 1995 Michael Meissner <meissner@tiktok.cygnus.com>
190 * configure.in: Add support for --enable-sim-inline,
191 --enable-sim-bswap, --enable-sim-cflags, --enable-sim-complex,
192 --enable-sim-switch, --enable-sim-duplicate, --enable-sim-filter,
193 and --enable-sim-endian switch to control various Makefile
195 * configure: Regenerate from configure.in.
196 * Makefile.in: Add various Make variables that the various
199 * std-config.h (DEFAULT_INLINE): Don't set this to 2 if using GCC
200 and optimizing by default.
202 Fri Oct 27 19:26:27 1995 Andrew Cagney <cagney@highland.com.au>
204 * bits.h (ROTL32, ROTL64): Were functions, made them macros, now
205 make them functions again. Appears 2.6.3 is confused by just a
208 Thu Oct 26 18:31:58 1995 Andrew Cagney <cagney@highland.com.au>
210 * ppc-endian.c (SWAP_8): Fix 8 byte swap!
212 * psim.c (psim_create): Not correctly checking that runtime
213 configuration of things like ENDIAN, ENVIRONMENT and ALIGNMENT
214 matched the compiled in ones.
216 * debug.h (ITRACE), igen.c: Tidy up more tracing flags -
217 trace_semantics is now different to trace_idecode, the former
220 Tue Oct 24 21:54:13 1995 Andrew Cagney <cagney@highland.com.au>
222 * ppc-instructions (mtsrin): Missing instruction
223 * ppc-instructions (mfsrin): Missing instruction
224 * ppc-instructions (eieio): Missing instruction
226 Tue Oct 24 20:55:29 1995 Andrew Cagney <cagney@highland.com.au>
228 * build-psim: New shell script - see internals for usage,
229 simplifies the process of building custom simulators.
231 Mon Oct 23 23:48:59 1995 Andrew Cagney <cagney@highland.com.au>
233 * std-config.h (SEMANTICS_INLINE): Tidy up notes on each of the
234 INLINE macros. Make SEMANTICS_INLINE == 1 if DEFAULT_INLINE == 2.
235 Don't use DEFAULT_INLINE to define REGISTERS_INLINE DEVICES_INLINE
236 DEVICE_TREE_INLINE or INTERRUPTS_INLINE as none of these are on
237 the instruction or data critical paths.
239 * FIXME: need to set up OS_EMUL_INLINE/EMUL_GENERIC_INLINE but
240 not on critical path.
242 * FIXME: devices.c/emul_netbsd.c would benefit (slightly) from
243 the inclusion of device_tree.c/emul_generic.c.
245 Mon Oct 23 00:31:50 1995 Andrew Cagney <cagney@highland.com.au>
247 * os_emul.[hc], emul_generic.[hc], emul_netbsd.[hc]: replace
248 system.[hc]. Start of suport for multiple emulations and
249 emulation state (os_emul object).
251 * emul_generic.[hc]: Start of code to implement proper system call
254 Sun Oct 22 21:33:51 1995 Andrew Cagney <cagney@highland.com.au>
256 * cpu.h, cpu.c (cpu_init): New function, zero the registers before
257 the processor is started. Fixes problem of registers being
258 undefined when restarting from within gdb.
260 * cpu.h, cpu.c (cpu_flush_icache): New function, flushes the
261 instruction cache (if present). Fixes problem of cpu caching gdb
262 breakpoint instructions.
264 FIXME: PSIM sometimes aborts calling error(), it should instead
265 call sim_error() say which takes care of housekeeping such as
266 saving the CIA before calling error.
268 * NOTE: cpu_flush_cache() instead of cpu_synchronize_context() is
269 used when restarting a simulation because the latter has the
270 unwanted side effect (well I as a kernel hacker think it is) of
271 performing an isync when the instruction stream doesn't contain
274 Sun Oct 22 19:27:48 1995 Andrew Cagney <cagney@highland.com.au>
276 * mon.h (new), mon.c (new), std-config.h (WITH_MON): Performance
277 monitoring module. Counts both instructions issued and
280 * NOTE: mon does not contain to count instruction loads as this
281 information is already available from the mon_issue() hook.
283 * FIXME: mon doesn't have access to register usage information.
284 This is needed if the user wants to monitor things like register
287 * igen.c (lf_print_c_semantic), vm_n.h: Add counting code.
289 * psim.h, psim.c (psim_create), cpu.h, cpu.c (cpu_create): Attach
290 a common monitor to each of the cpus. Delete
291 cpu_increment_number_of_insns() and cpu_get_number_of_insns()
292 replaced by copied code in mon.[hc].
294 Sun Oct 22 18:42:45 1995 Andrew Cagney <cagney@highland.com.au>
296 * sim_calls.c, main.c, psim.c (psim_create): always create
297 `WITH_SMP' cpus. The actual number of CPU's active in a
298 simulation run is taken from the device node: /init/smp (an
299 integer). WITH_SMP changed to 2 (remember to put it back to 0).
301 Fri Oct 20 17:26:54 1995 Andrew Cagney <cagney@highland.com.au>
303 * system.c: More system call emulation. If code appears NetBSD
304 specific, make conditional to being compiled on a NetBSD system
307 Wed Oct 18 23:02:20 1995 Andrew Cagney <cagney@highland.com.au>
309 * Makefile.in, gen.c(delete), igen.c(new), dgen.c(new),
310 lf.[ch](new), table.[ch](new): Split into two generators - igen
311 that outputs the instruction tables and dgen that outputs the spr
312 tables. Add -f (filter out) flag to igen to filter out certain
313 instructions (ex 64 bit ones) from the created tables. Include
314 $(LIBIBERTY_LIB) in link options in case host lacks some libc
317 * NOTE: igen, since it was originally written for the
318 PowerPC/RS6000, things the MSB is 0 and the LSB is 63{31}.
320 * Makefile.in, std-config.h, ppc-cache-rules(new),
321 ppc-opcode-complex(new), ppc-opcode-simple(new): (for igen) Create
322 cache-rule and opcode-rule tables from macros found std-config.h.
323 Delete corresponding macro's from std-config.h.
325 * FIXME: under this new igen scheme, when playing around with igen
326 options, you'll find that depenencies don't work very well.
328 * igen.c (gen_itable_c, gen_itable_h), Makefile.in: code to output
329 an table of all the instructions. Code to output a type
330 enumerating all the instructin names.
332 * igen.c(lf_print_c_semantic): Move call to increment instruction
333 counter so that it occures _after_ the instruction has been fully
334 validated, was double counting illegal/invalid instructions. Add
335 conditional so only compiled in when WITH_PROFILE enabled (enabled
338 * igen.c, cpu.h, cpu.c(cpu_increment_number_of_insns): Include
339 itable.h, count individual instruction types not just total,
340 adjust reporting functions to output this.
342 * ppc-instructions (64 bit Load Doubleword with Update Indexed):
343 Had 32./ instead of 31./
345 * ppc-instructions (64 bit Store Double Word Conditional Indexed):
346 bitrot - updated to use newer CR register operators.
348 * ppc-instructions (64bit Floating Convert from Integer
349 Doubleword): Correct call to Round_Float().
351 Mon Oct 16 00:31:20 1995 Andrew Cagney <cagney@highland.com.au>
353 * basics.h: #include "sim_callbacks.h" earlier so that its
354 prototypes are declared in all other header files.
356 * bits.h, bits.c, idecode_expression.h (ROTL32, ROTL64): Update
357 doc in bits.h, remove dead code in bits.c, move ROTL32/ROTL64 into
360 * FIXME: the bits.h/bits.c macro's should be replaced with
361 (inline) c functions.
363 * cpu.c(cpu_add_commas), device_tree.h, device_tree.c(scand_*):
364 Add size of buffer argument to functions writing a string into a
365 buffer. Check for buffer overflow.
367 Sun Oct 15 22:16:11 1995 Andrew Cagney <cagney@highland.com.au>
369 * devices.h, devices.c, debug.h, debug.c: add macro's for tracing
370 of each device. Make parameter names consistent so macros work.
371 Use macro's in device functions.
373 * device_tree.c, devices.h, devices.c: include path to device in a
374 devices node when creating it.
376 * device_tree.c, debug.h, debug.c: Add tracing of `device-tree'.
378 * core.c: add tracing of core-device, adjust parameter names in
379 core functions to be consistent with those in devices*.
381 Sun Oct 15 20:33:20 1995 Andrew Cagney <cagney@highland.com.au>
383 * debug.h, debug.c (trace_option): New function. Parses the trace
384 option, updating the trace array.
386 * debug.h, debug.c (trace_usage): New function. Outputs the list
387 of all possible trace options.
389 * sim_calls.c (sim_open), main.c (main): Use new trace_option() to
390 parse trace options specified with the simpler -t flag. Adjust
393 * FIXME: basic parsing of command line options is still duplicated
394 by main.c and sim_calls.c
396 Thu Oct 26 10:42:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
398 * Makefile.in (clean): Delete *.i and *.out files.
400 * ppc-endian.c (SWAP_n): Add SET argument to allow use of SWAP
401 macros for either assignment or return. Fix SWAP_8 to use a
402 union, and two SWAP_4's. Delete SWAP_N, since nobody uses it now.
403 (ENDIAN_N): Add SET argument to SWAP_n calls. Delete macro defs
404 that hardwired swapping on/off, let optimizer delete dead code.
406 * main.c (main): Add printf that we caught a signal and print out
409 Thu Oct 19 21:43:39 1995 Fred Fish <fnf@fishfood.amigalib.com>
411 * Makefile.in: Remove tabs from otherwise empty line.
412 Confuses many non-GNU versions of "make".
414 Wed Oct 18 08:51:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
416 * Makefile.in (clean): Delete files produced by gen.
418 Mon Oct 16 17:34:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
420 * gen.c (lf_print_c_semantic_function): Move counting # of
421 instructions here so it works with caching.
422 (gen_idecode_c): Move from here.
424 Wed Oct 11 17:13:15 1995 Andrew Cagney <cagney@highland.com.au>
426 * gen.c, ppc-instructions, psim.c: Fix code for generating
427 cracking instruction cache. Delete the code that cached just the
428 result from doing an instruction lookup - this ran slower than no
431 Fri Oct 13 09:58:43 1995 Michael Meissner <meissner@tiktok.cygnus.com>
433 * Makefile.in (gen.o): Include $(INLINE_CFLAGS).
435 * debug.h (ppc_trace): Rename from trace, to avoid a conflict with
436 TCL when gdb is linked with the simulator.
437 * debug.c (ppc_trace): Ditto.
438 * sim_calls.c (sim_open): Change trace -> ppc_trace.
439 * main.c (main): Ditto.
441 * cpu.c (cpu_add_commas): Remove extra static.
443 Thu Oct 12 11:35:53 1995 Michael Meissner <meissner@tiktok.cygnus.com>
445 * Makefile.in (psim.o): Now that inlines are turned on, make
446 psim.o depend on all sources.
448 * cpu.c (cpu_add_commas): New function to format a long with
450 (cpu_print_info): Use it to print number_of_insns.
452 * ppc-endian.c (SWAP_n): New macros to speed up byte swapping for
454 (ENDIAN_N): If both target and host byte orders are known, don't
455 bother testing CURRENT_{TARGET,HOST}_BYTE_ORDER.
457 * ppc-endian.h (target specific H2T_n/T2H_n macros): Remove #if 0
458 to allow target specific H2T_n/T2H_n macros to be used.
459 (htonl, ntohl): If compiled on a 486 by GCC and WITH_BSWAP is
460 non-zero, redefine the htonl/ntohl macros to use the BSWAP instead
461 of the 3 instruction sequence that runs on 386s.
463 * std-config.h (WITH_{HOST,TARGET}_BYTE_ORDER): Don't override if
464 specified on the compile line.
465 (WITH_BSWAP): If not defined, define as 0.
467 * Makefile.in (INLINE_CFLAGS): Add -DDEFAULT_INLINE=2 to add
468 default inline support. Pass INLINE_CFLAGS when compiling.
470 * devices.{h,c} (unimp_device_ioctl): Use STATIC_DEVICES, not
471 INLINE_DEVICES since GCC doesn't like inline functions that
472 accept variable arguments.
473 (stack_ioctl_callback): Make function just static because GCC
474 doesn't like inline functions that accept variable arguments.
476 * devices.h (STATIC_DEVICES): Define as empty if not defined.
478 * inline.c: Correct pathnames of included C files to match current
481 * inline.h (STATIC_DEVICES): If DEVICES_INLINE is defined to be
482 non-zero, define STATIC_DEVICES to be static.
484 * std-config.h (INLINE): If GNU C and optimizing, define this as
486 (DEFAULT_INLINE): If not defined, define as 0.
487 (ENDIAN_INLINE): If not defined, define as DEFAULT_INLINE.
488 ({CORE,VM,CPU,EVENTS,REGISTERS,INTERRUPTS}_INLINE): Ditto.
489 ({SPREG,IDECODE}_INLINE): Ditto.
491 Wed Oct 11 17:13:15 1995 Andrew Cagney <cagney@highland.com.au>
493 * ppc-instructions: Initial cut of floating point suport added.
494 Of note include - use of host IEEE floating point instructions,
495 use of PowerPC manual pseudo code to handle the FPSCR. It is not
496 currently a pretty sight.
498 * memory_map.h, memory_map.c, memory_map_n.h, core.h, core.c:
499 merge into core.h, core.c, core_n.h. The type memory_map replaced
500 with core_map. This removes a level of pointer indirection when
501 translating an address.
503 * memory_map.h, memory_map.c, memory_map_n.h: delete.
505 * Makefile.in et.al (sorry): tweek to use new core, core_map and
508 Wed Oct 11 12:10:26 1995 Andrew Cagney <cagney@highland.com.au>
510 * sim_calls.c, main.c: Add -g (trace_gdb) option, add tracing to
511 most of the other functions in sim_calls.c.
513 * basics.h (CONCAT3), memory_map.c, memory_map_n.h, Makefile.in:
514 Add macros to better cover up `generic' code. Makes it possible
515 to step through the generic code!
517 * vm.c, vm_n.h, Makefile.in: ditto
519 Tue Oct 10 15:42:59 1995 Andrew Cagney <cagney@highland.com.au>
521 * devices.h, devices.c, memory_map.h, memory_map.c: Changed
522 callback interface so that there is a read/write buffer but no
523 read/write_word. VEA default memory read/write handler sometimes
524 couldn't resolve an access and of those some were for a memory
525 fault and some were because gdb was making a bogus request.
527 * devices.h, devices.c, memory_map.h, memory_map.c, vm.h, vm.c:
528 eliminate transfer_mode (raw or cooked) parameter from read/write
531 Fri Oct 6 20:23:56 1995 Andrew Cagney <cagney@highland.com.au>
533 * ppc-instructions (fmul, fmuls): correct instruction format - had
536 Wed Oct 4 17:31:12 1995 Andrew Cagney <cagney@highland.com.au>
538 * psim.c, device_tree.h, device_tree.c, devices.c (printd_*,
539 scand_*): new functions to parse/print fields in device names
540 while hiding any machine dependency.
542 * devices.c, psim.c: Change the stack init code so that it is
543 handled by a device. Arguments passed across using a device ioctl
546 * devices.h, devices.c: device ioctl callback changed to allow a
547 variable number of arguments. This gives greater flexability and
548 greater chance of bugs.
550 Tue Oct 3 22:01:56 1995 Andrew Cagney <cagney@highland.com.au>
552 * main.c (printf_filtered, error): Missing va_end() to close off
553 variable argument use.
555 * Makefile.in (tmp-gencode): comment out hack to get around some
556 versions of make not handling files being created as side-effects.
558 * gen.c (lf_open): Add -n (real_file_name) option. Specifies an
559 alternative file name to use in output files for things like #line
562 Makefile.in (tmp-gencode): Use gen -n so that debug info is
565 * Makefile.in (TARGETLIB): Use this instead of libsim.a in the
568 Sat Oct 7 22:40:59 1995 Michael Meissner <meissner@tiktok.cygnus.com>
570 * sim_calls.c (sim_set_callbacks): Define new function.
572 Fri Oct 6 17:23:10 1995 Michael Meissner <meissner@tiktok.cygnus.com>
574 * psim.c (psim_print_info): Print exit status or signal number.
576 Mon Oct 2 11:46:37 1995 Michael Meissner <meissner@tiktok.cygnus.com>
578 * cpu.c (struct _cpu): Add number_of_insns field to trace how many
579 instructions are executed.
580 (cpu_increment_number_of_insns): New function to increment the
581 number of instructions issued.
582 (cpu_get_number_of_insns): New function to return the number of
584 (cpu_print_info): New function to print cpu related information.
585 At present, print the number of instructions executed.
587 * gen_idecode_c: Emit call to cpu_increment_number_of_insns within
590 * psim.c (psim_print_info): New function to iterate over each of
591 the CPU's calling cpu_print_info.
593 * psim.h,cpu.h: Add new declarations.
595 * sim_calls.c (sim_open): Add argument processing to add the same
596 switches main.c accepts for the standalone processor.
597 (sim_close): Call psim_print_info if -I.
599 * main.c (main): Add comment saying to update sim_calls.c when
600 adding switches. Add -I to call psim_print_info when done.
601 (usage): Update usage message.
603 Sun Oct 1 13:52:59 1995 Michael Meissner <meissner@tiktok.cygnus.com>
605 * main.c (printf_filtered): Correct to match new prototype.
607 Sat Sep 30 20:47:05 1995 Michael Meissner <meissner@tiktok.cygnus.com>
609 * sim_callbacks.h (printf_filtered): Correct prototype.
611 Thu Sep 21 16:26:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
613 * device_tree.c (OEA_MEMORY_SIZE): Define if not defined to
615 (clayton_memory_size): Define as OEA_MEMORY_SIZE.
617 * std-config.h (WITH_TRACE): Default to 1 now.
619 * psim.c (write_stack_arguments): Don't write any stack arguments
622 * main.c (main): Switch to using getopt. Make -p also set
623 trace_semantics. Make -a turn on all trace flags. Make -C turn
626 * device_tree.c (create_option_device_node): Assume a program is
627 OEA if the start address is < 4096, not just == 0.
629 Wed Sep 20 13:36:06 1995 Ian Lance Taylor <ian@cygnus.com>
631 * Makefile.in (maintainer-clean): New synonym for realclean.
633 Sun Sep 10 10:23:56 1995 Michael Tiemann <tiemann@axon.cygnus.com>
635 * registers.c (register_description): Add gdb synonyms for cr
638 Fri Sep 8 13:16:10 1995 Ian Lance Taylor <ian@cygnus.com>
640 * Makefile.in (install): Don't install in $(tooldir).
642 * configure.in: Call AC_CONFIG_HEADER. Don't try to use
643 bfd/hosts/*.h file or bfd/config/*.mh file. Call AC_PROG_CC and
644 AC_PROG_RANLIB. Substitute in values for CFLAGS, HDEFINES, AR,
645 and CC_FOR_BUILD. Call AC_CHECK_HEADERS for various header files.
646 Touch stamp.h if creating config.h.
647 * configure: Rebuild.
648 * config.in: New file, created by autoheader.
649 * Makefile.in (AR): Define as @AR@.
650 (CC): New variable, defined as @CC@.
651 (CFLAGS): Define as @CFLAGS@.
652 (CC_FOR_BUILD): New variable, defined as @CC_FOR_BUILD@.
653 (RANLIB): Define as @RANLIB@.
654 (HDEFINES, TDEFINES): New variables.
655 (@host_makefile_frag@): Remove.
656 (mostlyclean): Make the same as clean, not distclean.
657 (clean): Remove config.log.
658 (distclean): Remove config.h and stamp-h.
659 (Makefile): Don't depend upon @frags@. Just rebuild Makefile when
660 invoking config.status.
661 (config.h, stamp-h): New targets.
662 (gen, gen.o): Build with CC_FOR_BUILD, not CC.
663 (ppc-config.h): Rename from old config.h build.
664 * (basics.h,gen.c,ppc-endian.c,psim.c): Include ppc-config.h.
666 Fri Sep 8 09:51:03 1995 Michael Meissner <meissner@tiktok.cygnus.com>
668 * configure{,.in}: Don't include sysdep.h from bfd, since bfd no
670 * basics.h (sysdep.h): Don't include it.
671 * Makefile.in (BASICS_H): Remove sysdep.h.
673 Wed Sep 6 13:25:42 1995 Andrew Cagney <cagney@highland.com.au>
675 * core.c (core_add_data): First growth of bss was being put at
676 wrong address (0) instead of &end.
678 * core.c (core_add_stack, core_add_data): Was not handling case
679 where bss/stack is grown across the current end-of-{bss,stack}.
681 Wed Sep 6 00:46:10 1995 Andrew Cagney <cagney@highland.com.au>
683 * system.c (system_call): Fix SYS_break - was aligning bss to a
684 page boundary instead of just an 8 byte one; On first call sbrk(0)
687 Thu Aug 24 14:48:54 1995 Michael Meissner <meissner@tiktok.cygnus.com>
689 * Makefile.in (install): Fix install rule.
691 Tue Aug 22 09:31:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
693 * system.c (system_call): Add read support.
695 * main.c (main): -t sets trace_device_tree. Correct usage message
698 * device_tree.c (update_memory_node_for_section): Make tracing
699 output line up. If not code or readonly, assume that the section
700 is a data section and has read/write permissions. Add readonly
703 * core.c (create_core_from_addresses): Print end address in traces
704 and make tracing output line up.
706 * Makefile.in: Rewrite from Makefile to work with the Cygnus
707 environment, and support compiling in a different directory than
708 the sources reside in.
710 * ppc-endian.h: Rename from endian.h so that it doesn't get
711 confused with /usr/include/sys/endian.h on Linux. Add Linux
714 * ppc-endian.c: Rename to be consistant with ppc-endian.h.
715 Include ppc-endian.h, not endian.h.
717 * basics.h (sysdep.h): Include sysdep.h that configure makes.
718 Include ppc-endian.h, not endian.h.
720 * std-config.h: Rename from ppc-config. Put #ifndefs around most
721 configuration macros, so they can be overridden via CFLAGS. By
722 default, turn off tracing.
724 * configure.in: Clone from other simulator targets.
725 * configure: Generate via autoconf from configure.in.
727 Sat Aug 19 09:05:32 1995 Andrew Cagney <cagney@highland.com.au>
729 * ppc-instructions: fix srawi (was geting XER[CA] real wrong).
731 * interrupts.c (data_storage_interrupt): allow stack to grow by
732 upto one MB per increment.
734 * ppc-instructions: divw was computing rA / rA not rA / rB
736 * main.c (main): really stupid. Wasn't exiting with correct status
738 Fri Aug 18 00:38:01 1995 Andrew Cagney <cagney@highland.com.au>
740 * system.c (system_call): add system calls kill(2) and getpid(2).
742 * main.c (main): Check/return exit status when simulation
745 Thu Aug 17 14:29:18 1995 Andrew Cagney <cagney@highland.com.au>
747 * device_tree.c (create_option_device_node): Alignment rules (at
748 least for the moment) now are for strict alignment only for LE OEA
749 mode. (Because of compiler problems).
751 * system.c (system_call) SYS_exit: Wasn't exiting with correct status.
753 Thu Aug 17 01:16:38 1995 Andrew Cagney <cagney@highland.com.au>
755 * vm.c (DEFINE_VM_DATA_MAP_WRITE_N): For miss aligned transfer
758 * system.c (system_call): didn't page align break argument before
759 determining increment break increment.
761 * psim/ppc: Re-arange entire directory structure so that
762 everything lives in the one directory. While a pain for cleaning,
763 makes building across multiple architectures much simpler.
765 * devices.c, device_tree.c: Added code that provides a simple
766 illustration of how an interrupt control device could be
769 * devices.c: Added code so that the dumb console device can read
770 (from stdin) as well as write to stdout.