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