Commit | Line | Data |
---|---|---|
7a543ca4 MM |
1 | Tue Mar 26 14:57:58 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
2 | ||
3 | * igen.c (idecode_switch_end): Fix 2/26 change so that an extra | |
4 | default is not written out if a default was already written. | |
5 | ||
6 | * psim.c (psim_{read,write}_register): Use sizeof unsigned_8 to | |
7 | size cooked_buf, not sizeof natural_word, since floating point | |
8 | registers are 8 bytes. | |
9 | ||
8a1d8a0b MM |
10 | Thu Mar 21 00:06:09 1996 Andrew Cagney <cagney@kremvax.highland.com.au> |
11 | ||
12 | * main.c (error): Be careful to not try to print out statistics | |
13 | when the simulation was never created. | |
14 | ||
15 | Thu Mar 7 19:53:49 1996 Michael Meissner <meissner@cygnus.com> | |
16 | ||
17 | * emul_netbsd.c: Only include sys/mount.h if HAVE_SYS_MOUNT_H is | |
18 | defined. | |
19 | * configure.in: Test for sys/mount.h. | |
20 | * configure,config.in: Regenerate. | |
21 | ||
22 | Mon Feb 26 21:11:20 1996 Andrew Cagney - aka Noid <cagney@highland.com.au> | |
23 | ||
24 | * igen.c (idecode_switch_end): Output a default entry when the | |
25 | switch statement is perfect. Firstly stops GCC complaining about | |
26 | an incomplete switch and secondly it will be eliminated by a good | |
27 | compiler any way. | |
28 | ||
0d02fbb8 MM |
29 | Thu Feb 22 22:48:57 1996 Andrew Cagney <cagney@highland.com.au> |
30 | ||
31 | * README, RUN, INSTALL: Update to reflect announcement | |
32 | * psim: PSIM 1.0.1 released | |
33 | ||
262faa54 MM |
34 | Thu Feb 22 14:01:56 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
35 | ||
36 | * emul_bugapi.c (emul_bugapi_do_read): New function to handle | |
37 | reads. | |
38 | (emul_bugapi_instruction_call): Add support for .INCHR/.INLN | |
39 | system calls. | |
40 | ||
41 | * emul_bugapi.c (emul_bugapi_do_write): Call flush_stdoutput. | |
42 | * emul_netbsd.c (do_write): Call flush_stdoutput. | |
43 | ||
44 | * main.c (flush_stdoutput): Do fflush (stdout). | |
45 | * sim_calls.c (flush_stdoutput): Do gdb_flush (gdb_stdout); | |
46 | * sim_callbacks.h (flush_stdoutput): Declare. | |
47 | ||
eada1efc MM |
48 | Wed Feb 21 10:39:35 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
49 | ||
ad836e02 MM |
50 | * emul_bugapi.c (bug_mapping): New structure to map bug system |
51 | call numbers to a string. | |
52 | (toplevel): Add remaining bugapi system calls. | |
53 | (emul_bugapi_instruction_name): Map bugapi system call number to a | |
54 | string. | |
55 | (emul_bugapi_do_write): Common code to process write system calls. | |
56 | (emul_bugapi_instruction_call): If os-emul tracing is on, trace | |
57 | the system call. Use the name to print unknown system call. | |
58 | Correct implementation of _OUTLN. Add support for _OUTSTR and | |
59 | _PCRLR system calls. | |
60 | ||
0d02fbb8 MM |
61 | Wed Feb 21 17:07:27 1996 Andrew Cagney <cagney@highland.com.au> |
62 | ||
63 | * NOTES: New file. Ramblings on why things were done they way | |
64 | they were. | |
65 | ||
66 | * psim.c (psim_options): Didn't enter the model value into the | |
67 | device tree as a string. | |
68 | ||
69 | * cpu.c (cpu_synchronize_context): Wrong test for conditional | |
70 | flush of cache. | |
71 | ||
72 | * emul_generic.c (emul_add_tree_hardware): reg value didn't match | |
73 | bus address. | |
74 | ||
75 | * ppc-opcode-flat: new file. Generate an instruction decode | |
76 | function like ppc-opcode-complex but use switch statements. | |
77 | ||
78 | * INSTALL: document new opcode file, add example configurations. | |
79 | ||
80 | Tue Feb 20 18:42:31 1996 Andrew Cagney <cagney@highland.com.au> | |
81 | ||
82 | * main.c (main): rename psim instance (system) to simulation and | |
83 | make global. | |
84 | * main.c (error): print out performance even when an error occures. | |
85 | ||
86 | * emul_bugapi.c (emul_bugapi_create): Fix argument passing. | |
94feae28 | 87 | |
0d02fbb8 MM |
88 | * emul_generic.c (emul_add_tree_hardware): Move hardware devices |
89 | to 0x80000000 from 0x400000. | |
eada1efc MM |
90 | |
91 | Mon Feb 19 22:54:40 1996 Andrew Cagney <cagney@highland.com.au> | |
92 | ||
93 | * ppc-instructions (TLB Invalidate Entry, TLB Invalidate ALL): | |
94 | Implement by passing on request to all processors. | |
95 | * ppc-instructions (TLB Synchronize): Implement as empty, processor | |
96 | tlb's are always in sync. | |
97 | ||
98 | * cpu.c (cpu_page_tlb_invalidate_all): New function. Pass on TLB | |
99 | invalidate request to processors VM sub-system. | |
100 | * cpu.c (cpu_page_tlb_invalidate_entry): Ditto. | |
101 | ||
102 | * vm.c (vm_page_tlb_invalidate_all): New function. Mark all page | |
103 | TLB entries as invalid. | |
104 | * vm.c (vm_page_tlb_invalidate_entry): New function. Ditt but only | |
105 | invalidate one TLB entry. | |
106 | ||
107 | * psim.c (psim_init): Invalidate TLB's before (re)starting. | |
108 | ||
109 | Mon Feb 19 21:25:56 1996 Andrew Cagney <cagney@highland.com.au> | |
110 | ||
111 | * emul_generic.c (emul_add_tree_options): Add argument | |
112 | oea_interrupt_prefix (0 or 1) that specifies the prefix MSR[IP] | |
113 | and hence the location of the interrupt vectors. Add this to the | |
114 | device tree. | |
115 | ||
116 | * emul_chirp.c (emul_chirp_create): Allow configuration of | |
117 | floating-point and interrupt prefix (default 0) using the above. | |
118 | ||
119 | * emul_netbsd.c (emul_netbsd_create): Pass dummy arg for | |
120 | interrupt-prefix. | |
121 | ||
122 | * emul_bugapi.c (emul_bugapi_create): Allow configuration of | |
123 | interrupt prefix (default 1) and configure interrupt table traps | |
124 | accordingly. | |
125 | ||
126 | * emul_generic.c (emul_add_tree_hardware): Include a small eeprom | |
127 | in the list of devices. | |
128 | ||
129 | * device_table.c: For moment fake eeprom device by a memory | |
130 | device. In future will need a proper eeprom device. | |
131 | ||
d271dd05 C |
132 | Tue Feb 20 17:01:26 1996 J.T. Conklin <jtc@rtl.cygnus.com> |
133 | ||
134 | * config.in: Regenerated. | |
135 | ||
136 | Fri Feb 16 10:42:27 1996 Michael Meissner <meissner@tiktok.cygnus.com> | |
137 | ||
138 | * psim.c: Include options.h so print_options is declared. | |
139 | ||
74eeaa7d MM |
140 | Thu Feb 15 18:10:13 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
141 | ||
142 | * emul_netbsd.c (toplevel): Do not include sys/resource.h if the | |
143 | system doesn't have it, and turn off getrusage processing. | |
144 | (write_rusage): #ifdef out if we don't have getrusage. | |
145 | (do_getrusage): Define as 0 if we don't have getrusage. | |
146 | ||
7393a6f0 MM |
147 | Wed Feb 14 17:38:12 1996 J. T. Conklin <jtc@cygnus.com> |
148 | ||
149 | * configure.in (AC_HEADER_DIRENT): Add, so that we can figure out | |
150 | where the directory functions are declared. | |
151 | * configure: Regenerate | |
152 | ||
153 | * emul_netbsd.c: Use the macros defined by configure to find the | |
154 | appropriate directory functions. | |
155 | ||
d271dd05 C |
156 | Thu Feb 8 00:53:13 1996 Andrew Cagney <cagney@highland.com.au> |
157 | ||
158 | * configure.in (xor_endian): Trace setting of xor-endian flag. | |
159 | ||
160 | Wed Feb 7 18:20:56 1996 Andrew Cagney <cagney@highland.com.au> | |
161 | ||
162 | * psim.c (psim_usage): Extend documentation. | |
163 | ||
164 | * ppc-instructions (model-print): fix typo. | |
165 | ||
166 | Sun Feb 4 23:58:02 1996 Andrew Cagney <cagney@highland.com.au> | |
167 | ||
168 | * configure.in (with-smp): Default configuration allow up to | |
169 | five processors (but enable only one). | |
170 | ||
171 | * emul_bugapi.c (emul_bugapi_create): If floating-point is | |
172 | allowed, enable the floating point instruction set in the | |
173 | msr. | |
174 | ||
175 | Tue Jan 30 22:52:32 1996 Andrew Cagney <cagney@highland.com.au> | |
176 | ||
177 | * emul_chirp.c (chirp_emul_seek, chirp_emul_read, | |
178 | chirp_emul_write): Tolerate invalid ihandles. | |
179 | ||
180 | * device.c (device_instance_create, device_instance_delete): | |
181 | init/delete instance name | |
182 | ||
183 | * emul_chirp.c (emul_chirp_instruction_call): Read the nr args and | |
184 | returns when determining the service. | |
185 | ||
186 | * emul_chirp.c (chirp_read_t2h_args): Allow variable number of | |
187 | args for the method "call-method". | |
188 | ||
189 | * emul_chirp.c (chirp_emul_getprop): Tolerate a n_returns of zero | |
190 | - should be one. Some OpenBoot code doesn't pass correct arg. | |
191 | ||
192 | * emul_chirp.c (chirp_emul_getprop): Trace more property types. | |
193 | ||
194 | Tue Jan 30 19:12:29 1996 Andrew Cagney <cagney@highland.com.au> | |
195 | ||
196 | * RUN: New file. Describe how to run PSIM | |
197 | * INSTALL: New file. Describe how to install PSIM | |
198 | * README: New file. Overview PSIM. | |
199 | * BUGS: New file. Briefly discuss bugs and limitations | |
200 | ||
201 | Wed Jan 24 20:28:08 1996 Andrew Cagney <cagney@highland.com.au> | |
202 | ||
203 | * emul_bugapi.c (OEA_START_ADDRESS): Put it back to 0x100000, | |
204 | wasn't correctly using GLD. | |
205 | ||
206 | Mon Jan 22 22:44:13 1996 Andrew Cagney <cagney@highland.com.au> | |
207 | ||
208 | * emul_generic.c (emul_add_tree_options): Make default number of | |
209 | active processors 1 (even when SMP enabled). | |
210 | ||
211 | Mon Jan 22 22:37:34 1996 Andrew Cagney <cagney@highland.com.au> | |
212 | ||
213 | * device_table.c (icu_io_read_buffer_callback): Add extra register | |
214 | (at addr + 4) that returns number of processors. | |
215 | ||
216 | * emul_generic.c (emul_add_tree_hardware): Update device node to | |
217 | match. | |
218 | ||
219 | Mon Jan 22 22:00:42 1996 Andrew Cagney <cagney@highland.com.au> | |
220 | ||
221 | * emul_bugapi.c (OEA_START_ADDRESS): Change to 0x4000 so that it | |
222 | matches gas-960116/ld. | |
223 | ||
224 | Fri Jan 19 00:32:27 1996 Andrew Cagney <cagney@highland.com.au> | |
225 | ||
226 | * psim-960119 released - psim-1.0b01. | |
227 | ||
7393a6f0 MM |
228 | Fri Jan 19 00:32:27 1996 Andrew Cagney - aka Noid <cagney@highland.au.com> |
229 | ||
230 | * psim.c (psim_create): Re-order so that all options are set | |
231 | before the CPU's are created. Was breaking mon_create(); | |
232 | ||
233 | * psim.c (psim_create): Tidy up conflicting configuration errors. | |
234 | ||
235 | * debug.c: Add missing print-info entry to trace table. | |
236 | ||
237 | * os_emul.c (os_emul_create): Fix `-e' option. Was looking under | |
238 | wrong name. | |
239 | ||
240 | * psim.c (psim_options): Fix `-r' option. Was entering under wrong | |
241 | name. | |
242 | ||
243 | Thu Jan 18 20:33:48 1996 Andrew Cagney <cagney@highland.com.au> | |
244 | ||
245 | * vm.c (om_unpack_bats): Fix checking of bat bits. | |
246 | ||
247 | * emul_chirp.c (emul_chirp_create): Store address of OB in memory | |
248 | in the os_emul_data structure. | |
249 | ||
250 | * emul_bugapi.c (emul_bugapi_create): Store the address of the | |
251 | bugapi code (in main memory) in the os_emul_data structure. | |
252 | ||
253 | Thu Jan 18 01:14:55 1996 Andrew Cagney <cagney@highland.com.au> | |
254 | ||
255 | * vm.c (om_translate_effective_to_real): Fix trace output. | |
256 | ||
257 | Wed Jan 17 22:21:55 1996 Andrew Cagney <cagney@highland.com.au> | |
258 | ||
259 | * device_table.c (generic_device_init_address): Create memory from | |
260 | information obtained from `reg' property. | |
261 | * device_table.c (vm_init_address_callback): Use information | |
262 | obtained from properties. | |
263 | * emul_netbsd.c (emul_netbsd_create): Update to create device and | |
264 | property entries to match | |
265 | ||
4ffd6ed0 MM |
266 | Tue Jan 16 09:50:53 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
267 | ||
268 | * idecode_expression.h (ALU_END): Add ITRACE of the result. | |
269 | ||
270 | * ppc-instructions (Equivalent): Enable this instruction. | |
271 | (Add to Minus One Extended): Ditto. | |
272 | (Subtract from Minus One Extended): Ditto. | |
273 | (Add/And/Or/Xor Immediate): Add alu trace of result. | |
274 | (Add/And/Or/Xor Shifted Immediate): Ditto. | |
275 | (And/Or/Equivalent/Nand/Nor): Ditto. | |
276 | (And/Or with Complement): Ditto. | |
277 | (Extend Sign Byte/Half Word): Ditto. | |
278 | (Count Leading Zeros): Ditto. | |
279 | (Shift Right Algerbraic Word): Ditto. | |
280 | (Shift Right Algerbraic Word Immediate): Ditto. | |
281 | ||
52edddb9 MM |
282 | Tue Jan 9 15:10:27 1996 Andrew Cagney <cagney@highland.com.au> |
283 | ||
284 | * emul_bugapi.c (emul_bugapi_instruction_call) : Make format type | |
285 | correct. | |
286 | * emul_chirp.c (map_over_chirp_note) : Ditto | |
287 | * emul_chirp.c (chirp_emul_test) : Ditto | |
288 | * device_table.c (register_init): Ditto | |
289 | ||
290 | Tue Jan 9 14:16:26 1996 Andrew Cagney <cagney@highland.com.au> | |
291 | ||
292 | * configure.in: Make disable-sim-switch default. Switch only | |
293 | useful if using --enable-sim-opcode=ppc-opcode-stupid and then | |
294 | only marginally so. | |
295 | ||
979c3c25 MM |
296 | Mon Jan 8 12:17:22 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
297 | ||
298 | * device_table.c (register_init): Make format type correct. | |
299 | ||
300 | Wed Jan 3 19:21:46 1996 Andrew Cagney <cagney@highland.com.au> | |
301 | ||
302 | * emul_bugapi.c (emul_bugapi_create): Add nodes to init the | |
303 | system-call trap to the emul instruction call instruction (Along | |
304 | with an rfi and infinate loop). | |
305 | ||
306 | * emul_bugapi.c (emul_bugapi_instruction_call): Expand to include | |
307 | a few real PPC bug calls. Test with simple hello world. | |
308 | ||
309 | Tue Jan 2 20:51:19 1996 Andrew Cagney - aka Noid <cagney@highland.com.au> | |
310 | ||
311 | * device.h, device.c (device_child, device_sibling): New | |
312 | functions. Return corresponding device value. | |
313 | ||
314 | * emul_chirp.c (chirp_emul_child, chirp_emul_peer, | |
315 | chirp_emul_parent): New functions - emulate corresponding OpenBoot | |
316 | interfaces. | |
317 | ||
318 | * device_table.c (register_init): Extend properties attached to | |
319 | register init node to allow a specific processor's register to be | |
320 | specified. | |
321 | ||
322 | * emul_chirp.c (emul_chirp_create): Init SMP correctly - the | |
323 | initial PC for all processors is an infinate loop but then, for | |
324 | processor zero, is quickly changed to be the correct code starting | |
325 | address. | |
326 | ||
327 | * emul_chirp.c (emul_chirp_create): Add fake bootpath | |
328 | et.al. properties to tree. | |
329 | ||
330 | * emul_chirp.c (chirp_emul_getproplen): New function. Emulate the | |
331 | getproplen OpenBoot call. | |
332 | ||
333 | * emul_chirp.c (emul_chirp_instruction_call): Document other | |
334 | possible chirp emulation internal states. | |
335 | ||
336 | * emul_chirp.c (emul_chirp_instruction_call): Trace failed lookups | |
337 | as well as successful ones. | |
338 | ||
339 | * emul_chirp.c (emul_chirp_open): New function - handle open | |
340 | client call. | |
341 | ||
342 | * Makefile.in (maintainer-clean): Proper rule that eliminates more | |
343 | junk. | |
344 | ||
345 | Tue Dec 19 13:00:11 1995 Andrew Cagney <cagney@highland.com.au> | |
346 | ||
347 | * emul_chirp.c (chirp_emul_exit): Full out call. | |
348 | ||
349 | * device_table.c (htab_map_page): Wasn't handling byte swap when | |
350 | creating entries in the hash table. | |
351 | ||
352 | * device.c (device_tree_find_node): Allow primative wild-card match | |
353 | of device names with the path. | |
354 | ||
355 | FIXME: As mentioned earlier, the device stuff needs work to bring | |
356 | it into line with OpenBoot. Part of this work is rewriting the | |
357 | find_node function so that it behaves as specified in p1275. | |
358 | ||
359 | Mon Dec 18 19:58:56 1995 Andrew Cagney <cagney@highland.com.au> | |
360 | ||
361 | * emul_chrp.c (chirp_emul_write, chirp_emul_finddevice): add | |
362 | better tracing. | |
363 | ||
364 | * emul_chrp.c: Change return type of emul functions to int. Emul | |
365 | functions either return -1 or zero so unsigned was a bit | |
366 | dangerous. | |
367 | ||
368 | * inline.h (*), igen.c, dgen.c, *: Update INLINE macros so that | |
369 | they are paramaterised with the type of the function. Gets around | |
370 | the problem of `static' needing to come first with `attribute' | |
371 | comming last. Format declarations and definitions so that emacs | |
372 | doesn't get confused. | |
373 | ||
374 | Fri Dec 15 17:06:44 1995 Andrew Cagney <cagney@highland.com.au> | |
375 | ||
376 | * std-config.h (PSIM_INLINE): Add missing inline configuration | |
377 | control for the main loop. | |
378 | ||
379 | * mon.c (mon_print_info): If monitoring disabled still print out | |
380 | the number seconds used. | |
381 | ||
382 | * psim.c (run_until_stop): Don't monitor the cache misses when | |
383 | monitoring is disabled. | |
384 | ||
385 | * configure.in (sim_mon, sim_monitor): Correct typo - sim_mon -> | |
386 | sim_monitor for shell variable (or should that have been the other | |
387 | way around?). | |
388 | ||
389 | * vm.c (vm_synchronize_context): Fix wrong test for unsuported | |
390 | change in endian-mode. | |
391 | ||
392 | * std-config.h (WITH_REGPARM), inline.h (IDECODE_INLINE, | |
393 | SEMANTICS_INLINE): Add -DWITH_REGPARM=<n> option. Enables the | |
394 | __attribute__((__regparm(WITH_REGPARM))) for some functions. | |
395 | configure with --enable-sim-cflags="-DWITH_REGPARAM=3" (say). | |
396 | Unfortunatly it tickles a bug (gcc?) and can't be used. | |
397 | ||
398 | Mon Dec 18 13:36:06 1995 Michael Meissner <meissner@tiktok.cygnus.com> | |
399 | ||
400 | * device.c (device_tree_add_device): Make trace fprintf arguments | |
401 | type correct. | |
402 | * device_table.c (htab_decode_hash_table): Ditto. | |
403 | (htab_map_binary): Ditto. | |
404 | (htab_init_callback): Ditto. | |
405 | * vm.c (om_virtual_to_real): Ditto. | |
406 | ||
98a497b3 MM |
407 | Sat Dec 16 09:54:18 1995 Michael Meissner <meissner@wogglebug.tiac.net> |
408 | ||
409 | * emul_netbsd.c (emul_netbsd_create): Deal with new BFD that | |
410 | changed how big/little endian support is recorded, while remaining | |
411 | compatible with the old BFD with #ifdefs. | |
412 | * emul_chirp.c (emul_chirp_create): Ditto. | |
413 | * emul_bugapi.c (emul_bugapi_create): Ditto. | |
414 | ||
669b4e1e MM |
415 | Fri Dec 15 15:55:56 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
416 | ||
98a497b3 MM |
417 | * std-config.h (MODEL_INLINE): Turn off INLINE_MODULE by default. |
418 | ||
669b4e1e MM |
419 | * corefile.h: Delete declarations for unknown functions. |
420 | * device.h: Ditto. | |
421 | * interrupts.h: Ditto. | |
98a497b3 | 422 | * interrupts.c: Ditto. |
669b4e1e | 423 | |
93fac324 MM |
424 | Thu Dec 14 18:49:34 1995 Andrew Cagney <cagney@highland.com.au> |
425 | ||
426 | * lf.c (lf_print_function_type): New function. Munges a function | |
427 | type so that the prefix (eg INLINE...) is inserted after the type | |
428 | but before any `*'. | |
429 | ||
430 | * igen.c: Change to output functions using this. | |
431 | ||
432 | Wed Dec 13 23:47:00 1995 Andrew Cagney <cagney@highland.com.au> | |
433 | ||
434 | FIXME: Emul CHIRP does not correctly implement the find device | |
435 | function. | |
436 | ||
437 | FIXME: Emul CHIRP and device do not implement device instance | |
438 | operations. | |
439 | ||
440 | Wed Dec 13 23:47:00 1995 Andrew Cagney <cagney@highland.com.au> | |
441 | ||
442 | * options.c (options_inline): Function to output meaningful | |
443 | description of the INLINE options. | |
444 | ||
445 | * configure.in (inline): Replace inline magic numbers with macro | |
446 | names. Map 1->LOCALS_INLINE and 2->ALL_INLINE. | |
447 | ||
448 | * inline.h, inline.c: update to use inline method. | |
449 | ||
450 | * std-config.h (CPU_INLINE), cpu.h, inline.h, inline.c: make cpu.h | |
451 | inline always. | |
452 | ||
453 | * std-config.h (EVENTS_INLINE): Inline events in psim. | |
454 | ||
455 | Wed Dec 13 22:01:21 1995 Andrew Cagney <cagney@highland.com.au> | |
456 | ||
457 | * device_table.c (htab_sum_binary): DMA binaries to correct byte | |
458 | within a page. | |
459 | ||
460 | Tue Dec 12 22:51:18 1995 Andrew Cagney <cagney@highland.com.au> | |
461 | ||
462 | * psim.c (psim_merge_device_file): Change `=' to `==', was this an | |
463 | error? | |
464 | ||
465 | Tue Dec 5 11:56:14 1995 Andrew Cagney <cagney@highland.com.au> | |
466 | ||
467 | * ppc-instructions (ppc_nr_mtcrf_crs, ppc_branch_conditional_name, | |
468 | ppc_function_unit_name): Simplify by declaring these arrays as | |
469 | pure and simple static (instead of STATIC_MODEL). | |
470 | ||
471 | Tue Dec 5 00:45:34 1995 Andrew Cagney <cagney@highland.com.au> | |
472 | ||
473 | * sim_calls.c (sim_create, sim_load), main.c (main), psim.c: Pass | |
474 | an options device into psim_create() so that options can be merged | |
475 | into the tree. | |
476 | ||
477 | * device.c (*add*): Change semantics so the add functions only add | |
478 | when the new device (or property) doesn't already exist. This | |
479 | allows merging of options and data. | |
480 | ||
481 | Mon Dec 4 17:12:13 1995 Andrew Cagney <cagney@highland.com.au> | |
482 | ||
483 | * Makefile.in (BASICS_H): Didn't include basics.h in the list of | |
484 | header files to depend on. | |
485 | ||
486 | Mon Dec 4 17:12:13 1995 Andrew Cagney <cagney@highland.com.au> | |
487 | ||
488 | * std-config.h: (*_MODULE): Extend the <module>_inline macro's so | |
489 | that they also allow control over static functions. Rewrite | |
490 | document to reflect this. | |
491 | ||
492 | * std-config.h: (INLINE): Simplify definition, the above and | |
493 | earlier changes to igen.h eliminate the need to be defensive about | |
494 | enabling the inline of static functions. | |
495 | ||
496 | * std-config.h: (SIM_ENDIAN_INLINE, BITS_INLINE): Document limited | |
497 | suport for inlineing of modules for all callers. Adjust relevant | |
498 | macro's so that DEFAULT_INLINE will enable this. | |
499 | ||
500 | * basics.h: Re-order #includes and definitions so that c-code for | |
501 | basic include files does not call functions delcared in later | |
502 | #includes. | |
503 | ||
504 | * basics.h (__attribute__), sim_callbacks.h: Move attribute macro | |
505 | to basics.h and add hack (include <stdio.h>) to try and bring that | |
506 | and other possible conflicting macros into scope much earler. | |
507 | ||
508 | * sim-endian.h,c (SIM_ENDIAN_INLINE) bits.h,c (BITS_INLINE): | |
509 | Change to use the updated inline definitions. If enabled | |
510 | immediatly include the corresponding c-code so that it will inline | |
511 | for all modules. | |
512 | ||
513 | * inline.h, inline.c (SIM_ENDIAN_INLINE, BITS_INLINE): Remove | |
514 | these cases, moved to module specific header files. | |
515 | ||
516 | Sat Dec 2 18:37:51 1995 Andrew Cagney <cagney@highland.com.au> | |
517 | ||
518 | * vm.c, vm_n.c: Fix htab code. | |
519 | ||
520 | * vm.c (vm_data_map_read_buffer): Was using EA not RA when reading | |
521 | the data from core. | |
522 | ||
523 | * device.c: Fix htab create code. | |
524 | ||
525 | Fri Nov 24 23:10:09 1995 Andrew Cagney <cagney@highland.com.au> | |
526 | ||
527 | * bits.h, bits.c (EXTRACTED): Convert to function, fix - had && | |
528 | instead of &. | |
529 | ||
530 | * sim-endian.h (SWAP_N), sim-endian-n.h, sim-endian.c: How | |
531 | embarasing - fix yet another bug in the swap code! Simplify | |
532 | everything by using more functions. Add host to big-endian byte | |
533 | swapping support. | |
534 | ||
535 | Fri Nov 24 23:10:09 1995 Andrew Cagney <cagney@highland.com.au> | |
536 | ||
537 | * devices.h, devices.c: delete, replaced by the files | |
538 | device_table.[ch] and device.[ch]. | |
539 | * device_tree.h, device_tree.c: ditto | |
540 | ||
541 | * device_table.h, device_table.c: New files. Contain a table of | |
542 | devices. | |
543 | ||
544 | * device.h, device.c, Makefile.in, std-config.h (DEVICE_INLINE), | |
545 | options.c (print_options): New files. Define the device object | |
546 | along with any attached properties. | |
547 | ||
548 | * device_tree.h, device_tree.c: Update to use new device object. | |
549 | For convenience, change the printd functions into device_tree_add | |
550 | functions. | |
551 | ||
552 | * psim.c (create_*_tree): Use new device_tree create functions. | |
553 | ||
554 | * corefile.h, corefile.c corefile-n.h (core_n.h): Update to use | |
555 | the new device.h / device_table.h interface. Rename core_n.h to | |
556 | corefile-n.h to be consistent with other n files. | |
557 | ||
558 | * Makefile.in (run): add corefile-n.h to dependencies for | |
559 | corefile. | |
560 | ||
561 | * basics.h (device_instance), device.h, device.c, device_table.h, | |
562 | device_table.c: Add the concept of a device instance and operators | |
563 | on these instances - corresponds to ihandle in OpenBoot speak. | |
564 | Don't yet implement it. | |
565 | ||
566 | Tue Nov 14 12:27:08 1995 Andrew Cagney <cagney@highland.com.au> | |
567 | ||
568 | * emul_generic.h, emul_generic.c (emul_syscall_enter, | |
569 | emul_syscall_exit): rename from emul_enter_call / | |
570 | emul_exit_call. As only used by emul_do_system_call simplify | |
571 | associated code. | |
572 | ||
573 | * os_emul.h, os_emul.c, emul_generic.h: Correct and fill an | |
574 | os_emul interface. | |
575 | ||
576 | * os_emul.c, emul_bugapi.h, emul_bugapi.c, Makefile.in: Add | |
577 | preliminary hooks for a kernel mode rom emulation. | |
578 | ||
579 | * cap.h (new), cap.c (new): Capability data base. Some emulations | |
580 | pass object identifiers (capabilities?) to/from the simulated code | |
581 | (for instance the phandle in OpenBoot). The cap object is able to | |
582 | check/map between internal and external (target program) | |
583 | representations of each identifier. | |
584 | ||
585 | * os_emul.c, emul_chirp.h, emul_chirp.c, Makefile.in: Add | |
586 | preliminary hooks for a kernel mode IEEE-1275 emulation. | |
587 | ||
588 | * cpu.h, cpu.c (cpu_create, cpu_os_emulation, cpu): Add os_emul to | |
589 | list of arguments passed in when creating a cpu. Grant access to | |
590 | the element. | |
591 | ||
592 | * std-config.h (OS_EMUL_INLINE), options.c (print_options), | |
593 | inline.h, inline.c: New to allow control over inline of | |
594 | corresponding code files. | |
595 | ||
596 | * ppc-instructions (instruction_call): Add illegal instruction to | |
597 | call the instruction-call emulation handler. | |
598 | ||
599 | * interrupts.c (system_call_interrupt): Call renamed | |
600 | os_emul_system_call function(). | |
601 | ||
602 | * emul_netbsd.c: Update to interface to generic emulation. Since | |
603 | all its functions are called via a table don't worry about any | |
604 | inline. | |
605 | ||
606 | * emul_generic.h, emul_generic.c, spa-*(delete): Remove references | |
607 | and code for spa, no longer to be used. | |
608 | ||
609 | * psim.c (create_chirp_device_tree): Fill out what was previously | |
610 | the openboot create function so that it starts to create a full | |
611 | OpenBoot device tree. | |
612 | ||
613 | Tue Nov 28 21:48:06 1995 Andrew Cagney <cagney@highland.com.au> | |
614 | ||
615 | * debug.h, debug.c: pte trace is made redundant by htab trace, | |
616 | delete it. Add vm to list of options. Simplify tracing output so | |
617 | lines are not as long. | |
618 | ||
619 | Tue Nov 14 12:27:08 1995 Andrew Cagney <cagney@highland.com.au> | |
620 | ||
621 | * events.h, events.c (event_queue_init), psim.c (psim_init): (re) | |
622 | initialize the event queue. | |
623 | ||
624 | ||
625 | ||
626 | ||
627 | ||
628 | ||
290ad14a MM |
629 | Tue Nov 28 13:38:26 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
630 | ||
1f1e5dd8 MM |
631 | * sim-endian.h: Look at WORDS_BIGENDIAN to determine if the host |
632 | is big endian or little endian. For SWAP_n, use htonl/htons if | |
633 | host is little endian, not big endian and if WITH_NTOH is defined. | |
634 | ||
290ad14a | 635 | * configure{,.in} (--enable-sim-model-issue): Instead of defining |
1f1e5dd8 MM |
636 | 0/1, define it to be MODEL_ISSUE_{PROCESS,IGNORE}. Add |
637 | AC_C_BIGENDIAN to determine if the host is big endian or not. | |
638 | * config.in: Regenerate. | |
290ad14a MM |
639 | |
640 | * std-config.h (WITH_MODEL_ISSUE): Default to 0. | |
641 | (CURRENT_MODEL_ISSUE): Reference WITH_MODEL_ISSUE, and if that is | |
642 | 0, use current_model_issue. | |
1f1e5dd8 | 643 | (MODEL_ISSUE_{PROCESS,IGNORE}): Define as -1/1. |
290ad14a MM |
644 | |
645 | * psim.c (current_model_issue): New global variable. | |
646 | ||
647 | * cpu.c (cpu_create): Use CURRENT_MODEL_ISSUE > 0 instead of | |
648 | WITH_MODEL_ISSUE. | |
649 | (cpu_{init,halt}): Ditto. | |
650 | * mon.c (mon_print_info): Ditto. | |
651 | * ppc-instructions (PPC_INSN_* macros, branch handling): Ditto. | |
652 | ||
cf644706 | 653 | * mon.c (mon_print_info): Print instructions/second if verbose > 0, |
290ad14a MM |
654 | rather than > 1. |
655 | ||
656 | * main.c (main): Set current_model_issue to MODEL_ISSUE_PROCESS if | |
657 | the -I switch is used. | |
658 | * sim_calls (sim_open): Ditto. | |
659 | ||
660 | * ppc-instructions (model support): Add support for determining | |
661 | when we don't have enough writeback slots. Add tracing for the | |
662 | beginning of each cycle. | |
663 | ||
70fc4ad3 MM |
664 | Mon Nov 27 17:46:33 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
665 | ||
666 | * mon.c: Check for whether to include sys/types.h and sys/time.h. | |
667 | ||
668 | * configure.in: Check for include files sys/types.h and | |
669 | sys/time.h. | |
670 | * configure: Regenerate. | |
671 | * config.in: Regenerate. | |
672 | ||
673 | * cpu.h (CONST_ATTRIBUTE): Define as __attribute__((__const__)) if | |
674 | not already defined. | |
675 | (cpu_system): Use CONST_ATTRIBUTE, so that when we're not inlining | |
676 | the world, the optimizer has a fair chance of CSE'ing function | |
677 | calls. | |
678 | (cpu_{monitor,nr,registers,model}): Ditto. | |
679 | ||
680 | * std-config.h (MODEL_INLINE): If not defined, define as 1 if | |
681 | DEFAULT_INLINE is non-zero, 0 otherwise, rather than just the | |
682 | value of DEFAULT_INLINE. | |
683 | ||
45525d8d MM |
684 | Fri Nov 24 11:24:34 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
685 | ||
eade8e03 MM |
686 | * lf.h (__attribute__): If not GCC and at least 2.7.0, define as |
687 | nothing. | |
688 | (lf_printf): Add printf __attribute__, so the compiler will | |
689 | automatically check the format string. | |
690 | ||
63caaafa MM |
691 | * configure{,.in} (--enable-sim-icache): If argument is define, |
692 | add -R to flags passed to igen. | |
693 | ||
694 | * igen.c (stdlib.h): Include if the system supplies one. | |
695 | (semantics_use_cache_struct): New global for -R flag to say | |
696 | semantics is to use the cache structure directly rather than | |
697 | putting the values into local variables. | |
698 | (first_undef, last_undef): New structures to remember names to | |
699 | #undef if -R. | |
700 | (lf_print_c_extraction): If -R and this is semantics, emit names | |
701 | as #defines pointing to the cache structure, rather than loading | |
702 | the values into local variables. | |
703 | (lf_print_c_semantic_function): If -R, #undef all of the names | |
704 | defined in lf_print_c_extraction. | |
705 | (main): Recognize -R. | |
706 | ||
707 | * idecode_fields.h (SPR_*): Redefine spr_* macros as SPR_* to | |
708 | avoid a name confict if -R passed to igen. | |
709 | ||
710 | * ppc-instructions (mfspr, mtspr): Rename spr field to SPR. | |
711 | (model_data): Add field to count the various # of CRs that the | |
712 | mtcrf instruction used. | |
713 | (model_mon_info): Return structures counting the # of CRs that the | |
714 | mtcrf instruction used. | |
3d2f9d7c MM |
715 | (branches, sync instructions): Do not call model functions if |
716 | WITH_MODEL_ISSUE is 0. | |
63caaafa | 717 | |
f2181eff MM |
718 | * mon.c (stdlib.h): Include if the system supplies one. |
719 | (mon_sort_instruction_names): New function to sort instruction | |
720 | names alphabetically. | |
63caaafa | 721 | (mon_print_info): Call qsort with mon_sort_instruction_names to |
3d2f9d7c | 722 | sort instruction names. Don't abort if WITH_MODEL_ISSUE is 0. |
63caaafa | 723 | |
45525d8d MM |
724 | * debug.h (ITRACE): Make printf_filtered arguments type correct. |
725 | * idecode_expression.h (CR0_COMPARE): Ditto. | |
726 | * psim.c (psim_read_register): Ditto. | |
727 | ||
728 | * igen.c (lf_print_my_prefix): Use __attribute__((__unused__)) to | |
729 | silence compiler warnings about unused automatically generated | |
730 | variables. | |
731 | (lf_print_c_extraction): Ditto. | |
732 | * idecode_expression.h (FPSCR_BEGIN): Ditto. | |
733 | ||
734 | * ppc-cache-rules: Define rules for making a bitmask for all | |
735 | registers. | |
736 | ||
737 | * ppc-instructions: Rewrite model specific functions to use the | |
738 | bitmask of the register number, instead of using the register | |
739 | pointer to get the register number, and then making the bitmask. | |
740 | ||
46c065ab MM |
741 | Wed Nov 22 15:24:27 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
742 | ||
743 | * ppc-instructions (model_branches): Add conditional argument to | |
744 | count the number of times each type of conditional branch is used. | |
745 | (conditional branches): Pass B0 or -1 to model_branches. | |
746 | (model_mon_info): Print out conditional branch counts. | |
747 | (model-data): Add support for printing out conditional branch | |
748 | types. | |
749 | ||
4a0351ab MM |
750 | Tue Nov 21 16:31:25 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
751 | ||
752 | * igen.c (insn_table_load_insns): Add support for model-static for | |
753 | internal functions that should not be inlined. | |
754 | (lf_print_c_semantic): Remove model_cleanup. | |
755 | (gen_model_{c,h}): Ditto. | |
756 | ||
757 | * ppc-instructions: Redo model specific support once again. Add | |
758 | floating point support to the model specific information. Flesh | |
759 | out all of the floating mutiply add/subtract instructions. Add | |
760 | better tracing support to the model specific information. | |
761 | ||
0bcce7d3 MM |
762 | Sun Nov 19 23:00:52 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
763 | ||
764 | * ppc-instructions (model data, model_busy): Rather than using a | |
765 | bit mask for the busy units, just use a char array. Also, only | |
766 | support 2 function units an insn can use, rather than a loop. | |
767 | ||
4220dcd6 MM |
768 | Fri Nov 17 14:08:08 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
769 | ||
0bcce7d3 MM |
770 | * table.c (table_entry_read): Move setting entry->line_nr to after |
771 | the model specific fields so the line numbers for the annex are | |
772 | correct. | |
773 | ||
4220dcd6 MM |
774 | * cpu.c (cpu_{create,init,halt}): Check for WITH_MODEL_ISSUE |
775 | before calling the model functions. | |
776 | ||
777 | * debug.c (trace_descriptor): Add trace_model support. | |
778 | * debug.h (trace_options): Ditto. | |
779 | ||
780 | * igen.c (gen_icache_h): Create type idecode_cache as void if not | |
781 | caching instructions. | |
0bcce7d3 MM |
782 | (gen_model_{c,h}): Drop model_issue support. Add support for |
783 | model_cleanup. | |
784 | (lf_print_my_prefix): Initialize a const itable_index with the | |
785 | current index. | |
786 | (lf_print_c_semantic): Call model_cleanup at the end of the | |
787 | function to check for instructions that aren't supported yet by | |
788 | the scheduling code. | |
789 | ||
4220dcd6 MM |
790 | * mon.h (count_type): New type for counters. |
791 | * mon.c: Use count_type instead of unsigned. | |
792 | ||
0bcce7d3 MM |
793 | * ppc-instructions: Redo scheduling code once again. Make it all |
794 | inline friendly. Instead of having general code emitted by igen, | |
795 | go the route of having each semantic routine call the appropriate | |
796 | module. | |
4220dcd6 | 797 | |
845ff5a4 MM |
798 | Thu Nov 16 09:52:26 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
799 | ||
800 | * table.c (table_entry_read): Allow the annex to have blank lines. | |
801 | ||
802 | * ppc-instructions: Change lines in model stuff that just have a | |
803 | tab to just newline. Add 601 support. Document most instructions | |
804 | in terms of model specific timing information. Drop 'FUNCTION' | |
805 | from PPC_FUNCTION_UNIT_xxx enums. Change PPC_UNIT_UNKNOWN -> | |
806 | PPC_UNIT_BAD. Add TRACE(trace_tbd) for all data cache | |
807 | instruction.s. Signal illegal instruciton if data cache block | |
808 | invalidate is issued from problem state. | |
809 | ||
810 | * igen.c (max_model_fields_len): New static to keep track of the | |
811 | max size for the model specific fields. | |
812 | (model_c_insn): Use max_model_fields_len to size fields. | |
813 | (insn_table_insert_insn): Set max_model_fields_len. | |
814 | (model_table_insert): Ditto. | |
867b7168 MM |
815 | (gen_model_{c,h}): Model_issue is now called with a processor |
816 | argument. | |
845ff5a4 MM |
817 | |
818 | * debug.c (trace_description): Add support for trace_tbd. | |
819 | ||
867b7168 MM |
820 | * mon.c (mon_issue): Pass processor argument to model_issue. |
821 | ||
84bbbc35 MM |
822 | * Makefile.in: Delete all function unit support, since the newer |
823 | table driven model support replaces it. | |
824 | * cpu.{c,h}: Ditto. | |
825 | * mon.c: Ditto. | |
826 | * inline.{c,h}: Ditto. | |
827 | * std-config.h: Ditto. | |
828 | * options.c: Ditto. | |
829 | * configure{,.in}: Ditto. | |
830 | * Makefile.in: Ditto. | |
831 | * psim.c: Ditto. | |
832 | * function_unit.{c,h}: Delete these now usused files. | |
833 | ||
834 | * std-config.h (WITH_MODEL_ISSUE): Add new macro on whether to | |
835 | trace instructions in a model specific manor. | |
836 | * options.c (print_options): Print it out. | |
837 | * configure{,.in}: Add --enable-sim-model-issue option. | |
838 | * Makefile.in: Add --enable-sim-model-issue flags. | |
839 | * igen.c (lf_print_c_semantic): Add call to mon_issue here. Check | |
840 | for WITH_MODEL_ISSUE. | |
841 | * mon.c (mon_issue): Remove call to mon_issue_here. | |
842 | ||
843 | * ppc-instructions: Move branch tracing to the actual branch | |
844 | instructions, rather than testing it in model_issue. Add code to | |
845 | code successful/unsuccessful branch predictions, and the number of | |
846 | conditional branches that fell through. | |
847 | ||
80948f39 MM |
848 | Wed Nov 15 17:32:13 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
849 | ||
850 | * cpu.h (cpu_model): Add declaration. | |
851 | ||
852 | * cpu.c (struct _cpu): Add model_ptr to hold model specific | |
853 | information. | |
854 | (cpu_model): Return the model internal pointer. | |
855 | (cpu_{create,init,halt}): Call the appropriate model function. | |
856 | ||
857 | * inline.c (mon.c): Move include of mon.c after model.c. | |
858 | ||
859 | * mon.c (_cpu_mon): Add fields to count unaligned memory | |
860 | references. | |
861 | (mon_issue): Call model_issue, not function_unit_issue. | |
862 | (mon_{read,write}): Count # of unaligned memory accesses. | |
863 | (mon_print_info): Switch to calling model_mon_info and | |
864 | model_mon_info_free instead of function_unit version. Print out | |
865 | number of unaligned reads/writes. | |
866 | ||
867 | * {ppc-instructions,igen.c}: More global changes to add model | |
868 | specific features. | |
869 | ||
acb06d30 MM |
870 | * inline.{c,h}: Provide for inlining options.c. |
871 | * options.{c,h}: Ditto. | |
872 | * std-config.h: Add OPTIONS_INLINE. | |
873 | ||
ac79ccd4 MM |
874 | Tue Nov 14 04:47:25 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
875 | ||
fe439e0f | 876 | * Makefile.in (devices.o, main.o): Update dependency. |
ac79ccd4 MM |
877 | |
878 | * igen.c (gen_model_h): Use correct variable in loop. | |
fe439e0f | 879 | (gen_model_c): Use strcmp, strcasecmp. |
80948f39 MM |
880 | (gen_model_c): Use EXTERN_MODEL for arrays. |
881 | (gen_model_h): Use STATIC_MODEL for arrays. | |
ac79ccd4 MM |
882 | (lf_print_c_semantic_function_header): Delete unused function. |
883 | ||
fe439e0f MM |
884 | * main.c (cpu.h): Include cpu.h to get model.h. |
885 | ||
80948f39 | 886 | * inline.h ({EXTERN,STATIC}_MODEL): Define. |
f35df46c | 887 | |
1dc7c0ed MM |
888 | Mon Nov 13 09:14:13 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
889 | ||
890 | * igen.c ({insn,model}_table_fields): Spell mnemonic correctly. | |
891 | (gen_itable_h,itable_c_insn): Ditto. | |
892 | (model support): Move model support around, add support for | |
893 | model-data, model-internal. Use annex field for model-macros | |
894 | now. | |
895 | ||
896 | * configure.in (--enable-sim-inline): If --enable-sim-inline=no, | |
897 | also define INLINE as nothing. | |
898 | * configure: Regenerate. | |
899 | ||
900 | * std-config.h (INLINE): Rather than nuking INLINE, only define it | |
901 | as __inline__ if any of the INLINE flags are non-zero. | |
902 | ||
903 | * options.c (print_options): Print out WITH_XOR_ENDAIN. | |
904 | ||
905 | Mon Nov 13 23:03:45 1995 Andrew Cagney <cagneyhighland.com.au> | |
906 | ||
907 | * ppc-instructions (rfi): Add missing code. | |
908 | ||
909 | * cpu.c (cpu_get_time_base): Fix calculation of current value of | |
910 | time base register. | |
911 | ||
912 | * ppc-spr-table (TBL, TBU): Fix TBL/TBU entries - was confusing | |
913 | m[tf]tb with m[tf]spr. | |
914 | ||
915 | * ppc-instructions (mtspr, mfspr): Fix mttbl - wasn't storing | |
916 | lower word. | |
917 | ||
918 | Mon Nov 13 21:35:37 1995 Andrew Cagney <cagneyhighland.com.au> | |
919 | ||
920 | * std-config.h (INLINE, STATIC_INLINE): Was being set to static | |
921 | inline.. Only problem being that with ppc-opcode-simple this gave | |
922 | it the chance to inline all the idecode functions with potentially | |
923 | disasterous results on a 16mb PC. For moment hobble INLINE. | |
924 | ||
925 | * configure.in, std-config.h (WITH_SMP): Make that 5 processors by | |
926 | default ... | |
927 | ||
928 | * configure.in: Tweek flags passed to gcc for --with-sim-warnings. | |
929 | Firstly make them errors and secondly remove the options gcc-245 | |
930 | doesn't reconize. | |
931 | ||
932 | Mon Nov 13 17:57:24 1995 Andrew Cagney <cagney@highland.com.au> | |
933 | ||
934 | * misc.c (zalloc), cpu.c (cpu_init), devices | |
935 | (console_io_read_buffer_callback, icu_io_read_buffer_callback, | |
936 | vm_io_read_buffer_callback), main.c (zalloc), mon.c (memset), | |
937 | sim_calls.c (zalloc) : replace bzero() with memset(). | |
938 | ||
939 | * emul_netbsd.c (write_direntries), psim.c (psim_read_register, | |
940 | psim_write_register): replace bcopy() with memcpy(). | |
941 | ||
942 | Sun Nov 12 20:55:41 1995 Andrew Cagney <cagneyhighland.com.au> | |
943 | ||
944 | * configure.in: for --disable-sim-inline (--enable-sim-inline=no), | |
945 | force DEFAULT_INLINE to 0 rather then trusting the std | |
946 | configuration. | |
947 | ||
948 | Sun Nov 12 20:55:41 1995 Andrew Cagney <cagneyhighland.com.au> | |
949 | ||
950 | * igen.c (lf_print_idecode_table, idecode_table_leaf): Fix | |
951 | generation of switch entries in tables - treat the same as | |
952 | cracking/semantic functions. | |
953 | ||
954 | * igen.c (idecode_switch_end, idecode_switch_leaf): Fix generation | |
955 | of a boolean switch statement (field zero or non-zero). | |
956 | ||
957 | * ppc-opcode-test-1, ppc-opcode-test-2: New files. These test the | |
958 | switch/table generation ability of igen. | |
959 | ||
960 | * igen.c (idecode_switch_leaf): Fix code output when a switch | |
961 | statement needs to look up a table. | |
962 | ||
963 | * igen.c (idecode_declare_if_switch): New function called from | |
964 | gen_idecode_c - need to declare any idecode switch functions | |
965 | before they are used in idecode tables. | |
966 | ||
967 | * igen.c (lf_print_c_cracker_function, idecode_crack_leaf, | |
968 | idecode_crack_insn): Add is_inline_function argument to code | |
969 | printing cracker functions which indicates if STATIC_IDECODE or | |
970 | STATIC_INLINE_IDECODE should be used for definition. For | |
971 | idecode_crack_insn (which implies not duplicating/expanding) don't | |
972 | declare function as inline - we assume that the only time this is | |
973 | code is generated is when things are being tested. For | |
974 | idecode_crack_leaf, make static (instead of INLINE) if the | |
975 | instructions parent is a table as function will always be called | |
976 | via a table. | |
977 | ||
978 | * igen.c (idecode_expand_if_switch): Declare as STATIC_IDECODE not | |
979 | STATIC_INLINE_IDECODE. Only the outermost idecode switch will be | |
980 | called directly, all others are called via a table. | |
981 | ||
982 | * igen.c (lf_print_semantic_function_header, semantics_h_leaf, | |
983 | semantics_h_insn, semantics_h_function, | |
984 | lf_print_c_semantic_function, semantics_c_function): Add | |
985 | is_inline_function argument to lf_print_semantic_function_header | |
986 | to indicate if an inline or static function declaration/definition | |
987 | should be output. Depending on situtation call accordingly: | |
988 | functions (not instruction semantic routines) are always inline; | |
989 | Semantic routines are made inline when there is no icache (cache | |
990 | will contain the function address) and are duplicating (see above) | |
991 | and the parent of the instruction is a switch statement. | |
992 | ||
993 | * igen.c (opcode_field_new): Delete. Code changed to use ZALLOC | |
994 | and moved to insn_table_find_opcode_field. | |
995 | ||
996 | * table.c (table_open): Fix typo (nr_model_fields vs nr_fields). | |
997 | ||
998 | * igen.c (model_c_insn): Suggestion - document the name of the | |
999 | instruction on each line of the instruction model table. | |
1000 | ||
1001 | Fri Nov 10 00:44:38 1995 Andrew Cagney <cagneyhighland.com.au> | |
1002 | ||
1003 | * emul_netbsd.c (do_ioctl): Cleanup compilation. | |
1004 | ||
1005 | * sim_callbacks.h (__attribute__): Only define if not defined (was | |
1006 | already defined on NetBSD host). | |
1007 | ||
1008 | Wed Nov 8 21:49:52 1995 Andrew Cagney <cagneyhighland.com.au> | |
1009 | ||
1010 | * std-config.h (WITH_XOR_ENDIAN), configure.in, Makefile.in: New | |
1011 | macro, indicates if the PowerPC's horrible XOR endian mode should | |
1012 | be suported. Add to configure and make. | |
1013 | ||
1014 | * vm_n.h (vm_data_map_read_N, vm_data_map_write_N), vm.c | |
1015 | (vm_instruction_map_read): If XOR endian, xor the address | |
1016 | with a value from an xor table (indexed by size of access). | |
1017 | ||
1018 | * vm.c (vm_synchronize_context), cpu.c (cpu_synchronize_context): | |
1019 | set up xor table to xor if there is a conflict between the | |
1020 | CURRENT_TARGET_ENDIAN and the endian indicated in the MSR. Move | |
1021 | check of suported change of endian mode from cpu.c to vm.c. | |
1022 | ||
1023 | * vm.c (vm_data_map_write_buffer, vm_data_map_read_buffer): | |
1024 | Hopefully added correct hack to handle XOR endian mode. | |
1025 | ||
1026 | FIXME: If NONSTRICT alignment and XOR ENDIAN and MSR indicates | |
1027 | little endian mode, the model accepts miss aligned transfers. | |
1028 | ||
1029 | FIXME: Need to create an `init' device that, during | |
1030 | initializatioin for XOR mode, it mushes (XOR address) all the dma | |
1031 | data before passing it on to the core for storage. Just like the | |
1032 | real thing really. | |
1033 | ||
1034 | Wed Nov 8 21:49:52 1995 Andrew Cagney <cagneyhighland.com.au> | |
1035 | ||
1036 | * devices.c (halt_io_write_buffer_callback): Use value written to | |
1037 | halt device to determine exit status. Thus allowing | |
1038 | success/failure of OEA tests. | |
1039 | ||
1040 | Wed Nov 8 00:10:38 1995 Andrew Cagney <cagneyhighland.com.au> | |
1041 | ||
1042 | * ppc-instructions (icbi): If icache present flush it. | |
1043 | ||
1044 | Tue Nov 7 23:36:31 1995 Andrew Cagney <cagneyhighland.com.au> | |
1045 | ||
1046 | * devices.c (htab_init_callback): Add code to create htab/pte. | |
1047 | ||
1048 | * devices.c (dma_file, file_init_callback, htab_init_callback): | |
1049 | New function - Dma the named file into memory at the specified | |
1050 | address. Use. | |
1051 | ||
1052 | * device_tree.h, device_tree.c (scand_*): New functions. | |
1053 | ||
1054 | Tue Nov 7 23:36:31 1995 Andrew Cagney <cagneyhighland.com.au> | |
1055 | ||
1056 | * filter_filename.c, Makefile.in: Change so that only dependant on | |
1057 | a very limited nr of files. Stops an unnecessary dependency. | |
1058 | ||
1059 | Tue Nov 7 15:44:33 1995 Andrew Cagney <cagney@highland.com.au> | |
1060 | ||
1061 | * core.c (core_map_find_mapping): Use cpu_halt rather than error | |
1062 | to abort an access to an undefined address. | |
1063 | ||
eb4ef197 MM |
1064 | Sun Nov 12 07:58:09 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1065 | ||
1066 | * igen.c (model_table_insert_{macro,function}): New functions. | |
1067 | (insn_table_load_insns): Call them. | |
1068 | (gen_model_h): Move section emiting model-macros to be first. | |
1069 | (model_{c,h}_function): New functions cloned from semantic | |
1070 | functions to print out the prototype and function for | |
1071 | model-functions. | |
1072 | (gen_model_{c,h}): Print out model-functions. | |
1073 | ||
1074 | * ppc-instructions (model_{start,halt,print_info}): Add dummy | |
1075 | model-functions. | |
28816f45 MM |
1076 | |
1077 | * options.c (print_options): Print out WITH_{,DEFAULT_}MODEL, not | |
1078 | WITH_PPC_{,DEFAULT_}_MODEL. | |
1079 | (options_ppc): Delete now unused function. | |
1080 | (cpu.h): Include cpu.h, not just basics.h. | |
1081 | ||
1082 | * std-config.h (WITH_{,DEFAULT_}MODEL): Define. | |
1083 | ||
1084 | * igen.c (model_macros, last_model_macro): New statics to keep | |
1085 | track of macros to go in model.h. | |
1086 | (insn_table_load_insns): Add model-macros to model_macros linked | |
1087 | list. | |
1088 | (model_table_fields): Add field for printable name. | |
1089 | (gen_model_h): If there are model macros defined, print them out. | |
1090 | Print out DEFAULT_MODEL as the first model if there any models | |
1091 | specified, otherwise MODEL_NONE. Print out external decl for | |
1092 | current_model. Print out decl for model_set. | |
1093 | (gen_model_c): Add function model_set. Switch to use printable | |
1094 | name for the model, not the internal identifier used. | |
1095 | ||
1096 | * psim.c (current_model): New global variable. | |
1097 | ||
1098 | * ppc-instructions: Add macros for flag defines. Switch first | |
1099 | model so 604 is first. | |
1100 | ||
1101 | * main.c (main): Call model_set, not function_unit_model. | |
1102 | * sim_calls.c (sim_open): Ditto. | |
1103 | * sim_calls.c, Makefile.in: sim_calls.c now includes cpu.h. | |
1104 | ||
d587782c MM |
1105 | Sat Nov 11 07:27:41 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1106 | ||
28816f45 MM |
1107 | * mon.h (mon_events): New enumeration for other events we want to |
1108 | handle. | |
1109 | (mon_event): Add declaration for function. | |
1110 | ||
1111 | * mon.c (mon_event): New function. | |
1112 | (mon_print_info): Print icache misses. | |
1113 | ||
1114 | * psim.c (run_until_stop): Monitor icache misses. | |
1115 | ||
1116 | * configure.in (--enable-sim-inline): Fix typos in handling comma | |
1117 | separated inline options. | |
1118 | (--enable-sim-icache): Echo icache size. | |
1119 | * configure: Regenerate. | |
1120 | ||
1121 | * igen.c (semantics_h_print_function): Emit STATIC_SEMANTICS | |
1122 | instead of INLINE_SEMANTICS so that the compiler won't keep all of | |
1123 | the semantic functions as inline RTL, given that the address of | |
1124 | the function is taken which forces outline calls anyway. | |
1125 | (lf_print_c_semantic_function_header): Ditto. | |
1126 | (gen_semantics_h): Define STATIC_SEMANTICS as nothing if not | |
1127 | defined. | |
1128 | (lf_print_c_cracker_function): Emit STATIC_IDECODE instead of | |
1129 | STATIC_INLINE_IDECODE. | |
1130 | (gen_idecode_c): Define STATIC_IDECODE if not defined. | |
1131 | (gen_model_h): Use #ifdefs to define types to hold model units, | |
1132 | cycles, and flags. | |
1133 | (model_table_insert): Add a sentinel functional unit at the end to | |
1134 | simplify loop processing. | |
1135 | (model_c_insn): Use <function-unit>_SENTINAL instead of 0 for any | |
1136 | instruction not specifing a function unit for the current model. | |
1137 | (gen_model_{c,h}): Provide bounds for model_time_mapping. | |
1138 | ||
1139 | * inline.h (STATIC_SEMANTICS): Define to be static if | |
1140 | SEMANTICS_INLINE is defined. | |
1141 | (STATIC_IDECODE): Define to be static if IDECODE_INLINE is | |
1142 | defined. | |
1143 | ||
d587782c MM |
1144 | * options.c (print_options): Fix typo. |
1145 | ||
b51e5b4f MM |
1146 | Fri Nov 10 06:39:46 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1147 | ||
813ad010 MM |
1148 | * configure.in (--enable-sim-{opcode,config}): Use $srcdir when |
1149 | check for the existence of files. | |
1150 | * configure: Regenerate. | |
1151 | ||
a3114052 MM |
1152 | * table.c (table): New field nr_model_fields. |
1153 | (table_open): New parameter nr_model_fields. | |
1154 | (table_entry_read): Parse model fields that begin with a '*' after | |
1155 | each instruction. | |
1156 | * igen.c, dgen.c: Change callers of table_open. | |
1157 | ||
1158 | * igen.c: Add support for dumping model specific information in | |
1159 | model.h and model.c. | |
1160 | (insn_field_name): Delete unused array. | |
1161 | (global variables): Make global variables static, so we can tell | |
1162 | when they are no longer used. | |
1163 | (cache_semantic_actual): Delete unused variable. | |
1164 | (insn_table_load_insns): If the insn is really a machine model, | |
1165 | call model_table_insert instead of other processing. | |
1166 | (model_table_insert): New function to handle defining the | |
1167 | functional units of a particular machine model. | |
1168 | (insn_table): Add last_function field so we can add functions at | |
1169 | the end. | |
1170 | (insn_table_insert_function): Use last_function field when | |
1171 | appending new function. | |
1172 | ||
1173 | * ppc-instructions: Add a few model specific information for 603, | |
1174 | 603e, and 604 for testing purposes. | |
1175 | ||
1176 | * table.h (table_model_entry): New linked list to hold model | |
1177 | specific information, one per line. | |
1178 | (table_entry): Add model_first, model_last fields. | |
1179 | ||
b51e5b4f MM |
1180 | * configure.in (--enable-sim-inline): If gcc is found and |
1181 | --enable-sim-inline is not specified, defaine DEFAULT_INLINE to 1, | |
1182 | not 2. | |
a3114052 MM |
1183 | (--enable-sim-reserved-bits): New switch to check whether reserved |
1184 | bits are set in the instruction. | |
1185 | (--enable-sim-opcode): Make complex the default. | |
1186 | (all switches): Add appropriate checks and error messages. | |
b51e5b4f MM |
1187 | * configure: Regenerate. |
1188 | ||
a3114052 MM |
1189 | * Makefile.in (RESERVED_CFLAGS): New variable set by |
1190 | --enable-sim-reserved-bits. | |
1191 | (CONFIG_CFLAGS): Include RESERVED_CFLAGS. | |
1192 | (BUILT_SRC): igen now generates model.c and model.h. | |
1193 | (LIB_OBJ): Include table.o. | |
1194 | (tmp-igen): Add -m/-M options to write model.c/model.h. | |
1195 | (model.o): New object. | |
1196 | (CPU_H): Include model.h. | |
1197 | ||
1198 | * cpu.h: Include model.h. | |
1199 | ||
1200 | * std-config.h (WITH_RESERVED_BITS): Define. | |
1201 | (MODEL_INLINE): Ditto. | |
1202 | ||
1203 | * options.c (print_options): Print out WITH_RESERVED_BITS. | |
1204 | ||
ba62bb1c MM |
1205 | Thu Nov 9 12:22:15 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1206 | ||
2bc7869d MM |
1207 | * configure.in: If --silent, don't output information messages. |
1208 | * configure: Regenerate. | |
1209 | ||
ba62bb1c | 1210 | * configure.in (--enable-sim-alignment): Fix typo in specifing non |
23a994ee | 1211 | strict alignment. |
ba62bb1c MM |
1212 | (--enable-sim-switch): Make default on. |
1213 | (--enable-sim-duplicate): Make default on. | |
1214 | (--enable-sim-smp): Make default 0. | |
1215 | (--enable-sim-mon): Don't set sim_float if not set. | |
1216 | (--enable-sim-inline): If gcc is found and --enable-sim-inline is | |
1217 | not specified, define DEFAULT_INLINE to be 2. | |
1218 | (all --enable-sim-* rules): Echo rules set to non empty to file | |
1219 | descriptor 6. | |
1220 | * configure: Regenerate. | |
1221 | ||
1222 | * options.c (options_env): Fix typo if WITH_ENV is 0. | |
1223 | (print_options): Print GCC compiler version if available and | |
1224 | date/time options was compiled. If OPCODE_RULES, IGEN_FLAGS, | |
1225 | and/or DGEN_FLAGS are defined, print them. | |
1226 | ||
1227 | * Makefile.in (all link actions): Pass SIM_CFLAGS as well as | |
1228 | CFLAGS. | |
1229 | (options.o): Compile options.o with OPCODE_RULES, IGEN_FLAGS, and | |
1230 | DGEN_FLAGS defined, so they can be printed out. | |
1231 | ||
1232 | * igen.c (lf_print_c_validate): Check for WITH_ASSERT, so that | |
1233 | this test can be compiled away if the user really wants a fast | |
1234 | simulator by not doing assertion failures. | |
1235 | ||
73c4941b MM |
1236 | Wed Nov 8 13:19:47 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1237 | ||
c5addc19 MM |
1238 | * options.c: New file to print out all of the WITH_ options. |
1239 | * options.h: New include file to declare print_options. | |
1240 | * debug.h (trace_options): Add trace_opts to call print_options. | |
1241 | * debug.c (trace_description): Add trace_opts support. | |
1242 | * main.c (main): If user requested options, print them. | |
1243 | * sim_calls.c (sim_open): Ditto. | |
1244 | ||
1245 | * igen.c (opcode_field_new): Add void to make it a proper prototype. | |
1246 | ||
1247 | * emul_generic.c (emul_enter_call): Make printf_filtered arguments | |
1248 | type correct. | |
1249 | * emul_netbsd.c (do_kill): Ditto. | |
1250 | * registers.c (registers_dump): Ditto. | |
1251 | * vm.c (om_translate_effective_to_real): Ditto. | |
1252 | * vm_n.h (vm_data_map_read_N): Ditto. | |
1253 | (vm_data_map_write_N): Ditto. | |
1254 | * devices.h (DTRACE_INIT): Ditto. | |
1255 | (DTRACE_{ATTACH,DETACH}_ADDRESS): Ditto. | |
1256 | (DTRACE_IO_{READ,WRITE}_BUFFER): Ditto. | |
1257 | (DTRACE_DMA_{READ,WRITE}_BUFFER): Ditto. | |
1258 | * devices.c (update_for_binary_section): Ditto. | |
1259 | (write_stack_arguments): Ditto. | |
1260 | (stack_ioctl_callback): Ditto. | |
1261 | * device_tree.c (device_tree_add_passthrough): Ditto. | |
1262 | (device_tree_{add,find}_device): Ditto. | |
1263 | (device_tree_{add,find}_integer): Ditto. | |
1264 | (device_tree_find_{string,boolean}): Ditto. | |
1265 | (device_tree_init{,_device}): Ditto. | |
1266 | (device_tree_dump): Ditto. | |
1267 | * sim_calls.c (sim_{read,write}): Ditto. | |
1268 | (sim_{fetch,store}_register): Ditto. | |
1269 | (sim_stop_reason): Ditto. | |
1270 | ||
1271 | * sim_callbacks.h (printf_filtered): Declare with attribute | |
1272 | printf, so we can enable format checks. | |
1273 | ||
1274 | * devices.c (console_io_{read,write}_buffer_callback): Cast swtich | |
1275 | argument to int, since ANSI doesn't allow long switch values. | |
1276 | * emul_netbsd.c (do___sysctl): Ditto. | |
1277 | ||
1278 | * emul_netbsd.c (do___sysctl): Fix up printf call. | |
1279 | ||
1280 | * corefile.c (core_translate): Don't do arithmetic with void * | |
1281 | pointers. Cast to char * first. | |
1282 | ||
1283 | * function_unit.c (FUNC_{LOAD,STORE}): Rename from {LOAD,STORE} | |
1284 | and change all uses. | |
1285 | ||
73c4941b MM |
1286 | * Makefile.in ({FUNC,MODEL,WARNING}_CFLAGS): New flags set by |
1287 | configure --enable switches. | |
1288 | (CONFIG_CFLAGS): Include FUNC_CFLAGS and MODE_CFLAGS. | |
1289 | (.c.o): Include WARNING_CFLAGS. | |
1290 | (CPU_H): Include function_unit.h. | |
1291 | (LIB_OBJ): Include function_unit.o. | |
1292 | (BUILT_SRC_WO_CONFIG): Split from BUILT_SRC and do not include | |
1293 | config.h or ppc-config.h. | |
1294 | (BUILT_SRC): Include BUILT_SRC_WO_CONFIG, config.h and | |
1295 | ppc-config.h. | |
1296 | (filter_filename.o): Include config.h/ppc-config.h dependencies. | |
c5addc19 MM |
1297 | (idecode.o, semantics.o, psim.o): Specify CC line without |
1298 | WARNING_CFLAGS so that we don't get all of the unused variable | |
1299 | warnings that are generated. | |
73c4941b MM |
1300 | (function_unit.o): Add rule to build. |
1301 | (main.o, sim_calls.o): Add function_unit.h, itable.h dependencies. | |
1302 | (mon.o): Include mon.c dependency. | |
1303 | (TAGS): Depend on BUILT_SRC. | |
1304 | (clean): Don't delete config.h or ppc-config.h | |
1305 | ||
1306 | * basics.h (sim_callbacks.h): Move include after the include of | |
1307 | config.h and ppc-config.h. | |
1308 | ||
1309 | * bits.{h,c} (ROTL32,ROTL64): Move these functions to bits.c. Add | |
1310 | support for BITS_INLINE to inline these. Add declarations to | |
1311 | bits.h. | |
1312 | ||
1313 | * configure.in (--enable-sim-warnings): Add new option to specify | |
1314 | compiler warnings for all modules except idecode.o and semantics.o | |
1315 | which have lots of unused variables because they are machine | |
1316 | generated. | |
1317 | (--enable-sim-function-unit): New switch to configure whether | |
1318 | function unit support is compiled in or not. | |
1319 | (--enable-sim-{,default-}mode): New switches to control which cpu | |
1320 | model is used. | |
1321 | * configure: Regenerate. | |
1322 | ||
1323 | * corefile.c (core_attach_address_callback): Delete unused | |
1324 | variable device_address. | |
1325 | ||
1326 | * cpu.c (struct _cpu): Add function unit pointer field func_unit. | |
1327 | (cpu_create): If WITH_FUNCTION_UNIT, call function_unit_create. | |
1328 | (cpu_init): If WITH_FUNCTION_UNIT, call function_unit_init. | |
1329 | (cpu_halt): If WITH_FUNCTION_UNIT, call function_unit_halt. | |
1330 | (cpu_function_unit): New function to return func_unit field. | |
1331 | ||
1332 | * cpu.h (function_unit.h): Include new include file. | |
1333 | (cpu_function_unit): Declare. | |
1334 | ||
1335 | * debug.c (stdlib.h): Test HAVE_STDLIB_H, not HAVE_STDLIB. | |
1336 | (config.h): Include config.h. | |
1337 | ||
1338 | * devices.c (icu_io_write_buffer_callback): Delete unused variable | |
1339 | system. | |
1340 | ||
1341 | * emul_generic.c (emul_exit_call): Print out status value. | |
1342 | ||
1343 | * emul_netbsd.c (do_read): Delete unused variable nr_moved. | |
1344 | ||
1345 | * filter_filename.h (includes): Include config.h, ppc-config.h, | |
1346 | not basics.h. | |
1347 | ||
1348 | * inline.c: Include bits.c if BITS_INLINE. Include | |
1349 | function_unit.c if FUNCTION_UNIT_INLINE. | |
1350 | ||
1351 | * inline.h (INLINE_BITS): Define if BITS_INLINE. | |
1352 | (INLINE_FUNCTION_UNIT): Define if FUNCTION_UNIT_INLINE. | |
1353 | ||
1354 | * interrupts.c (instruction_storage_interrupt): Delete unused | |
1355 | variable nia. | |
1356 | ||
1357 | * lf.h (config.h): Include config.h. | |
1358 | ||
1359 | * main.c (includes): Include function_unit.c. If HAVE_UNISTD_H, | |
1360 | include unistd.h. | |
1361 | (usage): Update for -m model, -i, and -I options. | |
1362 | (main): Delete unused variables stack_pointer and i. Add support | |
1363 | for -i, -m model arguments. Call psim_print_info with verbose == | |
1364 | 1 if -i, and verbose == 2 if -I. | |
1365 | ||
1366 | * mon.c (stdio.h): Include stdio.h to pick up sprintf prototype. | |
1367 | (mon_issue): Call function_unit_issue if function units are | |
1368 | supported. | |
1369 | (mon_print_info): Take psim * argument. Print out information | |
1370 | from function_unit if available. Move read/write stats to always | |
1371 | print, instead of printing if verbose > 1. Fix up plural | |
1372 | vs. singular usage. | |
1373 | ||
1374 | * mon.h (mon_print_info): Update prototype. | |
1375 | ||
1376 | * psim.c (current_ppc_model): Add global variable. | |
1377 | (psim_print_info): Pass system argument to mon_print_info. | |
1378 | ||
1379 | * sim_calls.c (function_unit.h): Include. | |
1380 | (sim_open): Add support for -i and -m model options. If -i call | |
1381 | psim_print_info with verbose == 1, if -I, with verbose == 2. | |
1382 | (sim_resume): Delete unused variable program_counter. | |
1383 | ||
1384 | * std-config.h (WITH_FUNCTION_UNIT): Define. | |
1385 | (ppc_model): Add enumeration giving all PowerPC models currently | |
1386 | known about. | |
1387 | ({WITH,CURRENT}_PPC_MODEL): Define. | |
1388 | (FUNCTION_UNIT_INLINE): Define. | |
1389 | ||
1390 | * table.c (config.h): Include config.h. | |
1391 | ||
1392 | * vm.c (om_virtual_to_real): Print pte_word_{0,1} so the compiler | |
1393 | doesn't complain that they're unused. | |
1394 | ||
1395 | * vm_n.h (vm_data_map_read_N): Delete unused variable rval. | |
1396 | ||
1397 | Mon Nov 6 23:15:54 1995 Andrew Cagney <cagney@highland.com.au> | |
1398 | ||
1399 | * sim-endian.c (ppc-endian.c), sim-endian.h (ppc-endian.h): | |
1400 | renameed. These files are target independant. | |
1401 | * Makefile.in, basics.h: update for new name. | |
1402 | ||
1403 | * sim-endian.h (SWAP_N), sim-endian.c (_SWAP_1): Rename existing | |
1404 | SWAP_<N> to _SWAP_<N> so that sim-endian.h can contain SWAP_N | |
1405 | macro's as required. | |
1406 | ||
1407 | * sim-endian.c, sim-endian-n.h (new file): Move endian code into a | |
1408 | debugable header file. | |
1409 | ||
1410 | * ppc-instructions (Byte-Reverse): Enable byte reverse | |
1411 | instructions using SWAP_N macros. | |
1412 | ||
0934e520 MM |
1413 | Mon Nov 6 10:39:28 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1414 | ||
bea95815 MM |
1415 | * Makefile.in (config.status): Remove references to config.make |
1416 | and config.hdr. | |
1417 | ||
0934e520 MM |
1418 | * config.{make,hdr}: Delete, no longer used. |
1419 | * build-psim: Ditto. | |
1420 | ||
4dcb0cdd MM |
1421 | Mon Nov 6 20:49:56 1995 Andrew Cagney <cagney@highland.com.au> |
1422 | ||
1423 | * sim_calls.c (sim_open): Fix parsing of `target sim' options. | |
1424 | ||
1425 | * device_tree.c (device_tree_add_string): Wasn't saving the value | |
1426 | of the string being entered into the tree. | |
1427 | ||
1428 | * psim.c (create_filed_device_tree): Not terminating string device | |
1429 | names with a null. | |
1430 | ||
1431 | * psim.c (psim_create): Use `env' instead of | |
1432 | `environment-architecture' to be consistent with configure. | |
1433 | Reconize user/uea, virtual/vea and operating/oea. | |
1434 | ||
01860b7e FF |
1435 | Sat Nov 4 12:29:45 1995 Fred Fish <fnf@cygnus.com> |
1436 | ||
1437 | * core.c: Rename to corefile.c | |
1438 | * core.h: Rename to corefile.h | |
1439 | * inline.c: Include corefile.h, renamed from core.h. | |
1440 | * cpu.h: Include corefile.h, renamed from core.h | |
1441 | * vm.c: Include corefile.h, renamed from core.h | |
1442 | * corefile.c: Include corefile.h rather than core.h | |
1443 | * README.psim (KNOWN PROBLEMS): Change core.* references to corefile.* | |
1444 | references. | |
1445 | * Makefile.in (CPU_H): Change core.h to corefile.h | |
1446 | (vm.o): Change dependency to corefile.h | |
1447 | (LIB_SRC): Change core.c to corefile.c. | |
1448 | (LIB_OBJ): Change core.o to corefile.o. | |
1449 | (corefile.o): Change dependencies to corefile.c, corefile.h. | |
1450 | ||
056e975c MM |
1451 | Fri Nov 3 11:37:24 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1452 | ||
1453 | * ppc-instructions (data cache instructions): Make all data cache | |
1454 | instructions nops instead of invalid instructions. | |
1455 | ||
1456 | * Makefile.in (CONFIG_CFLAGS): Add ALIGNMENT_CFLAGS and | |
1457 | TIMEBASE_CFLAGS which weren't included. | |
1458 | ||
a983c8f0 MM |
1459 | Thu Nov 2 08:54:04 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1460 | ||
e61900e6 MM |
1461 | * Makefile.in: Uncomment built file dependencies. |
1462 | ||
c494cadd MM |
1463 | * configure.in: Rewrite --enable-sim switch handling to use the |
1464 | autoconf builtins so it works correctly if the configure or | |
1465 | Makefile.in files are modified and make decides to rebuild | |
1466 | Makefile. Also document all of the --enable-sim switches | |
1467 | supported. Check whether getrusage and sys/resource.h are | |
1468 | supported. | |
1469 | * config.in: Regenerate. | |
1470 | * configure: Regenerate. | |
1471 | * Makefile.in: Add support for all of the variables set with | |
1472 | --enable-sim switches. | |
1473 | ||
1474 | * Makefile.in (clean): make clean now removes all built sources as | |
1475 | well. | |
1476 | ||
1477 | * cpu.c: Use HAVE_STRING_H, HAVE_STRINGS_H, HAVE_UNISTD_H, | |
1478 | HAVE_TIME_H, HAVE_SYS_TIMES_H, HAVE_SYS_RESOURCE_H defined in | |
1479 | the generated config.h. | |
1480 | * debug.c: Ditto. | |
1481 | * device_tree.c: Ditto. | |
1482 | * devices.c: Ditto. | |
1483 | * dgen.c: Ditto. | |
1484 | * emul_netbsd.c: Ditto. | |
1485 | * igen.c: Ditto. | |
1486 | * lf.c: Ditto. | |
1487 | * misc.c: Ditto. | |
1488 | * psim.c: Ditto. | |
1489 | * registers.c: Ditto. | |
1490 | * sim_calls.c: Ditt. | |
1491 | * table.c: Ditto. | |
1492 | ||
1493 | ||
a983c8f0 MM |
1494 | * main.c (main): Call psim_print_info with verbose == 2. |
1495 | ||
1496 | * mon.c (mon_print_info): Align the cpu number and number of | |
1497 | instructions fields. Do not print an instruction category if the | |
c494cadd MM |
1498 | CPU did not execute any of those instructions. Print out number |
1499 | of reads and writes. If getrusage is supported, print out number | |
1500 | of simulated instructins per second. | |
a983c8f0 MM |
1501 | |
1502 | * configure.in: Add support for --enable-sim-opcode=stupid. | |
1503 | * configure: Regenerate. | |
1504 | ||
1dc7c0ed | 1505 | Wed Nov 1 23:46:59 1995 Andrew Cagney <cagney@highland.com.au> |
a983c8f0 MM |
1506 | |
1507 | * std-config (INLINE_DEVICE_TREE): Don't inline either of | |
1508 | device_tree.c or devices.c. There is no significant gain. | |
1509 | ||
1510 | * configure.in, Makefile.in: add --enable-sim-icache=[0-9]* and | |
1511 | IGEN_ICACHE macro. | |
1512 | ||
1dc7c0ed | 1513 | Wed Nov 1 23:46:59 1995 Andrew Cagney <cagney@highland.com.au> |
a983c8f0 MM |
1514 | |
1515 | * igen.c (main), misc.h (target_a2i, i2target), misc.c: Add | |
1516 | functions to convert between target and igen internal bit numbers. | |
1517 | Make IO go through these functions. Add -b (bit size) and -h (high | |
1518 | bit nr) options to igen. Typical usage would be: ./igen -b 16 -h | |
1519 | 15 for a 16 bit instruction format with the msb given a number 15. | |
1520 | ||
1dc7c0ed | 1521 | Wed Nov 1 22:17:32 1995 Andrew Cagney <cagney@highland.com.au> |
a983c8f0 MM |
1522 | |
1523 | * dgen.c (main): Was outputting optarg even when it was NULL. | |
1524 | ||
1dc7c0ed | 1525 | Tue Oct 31 23:48:33 1995 Andrew Cagney <cagney@highland.com.au> |
a983c8f0 MM |
1526 | |
1527 | * vm_n.h (vm_data_map_load_N, vm_data_map_store_n), debug.h, | |
1528 | debug.c: Add tracing of load/store unit (virtual) with -t | |
1529 | load-store. | |
1530 | ||
1dc7c0ed | 1531 | Tue Oct 31 21:44:01 1995 Andrew Cagney <cagney@highland.com.au> |
a983c8f0 MM |
1532 | |
1533 | * std-config.h (WITH_ENVIRONMENT): Add USER_ENVIRONMENT which does | |
1534 | not include things such as the time base and events. | |
1535 | ||
1536 | * interrupt.c, sim_calls.c, cpu.h, vm.c, configure.in: Add UEA to | |
1537 | all environment switches for above. | |
1538 | ||
1539 | * psim.c (psim_create): ditto - new device tree node name is | |
1540 | /options/environment-architecture with values user, virtual and | |
1541 | operating. | |
1542 | ||
1dc7c0ed | 1543 | Tue Oct 31 21:31:32 1995 Andrew Cagney <cagney@highland.com.au> |
a983c8f0 MM |
1544 | |
1545 | * ppc-opcode-stupid: Third example of use of opcode table - this | |
1546 | one expands all mtspr/mfspr and branch instructions. Appears to | |
1547 | give about a 10% gain in performance if everything enabled. Also | |
1548 | takes about 150mb of swap to build. | |
1549 | ||
c143ef62 MM |
1550 | Wed Nov 1 10:49:48 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1551 | ||
1552 | * emul_netbsd.c (do_exit): Print arguments and close parenthesis | |
1553 | if tracing, since exit doesn't go through emul_exit_call. | |
1554 | (do_read): Print arguments if tracing. | |
1555 | (do_write): Ditto. | |
1556 | (do_open): Ditto. | |
1557 | (do_break): Ditto. | |
1558 | (do_kill): Ditto. | |
1559 | (do_dup): Ditto. | |
1560 | (do_sigprocmask): Replace trace with printing arguments if | |
1561 | tracing. | |
1562 | (do_ioctl): Print arguments if tracing. | |
1563 | (do_umask): Ditto. | |
1564 | (do_dup2): Ditto. | |
1565 | (do_fcntl): Ditto. | |
1566 | (do_gettimeofday): Ditto. | |
1567 | (do_getrusage): Ditto. | |
1568 | (do_fstatfs): Ditto. | |
1569 | ||
1570 | * filter_filename.c: New file to provide filter_filename to strip | |
1571 | the directory prefix from a file. | |
1572 | * filter_filename.h: New include file to declare filter_filename. | |
1573 | ||
1574 | * debug.h: Include filter_filename.h. | |
1575 | (TRACE,DTRACE,ERROR): Use filter_filename on __FILE__. | |
1576 | ||
1577 | * misc.h: Include filter_filename.h. | |
1578 | (ASSERT): Use filter_filename on __FILE__. | |
1579 | ||
1580 | * igen.c (lf_print_my_prefix): Use filter_filename on the filename | |
1581 | argument. | |
1582 | ||
1583 | * Makefile.in: Add filter_filename support. | |
1584 | ||
1585 | * ppc-instructions (dcbi, icbi): Make these NOPs rather than | |
1586 | invalid instructions. | |
1587 | ||
1588 | * configure.in: Add support for more --enable-sim-* switches. | |
1589 | Use config.make and config.hdr to write to Makefile and config.h | |
1590 | respectively. Don't rewrite Makefile, just append to it. | |
1591 | * configure: Regenerate. | |
1592 | * config.{make,hdr}: New shell scripts. | |
1593 | ||
1594 | * Makefile.in: Remove all variables set by configure.in. | |
1595 | (psim.o): Depend on $(BUILT_SRC) also. | |
1596 | ||
1597 | * emul_netbsd.c (do_gettimeofday,do_getrusage): When comparing an | |
1598 | integer, use 0, not NULL. | |
1599 | ||
4b935ed4 MM |
1600 | Tue Oct 31 15:20:04 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1601 | ||
1602 | * configure.in: Add support for --enable-sim-inline, | |
1603 | --enable-sim-bswap, --enable-sim-cflags, --enable-sim-complex, | |
1604 | --enable-sim-switch, --enable-sim-duplicate, --enable-sim-filter, | |
1605 | and --enable-sim-endian switch to control various Makefile | |
1606 | variables. | |
1607 | * configure: Regenerate from configure.in. | |
c143ef62 MM |
1608 | * Makefile.in: Add various Make variables that the various |
1609 | switches alter. | |
4b935ed4 MM |
1610 | |
1611 | * std-config.h (DEFAULT_INLINE): Don't set this to 2 if using GCC | |
1612 | and optimizing by default. | |
1613 | ||
c143ef62 | 1614 | Fri Oct 27 19:26:27 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
1615 | |
1616 | * bits.h (ROTL32, ROTL64): Were functions, made them macros, now | |
1617 | make them functions again. Appears 2.6.3 is confused by just a | |
1618 | macro. | |
1619 | ||
c143ef62 | 1620 | Thu Oct 26 18:31:58 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
1621 | |
1622 | * ppc-endian.c (SWAP_8): Fix 8 byte swap! | |
1623 | ||
1624 | * psim.c (psim_create): Not correctly checking that runtime | |
1625 | configuration of things like ENDIAN, ENVIRONMENT and ALIGNMENT | |
1626 | matched the compiled in ones. | |
1627 | ||
1628 | * debug.h (ITRACE), igen.c: Tidy up more tracing flags - | |
1629 | trace_semantics is now different to trace_idecode, the former | |
1630 | checks the cache. | |
1631 | ||
c143ef62 | 1632 | Tue Oct 24 21:54:13 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
1633 | |
1634 | * ppc-instructions (mtsrin): Missing instruction | |
1635 | * ppc-instructions (mfsrin): Missing instruction | |
1636 | * ppc-instructions (eieio): Missing instruction | |
1637 | ||
c143ef62 | 1638 | Tue Oct 24 20:55:29 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
1639 | |
1640 | * build-psim: New shell script - see internals for usage, | |
1641 | simplifies the process of building custom simulators. | |
1642 | ||
c143ef62 | 1643 | Mon Oct 23 23:48:59 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
1644 | |
1645 | * std-config.h (SEMANTICS_INLINE): Tidy up notes on each of the | |
1646 | INLINE macros. Make SEMANTICS_INLINE == 1 if DEFAULT_INLINE == 2. | |
1647 | Don't use DEFAULT_INLINE to define REGISTERS_INLINE DEVICES_INLINE | |
1648 | DEVICE_TREE_INLINE or INTERRUPTS_INLINE as none of these are on | |
1649 | the instruction or data critical paths. | |
1650 | ||
5b4d72dd MM |
1651 | * FIXME: devices.c/emul_netbsd.c would benefit (slightly) from |
1652 | the inclusion of device_tree.c/emul_generic.c. | |
1653 | ||
c143ef62 | 1654 | Mon Oct 23 00:31:50 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
1655 | |
1656 | * os_emul.[hc], emul_generic.[hc], emul_netbsd.[hc]: replace | |
1657 | system.[hc]. Start of suport for multiple emulations and | |
1658 | emulation state (os_emul object). | |
1659 | ||
1660 | * emul_generic.[hc]: Start of code to implement proper system call | |
1661 | tracing (from spy). | |
1662 | ||
c143ef62 | 1663 | Sun Oct 22 21:33:51 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
1664 | |
1665 | * cpu.h, cpu.c (cpu_init): New function, zero the registers before | |
1666 | the processor is started. Fixes problem of registers being | |
1667 | undefined when restarting from within gdb. | |
1668 | ||
1669 | * cpu.h, cpu.c (cpu_flush_icache): New function, flushes the | |
1670 | instruction cache (if present). Fixes problem of cpu caching gdb | |
1671 | breakpoint instructions. | |
1672 | ||
1673 | FIXME: PSIM sometimes aborts calling error(), it should instead | |
1674 | call sim_error() say which takes care of housekeeping such as | |
1675 | saving the CIA before calling error. | |
1676 | ||
1677 | * NOTE: cpu_flush_cache() instead of cpu_synchronize_context() is | |
1678 | used when restarting a simulation because the latter has the | |
1679 | unwanted side effect (well I as a kernel hacker think it is) of | |
1680 | performing an isync when the instruction stream doesn't contain | |
1681 | one. | |
1682 | ||
c143ef62 | 1683 | Sun Oct 22 19:27:48 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
1684 | |
1685 | * mon.h (new), mon.c (new), std-config.h (WITH_MON): Performance | |
1686 | monitoring module. Counts both instructions issued and | |
1687 | load/stores. | |
1688 | ||
1689 | * NOTE: mon does not contain to count instruction loads as this | |
1690 | information is already available from the mon_issue() hook. | |
1691 | ||
5b4d72dd MM |
1692 | * igen.c (lf_print_c_semantic), vm_n.h: Add counting code. |
1693 | ||
1694 | * psim.h, psim.c (psim_create), cpu.h, cpu.c (cpu_create): Attach | |
1695 | a common monitor to each of the cpus. Delete | |
1696 | cpu_increment_number_of_insns() and cpu_get_number_of_insns() | |
1697 | replaced by copied code in mon.[hc]. | |
1698 | ||
c143ef62 | 1699 | Sun Oct 22 18:42:45 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
1700 | |
1701 | * sim_calls.c, main.c, psim.c (psim_create): always create | |
1702 | `WITH_SMP' cpus. The actual number of CPU's active in a | |
1703 | simulation run is taken from the device node: /init/smp (an | |
1704 | integer). WITH_SMP changed to 2 (remember to put it back to 0). | |
1705 | ||
c143ef62 | 1706 | Fri Oct 20 17:26:54 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
1707 | |
1708 | * system.c: More system call emulation. If code appears NetBSD | |
1709 | specific, make conditional to being compiled on a NetBSD system | |
1710 | (sigh). | |
1711 | ||
c143ef62 | 1712 | Wed Oct 18 23:02:20 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
1713 | |
1714 | * Makefile.in, gen.c(delete), igen.c(new), dgen.c(new), | |
1715 | lf.[ch](new), table.[ch](new): Split into two generators - igen | |
1716 | that outputs the instruction tables and dgen that outputs the spr | |
1717 | tables. Add -f (filter out) flag to igen to filter out certain | |
1718 | instructions (ex 64 bit ones) from the created tables. Include | |
1719 | $(LIBIBERTY_LIB) in link options in case host lacks some libc | |
1720 | functions. | |
1721 | ||
1722 | * NOTE: igen, since it was originally written for the | |
1723 | PowerPC/RS6000, things the MSB is 0 and the LSB is 63{31}. | |
1724 | ||
1725 | * Makefile.in, std-config.h, ppc-cache-rules(new), | |
1726 | ppc-opcode-complex(new), ppc-opcode-simple(new): (for igen) Create | |
1727 | cache-rule and opcode-rule tables from macros found std-config.h. | |
1728 | Delete corresponding macro's from std-config.h. | |
1729 | ||
5b4d72dd MM |
1730 | * igen.c (gen_itable_c, gen_itable_h), Makefile.in: code to output |
1731 | an table of all the instructions. Code to output a type | |
1732 | enumerating all the instructin names. | |
1733 | ||
1734 | * igen.c(lf_print_c_semantic): Move call to increment instruction | |
1735 | counter so that it occures _after_ the instruction has been fully | |
1736 | validated, was double counting illegal/invalid instructions. Add | |
1737 | conditional so only compiled in when WITH_PROFILE enabled (enabled | |
1738 | by default). | |
1739 | ||
1740 | * igen.c, cpu.h, cpu.c(cpu_increment_number_of_insns): Include | |
1741 | itable.h, count individual instruction types not just total, | |
1742 | adjust reporting functions to output this. | |
1743 | ||
1744 | * ppc-instructions (64 bit Load Doubleword with Update Indexed): | |
1745 | Had 32./ instead of 31./ | |
1746 | ||
1747 | * ppc-instructions (64 bit Store Double Word Conditional Indexed): | |
1748 | bitrot - updated to use newer CR register operators. | |
1749 | ||
1750 | * ppc-instructions (64bit Floating Convert from Integer | |
1751 | Doubleword): Correct call to Round_Float(). | |
1752 | ||
c143ef62 | 1753 | Mon Oct 16 00:31:20 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
1754 | |
1755 | * basics.h: #include "sim_callbacks.h" earlier so that its | |
1756 | prototypes are declared in all other header files. | |
1757 | ||
1758 | * bits.h, bits.c, idecode_expression.h (ROTL32, ROTL64): Update | |
1759 | doc in bits.h, remove dead code in bits.c, move ROTL32/ROTL64 into | |
1760 | bits.h. | |
1761 | ||
5b4d72dd MM |
1762 | * cpu.c(cpu_add_commas), device_tree.h, device_tree.c(scand_*): |
1763 | Add size of buffer argument to functions writing a string into a | |
1764 | buffer. Check for buffer overflow. | |
1765 | ||
c143ef62 | 1766 | Sun Oct 15 22:16:11 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
1767 | |
1768 | * devices.h, devices.c, debug.h, debug.c: add macro's for tracing | |
1769 | of each device. Make parameter names consistent so macros work. | |
1770 | Use macro's in device functions. | |
1771 | ||
1772 | * device_tree.c, devices.h, devices.c: include path to device in a | |
1773 | devices node when creating it. | |
1774 | ||
1775 | * device_tree.c, debug.h, debug.c: Add tracing of `device-tree'. | |
1776 | ||
1777 | * core.c: add tracing of core-device, adjust parameter names in | |
1778 | core functions to be consistent with those in devices*. | |
1779 | ||
c143ef62 | 1780 | Sun Oct 15 20:33:20 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
1781 | |
1782 | * debug.h, debug.c (trace_option): New function. Parses the trace | |
1783 | option, updating the trace array. | |
1784 | ||
1785 | * debug.h, debug.c (trace_usage): New function. Outputs the list | |
1786 | of all possible trace options. | |
1787 | ||
1788 | * sim_calls.c (sim_open), main.c (main): Use new trace_option() to | |
1789 | parse trace options specified with the simpler -t flag. Adjust | |
1790 | usage. | |
1791 | ||
1792 | * FIXME: basic parsing of command line options is still duplicated | |
1793 | by main.c and sim_calls.c | |
1794 | ||
22ddef46 MM |
1795 | Thu Oct 26 10:42:28 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1796 | ||
e89929cd MM |
1797 | * Makefile.in (clean): Delete *.i and *.out files. |
1798 | ||
22ddef46 MM |
1799 | * ppc-endian.c (SWAP_n): Add SET argument to allow use of SWAP |
1800 | macros for either assignment or return. Fix SWAP_8 to use a | |
1801 | union, and two SWAP_4's. Delete SWAP_N, since nobody uses it now. | |
1802 | (ENDIAN_N): Add SET argument to SWAP_n calls. Delete macro defs | |
1803 | that hardwired swapping on/off, let optimizer delete dead code. | |
1804 | ||
1805 | * main.c (main): Add printf that we caught a signal and print out | |
1806 | the failing address. | |
1807 | ||
64415b76 FF |
1808 | Thu Oct 19 21:43:39 1995 Fred Fish <fnf@fishfood.amigalib.com> |
1809 | ||
1810 | * Makefile.in: Remove tabs from otherwise empty line. | |
1811 | Confuses many non-GNU versions of "make". | |
1812 | ||
1813 | Wed Oct 18 08:51:25 1995 Michael Meissner <meissner@tiktok.cygnus.com> | |
1814 | ||
1815 | * Makefile.in (clean): Delete files produced by gen. | |
1816 | ||
5b0d3b14 MM |
1817 | Mon Oct 16 17:34:24 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1818 | ||
1819 | * gen.c (lf_print_c_semantic_function): Move counting # of | |
1820 | instructions here so it works with caching. | |
1821 | (gen_idecode_c): Move from here. | |
1822 | ||
9aa8a788 MM |
1823 | Wed Oct 11 17:13:15 1995 Andrew Cagney <cagney@highland.com.au> |
1824 | ||
1825 | * gen.c, ppc-instructions, psim.c: Fix code for generating | |
1826 | cracking instruction cache. Delete the code that cached just the | |
1827 | result from doing an instruction lookup - this ran slower than no | |
1828 | cache at all. | |
1829 | ||
a1fe883f MM |
1830 | Fri Oct 13 09:58:43 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1831 | ||
9aa8a788 MM |
1832 | * Makefile.in (gen.o): Include $(INLINE_CFLAGS). |
1833 | ||
a1fe883f MM |
1834 | * debug.h (ppc_trace): Rename from trace, to avoid a conflict with |
1835 | TCL when gdb is linked with the simulator. | |
1836 | * debug.c (ppc_trace): Ditto. | |
1837 | * sim_calls.c (sim_open): Change trace -> ppc_trace. | |
1838 | * main.c (main): Ditto. | |
1839 | ||
1840 | * cpu.c (cpu_add_commas): Remove extra static. | |
1841 | ||
8e20a3ac MM |
1842 | Thu Oct 12 11:35:53 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1843 | ||
9f5912cb MM |
1844 | * Makefile.in (psim.o): Now that inlines are turned on, make |
1845 | psim.o depend on all sources. | |
1846 | ||
1847 | * cpu.c (cpu_add_commas): New function to format a long with | |
1848 | commas. | |
1849 | (cpu_print_info): Use it to print number_of_insns. | |
1850 | ||
a8958dd4 MM |
1851 | * ppc-endian.c (SWAP_n): New macros to speed up byte swapping for |
1852 | 2, 4, and 8 bytes. | |
1853 | (ENDIAN_N): If both target and host byte orders are known, don't | |
1854 | bother testing CURRENT_{TARGET,HOST}_BYTE_ORDER. | |
1855 | ||
1856 | * ppc-endian.h (target specific H2T_n/T2H_n macros): Remove #if 0 | |
1857 | to allow target specific H2T_n/T2H_n macros to be used. | |
1858 | (htonl, ntohl): If compiled on a 486 by GCC and WITH_BSWAP is | |
1859 | non-zero, redefine the htonl/ntohl macros to use the BSWAP instead | |
1860 | of the 3 instruction sequence that runs on 386s. | |
1861 | ||
1862 | * std-config.h (WITH_{HOST,TARGET}_BYTE_ORDER): Don't override if | |
1863 | specified on the compile line. | |
1864 | (WITH_BSWAP): If not defined, define as 0. | |
1865 | ||
8e20a3ac MM |
1866 | * Makefile.in (INLINE_CFLAGS): Add -DDEFAULT_INLINE=2 to add |
1867 | default inline support. Pass INLINE_CFLAGS when compiling. | |
1868 | ||
1869 | * devices.{h,c} (unimp_device_ioctl): Use STATIC_DEVICES, not | |
1870 | INLINE_DEVICES since GCC doesn't like inline functions that | |
1871 | accept variable arguments. | |
1872 | (stack_ioctl_callback): Make function just static because GCC | |
1873 | doesn't like inline functions that accept variable arguments. | |
1874 | ||
1875 | * devices.h (STATIC_DEVICES): Define as empty if not defined. | |
1876 | ||
1877 | * inline.c: Correct pathnames of included C files to match current | |
1878 | implementation. | |
1879 | ||
1880 | * inline.h (STATIC_DEVICES): If DEVICES_INLINE is defined to be | |
1881 | non-zero, define STATIC_DEVICES to be static. | |
1882 | ||
1883 | * std-config.h (INLINE): If GNU C and optimizing, define this as | |
1884 | __inline__. | |
1885 | (DEFAULT_INLINE): If not defined, define as 0. | |
1886 | (ENDIAN_INLINE): If not defined, define as DEFAULT_INLINE. | |
1887 | ({CORE,VM,CPU,EVENTS,REGISTERS,INTERRUPTS}_INLINE): Ditto. | |
1888 | ({SPREG,IDECODE}_INLINE): Ditto. | |
1889 | ||
c143ef62 | 1890 | Wed Oct 11 17:13:15 1995 Andrew Cagney <cagney@highland.com.au> |
8e20a3ac MM |
1891 | |
1892 | * ppc-instructions: Initial cut of floating point suport added. | |
1893 | Of note include - use of host IEEE floating point instructions, | |
1894 | use of PowerPC manual pseudo code to handle the FPSCR. It is not | |
1895 | currently a pretty sight. | |
1896 | ||
1897 | * memory_map.h, memory_map.c, memory_map_n.h, core.h, core.c: | |
1898 | merge into core.h, core.c, core_n.h. The type memory_map replaced | |
1899 | with core_map. This removes a level of pointer indirection when | |
1900 | translating an address. | |
1901 | ||
1902 | * memory_map.h, memory_map.c, memory_map_n.h: delete. | |
1903 | ||
1904 | * Makefile.in et.al (sorry): tweek to use new core, core_map and | |
1905 | core.h. | |
1906 | ||
c143ef62 | 1907 | Wed Oct 11 12:10:26 1995 Andrew Cagney <cagney@highland.com.au> |
8e20a3ac MM |
1908 | |
1909 | * sim_calls.c, main.c: Add -g (trace_gdb) option, add tracing to | |
1910 | most of the other functions in sim_calls.c. | |
1911 | ||
1912 | * basics.h (CONCAT3), memory_map.c, memory_map_n.h, Makefile.in: | |
1913 | Add macros to better cover up `generic' code. Makes it possible | |
1914 | to step through the generic code! | |
1915 | ||
1916 | * vm.c, vm_n.h, Makefile.in: ditto | |
1917 | ||
c143ef62 | 1918 | Tue Oct 10 15:42:59 1995 Andrew Cagney <cagney@highland.com.au> |
8e20a3ac MM |
1919 | |
1920 | * devices.h, devices.c, memory_map.h, memory_map.c: Changed | |
1921 | callback interface so that there is a read/write buffer but no | |
1922 | read/write_word. VEA default memory read/write handler sometimes | |
1923 | couldn't resolve an access and of those some were for a memory | |
1924 | fault and some were because gdb was making a bogus request. | |
1925 | ||
1926 | * devices.h, devices.c, memory_map.h, memory_map.c, vm.h, vm.c: | |
1927 | eliminate transfer_mode (raw or cooked) parameter from read/write | |
1928 | buffer. | |
1929 | ||
c143ef62 | 1930 | Fri Oct 6 20:23:56 1995 Andrew Cagney <cagney@highland.com.au> |
8e20a3ac MM |
1931 | |
1932 | * ppc-instructions (fmul, fmuls): correct instruction format - had | |
1933 | FRB instead of FRC. | |
1934 | ||
c143ef62 | 1935 | Wed Oct 4 17:31:12 1995 Andrew Cagney <cagney@highland.com.au> |
8e20a3ac MM |
1936 | |
1937 | * psim.c, device_tree.h, device_tree.c, devices.c (printd_*, | |
1938 | scand_*): new functions to parse/print fields in device names | |
1939 | while hiding any machine dependency. | |
1940 | ||
1941 | * devices.c, psim.c: Change the stack init code so that it is | |
1942 | handled by a device. Arguments passed across using a device ioctl | |
1943 | (hack). | |
1944 | ||
1945 | * devices.h, devices.c: device ioctl callback changed to allow a | |
1946 | variable number of arguments. This gives greater flexability and | |
1947 | greater chance of bugs. | |
1948 | ||
c143ef62 | 1949 | Tue Oct 3 22:01:56 1995 Andrew Cagney <cagney@highland.com.au> |
8e20a3ac MM |
1950 | |
1951 | * main.c (printf_filtered, error): Missing va_end() to close off | |
1952 | variable argument use. | |
1953 | ||
1954 | * Makefile.in (tmp-gencode): comment out hack to get around some | |
1955 | versions of make not handling files being created as side-effects. | |
1956 | ||
1957 | * gen.c (lf_open): Add -n (real_file_name) option. Specifies an | |
1958 | alternative file name to use in output files for things like #line | |
1959 | macros. | |
1960 | ||
1961 | Makefile.in (tmp-gencode): Use gen -n so that debug info is | |
1962 | correct. | |
1963 | ||
1964 | * Makefile.in (TARGETLIB): Use this instead of libsim.a in the | |
1965 | Makefile. | |
1966 | ||
f46f3807 MM |
1967 | Sat Oct 7 22:40:59 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1968 | ||
1969 | * sim_calls.c (sim_set_callbacks): Define new function. | |
1970 | ||
7ca054e8 MM |
1971 | Fri Oct 6 17:23:10 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1972 | ||
1973 | * psim.c (psim_print_info): Print exit status or signal number. | |
1974 | ||
8eab189b MM |
1975 | Mon Oct 2 11:46:37 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1976 | ||
344d5a23 | 1977 | * cpu.c (struct _cpu): Add number_of_insns field to trace how many |
83d96c6e MM |
1978 | instructions are executed. |
1979 | (cpu_increment_number_of_insns): New function to increment the | |
1980 | number of instructions issued. | |
1981 | (cpu_get_number_of_insns): New function to return the number of | |
1982 | instructions issued. | |
1983 | (cpu_print_info): New function to print cpu related information. | |
1984 | At present, print the number of instructions executed. | |
1985 | ||
1986 | * gen_idecode_c: Emit call to cpu_increment_number_of_insns within | |
1987 | idecode_issue. | |
1988 | ||
1989 | * psim.c (psim_print_info): New function to iterate over each of | |
1990 | the CPU's calling cpu_print_info. | |
1991 | ||
1992 | * psim.h,cpu.h: Add new declarations. | |
1993 | ||
8eab189b MM |
1994 | * sim_calls.c (sim_open): Add argument processing to add the same |
1995 | switches main.c accepts for the standalone processor. | |
83d96c6e MM |
1996 | (sim_close): Call psim_print_info if -I. |
1997 | ||
8eab189b | 1998 | * main.c (main): Add comment saying to update sim_calls.c when |
83d96c6e | 1999 | adding switches. Add -I to call psim_print_info when done. |
e1aaf979 | 2000 | (usage): Update usage message. |
8eab189b | 2001 | |
d8d46596 MM |
2002 | Sun Oct 1 13:52:59 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
2003 | ||
2004 | * main.c (printf_filtered): Correct to match new prototype. | |
2005 | ||
9d3b4701 MM |
2006 | Sat Sep 30 20:47:05 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
2007 | ||
2008 | * sim_callbacks.h (printf_filtered): Correct prototype. | |
2009 | ||
4f35cbff MM |
2010 | Thu Sep 21 16:26:49 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
2011 | ||
9d3b4701 MM |
2012 | * device_tree.c (OEA_MEMORY_SIZE): Define if not defined to |
2013 | 0x100000. | |
2014 | (clayton_memory_size): Define as OEA_MEMORY_SIZE. | |
2015 | ||
4f35cbff MM |
2016 | * std-config.h (WITH_TRACE): Default to 1 now. |
2017 | ||
2018 | * psim.c (write_stack_arguments): Don't write any stack arguments | |
2019 | if OEA. | |
2020 | ||
2021 | * main.c (main): Switch to using getopt. Make -p also set | |
9d3b4701 MM |
2022 | trace_semantics. Make -a turn on all trace flags. Make -C turn |
2023 | on console tracing. | |
4f35cbff MM |
2024 | |
2025 | * device_tree.c (create_option_device_node): Assume a program is | |
2026 | OEA if the start address is < 4096, not just == 0. | |
2027 | ||
602677ad ILT |
2028 | Wed Sep 20 13:36:06 1995 Ian Lance Taylor <ian@cygnus.com> |
2029 | ||
2030 | * Makefile.in (maintainer-clean): New synonym for realclean. | |
2031 | ||
0384d2e3 MT |
2032 | Sun Sep 10 10:23:56 1995 Michael Tiemann <tiemann@axon.cygnus.com> |
2033 | ||
2034 | * registers.c (register_description): Add gdb synonyms for cr | |
2035 | (cnd) and msr (ps). | |
2036 | ||
2037 | Fri Sep 8 13:16:10 1995 Ian Lance Taylor <ian@cygnus.com> | |
2038 | ||
2039 | * Makefile.in (install): Don't install in $(tooldir). | |
2040 | ||
8b3797aa MM |
2041 | * configure.in: Call AC_CONFIG_HEADER. Don't try to use |
2042 | bfd/hosts/*.h file or bfd/config/*.mh file. Call AC_PROG_CC and | |
2043 | AC_PROG_RANLIB. Substitute in values for CFLAGS, HDEFINES, AR, | |
2044 | and CC_FOR_BUILD. Call AC_CHECK_HEADERS for various header files. | |
2045 | Touch stamp.h if creating config.h. | |
2046 | * configure: Rebuild. | |
2047 | * config.in: New file, created by autoheader. | |
2048 | * Makefile.in (AR): Define as @AR@. | |
2049 | (CC): New variable, defined as @CC@. | |
2050 | (CFLAGS): Define as @CFLAGS@. | |
2051 | (CC_FOR_BUILD): New variable, defined as @CC_FOR_BUILD@. | |
2052 | (RANLIB): Define as @RANLIB@. | |
2053 | (HDEFINES, TDEFINES): New variables. | |
2054 | (@host_makefile_frag@): Remove. | |
2055 | (mostlyclean): Make the same as clean, not distclean. | |
2056 | (clean): Remove config.log. | |
2057 | (distclean): Remove config.h and stamp-h. | |
2058 | (Makefile): Don't depend upon @frags@. Just rebuild Makefile when | |
2059 | invoking config.status. | |
2060 | (config.h, stamp-h): New targets. | |
2061 | (gen, gen.o): Build with CC_FOR_BUILD, not CC. | |
2062 | (ppc-config.h): Rename from old config.h build. | |
2063 | * (basics.h,gen.c,ppc-endian.c,psim.c): Include ppc-config.h. | |
2064 | ||
4f965b81 MM |
2065 | Fri Sep 8 09:51:03 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
2066 | ||
2067 | * configure{,.in}: Don't include sysdep.h from bfd, since bfd no | |
2068 | longer provides it. | |
2069 | * basics.h (sysdep.h): Don't include it. | |
2070 | * Makefile.in (BASICS_H): Remove sysdep.h. | |
2071 | ||
c143ef62 | 2072 | Wed Sep 6 13:25:42 1995 Andrew Cagney <cagney@highland.com.au> |
4f965b81 MM |
2073 | |
2074 | * core.c (core_add_data): First growth of bss was being put at | |
2075 | wrong address (0) instead of &end. | |
2076 | ||
2077 | * core.c (core_add_stack, core_add_data): Was not handling case | |
2078 | where bss/stack is grown across the current end-of-{bss,stack}. | |
2079 | ||
c143ef62 | 2080 | Wed Sep 6 00:46:10 1995 Andrew Cagney <cagney@highland.com.au> |
4f965b81 MM |
2081 | |
2082 | * system.c (system_call): Fix SYS_break - was aligning bss to a | |
2083 | page boundary instead of just an 8 byte one; On first call sbrk(0) | |
2084 | != sbrk(0). | |
2085 | ||
2086 | Thu Aug 24 14:48:54 1995 Michael Meissner <meissner@tiktok.cygnus.com> | |
2087 | ||
2088 | * Makefile.in (install): Fix install rule. | |
2089 | ||
cb7a6892 MM |
2090 | Tue Aug 22 09:31:18 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
2091 | ||
2092 | * system.c (system_call): Add read support. | |
2093 | ||
2094 | * main.c (main): -t sets trace_device_tree. Correct usage message | |
2095 | to current reality. | |
2096 | ||
2097 | * device_tree.c (update_memory_node_for_section): Make tracing | |
2098 | output line up. If not code or readonly, assume that the section | |
2099 | is a data section and has read/write permissions. Add readonly | |
2100 | support. | |
2101 | ||
2102 | * core.c (create_core_from_addresses): Print end address in traces | |
2103 | and make tracing output line up. | |
2104 | ||
2105 | * Makefile.in: Rewrite from Makefile to work with the Cygnus | |
2106 | environment, and support compiling in a different directory than | |
2107 | the sources reside in. | |
2108 | ||
2109 | * ppc-endian.h: Rename from endian.h so that it doesn't get | |
2110 | confused with /usr/include/sys/endian.h on Linux. Add Linux | |
2111 | endian support. | |
2112 | ||
2113 | * ppc-endian.c: Rename to be consistant with ppc-endian.h. | |
2114 | Include ppc-endian.h, not endian.h. | |
2115 | ||
2116 | * basics.h (sysdep.h): Include sysdep.h that configure makes. | |
2117 | Include ppc-endian.h, not endian.h. | |
2118 | ||
2119 | * std-config.h: Rename from ppc-config. Put #ifndefs around most | |
2120 | configuration macros, so they can be overridden via CFLAGS. By | |
2121 | default, turn off tracing. | |
2122 | ||
2123 | * configure.in: Clone from other simulator targets. | |
2124 | * configure: Generate via autoconf from configure.in. | |
2125 | ||
c143ef62 | 2126 | Sat Aug 19 09:05:32 1995 Andrew Cagney <cagney@highland.com.au> |
cb7a6892 MM |
2127 | |
2128 | * ppc-instructions: fix srawi (was geting XER[CA] real wrong). | |
2129 | ||
2130 | * interrupts.c (data_storage_interrupt): allow stack to grow by | |
2131 | upto one MB per increment. | |
2132 | ||
2133 | * ppc-instructions: divw was computing rA / rA not rA / rB | |
2134 | ||
2135 | * main.c (main): really stupid. Wasn't exiting with correct status | |
2136 | ||
c143ef62 | 2137 | Fri Aug 18 00:38:01 1995 Andrew Cagney <cagney@highland.com.au> |
cb7a6892 MM |
2138 | |
2139 | * system.c (system_call): add system calls kill(2) and getpid(2). | |
2140 | ||
2141 | * main.c (main): Check/return exit status when simulation | |
2142 | finishes. | |
2143 | ||
c143ef62 | 2144 | Thu Aug 17 14:29:18 1995 Andrew Cagney <cagney@highland.com.au> |
cb7a6892 MM |
2145 | |
2146 | * device_tree.c (create_option_device_node): Alignment rules (at | |
2147 | least for the moment) now are for strict alignment only for LE OEA | |
2148 | mode. (Because of compiler problems). | |
2149 | ||
2150 | * system.c (system_call) SYS_exit: Wasn't exiting with correct status. | |
2151 | ||
c143ef62 | 2152 | Thu Aug 17 01:16:38 1995 Andrew Cagney <cagney@highland.com.au> |
cb7a6892 MM |
2153 | |
2154 | * vm.c (DEFINE_VM_DATA_MAP_WRITE_N): For miss aligned transfer | |
2155 | forgot to return. | |
2156 | ||
2157 | * system.c (system_call): didn't page align break argument before | |
2158 | determining increment break increment. | |
2159 | ||
2160 | * psim/ppc: Re-arange entire directory structure so that | |
2161 | everything lives in the one directory. While a pain for cleaning, | |
2162 | makes building across multiple architectures much simpler. | |
2163 | ||
2164 | * devices.c, device_tree.c: Added code that provides a simple | |
2165 | illustration of how an interrupt control device could be | |
2166 | implemented. | |
2167 | ||
2168 | * devices.c: Added code so that the dumb console device can read | |
2169 | (from stdin) as well as write to stdout. | |
2170 |