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