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