1 Wed Apr 2 18:51:20 1997 Doug Evans <dje@canuck.cygnus.com>
3 * gen-support.c (gen_support_c): sim-state.h renamed to sim-main.h.
4 * gen-idecode.c (gen_idecode_c): Likewise.
5 * igen.c (gen_semantics_c): Likewise.
7 Mon Mar 24 10:10:08 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
9 * gen-icache.c (print_icache_body): No longer define cpu/sd,
10 support.h now defines CPU/SD globally.
12 * gen-model.c (gen_model_h): Ditto.
14 * gen-idecode.c (print_idecode_issue_function_body): Ditto.
16 (print_jump_until_stop_body): Ditto.
17 (print_idecode_validate): Ditto.
19 * gen-icache.c (print_icache_body): Ditto.
21 * gen-semantics.c (print_semantic_body): Ditto.
23 * igen.c (print_semantic_function_formal): Rename cpu to sim_cpu,
25 (print_icache_function_formal): Ditto.
27 * gen-support.c (print_support_function_name): Include sd/cpu arg
28 in support function argument list.
29 (support_c_function): Generate code to cpu/sd from sd/cpu.
30 (gen_support_h): Define _SD the argument prefix for all support
31 functions. Define SD/CPU to determine sd/cpu from value of _SD
34 Tue Mar 18 15:52:24 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
36 * gen-support.c (gen_support_c): Update for renaming of engine to
40 * gen-idecode.c (gen_idecode_c): Ditto.
42 Mon Mar 17 15:17:07 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
44 * ld-decode.c (load_decode_table): Rename slash to reserved.
45 (dump_decode_rule): Ditto.
47 * ld-insn.c (parse_insn_format): Differentiate between a `/' -
48 reserved bit - and a `*' - wild card.
49 (parse_insn_format): Change is_slash to more informative reserved.
50 (dump_insn_field): Ditto.
51 (insn_field_is_constant): Ditto.
52 (insn_table_expand_opcode): Ditto.
54 * gen-idecode.c (print_idecode_validate): Make check_mask and
55 check_val the correct integer size.
56 (print_idecode_validate): Fix reserved bit check for 64 bit
59 Fri Mar 14 11:24:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
61 * ld-insn.c (parse_insn_format): Accept '*' as an alternative of
62 `/' in bit fields. `/' denotes a wild bit.
64 Fri Mar 7 18:20:38 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
66 * igen.h, igen.c (main): New options. Control generation of
67 conditional issue and slot verification code.
69 Fri Mar 7 18:17:25 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
71 * gen-support.c (print_support_function_name): Prepend the global
72 name prefix when applicable. Provide #define to map the user
73 specified name the generated globaly unique one.
75 Fri Mar 7 18:07:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
77 * gen-idecode.c (print_idecode_validate): Wrap each of the checks
78 - reserved bits, floating point and slot validation - with a
79 #ifdef so that they are optional.
81 Fri Mar 7 16:35:13 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
83 * gen-idecode.c (error_leaf_contains_multiple_insn): New function
84 - report the error of a leaf node in the decision tree containing
86 (print_idecode_table_leaf): Detect a leaf with multiple instructions.
87 (print_idecode_switch_leaf): Ditto.
89 * gen-semantics.h, gen-semantics.c (print_idecode_illegal,
90 print_idecode_invalid): Rename former to latter. Add argument so
91 that one function can generate all invalid instruction cases -
92 illegal, fp-unavailable, wrong-slot.
93 * gen-engine.c: Update.
95 * gen-idecode.c: Use print_idecode_invalid to generate a function
96 call for cases when fp-unavailable and the slot is wrong.
98 * gen-idecode.c (print_idecode_validate): New check, generate code
99 to verify that the instruction slot is correct.
101 * igen.c (main): Simplify options.
103 Wed Mar 5 09:55:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
105 * igen.c (print_itrace): Remove source line reference for trace
106 code - let the user see the generated file.
107 (print_itrace): Print the trace code rather than reference a
110 Tue Mar 4 17:31:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
112 * igen.c (print_semantic_function_actual): Pass either the
113 processor - smp - or the engine - mono - into semantic functions.
116 * gen-icache.c (print_icache_body): Dependant on smp, derive
117 processor from engine or engine from processor, and hence ensuring
118 that both are defined in all semantic functions.
120 Mon Mar 3 17:11:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
122 * ld-insn.c (parse_insn_format): Make the width field optional.
123 If missing assume that the number of characters in the value
124 determines the number of bits in the field.
126 Thu Feb 27 11:27:48 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
128 * ld-insn.c (insn_table_expand_opcode): Replace assertion with
129 more useful error message.
131 Tue Feb 25 16:43:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
133 * misc.c (error): Output errors on stderr.
135 * ld-insn.c (parse_insn_format): Skip any leading spaces.
136 Verify the width of instructions being parsed.
138 * table.c (table_entry_read): Parse CPP's convention for
139 specifying original file name/line-nr.
141 Wed Feb 19 12:30:28 1997 Andrew Cagney <cagney@critters.cygnus.com>
143 * ld-insn.c (parse_insn_format): Allow trailing spaces in
146 * Makefile.in: Create using ../ppc/Makefile.in as a starting
148 * configure.in: Ditto vis ../ppc/configure.in
150 Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
152 * gen-support.c (gen_support_c): Always include engine.h instead
154 * gen-idecode.c (gen_idecode_c): Ditto.
156 * words.h (instruction_word): Remove instruction_word - now
158 (address_word): New. Used by igen.
160 * lf.c (lf_print_function_type_function): New, pass a function to
161 print out the type instead of a constant string.
163 * igen.h, igen.c (print_semantic_function_formal,
164 SEMANTIC_FUNCTION_FORMAL): Relace macro with function.
165 (print_semantic_function_actual, SEMANTIC_FUNCTION_ACTUAL): Ditto.
166 (print_semantic_function_type, SEMANTIC_FUNCTION_TYPE): Ditto.
167 (print_icache_function_type, ICACHE_FUNCTION_TYPE): Ditto.
168 (print_icache_function_formal, ICACHE_FUNCTION_FORMAL): Ditto.
169 (print_icache_function_actual, ICACHE_FUNCTION_ACTUAL): Ditto.
170 * gen-idecode.c (print_idecode_table): Update.
171 (idecode_switch_leaf): Update.
172 (print_idecode_switch_function_header): Ditto.
173 (print_idecode_floating_point_unavailable): Ditto.
174 (print_idecode_issue_function_header): Ditto.
175 * igen.c (gen_icache_h): Ditto.
176 * gen-engine.c (print_engine_table): Ditto.
177 (engine_switch_leaf): Ditto.
178 * gen-support.c (print_support_function_name): Ditto.
179 * gen-semantics.c (print_semantic_function_header): Update.
181 * gen-icache.c (print_icache_function_header): Update.
182 (print_icache_function): Update.
183 (print_icache_internal_function_declaration): Update.
184 (print_icache_internal_function_definition): Update.
186 * gen-idecode.c (gen_idecode_h): Drop including of idecode_*.h
187 files, will at some stage need to move it into support.
189 * igen.h, igen.c (main): New option -e <engine> - generate a full
190 simulation engine. Previously this was the -d <idecode-file>
192 * gen-engine.h, gen-engine.c: Copies of gen-idecode.*. Will need
193 to clean these up so that that call upon the updated gen-idecode
196 * gen-idecode.h, gen-idecode.c: Prune out any code not relevant to
197 generating a decode table.
199 * Makefile.in (igen): Add dependencies for new gen-engine.* files.
201 * igen.h, igen.c (main): New option -M - Control what is returned
202 by semantic functions - -1/NIA vs CIA+N/NIA. Add
203 generate_semantic_returning_modified_nia_only to igen_code enum.
204 * gen-semantics.c (print_semantic_body): As an alternative, make
205 NIA == -1 instead of CIA+insn_size by default.
207 * igen.h, igen.c (main, global_name_prefix, global_uname_prefix):
208 New option -P <prefix> - Prepend all generated functions with the
210 (gen_idecode_c): Adjust.
211 * gen-icache.c (print_icache_struct): Ditto.
212 * gen-support.c (gen_support_c): Ditto.
214 Sun Feb 16 15:23:15 1997 Andrew Cagney <cagney@critters.cygnus.com>
216 * igen.c (main): Correct usage. Missleading message about ucase
217 options dumping internal tables. -F now includes rather then
218 excludes instructions.
220 * misc.h, misc.c (a2i): Make 64bit.
222 * ld-insn.h (max_insn_bit_size, default_insn_bit_size): Increase
223 max to 64bits, expect trouble. Make the default 32 bits.
224 * gen-idecode.c (print_idecode_table): Change EXTRACTED*
225 et.al. macro's to use the insn_bit_size instead of assuming 32
227 * gen-icache.c (print_icache_extraction): Ditto.
228 * gen-idecode.c (idecode_switch_start): Ditto.
229 * gen-idecode.c (gen_idecode_c): Ditto
231 * igen.h (insn_specifying_widths), igen.c (main): New option -W.
232 Indicates that the instruction field of the table is specifying
233 bit widths instead of bit offsets.
234 * ld-insn.c (parse_insn_format): Parse instruction fields
237 * misc.c (a2i): Allow binary numbers to be specified using the
239 * ld-insn.c: Allow such numbers to appear in the instruction
242 * table.c (table_entry_read): Make // a valid comment character.
243 (table_entry_read): Skip lines containing a leading " - these may
244 eventually be used in a disasembler.
246 Fri Feb 14 15:23:15 1997 Andrew Cagney <cagney@critters.cygnus.com>
248 * filter.c, filter.h, gen-engine.c, gen-engine.h, gen-icache.c,
249 gen-icache.h, gen-idecode.c, gen-idecode.h, gen-itable.c,
250 gen-itable.h, gen-model.c, gen-model.h, gen-semantics.c,
251 gen-semantics.h, gen-support.c, gen-support.h, igen.c, igen.h,
252 ld-cache.c, ld-cache.h, ld-decode.c, ld-decode.h, ld-insn.c,
253 ld-insn.h, lf.c, lf.h, misc.c, misc.h, table.c, table.h: Copy in
254 from the ../ppc directory.
256 * filter_host.c, filter_host.h: Copy in from the ../ppc directory
257 renaming from filter_filename.[hc]