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