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