]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/igen/ChangeLog
sim/igen: Fix linker error with -fno-common
[thirdparty/binutils-gdb.git] / sim / igen / ChangeLog
1 2020-07-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
2
3 PR sim/26194
4 * lf.h (lf_get_file_type): Declare.
5 * lf.c (lf_get_file_type): Define.
6 * gen-idecode.c (print_idecode_issue_function_header): Use
7 lf_get_file_type() to issue an extern variable declaration in
8 case of header files.
9
10 2019-12-19 Tom Tromey <tromey@adacore.com>
11
12 PR build/24572:
13 * Makefile.in (install-strip): New target.
14
15 2016-01-10 Mike Frysinger <vapier@gentoo.org>
16
17 * configure: Regenerate.
18
19 2016-01-10 Mike Frysinger <vapier@gentoo.org>
20
21 * configure: Regenerate.
22
23 2016-01-10 Mike Frysinger <vapier@gentoo.org>
24
25 * configure: Regenerate.
26
27 2016-01-10 Mike Frysinger <vapier@gentoo.org>
28
29 * configure: Regenerate.
30
31 2016-01-04 Mike Frysinger <vapier@gentoo.org>
32
33 * configure: Regenerate.
34
35 2015-06-12 Mike Frysinger <vapier@gentoo.org>
36
37 * configure: Regenerate.
38
39 2015-04-24 David Binderman <dcb314@hotmail.com>
40 Nick Clifton <nickc@redhat.com>
41
42 PR 18273
43 * misc.c (a2i): Fix typos checking for uppercase letters.
44
45 2015-04-17 Mike Frysinger <vapier@gentoo.org>
46
47 * gen-engine.c (print_run_body): Change CIA_GET to CPU_PC_GET and
48 CIA_SET to CPU_PC_SET.
49
50 2015-03-31 Mike Frysinger <vapier@gentoo.org>
51
52 * configure: Regenerate.
53
54 2014-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>
55
56 * igen/ld-cache.h, igen/table.h: Change immediatly to immediately.
57
58 2014-03-04 Mike Frysinger <vapier@gentoo.org>
59
60 * configure: Regenerate.
61
62 2013-11-25 Steve Ellcey <sellcey@mips.com>
63
64 * igen/Makefile.in (igen): Use BUILD_CFLAGS in link.
65
66 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
67
68 * configure: Rebuild.
69
70 2012-03-24 Mike Frysinger <vapier@gentoo.org>
71
72 * configure: Regenerate.
73
74 2011-10-17 Mike Frysinger <vapier@gentoo.org>
75
76 * configure.ac: Change include to common/acinclude.m4.
77
78 2011-10-17 Mike Frysinger <vapier@gentoo.org>
79
80 * configure.ac: Change AC_PREREQ to 2.64. Delete AC_CONFIG_HEADER
81 call. Replace common.m4 include with SIM_AC_COMMON.
82 * configure: Regenerate.
83
84 2011-07-08 Hans-Peter Nilsson <hp@axis.com>
85
86 * ld-insn.c (print_insn_words): For fields, print conditionals.
87
88 Correct handling of constant named fields.
89 * gen.c (insn_field_cmp): Tweak comment about neither field
90 being an insn_field_string with a cond_eq-to-value condition.
91 (insns_bit_useless) <case insn_field_string, case
92 decode_find_mixed>: Handle cond_eq-to-value fields as
93 insn_field_int.
94 * gen-idecode.c (print_idecode_validate): Handle
95 insn_field_string cond-equal-to-value fields as insn_field_int.
96 * gen-icache.c (print_icache_body): Add comment why constant
97 string fields are handled.
98
99 Remove all #if 0'd code.
100 * filter.c: Remove #if 0'd function it_is.
101 (main): Remove #if 0'd code.
102 * gen-engine.c: Remove #if 0'd functions print_jump,
103 print_jump_insn, print_jump_definition,
104 print_jump_internal_function, print_jump_body.
105 (gen_engine_c): Remove #if 0'd code.
106 * gen-idecode.c: Remove #if 0'd functions print_jump print_jump,
107 print_jump_insn, print_jump_definition,
108 print_jump_internal_function, print_jump_until_stop_body.
109 * gen-model.c: Remove #if 0'd functions model_c_or_h_data,
110 model_c_or_h_function, gen_model_h, model_c_insn,
111 model_c_function, gen_model_c and types model_c_passed_data
112 and struct _model_c_passed_data.
113 * gen.c: Remove #if 0'd type constant_field_types and function
114 insn_field_is_constant.
115 (gen_entry_find_opcode_field): Remove #if 0'd code.
116 * ld-insn.c (parse_insn_model_record): Remove #if 0'd code.
117 * misc.h (STRDUP, STRNDUP): Remove #if 0'd macros.
118
119 2011-02-14 Mike Frysinger <vapier@gentoo.org>
120
121 * table.c (table_push): Change zfree to free.
122
123 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
124
125 * config.in: Regenerate.
126 * configure: Likewise.
127
128 * configure: Regenerate.
129
130 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
131
132 * Makefile.in (datarootdir): New variable.
133
134 2008-08-28 Joel Brobecker <brobecker@adacore.com>
135
136 * compare_igen_models: Change license to GPL version 3.
137
138 2007-08-27 Joel Brobecker <brobecker@adacore.com>
139
140 * lf.c (lf_print__gnu_copyleft): Change license to GPL version 3.
141
142 2006-12-21 Hans-Peter Nilsson <hp@axis.com>
143
144 * acconfig.h: Remove.
145 * config.in: Regenerate.
146
147 2005-01-11 Andrew Cagney <cagney@localhost.localdomain>
148
149 * configure.ac: Delete AC_CONFIG_AUX_DIR.
150 * configure: Re-generate.
151
152 2005-01-07 Andrew Cagney <cagney@gnu.org>
153
154 * configure.ac: Rename configure.in, require autoconf 2.59.
155 * configure: Re-generate.
156
157 2003-05-03 Chris Demetriou <cgd@broadcom.com>
158
159 * compare_igen_models: Tweak attribution slightly.
160
161 2002-11-22 Andrew Cagney <cagney@redhat.com>
162
163 * gen.c (name_cmp): Rename format_name_cmp.
164 (insn_list_insert): When a merge, compare the format name and
165 instruction name. Add trace messages.
166
167 2002-11-21 Andrew Cagney <ac131313@redhat.com>
168
169 * filter.c: Re-indent.
170 * filter.h, filter_host.h, gen-engine.c, gen-engine.h: Ditto.
171 * gen-icache.c, gen-icache.h, gen-idecode.c: Ditto.
172 * gen-idecode.h, gen-itable.c, gen-itable.h: Ditto.
173 * gen-model.c, gen-model.h, gen-semantics.c: Ditto.
174 * gen-semantics.h, gen-support.c, gen-support.h: Ditto.
175 * gen.c, gen.h, igen.c, igen.h, ld-cache.c, ld-cache.h: Ditto.
176 * ld-decode.c, ld-decode.h, ld-insn.c, ld-insn.h, lf.c: Ditto.
177 * lf.h, misc.c, misc.h, table.c, table.h: Ditto.
178
179 2002-11-21 Andrew Cagney <ac131313@redhat.com>
180
181 * Makefile.in: Update copyright. IGEN contributed to the FSF.
182 * filter.c, filter.h, filter_host.c, filter_host.h: Ditto.
183 * gen-engine.c, gen-engine.h, gen-icache.c, gen-icache.h: Ditto.
184 * gen-idecode.c, gen-idecode.h, gen-itable.c: Ditto.
185 * gen-itable.h, gen-model.c, gen-model.h, gen-semantics.c: Ditto.
186 * gen-semantics.h, gen-support.c, gen-support.h, gen.c: Ditto.
187 * gen.h, igen.c, igen.h, ld-cache.c, ld-cache.h: Ditto.
188 * ld-decode.c, ld-decode.h, ld-insn.c, ld-insn.h, lf.c: Ditto.
189 * lf.h, misc.c, misc.h, table.c, table.h: Ditto.
190
191 2002-11-06 Richard Sandiford <rsandifo@redhat.com>
192
193 * gen-engine.c (print_engine_issue_prefix_hook): Don't add the
194 global prefix to ENGINE_ISSUE_PREFIX_HOOK.
195 (print_engine_issue_postfix_hook): Likewise ENGINE_ISSUE_POSTFIX_HOOK.
196
197 2002-08-28 Dave Brolley <brolley@redhat.com>
198
199 * gen-support.c (gen_support_h): Generate
200 '#define semantic_illegal <PREFIX>_semantic_illegal'.
201
202 2002-08-22 Chris Demetriou <cgd@broadcom.com>
203
204 * compare_igen_models: New script.
205
206 2002-06-17 Andrew Cagney <cagney@redhat.com>
207
208 * gen.c (gen_entry_expand_opcode): Initialize ``value'' to -1 and
209 ``t'' to NULL.
210 * igen.c (main): Add default case to switch.
211 * gen-icache.c (print_icache_extraction): Ditto.
212
213 2002-06-17 Andrew Cagney <cagney@redhat.com>
214
215 * Makefile.in (BUILD_CFLAGS): Remove -O0.
216
217 2002-06-16 Andrew Cagney <ac131313@redhat.com>
218
219 * configure: Regenerated to track ../common/aclocal.m4 changes.
220
221 2002-06-03 Richard Henderson <rth@redhat.com>
222
223 * gen-engine.c (print_run_body): Avoid multi-line strings.
224 * lf.c (lf_print__gnu_copyleft): Likewise.
225
226 2002-05-01 Chris Demetriou <cgd@broadcom.com>
227
228 * igen.c: Use 'deprecated' rather than 'depreciated.'
229
230 2002-03-23 Andrew Cagney <ac131313@redhat.com>
231
232 * gen.c (format_name_cmp): New function.
233 (insn_list_insert): Use the instruction field name as an
234 additional key. Different field names indicate different
235 semantics.
236
237 2002-03-07 Chris Demetriou <cgd@broadcom.com>
238
239 * igen.c (print_itrace_format): Add support for a new "%#lx" format.
240
241 Tue May 23 21:39:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
242
243 * configure: Regenerated to track ../common/aclocal.m4 changes.
244
245 2000-04-12 Frank Ch. Eigler <fche@redhat.com>
246
247 * gen-semantics.c (print_semantic_body): Use GPR_CLEAR(N) instead
248 of GPR_SET(N,0) for gen-zero-rN.
249
250 Thu Sep 2 18:15:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
251
252 * Makefile.in (SIM_WARNINGS): Replace this with.
253 (IGEN_WERROR_CFLAGS, IGEN_WARN_CFLAGS, WERROR_CFLAGS,
254 WARN_CFLAGS): With these.
255 (BUILD_CFLAGS): Update.
256
257 * configure: Regenerated to track ../common/aclocal.m4 changes.
258
259 1999-05-08 Felix Lee <flee@cygnus.com>
260
261 * configure: Regenerated to track ../common/aclocal.m4 changes.
262
263 Fri Dec 4 15:14:09 1998 Andrew Cagney <cagney@b1.cygnus.com>
264
265 * igen.c (main): Fix -Pitable=.
266
267 * gen-engine.c (print_run_body): Prefix instruction_address.
268
269 Wed Oct 28 18:12:43 1998 Andrew Cagney <cagney@b1.cygnus.com>
270
271 * Makefile.in (SIM_WARNINGS): Update to match ../common/aclocal.m4
272 changes.
273
274 Wed Aug 12 10:55:28 1998 Frank Ch. Eigler <fche@cygnus.com>
275
276 * gen-icache.c (print_icache_extraction): #undef a generated
277 symbol before #define'ing it, to remove conflict with system
278 macros.
279
280 Wed Jul 29 10:07:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
281
282 * gen.c (gen_entry_expand_opcode): For conditional, fields. Fix
283 the extraction of the value from its source - both table and bit
284 cases were wrong.
285
286 Tue Jul 28 11:19:43 1998 Andrew Cagney <cagney@b1.cygnus.com>
287
288 * ld-insn.c (parse_insn_word): For constant conditional strings,
289 encode their bit value.
290
291 * ld-insn.c (parse_insn_word, parse_insn_words): Allow conditional
292 operands to refer to fields in earlier instruction words.
293
294 * gen.c (sub_val): Replace field argument with val_last_pos.
295 (gen_entry_expand_opcode): Look in previous tables for a value for
296 a conditional field as well as the bits from the current table.
297 (insn_list_insert): Add sort key of instructions where
298 their operand fields have different conditionals.
299 (insn_field_cmp): New function.
300
301 Sun Apr 26 15:31:55 1998 Tom Tromey <tromey@creche>
302
303 * configure: Regenerated to track ../common/aclocal.m4 changes.
304 * config.in: Ditto.
305
306 Sun Apr 26 15:20:08 1998 Tom Tromey <tromey@cygnus.com>
307
308 * acconfig.h: New file.
309 * configure.in: Reverted change of Apr 24; use sinclude again.
310
311 Fri Apr 24 14:16:40 1998 Tom Tromey <tromey@creche>
312
313 * configure: Regenerated to track ../common/aclocal.m4 changes.
314 * config.in: Ditto.
315
316 Fri Apr 24 11:19:33 1998 Tom Tromey <tromey@cygnus.com>
317
318 * configure.in: Don't call sinclude.
319
320 Fri Apr 24 19:45:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
321
322 * gen-icache.c (print_icache_extraction): Do not type cast
323 pointers.
324
325 * ld-insn.c (load_insn_table): Terminate error with NL.
326
327 * gen.c (insns_bit_useless): Perform unsigned bit comparisons.
328
329 * filter.c (is_filtered_out, filter_parse): Pacify GCC, len is
330 unsigned.
331
332 Wed Apr 22 14:27:39 1998 Michael Meissner <meissner@cygnus.com>
333
334 * configure: Reconfigure to pick up ../common/aclocal.m4 changes
335 to suppress inlining by default.
336
337 Tue Apr 21 01:37:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
338
339 * gen-icache.c (print_icache_extraction): When generating #define
340 force the expression to the correct type.
341
342 Thu Apr 16 08:50:29 1998 Andrew Cagney <cagney@b1.cygnus.com>
343
344 * misc.c (name2i): strlen returns an unsigned.
345
346 Tue Apr 14 19:04:28 1998 Andrew Cagney <cagney@b1.cygnus.com>
347
348 * igen.h (struct igen_warn_options): Add unimplemented option.
349 * igen.c (main): Update
350
351 * ld-insn.c (load_insn_table): Report unimplemented functions.
352
353 Tue Apr 14 10:57:26 1998 Andrew Cagney <cagney@b1.cygnus.com>
354
355 * ld-insn.c (parse_insn_word): Treat `!' and `=' as valid
356 separator tokens when parsing a conditional.
357
358 * igen.h (main): Add option -S so that suffix can be specified.
359
360 Tue Apr 14 08:44:53 1998 Andrew Cagney <cagney@b1.cygnus.com>
361
362 * igen.h (struct igen_trace_options): Add members insn_expansion
363 and insn_insertion.
364
365 * igen.c (main): Add options -Gtrace-insn-expansion,
366 -Gtrace-insn-insertion and -Gtrace-all.
367
368 * gen.c (gen_entry_expand_insns): Trace each instruction as it is
369 selected for expansion.
370 (gen_entry_expand_opcode): Trace each expanded instruction as it
371 is inserted into the table.
372
373 Mon Apr 13 19:21:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
374
375 * ld-insn.c (parse_insn_word): Parse conditional operators.
376 (parse_insn_word): Verify field conditionals.
377
378 * ld-insn.h: Extend syntax to allow macros and field equality.
379 (struct insn_field_cond): Rename insn_field_exclusion, add type.
380
381 * gen.c (gen_entry_expand_opcode): Check type of conditional.
382 (insns_bit_useless): Ditto.
383
384 * ld-insn.c (parse_macro_record): New function.
385
386 Mon Apr 13 22:37:47 1998 Andrew Cagney <cagney@b1.cygnus.com>
387
388 * ld-insn.h (enum insn_field_type): Add insn_field_invalid.
389
390 * ld-insn.c (parse_insn_word): Check instruction field type
391 correctly initialized.
392 (print_insn_words): Ditto.
393 (insn_field_type_to_str): Ditto.
394 (dump_insn_field): Ditto.
395
396 * gen.c (insns_bit_useless): Ditto.
397
398 Fri Apr 3 18:08:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
399
400 * gen.h, igen.c (print_include_inline, print_includes,
401 print_includes): New functions. Generate include list. For for
402 semantics et.al. generate CPP code to inline when
403 C_REVEALS_MODULE_P.
404
405 * igen.c (gen_semantics_c): Call print_includes.
406 * gen-engine.c (gen_engine_c): Ditto.
407
408 Sat Apr 4 21:09:11 1998 Andrew Cagney <cagney@b1.cygnus.com>
409
410 * igen.h: (struct _igen_name_option): Replace with struct
411 igen_module_option. Contains both module prefix and suffix.
412 (INIT_OPTIONS): Initialize.
413
414 * igen.c (main): Update -P option to fill in full module info.
415 (gen-engine.c, gen-icache.c, gen-itable.c, gen-semantics.c,
416 gen-support.c): Update.
417
418 Sat Apr 4 02:15:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
419
420 * igen.c (print_itrace): Use TRACE_ANY_P macro to determine if any
421 tracing is needed.
422
423 Thu Mar 26 20:51:23 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
424
425 * table.c (table_push): Redo, using stdio. Fixes NT native
426 problem with <CRLF>=><LF> translation...
427
428 Tue Mar 24 23:30:07 1998 Andrew Cagney <cagney@b1.cygnus.com>
429
430 * gen-engine.c (print_run_body): Re-extract the CIA after
431 processing any events.
432
433 Tue Mar 24 17:46:08 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
434
435 * Makefile.in: Get SHELL from configure.
436 * configure: Regenerate with autoconf 2.12.1 to fix shell issues for
437 NT native builds.
438
439 Mon Mar 16 12:51:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
440
441 * igen.c: Pass sim_cia to trace_prefix.
442
443 Thu Feb 26 19:25:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
444
445 * ld-insn.c (parse_function_record): Check models are valid.
446 (parse_function_record): Only discard function when no model is
447 common.
448
449 Tue Feb 24 01:42:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
450
451 * gen-engine.c (print_run_body): Always wrap generated idecode
452 body in ENGINE_ISSUE_PREFIX_HOOK / ENGINE_ISSUE_POSTFIX_HOOK.
453
454 Fri Feb 20 16:22:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
455
456 * ld-insn.c (parse_function_record): When -Wnodiscard, suppress
457 discarded function warning.
458
459 * igen.c (main): Clarify -Wnodiscard.
460
461 * ld-insn.c (parse_function_record): For functions, allow use of
462 instruction style function model records
463
464 * ld-insn.h (nr_function_model_fields): Define.
465
466 Tue Feb 17 16:36:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
467
468 * igen.c (print_itrace_prefix): Generate call to trace_prefix
469 instead of trace_one_insn.
470 (print_itrace): Generate trace_prefix call if any tracing enabled,
471 (print_itrace): Nest generated call to trace_generic inside
472 conditional for any tracing enabled.
473 (print_itrace_prefix): Do not pass PHASE to trace_prefix.
474
475 Tue Feb 3 14:00:32 1998 Andrew Cagney <cagney@b1.cygnus.com>
476
477 * gen-engine.c (print_run_body): Add bitsize suffix to IMEM macro.
478 * gen-icache.c (print_icache_body): Ditto.
479 * gen-idecode.c (print_idecode_ifetch): Ditto.
480
481 * gen-icache.c (print_icache_body): Mark successive instruction
482 words as unused.
483
484 * ld-insn.c (parse_insn_word): Only report insn-width problems
485 when warning enabled.
486
487 * igen.h: Add flag for warning about invalid instruction widths.
488 * igen.c: Parse -Wwidth option.
489
490 * gen-support.c (gen_support_h): Map instruction_word onto
491 <PREFIX>_instruction_word when needed.
492 (print_support_function_name): Use support prefix.
493 (gen_support_h): Ditto for <PREFIX>_idecode_issue.
494
495 Sun Feb 1 11:08:48 1998 Andrew Cagney <cagney@b1.cygnus.com>
496
497 * gen-support.c (gen_support_h): Generate new macro CPU_.
498
499 Sat Jan 31 14:50:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
500
501 * gen-engine.c (gen_engine_h): Don't assume a model is present.
502 (gen_engine_c): Ditto.
503
504 * igen.c (gen_run_c): Ditto.
505
506 * gen-engine.c (print_run_body): Use CIA_GET & CIA_SET instead of
507 CPU_CIA. Parameterize with CPU argument.
508
509 Fri Jan 30 09:09:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
510
511 * gen.h (struct _gen_list): Replace processor with model.
512
513 * igen.c (gen_idecode_h): Update.
514 (gen_run_c): For generated switch, use model->full_name.
515
516 * gen.c (print_gen_entry_path): Ditto.
517 (make_table): Ditto.
518 (gen_entry_expand_insns): Ditto.
519 (make_gen_tables): Ditto.
520
521 * igen.c (gen_run_c): Add extra argument `nr_cpus' to generated
522 function sim_engine_run. Pass argument on to engine_run.
523
524 * gen-engine.c (print_engine_run_function_header): Add extra
525 argument `nr_cpus' to generated function engine_run.
526 (print_run_body): Fix SMP case.
527
528 * gen-support.c (support_c_function): Call sim_engine_abort when
529 internal function fails to long jump.
530
531 Wed Jan 21 18:00:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
532
533 * gen-semantics.c (print_semantic_body): Use GPR_SET to zero
534 hardwired register.
535
536 Wed Dec 17 14:49:03 1997 Jeffrey A Law (law@cygnus.com)
537
538 * gen-semantics.c (print_semantic_body): Fix handling of
539 hardwired zero register.
540
541 Tue Dec 9 12:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
542
543 * igen.h (struct _igen_gen_options): Add member default_model.
544
545 * igen.c (gen_run_c): Default to the first machine in the
546 multi-sim list.
547 (main): Add MODEL parameter to gen-multi-sim option.
548
549 * gen.h (function_decl_type): Declare enum.
550
551 * gen-engine.c (print_engine_run_function_header), gen-engine.h:
552 Make global, pass function_decl_type as argument.
553 (gen_engine_h, gen_engine_c): Update call.
554
555 * gen-idecode.c (print_idecode_issue_function_header),
556 gen-idecode.h: Pass function_decl_type as argument.
557
558 * igen.c (gen_idecode_h): For multi-sim, delcare global variable
559 idecode_issue.
560
561 * igen.c (gen_run_c): For multi-sim, initialize globals
562 idecode_issue and engine_run.
563
564 Fri Nov 14 10:51:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
565
566 * ld-insn.c (parse_insn_model_record): Allow multiple model names
567 to be specified in a single instruction model record.
568 (dump_insn_model_entry): Update.
569
570 * ld-insn.h (struct _insn_model_entry): Replace member name with
571 the filter names. Document syntax change.
572
573 Wed Nov 12 15:45:40 1997 Andrew Cagney <cagney@b1.cygnus.com>
574
575 * gen-engine.c (print_run_body): Add hooks for adding code before
576 and after an instruction has been issued.
577
578 1997-11-04 Brendan Kehoe <brendan@lisa.cygnus.com>
579
580 * gen-idecode.c (print_jump_until_stop_body): Use `#if 0' instead of
581 `#ifdef 0' around this.
582
583 Tue Nov 4 08:18:29 1997 Michael Meissner <meissner@cygnus.com>
584
585 * ld-decode.c (load_decode_table): Don't assume NULL is an integer
586 constant.
587
588 Wed Oct 29 13:17:17 1997 Andrew Cagney <cagney@b1.cygnus.com>
589
590 * ld-insn.h: Document mnemonic string format.
591
592 Tue Oct 28 10:50:35 1997 Andrew Cagney <cagney@b1.cygnus.com>
593
594 * gen-icache.c (print_icache_extraction): Force result of atol to
595 unsigned.
596
597 * ld-insn.c (parse_function_record): Separate handling of old and
598 ney fynction records.
599 (load_insn_table): For %s record, hack function name & type after
600 it has been parsed.
601
602 * filter.h (filter_is_subset): Reverse argument names, wrong
603 order.
604
605 * ld-insn.c (load_insn_table): Move include code to.
606 (parse_include_record): New function. Check for filtering of
607 include statement by both flags and models.
608 (load_insn_table): Check for model filtering of cache and model
609 records.
610 (parse_model_data_record): Check for model & flag filtering of
611 model data records.
612 (parse_function_record): Check for model & flag filtering of
613 function records.
614
615 * ld-insn.h: Define record_filter_models_field. Add filter-models
616 field to all but instruction records.
617 (struct _function_entry, struct _cache_entry): Add models field.
618 (nr_function_fields): Make parm field mandatory.
619
620 Mon Oct 27 15:14:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
621
622 * igen.c (main): Change -I option to -I<directory>. Add optional
623 size to -Ggen-icache option. Add -Gno-... support.
624
625 * igen.h (struct _igen_options): Add include field.
626
627 * ld-insn.c (enum insn_record_type, insn_type_map): Add
628 include_record.
629 (load_insn_table): Call table_push when include record.
630
631 * table.c (struct _open table, struct table): Make table object an
632 indirect ptr to the current table file.
633 (current_line, new_table_entry, next_line): Make file arg type
634 open_table.
635 (table_open): Use table_push.
636 (table_read): Point variable file at current table, at eof, pop
637 last open table.
638
639 * table.h, table.c (table_push): New function.
640
641 Thu Oct 16 11:03:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
642
643 * gen-semantics.c (print_semantic_body): Use CIA not
644 cia.ip. Escape newlines at end of generated call to
645 sim_engine_abort.
646
647 Tue Oct 14 11:13:27 1997 Andrew Cagney <cagney@b1.cygnus.com>
648
649 * igen.c (print_itrace): Output line-ref to igen source file when
650 generating trace statements.
651 (print_itrace_prefix, print_itrace_format): Escape newline at end
652 of each line of generated call to trace function.
653
654 Mon Oct 13 11:27:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
655
656 * gen-support.c (gen_support_h): Generate #define NIA. Definition
657 dependant on gen-delayed-branch mode.
658
659 * ld-insn.c (parse_insn_mnemonic_record): Check for opening and
660 closing double quote in mnemonic field.
661 (parse_option_record): Add gen-delayed-branch option.
662
663 Wed Oct 8 13:10:16 1997 Andrew Cagney <cagney@b1.cygnus.com>
664
665 * gen.c (insn_list_insert): Missing \n in warning.
666
667 * ld-insn.c (load_insn_table): Only notify of discarded
668 instrctions when warn.discard enabled.
669
670 * igen.h: Add option.warn.discard, default enabled.
671
672 * igen.c (main): Add -Wnodiscard option.
673
674 * ld-insn.c (record_type): For old record type, check the number
675 of fields is correct.
676 (load_insn_table): Allow insn assembler and insn model records to
677 appear in any order.
678 (parse_insn_model_record): Rename from parse_insn_model_records.
679 Parse only one record.
680 (parse_insn_mnemonic_record): Rename from
681 parse_insn_mnemonic_records. Parse only one record.
682
683 Tue Sep 23 15:52:06 1997 Felix Lee <flee@yin.cygnus.com>
684
685 * gen-itable.c (gen_itable_h): [nr_itable_* + 1] to avoid
686 illegal zero-sized array.
687 (itable_print_set): likewise, avoid empty initializers.
688
689 Mon Sep 22 18:49:07 1997 Felix Lee <flee@cygnus.com>
690
691 * configure.in: i386-windows is a cross, so don't expect
692 libiberty to be there.
693 * configure: updated.
694
695 Fri Sep 19 10:36:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
696
697 * igen.c (print_function_name): Put the format name after the
698 function / instruction name, not before.
699 (print_itrace): Better format trace code.
700
701 Tue Sep 16 11:01:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
702
703 * gen.c (insns_bit_useless): Don't treat string fields restricted
704 to a range of values as useless.
705
706 Mon Sep 15 15:47:21 1997 Andrew Cagney <cagney@b1.cygnus.com>
707
708 * igen.c (gen_run_c): Handle non-multi-sim case.
709
710 * gen-support.c (gen_support_h): Define SD_ - to replace _SD.
711 Define CIA from cia.
712
713 Thu Sep 11 10:27:39 1997 Andrew Cagney <cagney@b1.cygnus.com>
714
715 * gen-semantics.c (print_semantic_body): Trace the instruction
716 after it has been validated.
717 (print_semantic_body): Count the instruction using sim-profile.
718
719 Wed Sep 10 13:35:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
720
721 * gen-itable.c (gen_itable_h): Collect summary info on instruction
722 table when traversing it.
723 (gen_itable_h): Output an enum defining the max size of each of
724 the itable string members.
725
726 Tue Sep 9 03:30:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
727
728 * igen.c (gen_run_c): New function. Generate sim_engine_run that
729 looks at the currently selected architecture.
730
731 * gen-engine.c, gen-idecode.c: Add multi-sim support - generate
732 one engine per model.
733
734 * gen-semantics.c, gen-icache.c gen-support.c:
735 Update.
736
737 * ld-insn.h, ld-insn-h (load_insn_table): Rewrite. table.h only
738 returns a line at a time. Parse multi-word instructions. Add
739 multi-sim support.
740
741 * table.h, table.c: Simplify. Only parse a single line at a time.
742 ld-insn can handle the rest.
743
744 * filter.h, filter.c (filter_parse, filter_add, filter_is_subset,
745 filter_is_common, filter_is_member, filter_next): New filter
746 operations.
747 (dump_filter): Ditto.
748
749 * gen.h, gen.c: New file. Takes the insn table and turns it into
750 a set of decode tables and semantic functions.
751
752 * ld-insn.c: Copy generator code from here.
753 * gen.c: To here.
754
755 Fri Aug 8 11:43:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
756
757 * misc.h (NZALLOC): Allocate an N element array of TYPE.
758
759 * table.h, table.c: Simplify table parser so that it only
760 understands colon delimited lines and code blocks.
761 (table_read): Parse '{' ... '}' as a code block.
762 (table_print_code): New function, print out a code block to file.
763 (main): Add suport for standalone testing.
764
765 * ld-insn.h, ld-insn.c:
766
767
768 Mon Sep 1 11:41:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
769
770 * gen-idecode.c (error_leaf_contains_multiple_insn): Make static.
771 (print_jump_definition, print_jump, print_jump_internal_function,
772 print_jump_insn, print_jump_until_stop_body): Delete, moved to
773 sim-engine.c
774
775 * igen.c (print_itrace_format): Delete unused variable chp.
776 (gen-engine.h): Include.
777
778 * table.c (current_file_name, current_line_entry,
779 current_line_entry): Make static.
780
781 Wed Aug 6 12:31:17 1997 Andrew Cagney <cagney@b1.cygnus.com>
782
783 * configure.in: Define AR_FOR_BUILD, AR_FLAGS_FOR_BUILD,
784 RANLIB_FOR_BUILD and CFLAGS_FOR_BUILD.
785 * configure.in: Include simulator common/aclocal.m4.
786 * configure.in: Add --enable-sim-warnings option.
787 * configure: Re-generate.
788
789 * Makefile.in: Use.
790
791 * Makefile.in (tmp-filter): New rule.
792 (igen.o, tmp-table, tmp-ld-decode, tmp-ld-cache, tmp-ld-insn,
793 ld-decode.o, ld-cache.o, ld-insn.o): Fix dependencies.
794
795 * gen.h, gen.c: New files.
796
797 * Makefile.in (gen.o, tmp-gen): New rules, update all
798 dependencies.
799
800 Tue Jun 24 11:46:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
801
802 * ld-insn.c (load_insn_table): Accept %s as a function type.
803
804 Thu Jun 5 17:14:32 1997 Andrew Cagney <cagney@b1.cygnus.com>
805
806 * igen.c (print_itrace_prefix): Move printing of insn prefix to
807 here.
808 (print_itrace_format): Drop printing of MY_NAME in instruction
809 trace. Printing of insn prefix moved.
810 (print_itrace): Ditto.
811
812 Fri May 30 11:27:37 1997 Andrew Cagney <cagney@b1.cygnus.com>
813
814 * gen-icache.c (print_icache_function_header): Pass
815 table_line_entry instead of separate file and line.
816
817 * table.c (table_entry_read): Set assembler source file/line-nr to
818 the current not initial file.
819 (table_entry_read): Fix line numbering of source files.
820
821 table.h (table_line_entry): New structure. Exactly specifies a
822 source file/line-nr.
823 (table_*_entry): Add this to all.
824
825 table.c (table_entry_print_cpp_line_nr): Change to use values from
826 a table_line_entry struct.
827 (table_entry_read): Save table_line_entry in all structures read.
828
829 gen-icache.c, gen-support.c, gen-idecode.c, gen-semantics.c,
830 gen-model.c: Update all references.
831
832 Thu May 29 10:29:57 1997 Andrew Cagney <cagney@b1.cygnus.com>
833
834 * igen.c (print_my_defines): Define MY_NAME - a string. For
835 MY_PREFIX, undefine the name of the function incase some dumb
836 header defined it. it.
837 (print_itrace): Use MY_NAME not MY_PREFIX.
838
839 * lf.c (lf_write): New function write an N character buffer to the
840 file.
841
842 * igen.c (print_itrace): When available, use the assembler to
843 print the insn-trace.
844 (print_itrace_prefix): New function, print first part of call to
845 print_one_insn.
846 (print_itrace_format): New function, print fmt argument for
847 print_one_insn.
848
849 * table.c (table_entry_read): Save any assembler lines instead of
850 discarding them.
851
852 Wed May 28 09:55:29 1997 Andrew Cagney <cagney@b1.cygnus.com>
853
854 * gen-icache.c (print_icache_body): Process immeds.
855
856 * gen-semantics.c (print_semantic_body): When computing NIA, skip
857 any immed words that follow the instruction word.
858
859 * ld-insn.c (parse_insn_format): Parse immeds appended to an
860 instruction.
861
862 * igen.c (main): Allow any register to be specified as the zero
863 register.
864 (semantic_zero_reg): Global, index to zero register.
865
866 * gen-semantics.c (print_semantic_body): Zero selected register.
867
868 Tue May 27 14:12:32 1997 Andrew Cagney <cagney@b1.cygnus.com>
869
870 * igen.h: Stop options and code gen type bit masks overlaping.
871
872 Fri May 23 12:01:08 1997 Andrew Cagney <cagney@b1.cygnus.com>
873
874 * gen-semantics.c (print_semantic_body): Incorrect test for
875 zero-r0 code.
876
877 Fri May 16 14:32:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
878
879 * gen-semantics.c (print_semantic_body): Use common sim-engine
880 interface.
881
882 Fri May 16 11:48:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
883
884 * gen-semantics.c (print_semantic_body): Add code to clear r0.
885
886 * igen.c (main): Add new option zero-r0, which adds code to clear
887 GPR(0) each cycle.
888
889 Wed May 7 12:31:30 1997 Andrew Cagney <cagney@b1.cygnus.com>
890
891 * igen.c (print_itrace): Fix so line-nr is passed to trace
892 function.
893
894 * gen-idecode.c (print_idecode_validate): Correct FP code.
895
896 * gen-support.c (gen_support_h): Always pass MY_INDEX to support
897 functions.
898 (print_support_function_name): Ditto.
899
900 Tue May 6 06:12:04 1997 Mike Meissner <meissner@cygnus.com>
901
902 * igen.c (print_itrace): Call trace_one_insn to trace
903 instructions, rather than doing it directly.
904
905 Mon May 5 14:11:46 1997 Mike Meissner <meissner@cygnus.com>
906
907 * gen-engine.c (engine_switch_leaf): Remove extra %s.
908 (print_engine_floating_point_unavailable): Wrap in #ifdef
909 UNUSED/#endif, until somebody uses it.
910
911 * gen-idecode.c (error_leaf_contains_multiple_insn): Remove unused
912 variable.
913 (print_jump_until_stop_body): Wrap in #ifdef UNUSED/#endif, until
914 somebody uses it.
915 (print_idecode_validate): Use long formats to print long values.
916
917 * gen-semantics.c (print_idecode_invalid): Set name to "unknown"
918 if we get an unexpected type.
919
920 Fri May 2 13:28:06 1997 Andrew Cagney <cagney@b1.cygnus.com>
921
922 * igen.c (print_itrace): Pass SD as well as CPU to calls to
923 trace_printf.
924
925 * gen-support.c (gen_support_h): Always pass sim_cia cia to
926 support functions.
927 (print_support_function_name): Ditto.
928
929 Wed Apr 30 17:35:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
930
931 * gen-support.c (support_c_function): Remove unnecessary memset of
932 cia.
933 * gen-semantics.c (print_semantic_body): Wasn't closing
934 generated comment.
935
936 Tue Apr 29 11:11:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
937
938 * ld-insn.c (load_insn_table): Report instructions that do not
939 have at least a format and name.
940 (insn_table_find_opcode_field): Check progress is being made.
941
942 * gen-support.c (support_c_function): Report empty function body.
943
944 Thu Apr 24 11:43:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
945
946 * ld-insn.c (insn_table_expand_opcode): Allow reserved fields to
947 be broken up.
948 (insn_table_expand_insns): Allow special rules to apply to groups
949 of instructions when all members of the group match the special
950 mask/value.
951
952 * gen-semantics.c (print_c_semantic): Ditto.
953 * igen.c (print_semantic_function_formal): Ditto.
954 (print_semantic_function_type): Ditto.
955 * igen.c (print_icache_function_formal): Ditto.
956 * gen-idecode.c (print_idecode_issue_function_body): Ditto.
957
958 * gen-idecode.c (gen_idecode_h): Prepend the global_prefix to the
959 instruction_address type.
960
961 * gen-semantics.c (print_semantic_body): Call cpu_error when an
962 unimplemented instruction is encountered - gives the interpreter
963 the chance to stop correctly.
964
965 Wed Apr 23 20:06:36 1997 Andrew Cagney <cagney@b1.cygnus.com>
966
967 * igen.c (print_function_name): Allow dot's in instruction names.
968
969 Tue Apr 22 21:46:28 1997 Andrew Cagney <cagney@b1.cygnus.com>
970
971 * igen.c (main), igen.h: Support new option - delayed-branch -
972 generate code to drive a delayed branch processor.
973
974 * gen-idecode.c (gen_idecode_h): Define instruction_address type.
975
976 * igen.c (print_icache_function_formal): Replace address_word with
977 instruction_address.
978 (print_semantic_function_formal): Ditto.
979 (print_semantic_function_type): Ditto.
980 * gen-idecode.c (print_idecode_issue_function_body): Ditto.
981
982 * gen-semantics.c (print_semantic_body): Ditto.
983 (print_c_semantic): Ditto.
984
985 * gen-support.c (support_c_function): Return a zeroed CIA instead
986 of just zero - works with any cia type.
987
988 * igen.c (print_itrace): For delayed branch case, print just the
989 current instruction.
990
991 Thu Apr 17 07:02:33 1997 Doug Evans <dje@canuck.cygnus.com>
992
993 * igen.c (print_itrace): Use TRACE_FOO_P and trace_printf.
994
995 Tue Apr 15 15:20:31 1997 Ian Lance Taylor <ian@cygnus.com>
996
997 * Makefile.in (INSTALL): Set to @INSTALL@.
998 (INSTALL_XFORM, INSTALL_XFORM1): Remove.
999
1000 Mon Apr 14 16:29:34 1997 Ian Lance Taylor <ian@cygnus.com>
1001
1002 * Makefile.in (INSTALL): Change install.sh to install-sh.
1003
1004 Wed Apr 2 18:51:20 1997 Doug Evans <dje@canuck.cygnus.com>
1005
1006 * gen-support.c (gen_support_c): sim-state.h renamed to sim-main.h.
1007 * gen-idecode.c (gen_idecode_c): Likewise.
1008 * igen.c (gen_semantics_c): Likewise.
1009
1010 Mon Mar 24 10:10:08 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1011
1012 * gen-icache.c (print_icache_body): No longer define cpu/sd,
1013 support.h now defines CPU/SD globally.
1014
1015 * gen-model.c (gen_model_h): Ditto.
1016
1017 * gen-idecode.c (print_idecode_issue_function_body): Ditto.
1018 (print_jump): Ditto.
1019 (print_jump_until_stop_body): Ditto.
1020 (print_idecode_validate): Ditto.
1021
1022 * gen-icache.c (print_icache_body): Ditto.
1023
1024 * gen-semantics.c (print_semantic_body): Ditto.
1025
1026 * igen.c (print_semantic_function_formal): Rename cpu to sim_cpu,
1027 processor to cpu.
1028 (print_icache_function_formal): Ditto.
1029
1030 * gen-support.c (print_support_function_name): Include sd/cpu arg
1031 in support function argument list.
1032 (support_c_function): Generate code to cpu/sd from sd/cpu.
1033 (gen_support_h): Define _SD the argument prefix for all support
1034 functions. Define SD/CPU to determine sd/cpu from value of _SD
1035 macro.
1036
1037 Tue Mar 18 15:52:24 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1038
1039 * gen-support.c (gen_support_c): Update for renaming of engine to
1040 sim-state.
1041
1042 * igen.c: Ditto.
1043 * gen-idecode.c (gen_idecode_c): Ditto.
1044
1045 Mon Mar 17 15:17:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1046
1047 * ld-decode.c (load_decode_table): Rename slash to reserved.
1048 (dump_decode_rule): Ditto.
1049
1050 * ld-insn.c (parse_insn_format): Differentiate between a `/' -
1051 reserved bit - and a `*' - wild card.
1052 (parse_insn_format): Change is_slash to more informative reserved.
1053 (dump_insn_field): Ditto.
1054 (insn_field_is_constant): Ditto.
1055 (insn_table_expand_opcode): Ditto.
1056
1057 * gen-idecode.c (print_idecode_validate): Make check_mask and
1058 check_val the correct integer size.
1059 (print_idecode_validate): Fix reserved bit check for 64 bit
1060 targets.
1061
1062 Fri Mar 14 11:24:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1063
1064 * ld-insn.c (parse_insn_format): Accept '*' as an alternative of
1065 `/' in bit fields. `/' denotes a wild bit.
1066
1067 Fri Mar 7 18:20:38 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1068
1069 * igen.h, igen.c (main): New options. Control generation of
1070 conditional issue and slot verification code.
1071
1072 Fri Mar 7 18:17:25 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1073
1074 * gen-support.c (print_support_function_name): Prepend the global
1075 name prefix when applicable. Provide #define to map the user
1076 specified name the generated globaly unique one.
1077
1078 Fri Mar 7 18:07:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1079
1080 * gen-idecode.c (print_idecode_validate): Wrap each of the checks
1081 - reserved bits, floating point and slot validation - with a
1082 #ifdef so that they are optional.
1083
1084 Fri Mar 7 16:35:13 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1085
1086 * gen-idecode.c (error_leaf_contains_multiple_insn): New function
1087 - report the error of a leaf node in the decision tree containing
1088 several instructions.
1089 (print_idecode_table_leaf): Detect a leaf with multiple instructions.
1090 (print_idecode_switch_leaf): Ditto.
1091
1092 * gen-semantics.h, gen-semantics.c (print_idecode_illegal,
1093 print_idecode_invalid): Rename former to latter. Add argument so
1094 that one function can generate all invalid instruction cases -
1095 illegal, fp-unavailable, wrong-slot.
1096 * gen-engine.c: Update.
1097
1098 * gen-idecode.c: Use print_idecode_invalid to generate a function
1099 call for cases when fp-unavailable and the slot is wrong.
1100
1101 * gen-idecode.c (print_idecode_validate): New check, generate code
1102 to verify that the instruction slot is correct.
1103
1104 * igen.c (main): Simplify options.
1105
1106 Wed Mar 5 09:55:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1107
1108 * igen.c (print_itrace): Remove source line reference for trace
1109 code - let the user see the generated file.
1110 (print_itrace): Print the trace code rather than reference a
1111 macro.
1112
1113 Tue Mar 4 17:31:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1114
1115 * igen.c (print_semantic_function_actual): Pass either the
1116 processor - smp - or the engine - mono - into semantic functions.
1117 Don't pass in both.
1118
1119 * gen-icache.c (print_icache_body): Dependant on smp, derive
1120 processor from engine or engine from processor, and hence ensuring
1121 that both are defined in all semantic functions.
1122
1123 Mon Mar 3 17:11:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1124
1125 * ld-insn.c (parse_insn_format): Make the width field optional.
1126 If missing assume that the number of characters in the value
1127 determines the number of bits in the field.
1128
1129 Thu Feb 27 11:27:48 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1130
1131 * ld-insn.c (insn_table_expand_opcode): Replace assertion with
1132 more useful error message.
1133
1134 Tue Feb 25 16:43:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
1135
1136 * misc.c (error): Output errors on stderr.
1137
1138 * ld-insn.c (parse_insn_format): Skip any leading spaces.
1139 Verify the width of instructions being parsed.
1140
1141 * table.c (table_entry_read): Parse CPP's convention for
1142 specifying original file name/line-nr.
1143
1144 Wed Feb 19 12:30:28 1997 Andrew Cagney <cagney@critters.cygnus.com>
1145
1146 * ld-insn.c (parse_insn_format): Allow trailing spaces in
1147 instruction fields.
1148
1149 * Makefile.in: Create using ../ppc/Makefile.in as a starting
1150 point.
1151 * configure.in: Ditto vis ../ppc/configure.in
1152
1153 Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
1154
1155 * gen-support.c (gen_support_c): Always include engine.h instead
1156 of cpu.h
1157 * gen-idecode.c (gen_idecode_c): Ditto.
1158
1159 * words.h (instruction_word): Remove instruction_word - now
1160 generated by igen.
1161 (address_word): New. Used by igen.
1162
1163 * lf.c (lf_print_function_type_function): New, pass a function to
1164 print out the type instead of a constant string.
1165
1166 * igen.h, igen.c (print_semantic_function_formal,
1167 SEMANTIC_FUNCTION_FORMAL): Relace macro with function.
1168 (print_semantic_function_actual, SEMANTIC_FUNCTION_ACTUAL): Ditto.
1169 (print_semantic_function_type, SEMANTIC_FUNCTION_TYPE): Ditto.
1170 (print_icache_function_type, ICACHE_FUNCTION_TYPE): Ditto.
1171 (print_icache_function_formal, ICACHE_FUNCTION_FORMAL): Ditto.
1172 (print_icache_function_actual, ICACHE_FUNCTION_ACTUAL): Ditto.
1173 * gen-idecode.c (print_idecode_table): Update.
1174 (idecode_switch_leaf): Update.
1175 (print_idecode_switch_function_header): Ditto.
1176 (print_idecode_floating_point_unavailable): Ditto.
1177 (print_idecode_issue_function_header): Ditto.
1178 * igen.c (gen_icache_h): Ditto.
1179 * gen-engine.c (print_engine_table): Ditto.
1180 (engine_switch_leaf): Ditto.
1181 * gen-support.c (print_support_function_name): Ditto.
1182 * gen-semantics.c (print_semantic_function_header): Update.
1183 Update.
1184 * gen-icache.c (print_icache_function_header): Update.
1185 (print_icache_function): Update.
1186 (print_icache_internal_function_declaration): Update.
1187 (print_icache_internal_function_definition): Update.
1188
1189 * gen-idecode.c (gen_idecode_h): Drop including of idecode_*.h
1190 files, will at some stage need to move it into support.
1191
1192 * igen.h, igen.c (main): New option -e <engine> - generate a full
1193 simulation engine. Previously this was the -d <idecode-file>
1194 option.
1195 * gen-engine.h, gen-engine.c: Copies of gen-idecode.*. Will need
1196 to clean these up so that that call upon the updated gen-idecode
1197 code.
1198
1199 * gen-idecode.h, gen-idecode.c: Prune out any code not relevant to
1200 generating a decode table.
1201
1202 * Makefile.in (igen): Add dependencies for new gen-engine.* files.
1203
1204 * igen.h, igen.c (main): New option -M - Control what is returned
1205 by semantic functions - -1/NIA vs CIA+N/NIA. Add
1206 generate_semantic_returning_modified_nia_only to igen_code enum.
1207 * gen-semantics.c (print_semantic_body): As an alternative, make
1208 NIA == -1 instead of CIA+insn_size by default.
1209
1210 * igen.h, igen.c (main, global_name_prefix, global_uname_prefix):
1211 New option -P <prefix> - Prepend all generated functions with the
1212 specified prefix.
1213 (gen_idecode_c): Adjust.
1214 * gen-icache.c (print_icache_struct): Ditto.
1215 * gen-support.c (gen_support_c): Ditto.
1216
1217 Sun Feb 16 15:23:15 1997 Andrew Cagney <cagney@critters.cygnus.com>
1218
1219 * igen.c (main): Correct usage. Missleading message about ucase
1220 options dumping internal tables. -F now includes rather then
1221 excludes instructions.
1222
1223 * misc.h, misc.c (a2i): Make 64bit.
1224
1225 * ld-insn.h (max_insn_bit_size, default_insn_bit_size): Increase
1226 max to 64bits, expect trouble. Make the default 32 bits.
1227 * gen-idecode.c (print_idecode_table): Change EXTRACTED*
1228 et.al. macro's to use the insn_bit_size instead of assuming 32
1229 bits.
1230 * gen-icache.c (print_icache_extraction): Ditto.
1231 * gen-idecode.c (idecode_switch_start): Ditto.
1232 * gen-idecode.c (gen_idecode_c): Ditto
1233
1234 * igen.h (insn_specifying_widths), igen.c (main): New option -W.
1235 Indicates that the instruction field of the table is specifying
1236 bit widths instead of bit offsets.
1237 * ld-insn.c (parse_insn_format): Parse instruction fields
1238 specifying widths.
1239
1240 * misc.c (a2i): Allow binary numbers to be specified using the
1241 syntax 0bNNNN.
1242 * ld-insn.c: Allow such numbers to appear in the instruction
1243 format.
1244
1245 * table.c (table_entry_read): Make // a valid comment character.
1246 (table_entry_read): Skip lines containing a leading " - these may
1247 eventually be used in a disasembler.
1248
1249 Fri Feb 14 15:23:15 1997 Andrew Cagney <cagney@critters.cygnus.com>
1250
1251 * filter.c, filter.h, gen-engine.c, gen-engine.h, gen-icache.c,
1252 gen-icache.h, gen-idecode.c, gen-idecode.h, gen-itable.c,
1253 gen-itable.h, gen-model.c, gen-model.h, gen-semantics.c,
1254 gen-semantics.h, gen-support.c, gen-support.h, igen.c, igen.h,
1255 ld-cache.c, ld-cache.h, ld-decode.c, ld-decode.h, ld-insn.c,
1256 ld-insn.h, lf.c, lf.h, misc.c, misc.h, table.c, table.h: Copy in
1257 from the ../ppc directory.
1258
1259 * filter_host.c, filter_host.h: Copy in from the ../ppc directory
1260 renaming from filter_filename.[hc]