* ld-insn.c (parse_insn_format): Accept '*' as an alternative of
[binutils-gdb.git] / sim / igen / ChangeLog
1 Fri Mar 14 11:24:06 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
2
3 * ld-insn.c (parse_insn_format): Accept '*' as an alternative of
4 `/' in bit fields. `/' denotes a wild bit.
5
6 Fri Mar 7 18:20:38 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
7
8 * igen.h, igen.c (main): New options. Control generation of
9 conditional issue and slot verification code.
10
11 Fri Mar 7 18:17:25 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
12
13 * gen-support.c (print_support_function_name): Prepend the global
14 name prefix when applicable. Provide #define to map the user
15 specified name the generated globaly unique one.
16
17 Fri Mar 7 18:07:45 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
18
19 * gen-idecode.c (print_idecode_validate): Wrap each of the checks
20 - reserved bits, floating point and slot validation - with a
21 #ifdef so that they are optional.
22
23 Fri Mar 7 16:35:13 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
24
25 * gen-idecode.c (error_leaf_contains_multiple_insn): New function
26 - report the error of a leaf node in the decision tree containing
27 several instructions.
28 (print_idecode_table_leaf): Detect a leaf with multiple instructions.
29 (print_idecode_switch_leaf): Ditto.
30
31 * gen-semantics.h, gen-semantics.c (print_idecode_illegal,
32 print_idecode_invalid): Rename former to latter. Add argument so
33 that one function can generate all invalid instruction cases -
34 illegal, fp-unavailable, wrong-slot.
35 * gen-engine.c: Update.
36
37 * gen-idecode.c: Use print_idecode_invalid to generate a function
38 call for cases when fp-unavailable and the slot is wrong.
39
40 * gen-idecode.c (print_idecode_validate): New check, generate code
41 to verify that the instruction slot is correct.
42
43 * igen.c (main): Simplify options.
44
45 Wed Mar 5 09:55:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
46
47 * igen.c (print_itrace): Remove source line reference for trace
48 code - let the user see the generated file.
49 (print_itrace): Print the trace code rather than reference a
50 macro.
51
52 Tue Mar 4 17:31:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
53
54 * igen.c (print_semantic_function_actual): Pass either the
55 processor - smp - or the engine - mono - into semantic functions.
56 Don't pass in both.
57
58 * gen-icache.c (print_icache_body): Dependant on smp, derive
59 processor from engine or engine from processor, and hence ensuring
60 that both are defined in all semantic functions.
61
62 Mon Mar 3 17:11:21 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
63
64 * ld-insn.c (parse_insn_format): Make the width field optional.
65 If missing assume that the number of characters in the value
66 determines the number of bits in the field.
67
68 Thu Feb 27 11:27:48 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
69
70 * ld-insn.c (insn_table_expand_opcode): Replace assertion with
71 more useful error message.
72
73 Tue Feb 25 16:43:27 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
74
75 * misc.c (error): Output errors on stderr.
76
77 * ld-insn.c (parse_insn_format): Skip any leading spaces.
78 Verify the width of instructions being parsed.
79
80 * table.c (table_entry_read): Parse CPP's convention for
81 specifying original file name/line-nr.
82
83 Wed Feb 19 12:30:28 1997 Andrew Cagney <cagney@critters.cygnus.com>
84
85 * ld-insn.c (parse_insn_format): Allow trailing spaces in
86 instruction fields.
87
88 * Makefile.in: Create using ../ppc/Makefile.in as a starting
89 point.
90 * configure.in: Ditto vis ../ppc/configure.in
91
92 Mon Feb 17 10:44:18 1997 Andrew Cagney <cagney@critters.cygnus.com>
93
94 * gen-support.c (gen_support_c): Always include engine.h instead
95 of cpu.h
96 * gen-idecode.c (gen_idecode_c): Ditto.
97
98 * words.h (instruction_word): Remove instruction_word - now
99 generated by igen.
100 (address_word): New. Used by igen.
101
102 * lf.c (lf_print_function_type_function): New, pass a function to
103 print out the type instead of a constant string.
104
105 * igen.h, igen.c (print_semantic_function_formal,
106 SEMANTIC_FUNCTION_FORMAL): Relace macro with function.
107 (print_semantic_function_actual, SEMANTIC_FUNCTION_ACTUAL): Ditto.
108 (print_semantic_function_type, SEMANTIC_FUNCTION_TYPE): Ditto.
109 (print_icache_function_type, ICACHE_FUNCTION_TYPE): Ditto.
110 (print_icache_function_formal, ICACHE_FUNCTION_FORMAL): Ditto.
111 (print_icache_function_actual, ICACHE_FUNCTION_ACTUAL): Ditto.
112 * gen-idecode.c (print_idecode_table): Update.
113 (idecode_switch_leaf): Update.
114 (print_idecode_switch_function_header): Ditto.
115 (print_idecode_floating_point_unavailable): Ditto.
116 (print_idecode_issue_function_header): Ditto.
117 * igen.c (gen_icache_h): Ditto.
118 * gen-engine.c (print_engine_table): Ditto.
119 (engine_switch_leaf): Ditto.
120 * gen-support.c (print_support_function_name): Ditto.
121 * gen-semantics.c (print_semantic_function_header): Update.
122 Update.
123 * gen-icache.c (print_icache_function_header): Update.
124 (print_icache_function): Update.
125 (print_icache_internal_function_declaration): Update.
126 (print_icache_internal_function_definition): Update.
127
128 * gen-idecode.c (gen_idecode_h): Drop including of idecode_*.h
129 files, will at some stage need to move it into support.
130
131 * igen.h, igen.c (main): New option -e <engine> - generate a full
132 simulation engine. Previously this was the -d <idecode-file>
133 option.
134 * gen-engine.h, gen-engine.c: Copies of gen-idecode.*. Will need
135 to clean these up so that that call upon the updated gen-idecode
136 code.
137
138 * gen-idecode.h, gen-idecode.c: Prune out any code not relevant to
139 generating a decode table.
140
141 * Makefile.in (igen): Add dependencies for new gen-engine.* files.
142
143 * igen.h, igen.c (main): New option -M - Control what is returned
144 by semantic functions - -1/NIA vs CIA+N/NIA. Add
145 generate_semantic_returning_modified_nia_only to igen_code enum.
146 * gen-semantics.c (print_semantic_body): As an alternative, make
147 NIA == -1 instead of CIA+insn_size by default.
148
149 * igen.h, igen.c (main, global_name_prefix, global_uname_prefix):
150 New option -P <prefix> - Prepend all generated functions with the
151 specified prefix.
152 (gen_idecode_c): Adjust.
153 * gen-icache.c (print_icache_struct): Ditto.
154 * gen-support.c (gen_support_c): Ditto.
155
156 Sun Feb 16 15:23:15 1997 Andrew Cagney <cagney@critters.cygnus.com>
157
158 * igen.c (main): Correct usage. Missleading message about ucase
159 options dumping internal tables. -F now includes rather then
160 excludes instructions.
161
162 * misc.h, misc.c (a2i): Make 64bit.
163
164 * ld-insn.h (max_insn_bit_size, default_insn_bit_size): Increase
165 max to 64bits, expect trouble. Make the default 32 bits.
166 * gen-idecode.c (print_idecode_table): Change EXTRACTED*
167 et.al. macro's to use the insn_bit_size instead of assuming 32
168 bits.
169 * gen-icache.c (print_icache_extraction): Ditto.
170 * gen-idecode.c (idecode_switch_start): Ditto.
171 * gen-idecode.c (gen_idecode_c): Ditto
172
173 * igen.h (insn_specifying_widths), igen.c (main): New option -W.
174 Indicates that the instruction field of the table is specifying
175 bit widths instead of bit offsets.
176 * ld-insn.c (parse_insn_format): Parse instruction fields
177 specifying widths.
178
179 * misc.c (a2i): Allow binary numbers to be specified using the
180 syntax 0bNNNN.
181 * ld-insn.c: Allow such numbers to appear in the instruction
182 format.
183
184 * table.c (table_entry_read): Make // a valid comment character.
185 (table_entry_read): Skip lines containing a leading " - these may
186 eventually be used in a disasembler.
187
188 Fri Feb 14 15:23:15 1997 Andrew Cagney <cagney@critters.cygnus.com>
189
190 * filter.c, filter.h, gen-engine.c, gen-engine.h, gen-icache.c,
191 gen-icache.h, gen-idecode.c, gen-idecode.h, gen-itable.c,
192 gen-itable.h, gen-model.c, gen-model.h, gen-semantics.c,
193 gen-semantics.h, gen-support.c, gen-support.h, igen.c, igen.h,
194 ld-cache.c, ld-cache.h, ld-decode.c, ld-decode.h, ld-insn.c,
195 ld-insn.h, lf.c, lf.h, misc.c, misc.h, table.c, table.h: Copy in
196 from the ../ppc directory.
197
198 * filter_host.c, filter_host.h: Copy in from the ../ppc directory
199 renaming from filter_filename.[hc]