]>
Commit | Line | Data |
---|---|---|
eb4ef197 MM |
1 | Sun Nov 12 07:58:09 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
2 | ||
3 | * igen.c (model_table_insert_{macro,function}): New functions. | |
4 | (insn_table_load_insns): Call them. | |
5 | (gen_model_h): Move section emiting model-macros to be first. | |
6 | (model_{c,h}_function): New functions cloned from semantic | |
7 | functions to print out the prototype and function for | |
8 | model-functions. | |
9 | (gen_model_{c,h}): Print out model-functions. | |
10 | ||
11 | * ppc-instructions (model_{start,halt,print_info}): Add dummy | |
12 | model-functions. | |
28816f45 MM |
13 | |
14 | * options.c (print_options): Print out WITH_{,DEFAULT_}MODEL, not | |
15 | WITH_PPC_{,DEFAULT_}_MODEL. | |
16 | (options_ppc): Delete now unused function. | |
17 | (cpu.h): Include cpu.h, not just basics.h. | |
18 | ||
19 | * std-config.h (WITH_{,DEFAULT_}MODEL): Define. | |
20 | ||
21 | * igen.c (model_macros, last_model_macro): New statics to keep | |
22 | track of macros to go in model.h. | |
23 | (insn_table_load_insns): Add model-macros to model_macros linked | |
24 | list. | |
25 | (model_table_fields): Add field for printable name. | |
26 | (gen_model_h): If there are model macros defined, print them out. | |
27 | Print out DEFAULT_MODEL as the first model if there any models | |
28 | specified, otherwise MODEL_NONE. Print out external decl for | |
29 | current_model. Print out decl for model_set. | |
30 | (gen_model_c): Add function model_set. Switch to use printable | |
31 | name for the model, not the internal identifier used. | |
32 | ||
33 | * psim.c (current_model): New global variable. | |
34 | ||
35 | * ppc-instructions: Add macros for flag defines. Switch first | |
36 | model so 604 is first. | |
37 | ||
38 | * main.c (main): Call model_set, not function_unit_model. | |
39 | * sim_calls.c (sim_open): Ditto. | |
40 | * sim_calls.c, Makefile.in: sim_calls.c now includes cpu.h. | |
41 | ||
d587782c MM |
42 | Sat Nov 11 07:27:41 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
43 | ||
28816f45 MM |
44 | * mon.h (mon_events): New enumeration for other events we want to |
45 | handle. | |
46 | (mon_event): Add declaration for function. | |
47 | ||
48 | * mon.c (mon_event): New function. | |
49 | (mon_print_info): Print icache misses. | |
50 | ||
51 | * psim.c (run_until_stop): Monitor icache misses. | |
52 | ||
53 | * configure.in (--enable-sim-inline): Fix typos in handling comma | |
54 | separated inline options. | |
55 | (--enable-sim-icache): Echo icache size. | |
56 | * configure: Regenerate. | |
57 | ||
58 | * igen.c (semantics_h_print_function): Emit STATIC_SEMANTICS | |
59 | instead of INLINE_SEMANTICS so that the compiler won't keep all of | |
60 | the semantic functions as inline RTL, given that the address of | |
61 | the function is taken which forces outline calls anyway. | |
62 | (lf_print_c_semantic_function_header): Ditto. | |
63 | (gen_semantics_h): Define STATIC_SEMANTICS as nothing if not | |
64 | defined. | |
65 | (lf_print_c_cracker_function): Emit STATIC_IDECODE instead of | |
66 | STATIC_INLINE_IDECODE. | |
67 | (gen_idecode_c): Define STATIC_IDECODE if not defined. | |
68 | (gen_model_h): Use #ifdefs to define types to hold model units, | |
69 | cycles, and flags. | |
70 | (model_table_insert): Add a sentinel functional unit at the end to | |
71 | simplify loop processing. | |
72 | (model_c_insn): Use <function-unit>_SENTINAL instead of 0 for any | |
73 | instruction not specifing a function unit for the current model. | |
74 | (gen_model_{c,h}): Provide bounds for model_time_mapping. | |
75 | ||
76 | * inline.h (STATIC_SEMANTICS): Define to be static if | |
77 | SEMANTICS_INLINE is defined. | |
78 | (STATIC_IDECODE): Define to be static if IDECODE_INLINE is | |
79 | defined. | |
80 | ||
d587782c MM |
81 | * options.c (print_options): Fix typo. |
82 | ||
b51e5b4f MM |
83 | Fri Nov 10 06:39:46 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
84 | ||
813ad010 MM |
85 | * configure.in (--enable-sim-{opcode,config}): Use $srcdir when |
86 | check for the existence of files. | |
87 | * configure: Regenerate. | |
88 | ||
a3114052 MM |
89 | * table.c (table): New field nr_model_fields. |
90 | (table_open): New parameter nr_model_fields. | |
91 | (table_entry_read): Parse model fields that begin with a '*' after | |
92 | each instruction. | |
93 | * igen.c, dgen.c: Change callers of table_open. | |
94 | ||
95 | * igen.c: Add support for dumping model specific information in | |
96 | model.h and model.c. | |
97 | (insn_field_name): Delete unused array. | |
98 | (global variables): Make global variables static, so we can tell | |
99 | when they are no longer used. | |
100 | (cache_semantic_actual): Delete unused variable. | |
101 | (insn_table_load_insns): If the insn is really a machine model, | |
102 | call model_table_insert instead of other processing. | |
103 | (model_table_insert): New function to handle defining the | |
104 | functional units of a particular machine model. | |
105 | (insn_table): Add last_function field so we can add functions at | |
106 | the end. | |
107 | (insn_table_insert_function): Use last_function field when | |
108 | appending new function. | |
109 | ||
110 | * ppc-instructions: Add a few model specific information for 603, | |
111 | 603e, and 604 for testing purposes. | |
112 | ||
113 | * table.h (table_model_entry): New linked list to hold model | |
114 | specific information, one per line. | |
115 | (table_entry): Add model_first, model_last fields. | |
116 | ||
b51e5b4f MM |
117 | * configure.in (--enable-sim-inline): If gcc is found and |
118 | --enable-sim-inline is not specified, defaine DEFAULT_INLINE to 1, | |
119 | not 2. | |
a3114052 MM |
120 | (--enable-sim-reserved-bits): New switch to check whether reserved |
121 | bits are set in the instruction. | |
122 | (--enable-sim-opcode): Make complex the default. | |
123 | (all switches): Add appropriate checks and error messages. | |
b51e5b4f MM |
124 | * configure: Regenerate. |
125 | ||
a3114052 MM |
126 | * Makefile.in (RESERVED_CFLAGS): New variable set by |
127 | --enable-sim-reserved-bits. | |
128 | (CONFIG_CFLAGS): Include RESERVED_CFLAGS. | |
129 | (BUILT_SRC): igen now generates model.c and model.h. | |
130 | (LIB_OBJ): Include table.o. | |
131 | (tmp-igen): Add -m/-M options to write model.c/model.h. | |
132 | (model.o): New object. | |
133 | (CPU_H): Include model.h. | |
134 | ||
135 | * cpu.h: Include model.h. | |
136 | ||
137 | * std-config.h (WITH_RESERVED_BITS): Define. | |
138 | (MODEL_INLINE): Ditto. | |
139 | ||
140 | * options.c (print_options): Print out WITH_RESERVED_BITS. | |
141 | ||
ba62bb1c MM |
142 | Thu Nov 9 12:22:15 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
143 | ||
2bc7869d MM |
144 | * configure.in: If --silent, don't output information messages. |
145 | * configure: Regenerate. | |
146 | ||
ba62bb1c | 147 | * configure.in (--enable-sim-alignment): Fix typo in specifing non |
23a994ee | 148 | strict alignment. |
ba62bb1c MM |
149 | (--enable-sim-switch): Make default on. |
150 | (--enable-sim-duplicate): Make default on. | |
151 | (--enable-sim-smp): Make default 0. | |
152 | (--enable-sim-mon): Don't set sim_float if not set. | |
153 | (--enable-sim-inline): If gcc is found and --enable-sim-inline is | |
154 | not specified, define DEFAULT_INLINE to be 2. | |
155 | (all --enable-sim-* rules): Echo rules set to non empty to file | |
156 | descriptor 6. | |
157 | * configure: Regenerate. | |
158 | ||
159 | * options.c (options_env): Fix typo if WITH_ENV is 0. | |
160 | (print_options): Print GCC compiler version if available and | |
161 | date/time options was compiled. If OPCODE_RULES, IGEN_FLAGS, | |
162 | and/or DGEN_FLAGS are defined, print them. | |
163 | ||
164 | * Makefile.in (all link actions): Pass SIM_CFLAGS as well as | |
165 | CFLAGS. | |
166 | (options.o): Compile options.o with OPCODE_RULES, IGEN_FLAGS, and | |
167 | DGEN_FLAGS defined, so they can be printed out. | |
168 | ||
169 | * igen.c (lf_print_c_validate): Check for WITH_ASSERT, so that | |
170 | this test can be compiled away if the user really wants a fast | |
171 | simulator by not doing assertion failures. | |
172 | ||
73c4941b MM |
173 | Wed Nov 8 13:19:47 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
174 | ||
c5addc19 MM |
175 | * options.c: New file to print out all of the WITH_ options. |
176 | * options.h: New include file to declare print_options. | |
177 | * debug.h (trace_options): Add trace_opts to call print_options. | |
178 | * debug.c (trace_description): Add trace_opts support. | |
179 | * main.c (main): If user requested options, print them. | |
180 | * sim_calls.c (sim_open): Ditto. | |
181 | ||
182 | * igen.c (opcode_field_new): Add void to make it a proper prototype. | |
183 | ||
184 | * emul_generic.c (emul_enter_call): Make printf_filtered arguments | |
185 | type correct. | |
186 | * emul_netbsd.c (do_kill): Ditto. | |
187 | * registers.c (registers_dump): Ditto. | |
188 | * vm.c (om_translate_effective_to_real): Ditto. | |
189 | * vm_n.h (vm_data_map_read_N): Ditto. | |
190 | (vm_data_map_write_N): Ditto. | |
191 | * devices.h (DTRACE_INIT): Ditto. | |
192 | (DTRACE_{ATTACH,DETACH}_ADDRESS): Ditto. | |
193 | (DTRACE_IO_{READ,WRITE}_BUFFER): Ditto. | |
194 | (DTRACE_DMA_{READ,WRITE}_BUFFER): Ditto. | |
195 | * devices.c (update_for_binary_section): Ditto. | |
196 | (write_stack_arguments): Ditto. | |
197 | (stack_ioctl_callback): Ditto. | |
198 | * device_tree.c (device_tree_add_passthrough): Ditto. | |
199 | (device_tree_{add,find}_device): Ditto. | |
200 | (device_tree_{add,find}_integer): Ditto. | |
201 | (device_tree_find_{string,boolean}): Ditto. | |
202 | (device_tree_init{,_device}): Ditto. | |
203 | (device_tree_dump): Ditto. | |
204 | * sim_calls.c (sim_{read,write}): Ditto. | |
205 | (sim_{fetch,store}_register): Ditto. | |
206 | (sim_stop_reason): Ditto. | |
207 | ||
208 | * sim_callbacks.h (printf_filtered): Declare with attribute | |
209 | printf, so we can enable format checks. | |
210 | ||
211 | * devices.c (console_io_{read,write}_buffer_callback): Cast swtich | |
212 | argument to int, since ANSI doesn't allow long switch values. | |
213 | * emul_netbsd.c (do___sysctl): Ditto. | |
214 | ||
215 | * emul_netbsd.c (do___sysctl): Fix up printf call. | |
216 | ||
217 | * corefile.c (core_translate): Don't do arithmetic with void * | |
218 | pointers. Cast to char * first. | |
219 | ||
220 | * function_unit.c (FUNC_{LOAD,STORE}): Rename from {LOAD,STORE} | |
221 | and change all uses. | |
222 | ||
73c4941b MM |
223 | * Makefile.in ({FUNC,MODEL,WARNING}_CFLAGS): New flags set by |
224 | configure --enable switches. | |
225 | (CONFIG_CFLAGS): Include FUNC_CFLAGS and MODE_CFLAGS. | |
226 | (.c.o): Include WARNING_CFLAGS. | |
227 | (CPU_H): Include function_unit.h. | |
228 | (LIB_OBJ): Include function_unit.o. | |
229 | (BUILT_SRC_WO_CONFIG): Split from BUILT_SRC and do not include | |
230 | config.h or ppc-config.h. | |
231 | (BUILT_SRC): Include BUILT_SRC_WO_CONFIG, config.h and | |
232 | ppc-config.h. | |
233 | (filter_filename.o): Include config.h/ppc-config.h dependencies. | |
c5addc19 MM |
234 | (idecode.o, semantics.o, psim.o): Specify CC line without |
235 | WARNING_CFLAGS so that we don't get all of the unused variable | |
236 | warnings that are generated. | |
73c4941b MM |
237 | (function_unit.o): Add rule to build. |
238 | (main.o, sim_calls.o): Add function_unit.h, itable.h dependencies. | |
239 | (mon.o): Include mon.c dependency. | |
240 | (TAGS): Depend on BUILT_SRC. | |
241 | (clean): Don't delete config.h or ppc-config.h | |
242 | ||
243 | * basics.h (sim_callbacks.h): Move include after the include of | |
244 | config.h and ppc-config.h. | |
245 | ||
246 | * bits.{h,c} (ROTL32,ROTL64): Move these functions to bits.c. Add | |
247 | support for BITS_INLINE to inline these. Add declarations to | |
248 | bits.h. | |
249 | ||
250 | * configure.in (--enable-sim-warnings): Add new option to specify | |
251 | compiler warnings for all modules except idecode.o and semantics.o | |
252 | which have lots of unused variables because they are machine | |
253 | generated. | |
254 | (--enable-sim-function-unit): New switch to configure whether | |
255 | function unit support is compiled in or not. | |
256 | (--enable-sim-{,default-}mode): New switches to control which cpu | |
257 | model is used. | |
258 | * configure: Regenerate. | |
259 | ||
260 | * corefile.c (core_attach_address_callback): Delete unused | |
261 | variable device_address. | |
262 | ||
263 | * cpu.c (struct _cpu): Add function unit pointer field func_unit. | |
264 | (cpu_create): If WITH_FUNCTION_UNIT, call function_unit_create. | |
265 | (cpu_init): If WITH_FUNCTION_UNIT, call function_unit_init. | |
266 | (cpu_halt): If WITH_FUNCTION_UNIT, call function_unit_halt. | |
267 | (cpu_function_unit): New function to return func_unit field. | |
268 | ||
269 | * cpu.h (function_unit.h): Include new include file. | |
270 | (cpu_function_unit): Declare. | |
271 | ||
272 | * debug.c (stdlib.h): Test HAVE_STDLIB_H, not HAVE_STDLIB. | |
273 | (config.h): Include config.h. | |
274 | ||
275 | * devices.c (icu_io_write_buffer_callback): Delete unused variable | |
276 | system. | |
277 | ||
278 | * emul_generic.c (emul_exit_call): Print out status value. | |
279 | ||
280 | * emul_netbsd.c (do_read): Delete unused variable nr_moved. | |
281 | ||
282 | * filter_filename.h (includes): Include config.h, ppc-config.h, | |
283 | not basics.h. | |
284 | ||
285 | * inline.c: Include bits.c if BITS_INLINE. Include | |
286 | function_unit.c if FUNCTION_UNIT_INLINE. | |
287 | ||
288 | * inline.h (INLINE_BITS): Define if BITS_INLINE. | |
289 | (INLINE_FUNCTION_UNIT): Define if FUNCTION_UNIT_INLINE. | |
290 | ||
291 | * interrupts.c (instruction_storage_interrupt): Delete unused | |
292 | variable nia. | |
293 | ||
294 | * lf.h (config.h): Include config.h. | |
295 | ||
296 | * main.c (includes): Include function_unit.c. If HAVE_UNISTD_H, | |
297 | include unistd.h. | |
298 | (usage): Update for -m model, -i, and -I options. | |
299 | (main): Delete unused variables stack_pointer and i. Add support | |
300 | for -i, -m model arguments. Call psim_print_info with verbose == | |
301 | 1 if -i, and verbose == 2 if -I. | |
302 | ||
303 | * mon.c (stdio.h): Include stdio.h to pick up sprintf prototype. | |
304 | (mon_issue): Call function_unit_issue if function units are | |
305 | supported. | |
306 | (mon_print_info): Take psim * argument. Print out information | |
307 | from function_unit if available. Move read/write stats to always | |
308 | print, instead of printing if verbose > 1. Fix up plural | |
309 | vs. singular usage. | |
310 | ||
311 | * mon.h (mon_print_info): Update prototype. | |
312 | ||
313 | * psim.c (current_ppc_model): Add global variable. | |
314 | (psim_print_info): Pass system argument to mon_print_info. | |
315 | ||
316 | * sim_calls.c (function_unit.h): Include. | |
317 | (sim_open): Add support for -i and -m model options. If -i call | |
318 | psim_print_info with verbose == 1, if -I, with verbose == 2. | |
319 | (sim_resume): Delete unused variable program_counter. | |
320 | ||
321 | * std-config.h (WITH_FUNCTION_UNIT): Define. | |
322 | (ppc_model): Add enumeration giving all PowerPC models currently | |
323 | known about. | |
324 | ({WITH,CURRENT}_PPC_MODEL): Define. | |
325 | (FUNCTION_UNIT_INLINE): Define. | |
326 | ||
327 | * table.c (config.h): Include config.h. | |
328 | ||
329 | * vm.c (om_virtual_to_real): Print pte_word_{0,1} so the compiler | |
330 | doesn't complain that they're unused. | |
331 | ||
332 | * vm_n.h (vm_data_map_read_N): Delete unused variable rval. | |
333 | ||
334 | Mon Nov 6 23:15:54 1995 Andrew Cagney <cagney@highland.com.au> | |
335 | ||
336 | * sim-endian.c (ppc-endian.c), sim-endian.h (ppc-endian.h): | |
337 | renameed. These files are target independant. | |
338 | * Makefile.in, basics.h: update for new name. | |
339 | ||
340 | * sim-endian.h (SWAP_N), sim-endian.c (_SWAP_1): Rename existing | |
341 | SWAP_<N> to _SWAP_<N> so that sim-endian.h can contain SWAP_N | |
342 | macro's as required. | |
343 | ||
344 | * sim-endian.c, sim-endian-n.h (new file): Move endian code into a | |
345 | debugable header file. | |
346 | ||
347 | * ppc-instructions (Byte-Reverse): Enable byte reverse | |
348 | instructions using SWAP_N macros. | |
349 | ||
0934e520 MM |
350 | Mon Nov 6 10:39:28 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
351 | ||
bea95815 MM |
352 | * Makefile.in (config.status): Remove references to config.make |
353 | and config.hdr. | |
354 | ||
0934e520 MM |
355 | * config.{make,hdr}: Delete, no longer used. |
356 | * build-psim: Ditto. | |
357 | ||
4dcb0cdd MM |
358 | Mon Nov 6 20:49:56 1995 Andrew Cagney <cagney@highland.com.au> |
359 | ||
360 | * sim_calls.c (sim_open): Fix parsing of `target sim' options. | |
361 | ||
362 | * device_tree.c (device_tree_add_string): Wasn't saving the value | |
363 | of the string being entered into the tree. | |
364 | ||
365 | * psim.c (create_filed_device_tree): Not terminating string device | |
366 | names with a null. | |
367 | ||
368 | * psim.c (psim_create): Use `env' instead of | |
369 | `environment-architecture' to be consistent with configure. | |
370 | Reconize user/uea, virtual/vea and operating/oea. | |
371 | ||
01860b7e FF |
372 | Sat Nov 4 12:29:45 1995 Fred Fish <fnf@cygnus.com> |
373 | ||
374 | * core.c: Rename to corefile.c | |
375 | * core.h: Rename to corefile.h | |
376 | * inline.c: Include corefile.h, renamed from core.h. | |
377 | * cpu.h: Include corefile.h, renamed from core.h | |
378 | * vm.c: Include corefile.h, renamed from core.h | |
379 | * corefile.c: Include corefile.h rather than core.h | |
380 | * README.psim (KNOWN PROBLEMS): Change core.* references to corefile.* | |
381 | references. | |
382 | * Makefile.in (CPU_H): Change core.h to corefile.h | |
383 | (vm.o): Change dependency to corefile.h | |
384 | (LIB_SRC): Change core.c to corefile.c. | |
385 | (LIB_OBJ): Change core.o to corefile.o. | |
386 | (corefile.o): Change dependencies to corefile.c, corefile.h. | |
387 | ||
056e975c MM |
388 | Fri Nov 3 11:37:24 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
389 | ||
390 | * ppc-instructions (data cache instructions): Make all data cache | |
391 | instructions nops instead of invalid instructions. | |
392 | ||
393 | * Makefile.in (CONFIG_CFLAGS): Add ALIGNMENT_CFLAGS and | |
394 | TIMEBASE_CFLAGS which weren't included. | |
395 | ||
a983c8f0 MM |
396 | Thu Nov 2 08:54:04 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
397 | ||
e61900e6 MM |
398 | * Makefile.in: Uncomment built file dependencies. |
399 | ||
c494cadd MM |
400 | * configure.in: Rewrite --enable-sim switch handling to use the |
401 | autoconf builtins so it works correctly if the configure or | |
402 | Makefile.in files are modified and make decides to rebuild | |
403 | Makefile. Also document all of the --enable-sim switches | |
404 | supported. Check whether getrusage and sys/resource.h are | |
405 | supported. | |
406 | * config.in: Regenerate. | |
407 | * configure: Regenerate. | |
408 | * Makefile.in: Add support for all of the variables set with | |
409 | --enable-sim switches. | |
410 | ||
411 | * Makefile.in (clean): make clean now removes all built sources as | |
412 | well. | |
413 | ||
414 | * cpu.c: Use HAVE_STRING_H, HAVE_STRINGS_H, HAVE_UNISTD_H, | |
415 | HAVE_TIME_H, HAVE_SYS_TIMES_H, HAVE_SYS_RESOURCE_H defined in | |
416 | the generated config.h. | |
417 | * debug.c: Ditto. | |
418 | * device_tree.c: Ditto. | |
419 | * devices.c: Ditto. | |
420 | * dgen.c: Ditto. | |
421 | * emul_netbsd.c: Ditto. | |
422 | * igen.c: Ditto. | |
423 | * lf.c: Ditto. | |
424 | * misc.c: Ditto. | |
425 | * psim.c: Ditto. | |
426 | * registers.c: Ditto. | |
427 | * sim_calls.c: Ditt. | |
428 | * table.c: Ditto. | |
429 | ||
430 | ||
a983c8f0 MM |
431 | * main.c (main): Call psim_print_info with verbose == 2. |
432 | ||
433 | * mon.c (mon_print_info): Align the cpu number and number of | |
434 | instructions fields. Do not print an instruction category if the | |
c494cadd MM |
435 | CPU did not execute any of those instructions. Print out number |
436 | of reads and writes. If getrusage is supported, print out number | |
437 | of simulated instructins per second. | |
a983c8f0 MM |
438 | |
439 | * configure.in: Add support for --enable-sim-opcode=stupid. | |
440 | * configure: Regenerate. | |
441 | ||
442 | Wed Nov 1 23:46:59 1995 Andrew Cagney - aka Noid <cagney@highland.com.au> | |
443 | ||
444 | * std-config (INLINE_DEVICE_TREE): Don't inline either of | |
445 | device_tree.c or devices.c. There is no significant gain. | |
446 | ||
447 | * configure.in, Makefile.in: add --enable-sim-icache=[0-9]* and | |
448 | IGEN_ICACHE macro. | |
449 | ||
450 | Wed Nov 1 23:46:59 1995 Andrew Cagney - aka Noid <cagney@highland.com.au> | |
451 | ||
452 | * igen.c (main), misc.h (target_a2i, i2target), misc.c: Add | |
453 | functions to convert between target and igen internal bit numbers. | |
454 | Make IO go through these functions. Add -b (bit size) and -h (high | |
455 | bit nr) options to igen. Typical usage would be: ./igen -b 16 -h | |
456 | 15 for a 16 bit instruction format with the msb given a number 15. | |
457 | ||
458 | Wed Nov 1 22:17:32 1995 Andrew Cagney - aka Noid <cagney@highland.com.au> | |
459 | ||
460 | * dgen.c (main): Was outputting optarg even when it was NULL. | |
461 | ||
462 | Tue Oct 31 23:48:33 1995 Andrew Cagney - aka Noid <cagney@highland.com.au> | |
463 | ||
464 | * vm_n.h (vm_data_map_load_N, vm_data_map_store_n), debug.h, | |
465 | debug.c: Add tracing of load/store unit (virtual) with -t | |
466 | load-store. | |
467 | ||
468 | Tue Oct 31 21:44:01 1995 Andrew Cagney - aka Noid <cagney@highland.com.au> | |
469 | ||
470 | * std-config.h (WITH_ENVIRONMENT): Add USER_ENVIRONMENT which does | |
471 | not include things such as the time base and events. | |
472 | ||
473 | * interrupt.c, sim_calls.c, cpu.h, vm.c, configure.in: Add UEA to | |
474 | all environment switches for above. | |
475 | ||
476 | * psim.c (psim_create): ditto - new device tree node name is | |
477 | /options/environment-architecture with values user, virtual and | |
478 | operating. | |
479 | ||
480 | Tue Oct 31 21:31:32 1995 Andrew Cagney - aka Noid <cagney@highland.com.au> | |
481 | ||
482 | * ppc-opcode-stupid: Third example of use of opcode table - this | |
483 | one expands all mtspr/mfspr and branch instructions. Appears to | |
484 | give about a 10% gain in performance if everything enabled. Also | |
485 | takes about 150mb of swap to build. | |
486 | ||
c143ef62 MM |
487 | Wed Nov 1 10:49:48 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
488 | ||
489 | * emul_netbsd.c (do_exit): Print arguments and close parenthesis | |
490 | if tracing, since exit doesn't go through emul_exit_call. | |
491 | (do_read): Print arguments if tracing. | |
492 | (do_write): Ditto. | |
493 | (do_open): Ditto. | |
494 | (do_break): Ditto. | |
495 | (do_kill): Ditto. | |
496 | (do_dup): Ditto. | |
497 | (do_sigprocmask): Replace trace with printing arguments if | |
498 | tracing. | |
499 | (do_ioctl): Print arguments if tracing. | |
500 | (do_umask): Ditto. | |
501 | (do_dup2): Ditto. | |
502 | (do_fcntl): Ditto. | |
503 | (do_gettimeofday): Ditto. | |
504 | (do_getrusage): Ditto. | |
505 | (do_fstatfs): Ditto. | |
506 | ||
507 | * filter_filename.c: New file to provide filter_filename to strip | |
508 | the directory prefix from a file. | |
509 | * filter_filename.h: New include file to declare filter_filename. | |
510 | ||
511 | * debug.h: Include filter_filename.h. | |
512 | (TRACE,DTRACE,ERROR): Use filter_filename on __FILE__. | |
513 | ||
514 | * misc.h: Include filter_filename.h. | |
515 | (ASSERT): Use filter_filename on __FILE__. | |
516 | ||
517 | * igen.c (lf_print_my_prefix): Use filter_filename on the filename | |
518 | argument. | |
519 | ||
520 | * Makefile.in: Add filter_filename support. | |
521 | ||
522 | * ppc-instructions (dcbi, icbi): Make these NOPs rather than | |
523 | invalid instructions. | |
524 | ||
525 | * configure.in: Add support for more --enable-sim-* switches. | |
526 | Use config.make and config.hdr to write to Makefile and config.h | |
527 | respectively. Don't rewrite Makefile, just append to it. | |
528 | * configure: Regenerate. | |
529 | * config.{make,hdr}: New shell scripts. | |
530 | ||
531 | * Makefile.in: Remove all variables set by configure.in. | |
532 | (psim.o): Depend on $(BUILT_SRC) also. | |
533 | ||
534 | * emul_netbsd.c (do_gettimeofday,do_getrusage): When comparing an | |
535 | integer, use 0, not NULL. | |
536 | ||
4b935ed4 MM |
537 | Tue Oct 31 15:20:04 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
538 | ||
539 | * configure.in: Add support for --enable-sim-inline, | |
540 | --enable-sim-bswap, --enable-sim-cflags, --enable-sim-complex, | |
541 | --enable-sim-switch, --enable-sim-duplicate, --enable-sim-filter, | |
542 | and --enable-sim-endian switch to control various Makefile | |
543 | variables. | |
544 | * configure: Regenerate from configure.in. | |
c143ef62 MM |
545 | * Makefile.in: Add various Make variables that the various |
546 | switches alter. | |
4b935ed4 MM |
547 | |
548 | * std-config.h (DEFAULT_INLINE): Don't set this to 2 if using GCC | |
549 | and optimizing by default. | |
550 | ||
c143ef62 | 551 | Fri Oct 27 19:26:27 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
552 | |
553 | * bits.h (ROTL32, ROTL64): Were functions, made them macros, now | |
554 | make them functions again. Appears 2.6.3 is confused by just a | |
555 | macro. | |
556 | ||
c143ef62 | 557 | Thu Oct 26 18:31:58 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
558 | |
559 | * ppc-endian.c (SWAP_8): Fix 8 byte swap! | |
560 | ||
561 | * psim.c (psim_create): Not correctly checking that runtime | |
562 | configuration of things like ENDIAN, ENVIRONMENT and ALIGNMENT | |
563 | matched the compiled in ones. | |
564 | ||
565 | * debug.h (ITRACE), igen.c: Tidy up more tracing flags - | |
566 | trace_semantics is now different to trace_idecode, the former | |
567 | checks the cache. | |
568 | ||
c143ef62 | 569 | Tue Oct 24 21:54:13 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
570 | |
571 | * ppc-instructions (mtsrin): Missing instruction | |
572 | * ppc-instructions (mfsrin): Missing instruction | |
573 | * ppc-instructions (eieio): Missing instruction | |
574 | ||
c143ef62 | 575 | Tue Oct 24 20:55:29 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
576 | |
577 | * build-psim: New shell script - see internals for usage, | |
578 | simplifies the process of building custom simulators. | |
579 | ||
c143ef62 | 580 | Mon Oct 23 23:48:59 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
581 | |
582 | * std-config.h (SEMANTICS_INLINE): Tidy up notes on each of the | |
583 | INLINE macros. Make SEMANTICS_INLINE == 1 if DEFAULT_INLINE == 2. | |
584 | Don't use DEFAULT_INLINE to define REGISTERS_INLINE DEVICES_INLINE | |
585 | DEVICE_TREE_INLINE or INTERRUPTS_INLINE as none of these are on | |
586 | the instruction or data critical paths. | |
587 | ||
588 | * FIXME: need to set up OS_EMUL_INLINE/EMUL_GENERIC_INLINE but | |
589 | not on critical path. | |
590 | ||
591 | * FIXME: devices.c/emul_netbsd.c would benefit (slightly) from | |
592 | the inclusion of device_tree.c/emul_generic.c. | |
593 | ||
c143ef62 | 594 | Mon Oct 23 00:31:50 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
595 | |
596 | * os_emul.[hc], emul_generic.[hc], emul_netbsd.[hc]: replace | |
597 | system.[hc]. Start of suport for multiple emulations and | |
598 | emulation state (os_emul object). | |
599 | ||
600 | * emul_generic.[hc]: Start of code to implement proper system call | |
601 | tracing (from spy). | |
602 | ||
c143ef62 | 603 | Sun Oct 22 21:33:51 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
604 | |
605 | * cpu.h, cpu.c (cpu_init): New function, zero the registers before | |
606 | the processor is started. Fixes problem of registers being | |
607 | undefined when restarting from within gdb. | |
608 | ||
609 | * cpu.h, cpu.c (cpu_flush_icache): New function, flushes the | |
610 | instruction cache (if present). Fixes problem of cpu caching gdb | |
611 | breakpoint instructions. | |
612 | ||
613 | FIXME: PSIM sometimes aborts calling error(), it should instead | |
614 | call sim_error() say which takes care of housekeeping such as | |
615 | saving the CIA before calling error. | |
616 | ||
617 | * NOTE: cpu_flush_cache() instead of cpu_synchronize_context() is | |
618 | used when restarting a simulation because the latter has the | |
619 | unwanted side effect (well I as a kernel hacker think it is) of | |
620 | performing an isync when the instruction stream doesn't contain | |
621 | one. | |
622 | ||
c143ef62 | 623 | Sun Oct 22 19:27:48 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
624 | |
625 | * mon.h (new), mon.c (new), std-config.h (WITH_MON): Performance | |
626 | monitoring module. Counts both instructions issued and | |
627 | load/stores. | |
628 | ||
629 | * NOTE: mon does not contain to count instruction loads as this | |
630 | information is already available from the mon_issue() hook. | |
631 | ||
632 | * FIXME: mon doesn't have access to register usage information. | |
633 | This is needed if the user wants to monitor things like register | |
634 | stalls. | |
635 | ||
636 | * igen.c (lf_print_c_semantic), vm_n.h: Add counting code. | |
637 | ||
638 | * psim.h, psim.c (psim_create), cpu.h, cpu.c (cpu_create): Attach | |
639 | a common monitor to each of the cpus. Delete | |
640 | cpu_increment_number_of_insns() and cpu_get_number_of_insns() | |
641 | replaced by copied code in mon.[hc]. | |
642 | ||
c143ef62 | 643 | Sun Oct 22 18:42:45 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
644 | |
645 | * sim_calls.c, main.c, psim.c (psim_create): always create | |
646 | `WITH_SMP' cpus. The actual number of CPU's active in a | |
647 | simulation run is taken from the device node: /init/smp (an | |
648 | integer). WITH_SMP changed to 2 (remember to put it back to 0). | |
649 | ||
c143ef62 | 650 | Fri Oct 20 17:26:54 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
651 | |
652 | * system.c: More system call emulation. If code appears NetBSD | |
653 | specific, make conditional to being compiled on a NetBSD system | |
654 | (sigh). | |
655 | ||
c143ef62 | 656 | Wed Oct 18 23:02:20 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
657 | |
658 | * Makefile.in, gen.c(delete), igen.c(new), dgen.c(new), | |
659 | lf.[ch](new), table.[ch](new): Split into two generators - igen | |
660 | that outputs the instruction tables and dgen that outputs the spr | |
661 | tables. Add -f (filter out) flag to igen to filter out certain | |
662 | instructions (ex 64 bit ones) from the created tables. Include | |
663 | $(LIBIBERTY_LIB) in link options in case host lacks some libc | |
664 | functions. | |
665 | ||
666 | * NOTE: igen, since it was originally written for the | |
667 | PowerPC/RS6000, things the MSB is 0 and the LSB is 63{31}. | |
668 | ||
669 | * Makefile.in, std-config.h, ppc-cache-rules(new), | |
670 | ppc-opcode-complex(new), ppc-opcode-simple(new): (for igen) Create | |
671 | cache-rule and opcode-rule tables from macros found std-config.h. | |
672 | Delete corresponding macro's from std-config.h. | |
673 | ||
674 | * FIXME: under this new igen scheme, when playing around with igen | |
675 | options, you'll find that depenencies don't work very well. | |
676 | ||
677 | * igen.c (gen_itable_c, gen_itable_h), Makefile.in: code to output | |
678 | an table of all the instructions. Code to output a type | |
679 | enumerating all the instructin names. | |
680 | ||
681 | * igen.c(lf_print_c_semantic): Move call to increment instruction | |
682 | counter so that it occures _after_ the instruction has been fully | |
683 | validated, was double counting illegal/invalid instructions. Add | |
684 | conditional so only compiled in when WITH_PROFILE enabled (enabled | |
685 | by default). | |
686 | ||
687 | * igen.c, cpu.h, cpu.c(cpu_increment_number_of_insns): Include | |
688 | itable.h, count individual instruction types not just total, | |
689 | adjust reporting functions to output this. | |
690 | ||
691 | * ppc-instructions (64 bit Load Doubleword with Update Indexed): | |
692 | Had 32./ instead of 31./ | |
693 | ||
694 | * ppc-instructions (64 bit Store Double Word Conditional Indexed): | |
695 | bitrot - updated to use newer CR register operators. | |
696 | ||
697 | * ppc-instructions (64bit Floating Convert from Integer | |
698 | Doubleword): Correct call to Round_Float(). | |
699 | ||
c143ef62 | 700 | Mon Oct 16 00:31:20 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
701 | |
702 | * basics.h: #include "sim_callbacks.h" earlier so that its | |
703 | prototypes are declared in all other header files. | |
704 | ||
705 | * bits.h, bits.c, idecode_expression.h (ROTL32, ROTL64): Update | |
706 | doc in bits.h, remove dead code in bits.c, move ROTL32/ROTL64 into | |
707 | bits.h. | |
708 | ||
709 | * FIXME: the bits.h/bits.c macro's should be replaced with | |
710 | (inline) c functions. | |
711 | ||
712 | * cpu.c(cpu_add_commas), device_tree.h, device_tree.c(scand_*): | |
713 | Add size of buffer argument to functions writing a string into a | |
714 | buffer. Check for buffer overflow. | |
715 | ||
c143ef62 | 716 | Sun Oct 15 22:16:11 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
717 | |
718 | * devices.h, devices.c, debug.h, debug.c: add macro's for tracing | |
719 | of each device. Make parameter names consistent so macros work. | |
720 | Use macro's in device functions. | |
721 | ||
722 | * device_tree.c, devices.h, devices.c: include path to device in a | |
723 | devices node when creating it. | |
724 | ||
725 | * device_tree.c, debug.h, debug.c: Add tracing of `device-tree'. | |
726 | ||
727 | * core.c: add tracing of core-device, adjust parameter names in | |
728 | core functions to be consistent with those in devices*. | |
729 | ||
c143ef62 | 730 | Sun Oct 15 20:33:20 1995 Andrew Cagney <cagney@highland.com.au> |
5b4d72dd MM |
731 | |
732 | * debug.h, debug.c (trace_option): New function. Parses the trace | |
733 | option, updating the trace array. | |
734 | ||
735 | * debug.h, debug.c (trace_usage): New function. Outputs the list | |
736 | of all possible trace options. | |
737 | ||
738 | * sim_calls.c (sim_open), main.c (main): Use new trace_option() to | |
739 | parse trace options specified with the simpler -t flag. Adjust | |
740 | usage. | |
741 | ||
742 | * FIXME: basic parsing of command line options is still duplicated | |
743 | by main.c and sim_calls.c | |
744 | ||
22ddef46 MM |
745 | Thu Oct 26 10:42:28 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
746 | ||
e89929cd MM |
747 | * Makefile.in (clean): Delete *.i and *.out files. |
748 | ||
22ddef46 MM |
749 | * ppc-endian.c (SWAP_n): Add SET argument to allow use of SWAP |
750 | macros for either assignment or return. Fix SWAP_8 to use a | |
751 | union, and two SWAP_4's. Delete SWAP_N, since nobody uses it now. | |
752 | (ENDIAN_N): Add SET argument to SWAP_n calls. Delete macro defs | |
753 | that hardwired swapping on/off, let optimizer delete dead code. | |
754 | ||
755 | * main.c (main): Add printf that we caught a signal and print out | |
756 | the failing address. | |
757 | ||
64415b76 FF |
758 | Thu Oct 19 21:43:39 1995 Fred Fish <fnf@fishfood.amigalib.com> |
759 | ||
760 | * Makefile.in: Remove tabs from otherwise empty line. | |
761 | Confuses many non-GNU versions of "make". | |
762 | ||
763 | Wed Oct 18 08:51:25 1995 Michael Meissner <meissner@tiktok.cygnus.com> | |
764 | ||
765 | * Makefile.in (clean): Delete files produced by gen. | |
766 | ||
5b0d3b14 MM |
767 | Mon Oct 16 17:34:24 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
768 | ||
769 | * gen.c (lf_print_c_semantic_function): Move counting # of | |
770 | instructions here so it works with caching. | |
771 | (gen_idecode_c): Move from here. | |
772 | ||
9aa8a788 MM |
773 | Wed Oct 11 17:13:15 1995 Andrew Cagney <cagney@highland.com.au> |
774 | ||
775 | * gen.c, ppc-instructions, psim.c: Fix code for generating | |
776 | cracking instruction cache. Delete the code that cached just the | |
777 | result from doing an instruction lookup - this ran slower than no | |
778 | cache at all. | |
779 | ||
a1fe883f MM |
780 | Fri Oct 13 09:58:43 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
781 | ||
9aa8a788 MM |
782 | * Makefile.in (gen.o): Include $(INLINE_CFLAGS). |
783 | ||
a1fe883f MM |
784 | * debug.h (ppc_trace): Rename from trace, to avoid a conflict with |
785 | TCL when gdb is linked with the simulator. | |
786 | * debug.c (ppc_trace): Ditto. | |
787 | * sim_calls.c (sim_open): Change trace -> ppc_trace. | |
788 | * main.c (main): Ditto. | |
789 | ||
790 | * cpu.c (cpu_add_commas): Remove extra static. | |
791 | ||
8e20a3ac MM |
792 | Thu Oct 12 11:35:53 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
793 | ||
9f5912cb MM |
794 | * Makefile.in (psim.o): Now that inlines are turned on, make |
795 | psim.o depend on all sources. | |
796 | ||
797 | * cpu.c (cpu_add_commas): New function to format a long with | |
798 | commas. | |
799 | (cpu_print_info): Use it to print number_of_insns. | |
800 | ||
a8958dd4 MM |
801 | * ppc-endian.c (SWAP_n): New macros to speed up byte swapping for |
802 | 2, 4, and 8 bytes. | |
803 | (ENDIAN_N): If both target and host byte orders are known, don't | |
804 | bother testing CURRENT_{TARGET,HOST}_BYTE_ORDER. | |
805 | ||
806 | * ppc-endian.h (target specific H2T_n/T2H_n macros): Remove #if 0 | |
807 | to allow target specific H2T_n/T2H_n macros to be used. | |
808 | (htonl, ntohl): If compiled on a 486 by GCC and WITH_BSWAP is | |
809 | non-zero, redefine the htonl/ntohl macros to use the BSWAP instead | |
810 | of the 3 instruction sequence that runs on 386s. | |
811 | ||
812 | * std-config.h (WITH_{HOST,TARGET}_BYTE_ORDER): Don't override if | |
813 | specified on the compile line. | |
814 | (WITH_BSWAP): If not defined, define as 0. | |
815 | ||
8e20a3ac MM |
816 | * Makefile.in (INLINE_CFLAGS): Add -DDEFAULT_INLINE=2 to add |
817 | default inline support. Pass INLINE_CFLAGS when compiling. | |
818 | ||
819 | * devices.{h,c} (unimp_device_ioctl): Use STATIC_DEVICES, not | |
820 | INLINE_DEVICES since GCC doesn't like inline functions that | |
821 | accept variable arguments. | |
822 | (stack_ioctl_callback): Make function just static because GCC | |
823 | doesn't like inline functions that accept variable arguments. | |
824 | ||
825 | * devices.h (STATIC_DEVICES): Define as empty if not defined. | |
826 | ||
827 | * inline.c: Correct pathnames of included C files to match current | |
828 | implementation. | |
829 | ||
830 | * inline.h (STATIC_DEVICES): If DEVICES_INLINE is defined to be | |
831 | non-zero, define STATIC_DEVICES to be static. | |
832 | ||
833 | * std-config.h (INLINE): If GNU C and optimizing, define this as | |
834 | __inline__. | |
835 | (DEFAULT_INLINE): If not defined, define as 0. | |
836 | (ENDIAN_INLINE): If not defined, define as DEFAULT_INLINE. | |
837 | ({CORE,VM,CPU,EVENTS,REGISTERS,INTERRUPTS}_INLINE): Ditto. | |
838 | ({SPREG,IDECODE}_INLINE): Ditto. | |
839 | ||
c143ef62 | 840 | Wed Oct 11 17:13:15 1995 Andrew Cagney <cagney@highland.com.au> |
8e20a3ac MM |
841 | |
842 | * ppc-instructions: Initial cut of floating point suport added. | |
843 | Of note include - use of host IEEE floating point instructions, | |
844 | use of PowerPC manual pseudo code to handle the FPSCR. It is not | |
845 | currently a pretty sight. | |
846 | ||
847 | * memory_map.h, memory_map.c, memory_map_n.h, core.h, core.c: | |
848 | merge into core.h, core.c, core_n.h. The type memory_map replaced | |
849 | with core_map. This removes a level of pointer indirection when | |
850 | translating an address. | |
851 | ||
852 | * memory_map.h, memory_map.c, memory_map_n.h: delete. | |
853 | ||
854 | * Makefile.in et.al (sorry): tweek to use new core, core_map and | |
855 | core.h. | |
856 | ||
c143ef62 | 857 | Wed Oct 11 12:10:26 1995 Andrew Cagney <cagney@highland.com.au> |
8e20a3ac MM |
858 | |
859 | * sim_calls.c, main.c: Add -g (trace_gdb) option, add tracing to | |
860 | most of the other functions in sim_calls.c. | |
861 | ||
862 | * basics.h (CONCAT3), memory_map.c, memory_map_n.h, Makefile.in: | |
863 | Add macros to better cover up `generic' code. Makes it possible | |
864 | to step through the generic code! | |
865 | ||
866 | * vm.c, vm_n.h, Makefile.in: ditto | |
867 | ||
c143ef62 | 868 | Tue Oct 10 15:42:59 1995 Andrew Cagney <cagney@highland.com.au> |
8e20a3ac MM |
869 | |
870 | * devices.h, devices.c, memory_map.h, memory_map.c: Changed | |
871 | callback interface so that there is a read/write buffer but no | |
872 | read/write_word. VEA default memory read/write handler sometimes | |
873 | couldn't resolve an access and of those some were for a memory | |
874 | fault and some were because gdb was making a bogus request. | |
875 | ||
876 | * devices.h, devices.c, memory_map.h, memory_map.c, vm.h, vm.c: | |
877 | eliminate transfer_mode (raw or cooked) parameter from read/write | |
878 | buffer. | |
879 | ||
c143ef62 | 880 | Fri Oct 6 20:23:56 1995 Andrew Cagney <cagney@highland.com.au> |
8e20a3ac MM |
881 | |
882 | * ppc-instructions (fmul, fmuls): correct instruction format - had | |
883 | FRB instead of FRC. | |
884 | ||
c143ef62 | 885 | Wed Oct 4 17:31:12 1995 Andrew Cagney <cagney@highland.com.au> |
8e20a3ac MM |
886 | |
887 | * psim.c, device_tree.h, device_tree.c, devices.c (printd_*, | |
888 | scand_*): new functions to parse/print fields in device names | |
889 | while hiding any machine dependency. | |
890 | ||
891 | * devices.c, psim.c: Change the stack init code so that it is | |
892 | handled by a device. Arguments passed across using a device ioctl | |
893 | (hack). | |
894 | ||
895 | * devices.h, devices.c: device ioctl callback changed to allow a | |
896 | variable number of arguments. This gives greater flexability and | |
897 | greater chance of bugs. | |
898 | ||
c143ef62 | 899 | Tue Oct 3 22:01:56 1995 Andrew Cagney <cagney@highland.com.au> |
8e20a3ac MM |
900 | |
901 | * main.c (printf_filtered, error): Missing va_end() to close off | |
902 | variable argument use. | |
903 | ||
904 | * Makefile.in (tmp-gencode): comment out hack to get around some | |
905 | versions of make not handling files being created as side-effects. | |
906 | ||
907 | * gen.c (lf_open): Add -n (real_file_name) option. Specifies an | |
908 | alternative file name to use in output files for things like #line | |
909 | macros. | |
910 | ||
911 | Makefile.in (tmp-gencode): Use gen -n so that debug info is | |
912 | correct. | |
913 | ||
914 | * Makefile.in (TARGETLIB): Use this instead of libsim.a in the | |
915 | Makefile. | |
916 | ||
f46f3807 MM |
917 | Sat Oct 7 22:40:59 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
918 | ||
919 | * sim_calls.c (sim_set_callbacks): Define new function. | |
920 | ||
7ca054e8 MM |
921 | Fri Oct 6 17:23:10 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
922 | ||
923 | * psim.c (psim_print_info): Print exit status or signal number. | |
924 | ||
8eab189b MM |
925 | Mon Oct 2 11:46:37 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
926 | ||
344d5a23 | 927 | * cpu.c (struct _cpu): Add number_of_insns field to trace how many |
83d96c6e MM |
928 | instructions are executed. |
929 | (cpu_increment_number_of_insns): New function to increment the | |
930 | number of instructions issued. | |
931 | (cpu_get_number_of_insns): New function to return the number of | |
932 | instructions issued. | |
933 | (cpu_print_info): New function to print cpu related information. | |
934 | At present, print the number of instructions executed. | |
935 | ||
936 | * gen_idecode_c: Emit call to cpu_increment_number_of_insns within | |
937 | idecode_issue. | |
938 | ||
939 | * psim.c (psim_print_info): New function to iterate over each of | |
940 | the CPU's calling cpu_print_info. | |
941 | ||
942 | * psim.h,cpu.h: Add new declarations. | |
943 | ||
8eab189b MM |
944 | * sim_calls.c (sim_open): Add argument processing to add the same |
945 | switches main.c accepts for the standalone processor. | |
83d96c6e MM |
946 | (sim_close): Call psim_print_info if -I. |
947 | ||
8eab189b | 948 | * main.c (main): Add comment saying to update sim_calls.c when |
83d96c6e | 949 | adding switches. Add -I to call psim_print_info when done. |
e1aaf979 | 950 | (usage): Update usage message. |
8eab189b | 951 | |
d8d46596 MM |
952 | Sun Oct 1 13:52:59 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
953 | ||
954 | * main.c (printf_filtered): Correct to match new prototype. | |
955 | ||
9d3b4701 MM |
956 | Sat Sep 30 20:47:05 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
957 | ||
958 | * sim_callbacks.h (printf_filtered): Correct prototype. | |
959 | ||
4f35cbff MM |
960 | Thu Sep 21 16:26:49 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
961 | ||
9d3b4701 MM |
962 | * device_tree.c (OEA_MEMORY_SIZE): Define if not defined to |
963 | 0x100000. | |
964 | (clayton_memory_size): Define as OEA_MEMORY_SIZE. | |
965 | ||
4f35cbff MM |
966 | * std-config.h (WITH_TRACE): Default to 1 now. |
967 | ||
968 | * psim.c (write_stack_arguments): Don't write any stack arguments | |
969 | if OEA. | |
970 | ||
971 | * main.c (main): Switch to using getopt. Make -p also set | |
9d3b4701 MM |
972 | trace_semantics. Make -a turn on all trace flags. Make -C turn |
973 | on console tracing. | |
4f35cbff MM |
974 | |
975 | * device_tree.c (create_option_device_node): Assume a program is | |
976 | OEA if the start address is < 4096, not just == 0. | |
977 | ||
602677ad ILT |
978 | Wed Sep 20 13:36:06 1995 Ian Lance Taylor <ian@cygnus.com> |
979 | ||
980 | * Makefile.in (maintainer-clean): New synonym for realclean. | |
981 | ||
0384d2e3 MT |
982 | Sun Sep 10 10:23:56 1995 Michael Tiemann <tiemann@axon.cygnus.com> |
983 | ||
984 | * registers.c (register_description): Add gdb synonyms for cr | |
985 | (cnd) and msr (ps). | |
986 | ||
987 | Fri Sep 8 13:16:10 1995 Ian Lance Taylor <ian@cygnus.com> | |
988 | ||
989 | * Makefile.in (install): Don't install in $(tooldir). | |
990 | ||
8b3797aa MM |
991 | * configure.in: Call AC_CONFIG_HEADER. Don't try to use |
992 | bfd/hosts/*.h file or bfd/config/*.mh file. Call AC_PROG_CC and | |
993 | AC_PROG_RANLIB. Substitute in values for CFLAGS, HDEFINES, AR, | |
994 | and CC_FOR_BUILD. Call AC_CHECK_HEADERS for various header files. | |
995 | Touch stamp.h if creating config.h. | |
996 | * configure: Rebuild. | |
997 | * config.in: New file, created by autoheader. | |
998 | * Makefile.in (AR): Define as @AR@. | |
999 | (CC): New variable, defined as @CC@. | |
1000 | (CFLAGS): Define as @CFLAGS@. | |
1001 | (CC_FOR_BUILD): New variable, defined as @CC_FOR_BUILD@. | |
1002 | (RANLIB): Define as @RANLIB@. | |
1003 | (HDEFINES, TDEFINES): New variables. | |
1004 | (@host_makefile_frag@): Remove. | |
1005 | (mostlyclean): Make the same as clean, not distclean. | |
1006 | (clean): Remove config.log. | |
1007 | (distclean): Remove config.h and stamp-h. | |
1008 | (Makefile): Don't depend upon @frags@. Just rebuild Makefile when | |
1009 | invoking config.status. | |
1010 | (config.h, stamp-h): New targets. | |
1011 | (gen, gen.o): Build with CC_FOR_BUILD, not CC. | |
1012 | (ppc-config.h): Rename from old config.h build. | |
1013 | * (basics.h,gen.c,ppc-endian.c,psim.c): Include ppc-config.h. | |
1014 | ||
4f965b81 MM |
1015 | Fri Sep 8 09:51:03 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1016 | ||
1017 | * configure{,.in}: Don't include sysdep.h from bfd, since bfd no | |
1018 | longer provides it. | |
1019 | * basics.h (sysdep.h): Don't include it. | |
1020 | * Makefile.in (BASICS_H): Remove sysdep.h. | |
1021 | ||
c143ef62 | 1022 | Wed Sep 6 13:25:42 1995 Andrew Cagney <cagney@highland.com.au> |
4f965b81 MM |
1023 | |
1024 | * core.c (core_add_data): First growth of bss was being put at | |
1025 | wrong address (0) instead of &end. | |
1026 | ||
1027 | * core.c (core_add_stack, core_add_data): Was not handling case | |
1028 | where bss/stack is grown across the current end-of-{bss,stack}. | |
1029 | ||
c143ef62 | 1030 | Wed Sep 6 00:46:10 1995 Andrew Cagney <cagney@highland.com.au> |
4f965b81 MM |
1031 | |
1032 | * system.c (system_call): Fix SYS_break - was aligning bss to a | |
1033 | page boundary instead of just an 8 byte one; On first call sbrk(0) | |
1034 | != sbrk(0). | |
1035 | ||
1036 | Thu Aug 24 14:48:54 1995 Michael Meissner <meissner@tiktok.cygnus.com> | |
1037 | ||
1038 | * Makefile.in (install): Fix install rule. | |
1039 | ||
cb7a6892 MM |
1040 | Tue Aug 22 09:31:18 1995 Michael Meissner <meissner@tiktok.cygnus.com> |
1041 | ||
1042 | * system.c (system_call): Add read support. | |
1043 | ||
1044 | * main.c (main): -t sets trace_device_tree. Correct usage message | |
1045 | to current reality. | |
1046 | ||
1047 | * device_tree.c (update_memory_node_for_section): Make tracing | |
1048 | output line up. If not code or readonly, assume that the section | |
1049 | is a data section and has read/write permissions. Add readonly | |
1050 | support. | |
1051 | ||
1052 | * core.c (create_core_from_addresses): Print end address in traces | |
1053 | and make tracing output line up. | |
1054 | ||
1055 | * Makefile.in: Rewrite from Makefile to work with the Cygnus | |
1056 | environment, and support compiling in a different directory than | |
1057 | the sources reside in. | |
1058 | ||
1059 | * ppc-endian.h: Rename from endian.h so that it doesn't get | |
1060 | confused with /usr/include/sys/endian.h on Linux. Add Linux | |
1061 | endian support. | |
1062 | ||
1063 | * ppc-endian.c: Rename to be consistant with ppc-endian.h. | |
1064 | Include ppc-endian.h, not endian.h. | |
1065 | ||
1066 | * basics.h (sysdep.h): Include sysdep.h that configure makes. | |
1067 | Include ppc-endian.h, not endian.h. | |
1068 | ||
1069 | * std-config.h: Rename from ppc-config. Put #ifndefs around most | |
1070 | configuration macros, so they can be overridden via CFLAGS. By | |
1071 | default, turn off tracing. | |
1072 | ||
1073 | * configure.in: Clone from other simulator targets. | |
1074 | * configure: Generate via autoconf from configure.in. | |
1075 | ||
c143ef62 | 1076 | Sat Aug 19 09:05:32 1995 Andrew Cagney <cagney@highland.com.au> |
cb7a6892 MM |
1077 | |
1078 | * ppc-instructions: fix srawi (was geting XER[CA] real wrong). | |
1079 | ||
1080 | * interrupts.c (data_storage_interrupt): allow stack to grow by | |
1081 | upto one MB per increment. | |
1082 | ||
1083 | * ppc-instructions: divw was computing rA / rA not rA / rB | |
1084 | ||
1085 | * main.c (main): really stupid. Wasn't exiting with correct status | |
1086 | ||
c143ef62 | 1087 | Fri Aug 18 00:38:01 1995 Andrew Cagney <cagney@highland.com.au> |
cb7a6892 MM |
1088 | |
1089 | * system.c (system_call): add system calls kill(2) and getpid(2). | |
1090 | ||
1091 | * main.c (main): Check/return exit status when simulation | |
1092 | finishes. | |
1093 | ||
c143ef62 | 1094 | Thu Aug 17 14:29:18 1995 Andrew Cagney <cagney@highland.com.au> |
cb7a6892 MM |
1095 | |
1096 | * device_tree.c (create_option_device_node): Alignment rules (at | |
1097 | least for the moment) now are for strict alignment only for LE OEA | |
1098 | mode. (Because of compiler problems). | |
1099 | ||
1100 | * system.c (system_call) SYS_exit: Wasn't exiting with correct status. | |
1101 | ||
c143ef62 | 1102 | Thu Aug 17 01:16:38 1995 Andrew Cagney <cagney@highland.com.au> |
cb7a6892 MM |
1103 | |
1104 | * vm.c (DEFINE_VM_DATA_MAP_WRITE_N): For miss aligned transfer | |
1105 | forgot to return. | |
1106 | ||
1107 | * system.c (system_call): didn't page align break argument before | |
1108 | determining increment break increment. | |
1109 | ||
1110 | * psim/ppc: Re-arange entire directory structure so that | |
1111 | everything lives in the one directory. While a pain for cleaning, | |
1112 | makes building across multiple architectures much simpler. | |
1113 | ||
1114 | * devices.c, device_tree.c: Added code that provides a simple | |
1115 | illustration of how an interrupt control device could be | |
1116 | implemented. | |
1117 | ||
1118 | * devices.c: Added code so that the dumb console device can read | |
1119 | (from stdin) as well as write to stdout. | |
1120 |