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