1 2003-08-21 Nick Clifton <nickc@redhat.com>
3 * cpu/frv.cpu (mbtoh): Replace input parameter to
4 u-media-dual-expand and u-media-dual-btoh with output parameter.
5 (cmbtoh): Add profiling hack.
7 2003-08-19 Michael Snyder <msnyder@redhat.com>
9 * cpu/frv.cpu: Fix typo, Frintkeven -> FRintkeven
11 2003-08-07 Michael Meissner <gnu@the-meissners.org>
13 * opc-opinst.scm (-gen-operand-instance-table): Initialize all of
14 the elements for the END record of CGEN_OPINST, silencing warnings.
16 2003-07-15 Doug Evans <dje@sebabeach.org>
18 Add guile 1.6.4 support.
19 - empty list must be quoted
20 - string functions have stricter type checking
21 - eval now takes a second argument
22 - symbol-bound? is deprecated
23 * attr.scm (-attr-parse): Use stringsym-append to build errtxt.
24 (bitset-attr->list): Ensure arg to string-cut is a string.
25 (attr-parse): Ensure args to string-ref and string-drop1 are strings.
26 (<enum-attribute>,gen-value-for-defn): Fetch string name of self.
27 * cos.scm (-class-list): Must quote empty list.
28 (-class-parent-classes,-class-compute-class-desc): Ditto.
29 (class-make,make,object-reset!): Ditto.
30 (method-make-make!): Call eval1 instead of eval.
31 (method-make-forward!,method-make-virtual-forward!): Ditto.
32 * decode.scm (subdtable-add): Use stringsym-append instead of
34 (-gen-exprtable-name): Fetch string name of exprtable-entry-insn.
35 (-build-decode-table-entry): Fetch string name of insn.
36 * desc-cpu.scm (-gen-isa-table-defns): Fetch string name of isa.
37 (-gen-mach-table-defns): Ditto for mach.
38 (gen-ifld-defns): Ditto for ifld.
39 (gen-hw-table-defns): Ditto for hw.
40 (gen-operand-table): Ditto for op.
41 (gen-insn-table-entry): Ditto for insn.
42 * desc.scm (gen-attr-table-defn): Ditto for attr.
43 (<keyword>,gen-defn): Don't pass symbols to string-append.
44 * enum.scm (parse-enum-vals): Use symbolstr-append instead of
46 (enum-vals-upcase): Use symbol-upcase to build result.
47 (-enum-parse): Use stringsym-append to build errtxt.
48 * fixup.scm (*guile-major-version*,*guile-minor-version*): New globals.
49 (eval1): New function.
50 (symbol-bound?): Provide own version if >= guile 1.6.
51 * hardware.scm (define-keyword): Use string-append instead of
53 * html.scm (gen-html-header,gen-table-of-contents,gen-arch-intro,
54 cgen.html,cgen-insn.html): Convert current-arch-name to a string
56 (gen-list-entry): Handle either symbol or string `name' arg.
57 (gen-obj-doc-header): Fetch string name of `o' arg.
58 (define-cpu-intro): Ditto for cpu.
59 (gen-mach-intro): Ditto for mach.
60 (gen-model-intro): Ditto for model.
61 (gen-isa-intro): Ditto for isa.
62 (gen-machine-doc-1): Ditto for isa.
63 (gen-reg-doc-1): Convert mach to string first.
64 (gen-insn-doc-1): Ditto. Convert model/unit names to strings first.
65 (gen-insn-doc-list): Fetch string name of mach. Convert insn name
67 (gen-insn-categories): Fetch string name of mach. Convert
68 enum-val-name to string first.
69 (gen-insn-docs): Fetch string name of mach.
70 * ifield.scm (ifld-ilk): Result is a string.
71 * iformat.scm (-ifmt-search-key): Convert attr value to string first.
72 Fetch string name of ifld.
73 (-sfmt-search-key): Similarily for ifld and op.
74 * insn.scm (syntax-make): Fetch string name of syntax element.
75 * mach.scm (-cpu-parse): Use stringsym-append to build errtxt.
76 * minsn.scm (minsn-make-alias): Fetch string name of minsn.
77 * mode.scm (mode:c-type): Result is a string.
78 (mode:enum): Fetch string name of mode.
79 (-mode-parse): Use stringsym-append to build errtxt.
80 * model.scm (model:enum): Fetch string name of model.
81 (-model-parse): Use stringsym-append to build errtxt.
82 (parse-insn-timing): Must quote empty list.
83 * opc-itab.scm (-gen-minsn-table-entry): Fetch string name of minsn.
84 (-gen-minsn-opcode-entry): Ditto.
85 * opcodes.scm (<operand>,gen-function-name): `what' arg is a symbol,
87 (read-cpu.opc): Convert current-arch-name to a string before using.
88 * operand.scm (<operand>,gen-pretty-name): Ensure `name' is a string.
89 (<derived-operand>): Must quote empty list.
90 (op-sort): Simplify, call alpha-sort-obj-list to do sort.
91 * pgmr-tools.scm (pgmr-pretty-print-insn-value): Fetch string name
93 * pmacros.scm (-pmacro-build-lambda): Use eval1 instead of eval.
94 (-pmacro-sym): Must convert symbols to strings before passing to
97 (pmacros-init!): Use eval1 instead of eval.
98 * read.scm (keep-mach-atlist?): Simplify, use bitset-attr->list.
99 (keep-isa-atlist?): Ditto.
100 (cmd-if): Use eval1 instead of eval.
101 * rtl-c.scm (<c-expr>,get-name): Fetch string name of self.
102 (-rtl-c-get): Fetch string name of src.
103 (s-unop): Ditto for mode.
104 (s-binop,s-binop-with-bit,s-shop,s-convop,s-cmpop): Ditto.
105 (-gen-par-temp-defns,subword): Ditto.
106 (join): Use stringsym-append instead of string-append.
107 * rtl-traverse.scm (rtx-option?): Convert option to string first.
108 (rtx-traverse-debug): Fetch string name of rtx-obj.
109 * rtl.scm (def-rtx-node): Use eval1 instead of eval.
110 (def-rtx-syntax-node,def-rtx-operand-node,def-rtx-macro-node): Ditto.
111 (rtx-pretty-name): Result is a string.
112 (-rtx-hw-name): Use symbolstr-append instead of symbol-append.
113 * semantics.scm (semantic-compile): Simplify, use alpha-sort-obj-list.
114 * sid-cpu.scm (cgen-write.cxx): Convert current-arch-name to a string
116 (-gen-sfrag-case): Fetch string name of user.
117 * sid-model.scm (unit:enum): Fetch string name of unit.
118 * sid.scm (<hw-memory>,cxmake-get): Fetch string name of mode.
119 (<hw-memory>,gen-set-quiet): Ditto.
120 (gen-mode-defs): Ditto.
121 (sim-finish!): Convert current-arch-name to a string before using.
122 * sim-cpu.scm (-gen-scache-semantic-fn): Fetch string name of insn.
123 (-gen-no-scache-semantic-fn): Ditto.
124 (cgen-defs.h): Fetch string name of isa.
125 (cgen-read.c): Convert current-arch-name to a string before using.
126 (cgen-write.c): Ditto.
127 * sim-model.scm (unit:enum): Fetch string name of unit.
128 (gen-model-fn-decls): Use stringsym-append instead of string-append.
129 (-gen-model-timing-table): Fetch string name of model.
130 (-gen-mach-model-table): Ditto.
131 (-gen-mach-defns): Fetch string name of mach.
132 * sim.scm (gen-reg-access-defn): Fetch string name of hw.
133 (<hw-memory>,cxmake-get): Fetch string name of mode.
134 (<hw-memory>,gen-set-quiet): Ditto.
135 (gen-mode-defs): Ditto.
136 (sim-finish!): Must quote empty list.
137 * utils-cgen.scm (<ident>): Must quote empty list.
138 (obj:str-name): New fn.
139 (parse-comment): Result is a string.
140 (parse-symbol): Result is a symbol.
141 (parse-string): Result is a string.
142 (keyword-list?): Convert arg to string before calling string-ref.
143 (keyword-list->arg-list): Ditto.
144 (gen-attr-name): Convert attr-name to string first.
145 (alpha-sort-obj-list): Use symbol<? instead of string<?.
146 * utils-gen.scm (attr-gen-decl): Fetch string name of attr.
147 (gen-define-ifmt-ifields): Ditto for fld.
148 * utils.scm (gen-c-symbol): Ensure str is a string before calling
150 (gen-file-name): Ditto.
151 (symbol-downcase,symbol-upcase,symbol<?): New fns.
152 (stringsym-append,symbolstr-append,->string,->symbol): New fns.
153 (reduce): Call eval1 instead of eval.
154 * cpu/m32r.cpu (addi): Don't use `#.'.
156 * gen-all-sim: Fix some typos.
158 2003-07-08 Doug Evans <dje@sebabeach.org>
160 * gen-all-doc: Ensure run from cgen src dir.
161 * gen-all-opcodes: Build in ./tmp-opcodes. Don't delete dir when done.
162 * gen-all-sid: Similarily, in ./tmp-sid.
163 * gen-all-sim: Similarily, in ./tmp-sim.
165 2003-06-20 Doug Evans <dje@sebabeach.org>
167 * gen-all-sim: Add fr30,sh64 support. Only generate m32r by default.
169 2003-06-19 Doug Evans <dje@sebabeach.org>
171 * mach.scm (-ifld-already-defined?): New proc.
172 (current-ifld-add!): Use it.
173 (-op-already-defined?): New proc.
174 (current-op-add!): Use it.
175 (-insn-already-defined?): New proc.
176 (current-insn-add!): Use it.
177 (-minsn-already-defined?): New proc.
178 (current-minsn-add!): Use it.
179 (obj-isa-list): New proc.
180 (isa-supports?): Use it.
182 2003-06-10 Doug Evans <dje@sebabeach.org>
184 * insn.scm (insn-builtin!): RELAX renamed to RELAXABLE.
185 * cpu/m32r.cpu (all insns): Ditto.
187 * mach.scm (current-*-add!): Disallow redefinition. Make result
190 * gen-all-doc: Split arm and frv docs up a bit.
192 * cpu/arm.cpu: Add IDOC attribute.
193 * cpu/frv.cpu: Ditto.
194 * cpu/i960.cpu: Ditto.
195 * cpu/openrisc.cpu: Ditto.
196 * cpu/xstormy16.cpu: Ditto.
197 * cpu/m32r.cpu: Ditto.
198 (all insns): Explicitly specify IDOC attribute.
200 * Makefile.am (MACH,ISAS,INSN_FILE_NAME): New vars.
201 (desc,opcodes,sim-arch,sim-cpu,gas-test,sim-test): Use MACH,ISAS.
202 (html): Use MACH,ISAS,INSN_FILE_NAME. Generate insn.html separately.
203 * Makefile.in: Regenerate.
204 * attr.scm (<integer-attribute>:parse-value-def): Implement.
205 (-attr-read): Defer computing default value until we know the type.
206 (attr-has-attr?): Delete, move contents to <attr-list>:has-attr?.
207 (<attr-list>:attr-present?): New method.
208 (atlist-attr-present?,obj-attr-present?): New fns.
209 (obj-has-attr-value?,obj-has-attr-value-no-default?): New fns.
210 (attr-builtin!): New insn attr IDOC.
211 * cgen-doc.scm (doc-arguments): New args -I,-N.
212 * enum.scm (parse-enum-vals): New arg errtxt, all callers updated.
213 Support comment as fourth element of enum value.
214 (enum-val-name,enum-val-value,enum-val-attrs,enum-val-comment): New fns.
215 * html.scm (gen-html-header): New arg kind, all callers updated.
216 (gen-table-of-contents): New arg insn-file, all callers updated.
217 (gen-list-entry,gen-doc-header): New fn.
218 (get-operands): Delete.
219 (gen-iformat-table): Rewrite.
220 (gen-insn-doc-1): Print constant-folded and trimmed semantics.
221 (gen-insn-doc-list): New args name, comment, insns. All callers updated.
222 (get-insn-properties,guess-insn-idoc-attr!): New fn.
223 (insn-sets-pc?,insn-refs-mem?,insn-uses-fpu?): New fns.
224 (get-insns-for-category,gen-categories-insn-lists): New fns.
225 (gen-insn-docs): Simplify each insn's semantics first.
226 Print insn tables sorted by IDOC categories.
227 (*insn-html-file-name*): New global.
228 (cgen-insn.html): New fn.
230 * insn.scm (<insn>): Create a setter for the `tmp' member.
231 * semantics.scm (insn-build-known-values): Renamed from
232 -build-known-values. All callers updated.
234 * rtl.scm: Move traveral/evaluation support to ...
235 * rtl-traverse.scm: New file.
236 * read.scm: Maybe-load rtl-traverse.scm.
238 * rtl.scm (-rtx-valid-types): Add SETRTX.
240 * rtx-funcs.scm (nop,parallel): Fix mode.
242 * utils.scm (eqv-lookup-index): New fn.
243 (assq-lookup-index): Renamed from lookup-index. All callers updated.
245 * dev.scm (load-doc): Set APPLICATION.
247 2003-06-10 Dave Brolley <brolley@redhat.com>
249 * sid-cpu.scm: Generate #include of config.h into @prefix@-sem.cxx.
250 * sid-decode.scm: Generate #include of config.h into
252 * sid-model.scm: Generate #include of config.h into @prefix@-model.cxx.
254 2003-06-07 Doug Evans <dje@sebabeach.org>
256 * gen-all-sid: New file.
257 * gen-all-opcodes: New file.
259 2003-06-05 Nick Clifton <nickc@redhat.com>
261 * cpu/frv.cpu (FRintieven): New operand. An even-numbered only
262 version of the FRinti operand.
263 (FRintjeven): Likewise for FRintj.
264 (FRintkeven): Likewise for FRintk.
265 (mdcutssi, media-dual-word-rotate-r-r, mqsaths,
266 media-quad-arith-sat-semantics, media-quad-arith-sat,
267 conditional-media-quad-arith-sat, mdunpackh,
268 media-quad-multiply-semantics, media-quad-multiply,
269 conditional-media-quad-multiply, media-quad-complex-i,
270 media-quad-multiply-acc-semantics, media-quad-multiply-acc,
271 conditional-media-quad-multiply-acc, munpackh,
272 media-quad-multiply-cross-acc-semantics, mdpackh,
273 media-quad-multiply-cross-acc, mbtoh-semantics,
274 media-quad-cross-multiply-cross-acc-semantics,
275 media-quad-cross-multiply-cross-acc, mbtoh, mhtob-semantics,
276 media-quad-cross-multiply-acc-semantics, cmbtoh,
277 media-quad-cross-multiply-acc, media-quad-complex, mhtob,
278 media-expand-halfword-to-double-semantics, mexpdhd, cmexpdhd,
279 cmhtob): Use new operands.
280 * cpu/frv.opc (CGEN_VERBOSE_ASSEMBLER_ERRORS): Define.
281 (parse_even_register): New function.
283 2003-06-04 Doug Evans <dje@sebabeach.org>
285 Better handling of 64 bit and mixed 32/64 bit architectures.
286 * hardware.scm (hw-update-word-modes!): New fn.
287 * mach.scm (define-cpu)): Call mode-set-word-modes!,
288 hw-update-word-modes!.
289 (state-word-bitsize): Replace FIXME with requested check.
290 (arch-analyze-insns!): Call mode-ensure-word-sizes-defined.
291 * mode.scm (mode-find): Ignore INT,UINT.
292 (-mode-word-sizes-kind): New global.
293 (mode-set-word-modes!,mode-set-identical-word-bitsizes!,
294 mode-set-biggest-word-bitsizes!,mode-ensure-word-sizes-defined): New fns.
295 (mode-init!): Initialize -mode-word-sizes-kind. Move initialization
297 (mode-builtin!): ... here. Initialize WI/UWI/AI/IAI to something
298 unusable, correct values set later.
299 (mode-finish!): Remove cruft.
300 * html.scm (doc-init!): Call mode-set-biggest-word-bitsizes!.
301 * opcodes.scm (opcodes-init!): Ditto.
302 * rtx-funcs.scm (annul): Fix mode of pc.
303 * cpu/ia64.cpu: Remove cruft that sets word modes.
304 * cpu/xstormy16.cpu (define-cpu): Set word-bitsize.
306 2003-06-03 Nick Clifton <nickc@redhat.com>
308 * cpu/frv.cpu (media-dual-word-rotate-r-r): Use a signed 6-bit
309 immediate value not unsigned.
311 2003-05-21 J"orn Rennecke <joern.rennecke@superh.com>
313 * cpu/sh.cpu: Amend comments to refer to SuperH.
314 * cpu/sh64-compact.cpu: Change comment to refer to SuperH.
315 * cpu/sh64-media.cpu: Likewise.
316 (Saturation): Update manual reference.
318 2003-05-15 Doug Evans <dje@sebabeach.org>
320 * Makefile.am (srcroot): New var.
322 * Makefile.in: Regenerate.
323 * cgen-doc.scm: New file.
324 * html.scm: New file.
325 * gen-all-doc: New file.
326 * dev.scm (cload): Handle DOC application.
328 * machs.scm (machs-for-cpu): New fn.
329 * model.scm (models-for-cpu): New fn.
330 * utils.scm (gen-c-copyright): Renamed from gen-copyright.
332 (iota): Rewrite to be identical to pmacro version. All uses updated.
333 * utils-cgen.scm (alpha-sort-obj-list): New fn.
335 * utils-sim.scm (-gen-decoder-switch): Back out patch of 2003-01-09.
336 (-gen-decode-bits): Instead put in better fix here.
338 * cpu/i960.cpu (index): Rename to indx. All uses updated.
340 2003-05-01 DJ Delorie <dj@redhat.com>
342 * cpu/xstormy16.cpu (alignfix-mem): Correct logic for unaligned
344 (set-alignfix-mem): Likewise.
346 2003-04-16 Dave Brolley <brolley@redhat.com>
348 * doc/rtl.texi (Iiming): Correct example to use 'model-name'.
349 * utils.scm (copyright-fsf): Update generate copyright years.
350 (copyright-cygnus): Ditto.
351 * sid.scm (-op-gen-set-trace): Generate code to fill in bitmask of modified
353 (-gen-arch-model-decls): Don't generate unit enum declaration or MAX_UNITS
355 (<operand>'gen-profile-code): New parameter 'when'.
356 (<iunit>'gen-profile-code): Ditto.
357 (<insn>'gen-profile-code): Ditto.
358 (<unit>'gen-profile-code): Ditto. Only generate 'referenced' and
359 'insn_reference' for the 'after' function.
360 * model.scm (unit:enum): Moved to sim-model.scm.
361 * sim-model.scm (unit:enum): Moved from model.scm.
362 * sid-decode.scm (-gen-scache-decls): Generate the 'written' field.
363 * cgen-sid.scm (sim-arguments): Document the generation of model.h.
364 * sid-model.scm (unit:enum): New version for sid.
365 (gen-model-class-name): New function.
366 (gen-model-unit-fn-decl): New function.
367 (gen-model-fn-decls): Call gen-model-unit-fn-decl.
368 (gen-model-unit-fn-name): New parameter 'when'.
369 (-gen-model-insn-fn-name): Ditto.
370 (-gen-model-insn-qualified-fn-name): New function.
371 (-gen-model-insn-fn-decl): New function.
372 (-gen-model-insn-fn-decls): New function.
373 (-gen-model-insn-fn): New parameter 'when'. Call
374 -gen-model-insn-qualified-fn-name.
375 (-gen-model-insn-fns): Generate the constructor for the model. Generate
376 functions for modelling insn before and after execution.
377 (-gen-model-class-decls): New function.
378 (" (gen-model-class-name model) "): New function.
379 (gen-model-classes): New function.
380 (-gen-insn-timing): Generate functions for modelling insn before and after
382 (-gen-insn-unit-timing): Generate class-qualified names.
383 (-gen-model-timing-table): Ditto.
384 (cgen-model.cxx): Generate #include for @cpu@.h. Omit generation of code
385 not needed (yet) by sid.
386 (cgen-model.h): New function.
388 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
390 * cpu/sh.cpu: Replace occurrances of 'Hitachi' with 'Renesas'.
391 * cpu/sh64-compact.cpu: Likewise.
392 * cpu/sh64-media.cpu: Likewise.
394 2003-03-21 DJ Delorie <dj@redhat.com>
396 * cpu/xstormy16.cpu (basic-psw): New argument ws (wordsize),
397 which indicates if the sign flag is set from bit 15 or 7.
399 (set-psw): New argument ws, propogate it.
400 (set-psw-nowrite): Likewise.
401 (set-mem-psw): Likewise.
402 (set-psw-carry): Likewise. Use temporaries to prevent
403 prematurely overwriting needed inputs.
404 (set-psw-rrotate17): Fix logic.
405 (shrgrgr): Preserve carry for zero-bit shifts.
406 (shrgrimm): Likewise.
408 (shlgrimm): Likewise.
410 (asrgrimm): Likewise.
413 2003-03-12 Frank Ch. Eigler <fche@redhat.com>
415 * sid.scm: Set APPLICATION to SID-SIMULATOR.
417 2002-03-05 DJ Delorie <dj@redhat.com>
419 * cpu/xstormy16.cpu (set-psw-add): Use temporaries to prevent
420 prematurely overwriting needed inputs.
421 (set-psw-sub): Likewise.
423 Fri Feb 21 19:48:19 2003 J"orn Rennecke <joern.rennecke@superh.com>
425 * cpu/sh64-media.cpu (make-mextr): Fix setting of count.
427 2003-02-18 DJ Delorie <dj@redhat.com>
429 * xstormy16.cpu (set-mem-alignfix-psw): Remove.
430 (movlmemimm): Just mask the address.
431 (movhmemimm): Likewise.
432 (movlmemgr): Likewise.
433 (movhmemgr): Likewise.
434 (set-psw): Always set the psw last.
435 (set-psw-carry): Likewise.
436 (set-psw-add): Likewise.
437 (set-psw-sub): Likewise.
439 * xstormy16.cpu (set-psw-rrotate17): New. Choose the correct set
440 of 16 patterns from the set-psw-rotate17 function.
441 (movgrigr, movgripostincgr, movgripredecgr, movgriigr,
442 movgriipostincgr, movgriipredecgr): Set psw correctly.
443 (movfgrigr, movfgripostincgr, movfgripredecgr, movfgriigr,
444 movfgriipostincgr, movfgriipredecgr): Fix semantics.
445 (rrcgrgr, rrcgrimm4): Use new set-psw-rrotate17 function.
447 2003-02-11 Dave Brolley <brolley@redhat.com>
449 * desc-cpu.scm (gen-ifld-defns): Add all ifields to the
450 @arch@_cgen-ifld_table.
451 (gen-maybe-multi-ifld): Use the ifield enumerators to index the
452 @arch@_cgen-ifld_table.
454 2003-02-03 Frank Ch. Eigler <fche@redhat.com>
456 * sid-cpu.scm (-gen-sfrag-engine-fn): Generate more hygienic C++.
458 2003-01-09 Graydon Hoare <graydon@redhat.com>
460 * utils-sim.scm (-gen-decoder-switch): Fix edge condition for
463 2003-01-07 Graydon Hoare <graydon@redhat.com>
465 * utils-gen.scm (attr-int-gen-defn): Define.
467 2002-12-21 Doug Evans <dje@sebabeach.org>
469 * ifield.scm (-ifield-parse): Rewrite <bitrange> computation.
470 (-get-ifld-word-offset,-get-ifld-word-length): New fns.
472 * dev.scm (cload): Update location of .cpu files.
474 2002-12-19 Doug Evans <dje@sebabeach.org>
476 * utils-sim.scm (gen-profile-sym): New fn.
477 (<operand>,sbuf-profile-sym): New method.
478 (<operand>,sbuf-profile-elm): Use it.
479 * sim.scm (<operand>,gen-record-profile): Use sbuf-profile-sym instead
480 of hardcoding symbol name.
481 (<operand>,gen-profile-code): Ditto.
482 (<unit>,gen-profile-code): Use gen-profile-sym instead of hardcoding
485 * mode.scm (mode-sem-mode): New fn.
486 * operand.scm (op:new-mode): Update. mode-name.
487 (op-natural-mode?) New fn.
488 * rtl.scm (hw): Set hw-name,mode-name.
490 Back out sim*.scm changes of 2001-04-02 Ben Elliston <bje@redhat.com>
492 * sim-decode.scm (-gen-decode-insn-globals): Use @PREFIX@_INSN__MAX
493 as size of IDESC-TABLE-VAR.
494 (@prefix@_init_idesc_table): Ditto.
495 * sim-model.scm (-gen-mach-defns): Ditto.
496 * sim.scm (gen-cpu-insn-enum-decl): Rename last elm from max to -max.
498 * utils-sim.scm (-gen-decode-insn-entry): Fix some spacing in output.
500 * insn.scm (-parse-insn-format-symbol): Improve error message.
501 (-parse-insn-format): Ditto.
503 * gen-all-sim: New script.
505 2002-12-16 DJ Delorie <dj@delorie.com>
507 * cpu/xstormy16.opc (parse_immediate16): Add prototype.
509 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
511 * cpu/xstormy16.cpu (imm16): Call handler immediate16.
512 * cpu/xstormy16.opc (parse_small_immediate): Return on '@'.
513 (parse_immediate16): Handle immediate16 values, which now include
514 @hi(label) and @lo(label)
516 2002-12-03 Alan Modra <amodra@bigpond.net.au>
518 * desc-cpu.scm (gen-maybe-multi-ifld): Remove superfluous parens.
519 Add braces and cast for union field.
520 (gen-multi-ifield-nodes): Add braces and cast for union field.
521 (cgen_operand_table): Similarly fix sentinel.
522 (cgen_cpu_close): Constify "insns". Formatting.
523 (cgen-desc.c): Include xregex.h.
524 * cpu/ip2k.opc (ip2k_cgen_insn_supported): Move to opc.c section.
526 <opc.c>: Include safe-ctype.h.
527 (ip2k_asm_hash): Use ISSPACE and TOLOWER.
528 (PARSE_FUNC_DECL): Declare. Use to prototype parse_fr, parse_addr16,
529 parse_addr16_p, parse_addr16_cjp, parse_lit8 and parse_bit3.
530 (parse_fr): Constify "old_strp". Correct type of "tempvalue".
531 Don't test it for >= 0. Use ISSPACE rather than isspace. Formatting.
532 (parse_addr16): Correct type of "value". Formatting.
533 (parse_addr16_p): Likewise.
534 (parse_addr16_cjp): Likewise.
535 (parse_lit8): Likewise.
536 (parse_bit3): Formatting.
537 (PRINT_FUNC_DECL): Define. Use to prototype print_fr, print_dollarhex,
538 print_dollarhex8, print_dollarhex16, print_dollarhex_addr16h,
539 print_dollarhex_addr16l, print_dollarhex_p, print_dollarhex_cj and
541 (print_fr): Add ATTRIBUTE_UNUSED on unused args. Formatting.
542 (print_dollarhex): Add ATTRIBUTE_UNUSED on unused args.
543 (print_dollarhex8): Likewise.
544 (print_dollarhex16): Likewise.
545 (print_dollarhex_addr16h): Likewise.
546 (print_dollarhex_addr16l): Likewise.
547 (print_dollarhex_p): Likewise.
548 (print_dollarhex_cj): Likewise.
549 (print_decimal): Likewise.
550 * cpu/xstormy16.opc (parse_mem8): Use ISALNUM rather than isalnum.
552 2002-11-30 Hans-Peter Nilsson <hp@axis.com>
554 * doc/rtl.texi (Model variants): Mention current limitations for
555 unit inputs and outputs.
556 (Hardware elements) <attribute PROFILE>: Be slightly more
558 (Instructions) <timing>: input/output overrides have a direction
561 2002-11-25 DJ Delorie <dj@redhat.com>
563 * xstormy16.cpu (sdiv, divlh, sdivlh): Fix sdivlh/divlh encodings.
565 2002-11-21 Jeff Johnston <jjohnstn@redhat.com>
567 * cpu/iq10.cpu: New file.
568 * cpu/iq2000.cpu: Likewise.
569 * cpu/iq2000.opc: Likewise.
570 * cpu/iq2000m.cpu: Likewise.
572 2002-11-19 DJ Delorie <dj@redhat.com>
574 * cpu/xstormy16.cpu (sdiv, divlh, sdivlh): New.
576 2002-11-05 Frank Ch. Eigler <fche@redhat.com>
578 * dev.scm: Call getenv with a string, not a symbol.
580 2002-10-08 Doug Evans <dje@transmeta.com>
581 Hans-Peter Nilsson <hp@axis.com>
583 * types.scm (bitrange-overlap?): Handle lsb0?.
585 2002-09-07 Frank Ch. Eigler <fche@redhat.com>
587 From Robert Cragie <rcc@jennic.com>:
588 * cpu/arm7.cpu (ldm*-sw*, stm*-sw*): New instructions.
590 2002-07-17 Frank Ch. Eigler <fche@redhat.com>
591 Ben Elliston <bje@redhat.com>
592 John Healy <jhealy@redhat.com>
593 Jeff Johnston <jjohnstn@redhat.com>
594 Alan Lehotsky <alehotsky@redhat.com>
595 Ubicom Inc. <SupportDesk@ubicom.com>
597 * cpu/ip2k.cpu: New file.
598 * cpu/ip2k.opc: Likewise.
600 2002-07-01 Hans-Peter Nilsson <hp@axis.com>
602 * utils-gen.scm (-gen-extract-word): Handle lsb0?.
604 2002-06-25 J"orn Rennecke <joern.rennecke@superh.com>
606 * cpu/sh64-compact.cpu (movw5): Use Correct operand field for reg.
607 * cpu/sh64-media.cpu (-ldhi-byte, -ldhi-word, -ldhi-long): New macros.
608 (-ldlo-byte, -ldlo-word, -ldlo-long): Likewise.
609 (-sthi-word, -sthi-long -stlo-byte, -stlo-word, -stlo-long): Likewise.
610 (ldhil, ldhiq, ldlol, ldloq, stlol, stloq): Implement.
611 (mshfhib, mshfhil, mshfhiw, mshflob, mshflol, mshflow): Fix indices.
612 (-sthi-byte): If there is a single byte to store, store it at
614 (sthil, sthiq): Fix big-endian behaviour.
615 (mcnvslw, mcnvswb, mcnvswub, mmacfxwl, mmacnfx.wl): Fix indices.
616 (mmulfxl, mmulfxw, mmulfxrpw, mmulhiwl, mmullowl): Likewise.
617 (saturate): Use Dimode to check if saturation operation is required.
618 (usaturate): Likewise.
620 (-maddsl, -maddsub): Compute to-be-saturated value in wider mode.
621 (-maddsw, mmacfxwl, mmacnfx.wl, -mshaldsl, -mshaldsw): Likewise.
622 (-mshardl, -mshardw, -msubsl, -msubsub, -msubsw): Likewise.
623 (msadubq): Fix subword index in second operand of first subtraction.
625 2002-06-20 Hans-Peter Nilsson <hp@axis.com>
627 * sim-cpu.scm (gen-semantic-code): Prepend with setup-semantics
630 2002-06-18 Dave Brolley <brolley@redhat.com>
632 * cpu/frv.cpu: New cpu description.
633 * cpu/frv.opc: New cpu support code.
635 2002-05-21 Dave Brolley <brolley@redhat.com>
637 * decode.scm (-opcode-slots): Don't consider bits beyond the
640 2002-05-17 Johan Rydberg <jrydberg@rtmk.org>
642 * cpu/powerpc.cpu: New file.
644 2002-05-01 Graydon Hoare <graydon@redhat.com>
646 * desc-cpu.scm (@arch@_cgen_cpu_close): Fix memory leaks.
648 2002-03-20 Hans-Peter Nilsson <hp@axis.com>
650 * doc/pmacros.texi (Symbol concatenation): Mention that .sym
651 results are expanded recursively.
653 2002-03-19 Hans-Peter Nilsson <hp@axis.com>
655 * pmacros.scm (-pmacro-expand,scan): If result is a symbol,
656 call scan-symbol on it, to enable recursive macro-expansion.
658 2002-01-25 Frank Ch. Eigler <fche@redhat.com>
660 * sid-cpu.scm (-gen-hardware-types): Generate single hardware union
661 for multiple-isa configurations.
662 * sid-decode.scm (-gen-decode-fn): Tolerate empty insn list.
664 2002-02-04 Ben Elliston <bje@redhat.com>
666 * cpu/sh.cpu, cpu/sh.opc: New files.
667 * cpu/sh64-comact.cpu, cpu/sh64-media.cpu: Likewise.
669 2002-01-29 Hans-Peter Nilsson <hp@axis.com>
671 * doc/rtl.texi: Fix typo: define-attr, not define-attribute.
672 (Enumerated constants): Mention that an ifield must not specify a
674 (Instruction operands): Ditto for index.
675 (Expressions) <parallel>: Remove misplaced mention of local
677 <if>: Mention that mode must be specified and non-VOID when the
680 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
682 * doc/porting.texi: When referring to *.opc, mention they are in
683 the cpu subdir. Call top-level directory toplevel, not devo.
684 Close string in define-normal-insn example.
686 * doc/pmacros.texi: Fix .substr typo to .substring.
687 Mention that .sym expansions are not further expanded.
689 2002-01-22 Graydon Hoare <graydon@redhat.com>
691 * desc-cpu.scm (ifld-number-cache): Add.
693 (gen-maybe-multi-ifld-of-op): Add.
694 (gen-maybe-multi-ifld): Add.
695 (gen-multi-ifield-nodes): Add.
696 (cgen-desc.c): Add call to gen-multi-ifield-nodes.
698 2002-01-10 matthew green <mrg@redhat.com>
700 * cpu/xstormy16.cpu (gr-Rbj-names): Rename this ...
701 (gr-Rb-names): ... to this.
702 (h-Rb): New hardware piece.
703 (h-Rbj): Use gr-Rb-names.
705 (holdx): New instruction.
707 2002-01-07 Ben Elliston <bje@redhat.com>
709 * utils.scm (package-cygnus-simulators): Rename from this ..
710 (package-red-hat-simulators): .. to this.
711 * opcodes.scm (option-set!): Use package-red-hat-simulators.
712 * sid-cpu.scm (cgen-desc.h): Likewise.
713 (cgen-cpu.h): Likewise.
714 (cgen-defs.h): Likewise.
715 (cgen-write.cxx): Likewise.
716 (cgen-semantics.cxx): Likewise.
717 (cgen-sem-switch.cxx): Likewise.
718 * sid-decode.scm (cgen-decode.h): Likewise.
719 (cgen-decode.cxx): Likewise.
720 * sid-model.scm (cgen-model.cxx): Likewise.
721 * sid.scm (option-set!): Likewise.
722 * sim.scm (option-set!): Likewise.
724 2002-01-07 Ben Elliston <bje@redhat.com>
726 * utils.scm (copyright-fsf): Add 2002.
727 (copyright-cygnus): Rename to copyright-red-hat.
728 (copyright-red-hat): Add 2002.
729 (CURRENT-COPYRIGHT): Update comment.
730 * opcodes.scm (option-set!): Update callers.
731 * sid-model.scm (cgen-model.cxx): Likewise.
732 * sid-cpu.scm: Likewise.
733 * sid-decode.scm: Likewise.
734 * sid.scm (option-set!): Handle "redhat" as an option for
735 "copyright"; use copyright-red-hat.
736 * sim.scm (option-set!): Likewise.
738 2002-01-03 Dave Brolley <brolley@redhat.com>
740 * decode.scm (-distinguishing-bit-population): Compute num-insns, the
741 number of insns in the list. Update the population count function to
742 identify and prioritize 3 catgories of useful bits.
743 (-population-top-few): Don't consider bits with a population count of
745 (-build-decode-table-entry): Don't call
746 filter-harmlessly-ambiguous-insns. Filter out non-specialized and
747 identical insns at the next tree level.
748 * insn.scm (filter-harmlessly-ambiguous-insns): Note in a comment that
749 this function is no longer used.
750 (filter-non-specialized-ambiguous-insns): New function.
751 (filter-identical-ambiguous-insns): New function.
752 (find-identical-insn): New function.
753 (filter-harmlessly-ambiguous-insns): Removed.
755 2001-11-26 Geoffrey Keating <geoffk@redhat.com>
756 matthew green <mrg@redhat.com>
757 Frank Ch. Eigler <fche@redhat.com>
758 Nick Clifton <nickc@cambridge.redhat.com>
760 * cpu/xstormy16.cpu: New file.
761 * cpu/xstormy16.opc: New file.
763 2001-11-26 Frank Ch. Eigler <fche@redhat.com>
765 * doc/sim.texi, rtl.texi, porting.texi: Correct texinfo markup typos.
767 2001-11-14 Dave Brolley <brolley@redhat.com>
769 * utils-gen.scm (-gen-extract-word): Correct computation of the length
770 of the field being extracted.
772 2001-10-29 Johan Rydberg <johan@rydberg.com>
774 * doc/rtl.texi (Expressions): Document the (error ..), (sqrt ..),
775 (cos ...) and (sin ..) rtx.
777 2001-10-13 Nick Clifton <nickc@cambridge.redhat.com>
779 * desc-cpu.scm: Do not include ctype.h in generated desc
780 files. They will inherit safe-ctype.h instead.
782 2001-10-08 Nick Clifton <nickc@cambridge.redhat.com>
784 * desc-cpu.scm: Add missing function prototypes (for generated
785 C files). Fix compile time warning messages about unused
786 parameters (for generated C files).
787 * opc-asmdis.scm: The same.
788 * opc-ibld.c: The same.
789 * opc-itab.scm: The same.
790 * cpu/fr30.opc: The same.
791 * cpu/m32r.opc: The same.
792 * cpu/openrisc.opc: The same.
794 2001-09-17 graydon hoare <graydon@redhat.com>
796 * insn.scm (syntax-break-out): Correct logic in handling escaped
799 2001-07-12 Jeff Johnston <jjohnstn@redhat.com>
801 * opc-itab.scm (@arch@_cgen_init_opcode_table): Unconditionally
802 call @arch@_cgen_build_insn_regex now that regex support is in
805 2001-07-12 Frank Ch. Eigler <fche@redhat.com>
807 * insn.scm (filter-harmlessly-ambiguous-insns): Fix msg typo.
808 (mask-superset?): Look for strict supersets to allow rejection of
811 2001-07-11 Frank Ch. Eigler <fche@redhat.com>
813 * sid-cpu.scm (-gen-mach-params): New proc to emit ...CHUNK_BITSIZE...
814 (cgen-desc.h): Call it.
815 * sid-decode.scm (-gen-decode-fn): Use base-insn-bitsize as
817 * utils-sim.scm (-gen-decode-insn-entry): For SID only, prepare
818 entire_insn for extraction, if it's shorter than base-insn-bitsize.
820 2001-07-11 Frank Ch. Eigler <fche@redhat.com>
822 * desc-cpu.scm (-gen-mach-table-defns): Emit fourth field: the
823 mach->cpu insn-chunk-bitsize.
824 (-gen-cpu-open): In @arch@_cgen_rebuild_tables, process above new
825 field toward CGEN_CPU_TABLE->insn_chunk_bitsize.
826 * mach.scm (<cpu>): New field insn-chunk-bitsize.
827 (-cpu-parse, -cpu-read): Parse/initialize it.
828 * doc/rtl.texi (define-cpu): Document it.
830 2001-07-09 Geoffrey Keating <geoffk@redhat.com>
832 * ifield.scm (<ifield> 'field-start): Don't look at word-len.
834 2001-07-06 Ben Elliston <bje@redhat.com>
836 * opcodes.scm (read-cpu.opc): Read .opc files from subdir/cpu.
838 2001-07-05 Ben Elliston <bje@redhat.com>
842 * read.scm (include): Include files from srcdir/cpu.
843 (-cgen): Likewise for loading .cpu files.
844 * sid.scm (sim-finish!): Read .sim files from srcdir/cpu.
845 * *.cpu: Move all cpu descriptions into cpu subdirectory.
847 * simplify.inc: Likewise.
849 2001-07-04 Ben Elliston <bje@redhat.com>
851 * read.scm (include): Log "Including file" message at level 1,
852 rather than outputting it with (display).
853 (cpu-load): Log "Loading cpu description" and "Processing cpu
854 description" messages at levels 1 and 2, respectively, rather than
857 2001-06-14 Geoffrey Keating <geoffk@redhat.com>
859 * desc.scm (<keyword> 'gen-defn): Add extra zero into
860 CGEN_KEYWORD_ENTRY initializers.
862 * gas-test.scm (gen-gas-test): Create 8 testcases, not just 5.
863 (<operand> 'test-data): Involve both the index and the hardware
864 in testcase generation.
865 (<hw-indx> 'test-data): Generate test data from the underlying
867 (<ifield> 'test-data): Generate test data by computing bit
868 patterns for the field, then decoding them.
869 (<hw-address> 'test-data): Allow for new calling convention.
870 (<hw-iaddress> 'test-data): Likewise.
871 (<keyword> 'test-data): Convert index values into keywords.
872 (<hw-asm> 'test-data): Convert index values into integer strings.
874 * gas-test.scm (cgen-build.sh): Escape '.' as well.
876 2001-06-01 Frank Ch. Eigler <fche@redhat.com>
878 * rtl.scm (hw): Encode hw access mode into <operand> name, since this
879 is required for multi-mode hw types (memory).
881 2001-05-11 Ben Elliston <bje@redhat.com>
883 * gas-test.scm (cgen-build.sh, gentest): Escape $ with a backslash
884 when generating allinsn.d from objdump output. Without it, the
885 testsuite will treat $ as the regular expression for end of line.
887 2001-05-09 Ben Elliston <bje@redhat.com>
889 * doc/porting.texi (Doing a GAS port): Replace `cgen_opcode_open'
890 with `cgen_cpu_open'; documentation had become out of date.
891 * doc/rtl.texi (Instruction operands): Likewise.
893 2001-05-07 Frank Ch. Eigler <fche@redhat.com>
895 * iformat.scm (compute-insn-base-mask-length): Rewrite to tolerate
896 various-base-length instruction sets.
898 2001-04-02 Ben Elliston <bje@redhat.com>
900 * sid-cpu.scm (-last-insn): New function.
901 (-gen-sem-switch-engine): Loop through idesc while less than or
902 equal to the last instruction enum, not less than the MAX enum.
903 (-gen-sfrag-engine-fn): Clean up frag_label_table initialisation.
904 * sid-decode.scm (-gen-decode-insn-globals): Define the idesc
905 table's size to be the last instruction enum plus one, not
907 * sid.scm (gen-cpu-insn-enum-decl): Do not append a dummy `max'
908 instruction onto the instruction list.
910 * sim-decode.scm (@prefix@_init_idesc_table): Compute tabsize
911 using the size of the table and its elements.
912 (-gen-decode-insn-globals): Define the idesc table's size to be
913 the last instruction enum plus one, not @PREFIX@_INSN_MAX.
914 * sim-model.scm (-gen-mach-defns): Define CPU_MAX_INSNS as the
915 last instruction enum plus one, not @CPU@_INSN_MAX.
917 2001-03-28 Ben Elliston <bje@redhat.com>
919 * doc/version.texi (UPDATED, EDITION): Update.
920 * doc/stamp-vti: Likewise.
922 2001-03-26 Ben Elliston <bje@redhat.com>
924 * doc/credits.texi (Credits): Update.
926 * gas-test.scm (<keyword>,test-data): Prefix keywords by their
927 specified prefix and, if necessary, escape `$' in gas-build.sh to
928 prevent unwanted shell variable expansion.
930 2001-03-24 Ben Elliston <bje@redhat.com>
932 * gas-test.scm (<hw-asm>,test-data): Choose pseudo-random data.
933 (<keyword>,test-data): Likewise.
934 (<hw-address>,test-data): Likewise.
935 (<hw-iaddress>,test-data): Likewise.
936 (-collate-test-set): New function.
937 (build-test-set): Use it.
938 (gen-gas-test): Generate five test cases per instruction.
939 (cgen-allinsn.exp): Include "-*- Tcl -*-" in DejaGNU test file.
941 * read.scm: Load "slib/random" if random is not defined.
942 * slib/random.scm: New file.
944 * utils.scm: Remove comments about the Hobbit compiler.
945 (copyright-cygnus): Add 2001.
946 (package-cygnus-simulators): Replace "Cygnus" with "Red Hat".
947 (package-gnu-simulators): Tidy.
949 2001-03-23 Ben Elliston <bje@redhat.com>
951 * cgen-gas.scm: Inline documentation improvements.
953 2001-03-21 Ben Elliston <bje@redhat.com>
955 * opc-itab.scm (compute-syntax): Emit a parse error if an operand
956 given in a syntax string is undefined.
958 * opc-itab.scm (compute-syntax): Emit a parse error if an operand
959 name is empty or invalid -- eg. "$(rs)" instead of "($rs)".
961 2001-03-20 Patrick Macdonald <patrickm@redhat.com>
963 * desc-cpu.scm (@arch@_cgen_cpu_open): Correct machine calculation
964 for arg_type CGEN_CPU_OPEN_BFDMACH.
966 2001-03-20 Ben Elliston <bje@redhat.com>
968 * opc-itab.scm (-gen-insn-enum): Do not append a dummy `max'
969 instruction onto the instruction list. Define MAX_INSNS to be the
970 value of the last instruction enum plus one.
972 2001-03-14 Nick Clifton <nickc@redhat.com>
974 * utils.scm (copyright-fsf): Add 2001. Remove (C).
976 2001-03-05 Dave Brolley <brolley@redhat.com>
978 * sim-decode.scm (-gen-extract-case): Generate declaration of "insn"
979 if the number of ifields is greater than zero.
981 2001-03-01 Frank Ch. Eigler <fche@redhat.com>
983 * sid.cpu (-op-gen-set-trace[-parallel], -create-virtual-insns!):
984 Emit LIKELY/UNLIKELY branch probability hints.
985 * sid-decode.cpu (-gen-record-args): Ditto.
987 2001-02-02 Patrick Macdonald <patrickm@redhat.com>
989 * desc-cpu.scm (-gen-hash-defines): Rename
990 CGEN_ACTUAL_MAX_SYNTAX_BYTES to CGEN_ACTUAL_MAX_SYNTAX_ELEMENTS.
992 2001-01-26 Frank Ch. Eigler <fche@redhat.com>
994 * sid-cpu.scm (gen-parallel-exec-type): Use unsigned long long for
996 (-gen-write-fn, -gen-sem-case, -gen-sfrag-case): Ditto.
997 * sid-decode.scm (-gen-scache-decls): Exclude writeback tracking field
999 * sid.scm (<operand> gen-write): Use unsigned long long expression
1001 (-op-gen-set-trace, -op-gen-set-trace-parallel): Ditto.
1002 (<unit> gen-profile-code): Ditto.
1004 2001-01-23 Johan Rydberg <jrydberg@opencores.org>
1006 * doc/rtl.texi (Expressions): Document the (index-of ...) and
1009 2001-01-08 Frank Ch. Eigler <fche@redhat.com>
1011 * operand.scm (<operand> pretty-sem-name): New field.
1012 (<operand> make): Initialize it from hw-name.
1013 (op:set-pretty-sem-name!): New function.
1014 (<operand> gen-pretty-name): Default to fetching new field.
1015 * rtl.scm (hw): Copy hw-name to pretty-sem-name instead. Restore
1016 sem-name setting from -rtx-hw-name.
1018 2001-01-08 Frank Ch. Eigler <fche@redhat.com>
1020 * rtl.scm (hw): Copy hw-name to new operand's sem-name, to simplify
1021 its subsequent gen-pretty-name.
1023 * read.scm: Increase thread working stack limit and backtrace
1026 2001-01-08 Frank Ch. Eigler <fche@redhat.com>
1028 * doc/rtl.texi: Deprecate and depreciate the decode-assist construct.
1030 2001-01-06 Johan Rydberg <jrydberg@opencores.org>
1032 * openrisc.cpu (or32): Setup semantics for h-delay-insn to
1033 current insn plus 4.
1034 (h-delay-insn): New hardware register.
1035 (l-jal): Uses h-delay-insn instead of pc when setting link register.
1039 * openrisc.opc (parse_hi16): Sign extend value.
1040 (parse_lo16): Likewise.
1042 2001-01-06 Ben Elliston <bje@redhat.com>
1044 * utils-gen.scm (gen-sfmt-enum-decl): Use @prefix@ and @PREFIX@
1045 instead of @cpu@ and @CPU@ to generically prefix symbol names.
1046 * sim-cpu.scm (-gen-sem-fn-table-entry): Likewise.
1047 (-gen-semantic-fn-table): Likewise.
1048 (-gen-scache-semantic-fn): Likewise.
1049 (-gen-no-scache-semantic-fn): Likewise.
1050 (cgen-read.c): Likewise.
1051 (cgen-sem-switch.c): Likewise.
1052 * desc-cpu.scm (cgen-desc.c): Use @arch@, not @prefix@, since this
1053 is a filename prefix.
1054 * sim-decode.scm (IDESC-TABLE-VAR): Use @prefix@, et al.
1055 (-gen-decode-insn-globals): Likewise.
1056 (-gen-idesc-decls): Likewise.
1057 (cgen-decode.h): Likewise.
1058 (cgen-decode.c): Likewise.
1059 * sim.scm (gen-cpu-insn-enum-decl): Likewise.
1060 (gen-cpu-insn-enum): Likewise.
1061 (sim-finish!): Likewise.
1063 2001-01-05 Johan Rydberg <jrydberg@opencores.org>
1065 * openrisc.cpu: New file.
1066 * openrisc.opc: Likewise.
1068 2000-12-12 Ben Elliston <bje@redhat.com>
1070 * doc/rtl.texi (Expressions): Document the (delay ..) rtx.
1072 2000-12-07 Ben Elliston <bje@redhat.com>
1074 * sim-decode.scm (-gen-extract-case): Do not emit a definition for
1075 "insn" when there are zero ifields to extract.
1077 2000-12-04 Frank Ch. Eigler <fche@redhat.com>
1079 * utils-sim.scm (gen-define-argbuf-macro): Handle sfmt=#f case, to be
1080 used by simple/non-scache simulators.
1081 * sim-cpu.scm (-gen-read-case): Call gen-define/undef-field-macro
1082 regardless of with-scache?.
1083 (-gen-write-case, -gen-no-scache-semantic-fn, -gen-sem-case): Ditto.
1085 2000-12-03 Ben Elliston <bje@redhat.com>
1087 * desc-cpu.scm (cgen-desc.h): Clarify generated filenames.
1088 (cgen-desc.c): Likewise.
1090 2000-12-01 Greg McGary <greg@mcgary.org>
1092 * desc.scm (<keyword>,gen-defn): Prepend prefix to keyword names.
1094 2000-12-01 Ben Elliston <bje@redhat.com>
1096 * sim-cpu.scm (cgen-cpu.h): Only emit argbuf, scache and extract
1097 definitions if run without with-multipla-isa?.
1098 (cgen-defs.h): New function. Emit an ISA-specific defs file.
1099 * cgen-sim.scm (sim-arguments): Accept -G option to generate defs.
1101 2000-11-24 Ben Elliston <bje@redhat.com>
1103 * sim-cpu.scm (-gen-hardware-struct): New function.
1104 (-gen-hardware-types): If with-multiple-isa is specified, emit all
1105 hardware elements wich have share one or more ISAs with the ISAs
1108 * sim.scm (-with-multiple-isa?): New symbol.
1109 (with-multiple-isa?): New function.
1110 (option-init!): Initialise -with-multiple-isa?.
1111 (option-set!): Handle with-multiple-isa option.
1113 2000-11-21 Ben Elliston <bje@redhat.com>
1115 * utils.scm (copyright-fsf): Add the year 2000.
1117 2000-11-20 Frank Ch. Eigler <fche@redhat.com>
1119 * opc-itab.scm (-gen-ifmt-table, -gen-macro-insn-table: Remove
1120 unneeded "\n\n" from F() macro definition.
1122 2000-11-15 Greg McGary <greg@mcgary.org>
1124 * utils-cgen.scm (gen-define-with-symcat): New function.
1125 * desc-cpu.scm (gen-ifld-defns): Use it.
1126 (gen-hw-table-defns): Use it.
1127 (-gen-hash-defines): Use it.
1128 (gen-operand-table): Use it.
1129 (gen-insn-table): Use it. Remove spurious `#undef MNEM'.
1130 * opc-itab.scm (-gen-ifmt-table): Use it.
1131 (-gen-insn-opcode-table): Use it.
1132 (-gen-macro-insn-table): Use it.
1133 * opc-opinst.scm (-gen-operand-instance-tables): Use it.
1134 * sim-cpu.scm (cgen-semantics.c): Use it.
1135 (cgen-sem-switch.c): Use it.
1137 2000-11-10 Frank Ch. Eigler <fche@redhat.com>
1139 * utils-sim.scm (-gen-decode-insn-entry): Add fn? parameter to signal
1140 request to emit calls to insn extractors as functions rather than
1141 branches to inline blocks.
1142 (-gen-decode-expr-set-itype, -gen-decode-expr-entry): Ditto.
1143 (-gen-decode-table-entry, -gen-decoder-switch, gen-decoder): Ditto.
1145 * sim-decode.c (-gen-decode-fn): Tell (gen-decode) to emit branches
1146 to extractor clauses.
1148 2000-11-10 Frank Ch. Eigler <fche@redhat.com>
1150 * decode.scm (-distinguishing-bit-population): Significantly
1151 improve popularity heuristic. Renamed from
1152 (-mask-bit-population): Gone.
1153 (-population-above-threshold): Sort new bit numbers in order of
1155 (-population-top-few): Allow up to three more bits to be selected
1156 than requested. Correct selection order to prefer better bits.
1157 Correct bug in fewer-than-requested case. Keep threshold as
1159 (decode-best-get-bits): Pass also the insn-values.
1161 * utils-sim.scm (-gen-decoder-switch): Add comment suggesting a
1162 future optimization.
1164 * utils.scm (message): Format nested lists better.
1166 2000-11-09 Doug Evans <dje@casey.transmeta.com>
1168 * dev.scm: Add srcdir to %load-path.
1170 * rtx-funcs.scm (subword): Mode of argument can be different
1171 than mode of result, so don't use OP0 to specify argument's mode.
1173 2000-11-02 Ben Elliston <bje@redhat.com>
1175 * doc/porting.texi (Building a GAS test suite): Document my change
1178 2000-11-01 Ben Elliston <bje@redhat.com>
1180 * sim-test.scm (cgen-build.sh): Include "-*- Asm -*-" in test cases.
1182 2000-10-31 Ben Elliston <bje@redhat.com>
1184 * gas-test.scm (cgen-build.sh): Allow the generated script to run
1185 with no command line arguments if the gas build directory can be
1188 2000-10-26 Doug Evans <dje@casey.transmeta.com>
1190 * insn.scm (-parse-insn-format-symbol): Fix spelling error,
1191 op-ifld -> op-ifield.
1193 2000-10-23 Frank Ch. Eigler <fche@redhat.com>
1195 * thumb.scm (cc-tests): Add (ISA thumb) attribute.
1197 2000-10-13 matthew green <mrg@cygnus.com>
1199 * utils-cgen.scm (get-ifetch): Move from here ...
1200 * sim.scm (get-ifetch): ... to here.
1201 * sid.scm (get-ifetch): Copy and port to c++.
1203 2000-10-06 Dave Brolley <brolley@redhat.com>
1205 * utils-gen.scm (-gen-ifld-extract-base): Compute start position as
1206 ifld-start + ifld-word-offset.
1207 (gen-ifld-extract): Check adata-integral-insn? before checking whether
1208 the field is beyond the base number of bits.
1209 (gen-define-ifields): Use a base-length of 32 if adata-integral-insn?.
1210 (gen-extract-ifields): Ditto.
1211 * gas-test.scm (gentest): Generate backslashes before '[' and ']'
1212 characters in the regular expression.
1214 2000-10-02 Frank Ch. Eigler <fche@redhat.com>
1216 * desc-cpu.scm: (gen-operand-decls): Emit MAX_OPERANDS as a
1217 preprocessor constant.
1219 2000-09-21 Frank Ch. Eigler <fche@redhat.com>
1221 * slib/logical.scm: New file from slib. Provides robust bitwise
1222 logical operations for large integers.
1223 * read.scm: maybe-load it.
1225 2000-09-15 Frank Ch. Eigler <fche@redhat.com>
1227 * enum.scm (define-full-insn-enum): Filter with keep-isa predicate.
1228 * ifield.scm (-ifield-parse, -multi-ifield-parse): No longer assert
1229 single-isa predicate, but support keep-isa filtering.
1231 2000-09-08 Frank Ch. Eigler <fche@redhat.com>
1233 * rtl-c.scm (s-sequence): Handle nested c-calls in both
1234 statement-expression and comma-expression contexts.
1235 (s-c-call, s-c-raw-call): Add warning comment about bad assumption.
1237 2000-09-08 Frank Ch. Eigler <fche@redhat.com>
1239 * decode.scm (-population-top-few): Signal error gracefully if
1240 decoding is about to become ambiguous.
1242 2000-09-06 Frank Ch. Eigler <fche@redhat.com>
1244 * doc/rtl.texi (decode-assist): Describe this field as optional.
1246 2000-09-06 Frank Ch. Eigler <fche@redhat.com>
1248 * utils-gen.scm (gen-multi-ifld-extract): Handle case of multi-ifield
1251 2000-09-05 Dave Brolley <brolley@redhat.com>
1253 * sim.scm (sim-finish!): Honour the definition of FAST_P when calling
1254 @cpu@_pbb_begin. Use 0 if FAST_P is not defined.
1256 2000-08-29 Dave Brolley <brolley@redhat.com>
1258 * utils-gen.scm (gen-ifld-extract): Pass total-len if
1259 adata-integral-insn is true for this architecture.
1261 2000-08-24 Frank Ch. Eigler <fche@redhat.com>
1263 * hardware.scm (<hw-immediate> get-index-mode): Define method.
1264 * operand.scm (<operand> gen-pretty-name): Tolerate no op:sem-name.
1265 * rtl-c.scm (-c-rtl-get): Improve an error message.
1266 * sim.scm (-op-gen-set-trace): Support <derived-operand> lvalues.
1268 2000-08-22 Frank Ch. Eigler <fche@redhat.com>
1270 * Makefile.in (DIST_COMMON): Regenerated.
1271 * ifield.scm (<derived-ifield> needed-iflds): New method.
1272 * iformat.scm (-ifmt-lookup-sfmt!): Use base ifields for
1273 sfmts built from <derived-ifield>s.
1274 * operand.scm (-derived-parse-encoding): Give <derived-ifield> a fixed
1275 type symbol 'derived-ifield, not an unparseable string.
1276 * utils-sim.scm (op-needed-iflds) Handler 'derived-ifield case.
1277 (-sfmt-contents): Add tracing.
1279 From Doug Evans <dje@transmeta.com>:
1280 * sim.scm (<operand> cxmake-get): Result is a <c-expr>, not a string of
1283 2000-08-20 Doug Evans <dje@casey.transmeta.com>
1285 * rtl-c.scm (rtl-c-expr-with-estate): New fn.
1286 (rtl-c-expr-parsed,rtl-c-expr): New fns.
1287 (-rtl-c-get): Rename from rtl-c-get.
1288 (rtl-c-get): New fn for getter logging.
1290 2000-07-28 Ben Elliston <bje@redhat.com>
1294 2000-07-25 Ben Elliston <bje@redhat.com>
1296 * doc/credits.texi (Credits): Add Frank Eigler.
1298 2000-07-24 Dave Brolley <brolley@redhat.com>
1300 * opc-itab.scm (gen-insn-opcode-table): Initialize the first element
1302 * desc.scm (gen-attr-table-defn): Initialize all elements fully.
1303 (<keyword>): Initialize all elements fully.
1304 * desc-cpu.scm (-gen-isa-table-defns): Initialize the last element
1306 (-gen-mach-table-defns): Ditto.
1307 (-gen-ifld-defns): Ditto.
1308 (-gen-operand-table): Ditto.
1309 (-gen-insn-table): Ditto.
1310 (-gen-cpu-open): Nothing to do for the mach table.
1312 2000-07-13 Ben Elliston <bje@redhat.com>
1314 * doc/version.texi (UPDATED): Update.
1316 2000-07-05 Ben Elliston <bje@redhat.com>
1318 * configure.in (AC_PATH_PROG): Remove.
1319 * configure: Regenerate.
1320 * Makefile.am (GUILE): Locate guile dynamically.
1321 * Makefile.in: Regenerate.
1322 * doc/Makefile.in: Likewise.
1324 2000-07-03 Ben Elliston <bje@redhat.com>
1326 * desc-cpu.scm (cgen-desc.c): Include "libiberty.h".
1327 * opc-itab.scm (cgen-opc.c): Likewise.
1329 2000-06-28 Frank Ch. Eigler <fche@redhat.com>
1331 * rtl.scm (-rtx-traverse-locals): Correct call to `symbol?' for
1332 guile 1.4 compatibility.
1333 (rtx-env-dump): Comment out buggy display calls.
1335 2000-06-15 matthew green <mrg@redhat.com>
1337 * opc-itab.scm (-gen-ifmt-table-1): Add extra braces to pacify GCC.
1339 2000-06-14 Frank Ch. Eigler <fche@redhat.com>
1341 * Makefile.in: Regenerated.
1343 * desc-cpu.scm (gen-ifld-decls): Exclude derived ifields.
1344 (gen-ifld-defns): Ditto.
1345 * pgmr-tools.scm (pgmr-pretty-print-insn-format): Ditto.
1346 * rtl.c (rtl-finish!): Ditto.
1347 * opc-itab.scm (-gen-ifield-decls): Ditto.
1348 * opcodes.scm (gen-switch): Exclude derived operands.
1349 * operand.scm (op-iflds-used): Expand derived operands.
1350 (hw-index-derived): New dummy function to create dummy object.
1351 (-derived-operand-parse): Fix mode arg passed to <derived-operand>
1352 constructor. Set object's hw-name and index fields.
1353 (-anyof-merge-subchoices): Set instance object's index also.
1354 (-anyof-name): New helper function.
1355 (anyof-merge-semantics): Correct replacement of operand names in
1357 (op-ifield): Tolerate derived-operands and their funny indices better.
1358 * ifield.scm (ifld-known-values): Expand derived ifields.
1359 (non-multi-ifields, non-derived-ifields): New utility functions.
1360 (ifld-decode-mode): Tolerate objects with unbound decode field.
1361 * iformat.scm (compute-insn-length): Expand derived ifields.
1362 (compute-insn-base-mask): Ditto.
1363 * insn.scm (insn-base-ifields): Remove.
1364 (<insn>): Add iflds-values entry to cache ifld-base-ifields values.
1365 (insn-value): Call ifld-base-ifields and ifld-constant? instead.
1366 * mach.scm (arch-analyze-insns!): Exclude multi-insns.
1367 * sem-frags.scm (sim-sfrag-analyze-insns!): Ditto.
1368 (-frag-test-data): Ditto.
1369 * sid-cpu.scm (cgen-write.cxx,-gen-sem-switch): Ditto.
1370 (-gen-sem-switch-engine); Ditto.
1371 * sid-model.scm (-gen-model-insn-fns, -gen-model-timing-table): Ditto.
1372 * sid-decode.scm (cgen-decode.h, cgen-decode.cxx): Ditto.
1373 (-gen-record-args): Tolerate unbound op-ifield.
1374 * sid.scm (<derived-operand> cxmake-get): New sketch implementation.
1375 (-gen-arch-model-decls, scache-engine-insns, pbb-engine-insns):
1376 Exclude multi-insns.
1377 * sim-decode.scm (cgen-decode.h, cgen-decode.cxx): Ditto.
1378 * utils-sim.scm (op-extract?): Handle derived operands.
1380 * gas-test.scm (cgen-build.sh): Quote '*' chars printed by objdump.
1381 * semantics.scm (-build-operand!): Handle 'DFLT case during parsing.
1382 * hardware.scm (hardware-for-mode): New function.
1384 * insn.scm (filter-harmlessly-ambiguous-insns): New function for
1385 cleaning up decode tables.
1386 (mask-superset?): Little helper function for above.
1387 * decode.scm (-build-decode-table-entry): Call it.
1388 (-opcode-slots): Add some more tracing.
1389 * arm.cpu: Disable decode-splits construct due to implementation
1390 conflict with `filter-harmlessly-ambiguous-insns'
1392 * decode.scm (-population-top-few): New function for better decode
1393 bit generation. Includes minor helper functions.
1394 (decode-get-best-bits): Call it instead.
1395 (OLDdecode-get-best-bits): Renamed previous version of above.
1398 2000-06-13 Ben Elliston <bje@redhat.com>
1400 * configure.in: Use AC_EXEEXT with Cygnus mode. Remove AC_ARG_WITH
1401 for the Guile library directory.
1402 * configure: Regenerate.
1403 * Makefile.in, doc/Makefile.in: Regenerate.
1405 * Makefile.in, doc/Makefile.in: Regenerate.
1406 * configure.in: Remove unnecessary tests. Move to version 1.0.
1407 * acconfig.h, config.in: Remove.
1408 * configure, aclocal.m4: Regenerate.
1409 * doc/stamp-vti, doc/version.texi: Likewise.
1410 * AUTHORS: New file.
1412 2000-06-07 Ben Elliston <bje@redhat.com>
1414 * fixup.scm (symbol-bound?): Reduce debugging output.
1416 2000-06-02 matthew green <mrg@redhat.com>
1418 * insn.scm (insn-base-ifields): Returns all the instruction fields for
1419 a given instruction, replacing derived fields with their subfields.
1420 (insn-value): Use `insn-base-ifields' to find all constant values.
1421 (multi-insn-instantiate!): Comment some debug messages.
1423 2000-06-01 Ben Elliston <bje@redhat.com>
1425 * doc/rtl.texi (Expressions): Document a hazard with the choice of
1426 symbol names used in a (c-call ..) rtx.
1428 * sim-test.scm (build-test-set): Return (()) for an instruction
1429 with no operands, so it too is included in the generated test set.
1431 2000-05-31 Ben Elliston <bje@redhat.com>
1433 * Makefile.am (gas-test): Ensure $(ISA) is not empty.
1434 (sim-test): Likewise.
1435 * Makefile.in: Regenerate.
1437 2000-05-30 Frank Ch. Eigler <fche@redhat.com>
1439 * read.scm (-cgen): In debugging mode (-b), ask guile for untruncated
1440 stack traceback, in an order that resembles gdb's `bt'.
1442 2000-05-24 Frank Ch. Eigler <fche@redhat.com>
1444 * desc-cpu.scm (-gen-hash-defines): Use ifmt-ifields again.
1445 * opc-itab.scm (-gen-ifmt-table-1): Ditto.
1446 * gas-test.scm (gas-test-analyze!, cgen-build.sh): Filter out
1448 * ifield.scm (multi-ifield): Define workable field-mask and field-value
1450 (ifld-base-ifields): New routine to replace ifmt-expanded-ifields.
1451 * iformat.scm (ifmt-expanded-ifields): Gone.
1452 (ifields-base-ifields): New function. Call ifld-base-ifields for real
1454 (-ifmt-lookup-ifmt!): Use it to expand derived/multi combos in new
1457 * opcodes.scm (multi-ifield gen-extract): Correct spacing in generated
1460 2000-05-23 Frank Ch. Eigler <fche@redhat.com>
1462 * sid.scm (with-any-profile?): New function clone.
1464 2000-05-19 Frank Ch. Eigler <fche@redhat.com>
1466 * utils-gen.scm (gen-multi-ifld-extract): Fix decode hook for sim.
1468 2000-05-18 Frank Ch. Eigler <fche@redhat.com>
1470 * ifield.scm (-multi-ifield-parse): Add encode/decode args.
1471 (-multi-ifield-read): Parse them.
1472 (define-full-multi-ifield): Pass #f/#f as defaults for them.
1473 * opcodes.scm (multi-ifield gen-insert): Add encode hook.
1474 (multi-ifield gen-extract): Add decode hook.
1475 * utils-gen.scm (gen-multi-ifld-extract): Add decode hook for sim.
1477 * insn.scm (syntax-break-out): More correctly handle \-escaped
1479 (syntax-make-elements): Ditto.
1480 * opc-itab.scm (compute-syntax): Ditto.
1482 2000-05-17 Ben Elliston <bje@redhat.com>
1484 * gas-test.scm (cgen-build.sh): Log the correct script filename.
1486 2000-05-15 Frank Ch. Eigler <fche@redhat.com>
1488 * gas-test.scm (build-test-set): Return (()) for an instruction
1489 with no operands, so it too is included in the generated test set.
1491 2000-05-15 Frank Ch. Eigler <fche@redhat.com>
1493 * desc-cpu.scm (-gen-hash-defines): Define CGEN_ACTUAL_MAX values for
1494 IFMT_OPERANDS and SYNTAX_BYTES.
1496 2000-05-15 Frank Ch. Eigler <fche@redhat.com>
1498 * sim.scm (with-any-profile?): New function.
1499 * utils-sim.scm (-sfmt-contents): Use above instead of `with-profile?'
1500 to decide whether or not to include profiling counters.
1502 2000-05-10 Frank Ch. Eigler <fche@redhat.com>
1504 Fuller derived-operand support for opcodes.
1505 * insn.scm (non-multi-insns): New filter to oppose `multi-insns'.
1506 * desc-cpu.scm (-define-hash-defines): Compute CGEN_MAX_SYNTAX_BYTES.
1507 Correctly compute ..._IFMT_OPERANDS. Omit useless ..._INSN_OPERANDS.
1508 (gen-operand-table): Omit derived- and anyof- operands from table.
1509 (gen-insn-table): Omit multi-insns from table.
1510 * iformat.scm (ifmt-expanded-fields): New function to expand
1511 subfields of derived-ifields.
1512 (ifmt-compute!): Ignore remaining multi-insns.
1513 * mach.scm (isa-min-insn-bitsize, isa-max-insn-bitsize): Ignore
1515 * opc-itab.scm (-gen-ifmt-table-1): Use ifmt-expanded-ifields.
1516 (-gen-insn-enum, -gen-insn-opcode-table): Ignore multi-insns.
1517 * opcodes.scm (derived-operand): Define abort()ing gen-insert,
1518 gen-extract, gen-fget, gen-fset, gen-parse, gen-print functions.
1519 (gen-switch): Omit anyof-operands.
1520 * operand.scm (-anyof-syntax): New function.
1521 (-anyof-merge-syntax): Call it.
1522 * utils.scm (collect): New idiomatic function.
1524 2000-05-10 Ben Elliston <bje@redhat.com>
1526 * m68k.cpu: New file (work in progress).
1528 2000-05-05 Frank Ch. Eigler <fche@redhat.com>
1530 * Makefile.am (all-local): New target. Create stamp-cgen.
1531 * Makefile.in: Regenerated.
1532 * doc/Makefile.in: Regenerated.
1534 2000-04-26 Frank Ch. Eigler <fche@redhat.com>
1536 * operand.scm (-operand-g/setter-syntax): Correct off-by-one error.
1537 (-operand-parse-setter): Ditto.
1538 * utils-sim.scm (needed-iflds): Store ifield (index) in argbuf, even
1539 for CACHE-ADDR operands.
1540 * sid-decode.scm (-gen-record-args): Remove newly duplicated extract
1541 trace entries. Widen byte-wide values for printing.
1542 * sid.scm (-op-gen-set-trace): Enhance result trace with op indices.
1543 Widen byte-wide values for printing. Hexify memory addresses.
1545 2000-04-23 matthew green <mrg@redhat.com>
1547 * m32r.cpu: Fix a typo.
1549 Fri Apr 21 22:18:48 2000 Jim Wilson <wilson@cygnus.com>
1551 * ia64.cpu (define-model): Change merced to Itanium.
1552 (f-qp): Change quilifying to qualifying.
1553 (movbr_ph, movbr_pvec): Delete.
1554 (I-I21): Delete uses of movbr_ph and movbr_pvec.
1556 2000-04-07 Ben Elliston <bje@redhat.com>
1558 * doc/porting.texi (Building a simulator test suite): Clarify
1559 where generated test cases are placed.
1561 2000-04-07 Ben Elliston <bje@redhat.com>
1563 * Makefile.am (gas-test): Remove dependency on `cgen'.
1565 * Makefile.in: Regenerate.
1567 2000-04-04 Frank Ch. Eigler <fche@redhat.com>
1569 * hardware.scm (<hw-pc> parse): Allow user to set type for pc register.
1570 * mode.scm (mode-finish!): Add placeholder code for mach-dependent
1571 type reconfiguration.
1572 * utils-sim.scm (-sfmt-contents): Add profile-counters only if
1575 2000-03-30 Ben Elliston <bje@redhat.com>
1577 * doc/rtl.texi (Enumerated constants): Add concept index entries.
1579 2000-03-24 Ben Elliston <bje@redhat.com>
1581 * Makefile.am (stamp-cgen): Reinstate target.
1582 * Makefile.in: Regenerate.
1584 2000-03-22 Ben Elliston <bje@redhat.com>
1586 * slib/ppfile.scm: Remove; unused.
1587 * slib/defmacex.scm: Likewise.
1589 2000-03-21 Ben Elliston <bje@redhat.com>
1591 * doc/internals.texi (Source file overview): Document.
1593 * Makefile.am (GUILEDIR): Remove.
1594 (CGEN): Ditto. Callers use $(GUILE) instead.
1595 (GUILEFLAGS): Ditto.
1597 (APPDESCFILES): Ditto.
1598 (OPCODESFILES): Ditto.
1600 (pkgdata_SCRIPTS): Ditto.
1601 (stamp-cgen): Remove target.
1602 * Makefile.in: Regenerate.
1604 * configure.in: Remove header and library tests.
1605 * configure: Regenerate.
1606 * config.in: Likewise.
1608 2000-03-20 Ben Elliston <bje@redhat.com>
1610 * read.scm: Cease loading "hob-sup.scm".
1611 * utils.scm: Inherit the fastcall family of procedures (for now).
1612 * hob-sup.scm: Remove.
1614 2000-03-20 Ben Elliston <bje@redhat.com>
1616 * configure.in (AC_OUTPUT): Do not emit .gdbinit.
1617 * configure: Regenerate.
1618 * gdbinit.in: Remove.
1620 2000-03-17 Ben Elliston <bje@redhat.com>
1622 * Makefile.am (CGEN): Use guile, not cgen.
1623 (CGENCFLAGS, LIBIBERTY, INCLUDES): Remove.
1624 (bin_PROGRAMS, cgen_SOURCES): Likewise.
1625 (CGENFILES): Fold CGEN_HOB_INPUT_FILES and CGEN_NOHOB_FILES.
1626 (HOBBIT_INPUT_FILES, HOBBIT_OUTPUT_FILE): Remove.
1627 (HOB_OBJS): Likewise.
1628 (CGEN_HOB_SRC, CGEN_HOB_OBJ): Likewise.
1629 (CGENOBJS): Likewise.
1630 (cgen_DEPENDENCIES, cgen_LDFLAGS, cgen_LDADD): Likewise.
1631 (hobbit, hobbit.o, hobbit.c): Remove targets.
1632 (cos.o, cgen.o, cgen-gh.o, hob-sup.o): Likewise.
1633 (CLEANFILES): Update.
1634 * acconfig.h (WITH_HOBBIT): Remove.
1635 * configure.in: Do not test for 3 arg scm_make_vector. Remove
1636 option --with-cgen-hobbit.
1637 * cos.h, cos.c, hob-main.c, hob-sup.c, hob-sup.h, hob.sh: Remove.
1638 * cgen-gh.h, cgen-gh.c, cgen-hob.scm, cgen.c: Likewise.
1639 * hobbit.c, hobbit.h, hobbit.scm: Likewise.
1640 * hobscmif.h, hobslib.scm, scmhob.h: Likewise.
1641 * Makefile.in: Regenerate.
1642 * config.in: Likewise.
1643 * aclocal.m4: Likewise.
1644 * configure: Likewise.
1645 * README (Hobbit support): Remove.
1646 * doc/internals.texi (Conventions): Do not mention Hobbit.
1647 * doc/porting.texi (Supported Guile versions): Likewise.
1649 2000-03-16 Frank Ch. Eigler <fche@redhat.com>
1651 * sid-cpu.scm (-gen-sem-switch-engine): Adjust calling &
1652 callback convention to new sid sidutil::basic_cpu code.
1653 (-gen-sfrag-engine-fn): Ditto.
1654 * sid.scm (-create-virtual-insns!): Ditto.
1655 (-hw-gen-set-quiet-pc): Mark delay slot execution specially in pbb
1657 (cxmake-skip): Implement properly for pbb mode.
1659 2000-03-03 Ben Elliston <bje@redhat.com>
1661 * doc/internals.texi: New file.
1663 2000-02-29 Ben Elliston <bje@redhat.com>
1665 * doc/rtl.texi (Derived operands): Remove unnecessary footnote.
1666 * doc/porting.texi: Formatting tweaks.
1668 2000-02-25 Nick Clifton <nickc@cygnus.com>
1670 * desc-cpu.scm (*_cgen_cpu_open): Initialise signed_overflow_ok_p
1673 Thu Feb 24 14:09:01 2000 Doug Evans <devans@seba.cygnus.com>
1675 * operand.scm (<anyof-operand>,make!): Initialize mode-name, not
1678 2000-02-23 Andrew Haley <aph@cygnus.com>
1680 * m32r.cpu (pcmpbz): Make pcmpbz a special (i.e. hidden)
1683 2000-02-24 Ben Elliston <bje@redhat.com>
1685 * doc/rtl.texi (Derived operands): Add some cindex entries.
1687 2000-02-23 Ben Elliston <bje@redhat.com>
1689 * ia32.cpu (dndo): Move general purpose macro from here ..
1690 * simplify.inc (dndo): .. to here.
1692 2000-02-18 Frank Ch. Eigler <fche@redhat.com>
1694 * arm.cpu (h-tbit): Add c-call setter function.
1697 2000-02-17 Frank Ch. Eigler <fche@redhat.com>
1699 * sem-frags.scm (-frag-hash-compute!): Add appstuff arg for traversal.
1700 (-frag-cost-compute!): Ditto.
1701 * utils.scm (copyright-cygnus): Add Y2K.
1702 * sid-cpu.scm (@prefix@_pbb_run): Add unsigned& argument.
1704 2000-01-25 Nick Clifton <nickc@cygnus.com>
1706 * desc-cpu.scm (@arch@_cgen_cpu_open): Add code to initialise
1707 flags field of the CGEN_CPU_TABLE structure.
1709 Sun Dec 12 14:20:36 1999 Doug Evans <devans@seba.cygnus.com>
1711 * operand.scm (<anyof-instance>): Renamed from <anyof-value>.
1712 All references updated.
1714 Tue Nov 30 11:06:22 1999 Doug Evans <devans@seba.cygnus.com>
1716 * ia32.cpu: Rewrite addressing mode support.
1718 * ifield.scm (<ifield>): New member `follows'.
1719 (ifld-known-values): New proc.
1720 (<ifield>): New method set-word-offset!.
1721 (ifld-set-word-offset!): New proc.
1722 (ifld-new-word-offset): New proc.
1723 (<ifield>): New method next-word.
1724 (<multi-ifield>): New method next-word.
1725 (ifld-next-word): New proc.
1726 (ifld-precedes?): New proc.
1727 (-ifield-parse): New args word-offset,word-length,follows.
1728 All callers updated. Handle CISC-style vs RISC-style ifields.
1729 (-ifield-read): Recognize word-offset,word-length,follows specs.
1730 (-ifld-parse-follows): New proc.
1731 (-multi-ifield-make-default-insert): New proc.
1732 (-multi-ifield-make-default-extract): New proc.
1733 (-multi-ifield-parse): Provide default values for insert,extract
1734 handlers if not specified.
1735 (<derived-ifield>): New class.
1736 (derived-ifield?): New predicate.
1737 (ifld-derived-operand?): New predicate.
1738 (f-anyof): New global.
1739 (ifld-anyof?,ifld-anyof-operand?): New predicates.
1740 (f-derived,ifld-derived?): Delete.
1741 (ifield-builtin!): Delete init of f-derived. Init f-anyof.
1742 * insn.scm (-sub-insn-ifields): New proc.
1743 (-sub-insn-make!): New proc.
1744 (multi-insn-instantiate!): Provide initial implementation.
1745 (-insn-parse): If insn contains "anyof" operands, create a
1746 <multi-insn> object instead of a plain <insn>.
1747 (-parse-insn-format-symbol): Rewrite derived operand handling.
1748 Add anyof operand handling.
1749 (-parse-insn-format-ifield-spec): Rewrite.
1750 (-parse-insn-format-operand-spec): Delete.
1751 (-parse-insn-format-list): Delete support for `(operand value)'.
1752 (anyof-operand-format?): Replaces derived-operand-format?.
1753 * operand.scm (-operand-parse-getter): Improve error messages.
1754 (-operand-parse-setter): Ditto.
1755 (<derived-operand>): New members args,syntax,base-ifield,encoding,
1757 (<anyof-operand>): Change baseclass from <derived-operand> to
1758 <operand>. Delete member values. New members base-ifield,choices.
1759 (anyof-operand?): New predicate.
1760 (-derived-parse-encoding,-derived-parse-ifield-assertion): New procs.
1761 (-derived-operand-parse): Rewrite.
1762 (-derived-operand-read): Rewrite.
1763 (-anyof-parse-choice): New proc.
1764 (-anyof-operand-parse): Rewrite.
1765 (-anyof-operand-read,define-anyof-operand): New procs.
1766 (<anyof-value>): Rewrite.
1767 (-anyof-initial-known): New proc.
1768 (anyof-satisfies-assertions?): New proc.
1769 (-anyof-merge-syntax,-anyof-merge-encoding): New procs.
1770 (-anyof-merge-getter,-anyof-merge-setter): New procs.
1771 (-anyof-merge-semantics,-anyof-merge-ifield-assertion): New procs.
1772 (-anyof-merge-subchoices,-anyof-all-subchoices): New procs.
1773 (-anyof-value-from-derived): New proc.
1774 (-anyof-all-choices-1,anyof-all-choices): New procs.
1775 (operand-init!): Create define-anyof-operand reader command.
1777 * insn (syntax-break-out): Take syntax as argument instead of insn.
1778 All callers updated.
1779 (syntax-make): Move here, from ???.
1781 * types.scm (<bitrange>): Rename accessors from bitrange:foo to
1782 bitrange-foo. All uses updated.
1783 (bitrange-next-word): New proc.
1785 * semantics.scm (-solve-expr-fn,rtx-solve): New procs.
1787 * rtl.scm (rtx-canonicalize): Provide initial implementation.
1788 (rtx-make-const,rtx-make-enum): New procs.
1789 (rtx-arg1,rtx-arg2): Renamed from -rtx-arg[12]. All callers updated.
1790 (rtx-mem-addr,rtx-mem-sel): New procs.
1791 (rtx-change-address): New proc.
1792 (rtx-make-ifield,rtx-make-operand,rtx-make-local): New proc.
1793 (rtx-make-set,rtx-single-set?): New procs.
1794 (rtx-combine): New proc.
1796 * rtl.scm (rtx-traverse): New arg `appstuff'. All callers updated.
1797 (rtx-traverse-with-locals): Ditto.
1798 (-rtx-traverse,-rtx-traverse-*): Ditto.
1800 * rtl.scm (define-subr): New proc.
1801 (rtl-init!): Create reader command `define-subr'.
1803 * cos.c (_object_mi_p): Ensure argument is an object.
1804 (indent): New function.
1805 (_object_print_elms): Add pretty-printing support.
1806 (_object_print): Ditto.
1808 * hobbit.scm (*reckless-s->c-fun-table*): Add fastcall7.
1809 (*floats-s->c-fun-table*): Ditto.
1810 * hobbit.c,hobbit.h: Rebuild.
1811 * hob-sup.c (fastcall7): New proc.
1812 * hob-sup.h (fastcall7): Declare.
1813 * hob-sup.scm (fastcall7): New macro.
1815 * mach.scm (<arch>): New member subr-list.
1816 (current-subr-list,current-subr-add!,current-subr-lookup): New procs.
1817 (arch-finish!): Reverse recorded subr list.
1819 * read.scm (debug-env): New global.
1820 (debug-var-names,debug-var,debug-repl-env): New procs.
1821 (debug-repl): Rewrite. New arg `env-list'. All callers updated.
1822 (debug-quit): Renamed from `continue'.
1824 * simplify.inc (dsmf): New pmacro.
1826 * utils.scm (plus-scan): New proc.
1827 (split-bits): Rewrite.
1828 (split-value): New proc.
1830 1999-10-13 Doug Evans <devans@casey.cygnus.com>
1832 * doc/Makefile.am (DOCFILES): Add notes.texi.
1833 * doc/Makefile.in: Rebuild.
1835 1999-10-11 Doug Evans <devans@casey.cygnus.com>
1837 * ifield.scm (ifld-derived?): New proc.
1838 (f-derived): New global.
1839 (ifield-builtin!): Create ifield f-derived.
1840 (<multi-insn>): New class.
1841 (multi-insn?): New predicate.
1842 (multi-insn-instantiate!): New proc.
1843 (-insn-parse): Create <multi-insn> objects for insns with derived
1845 (-parse-insn-format-symbol): Handle derived ifields.
1846 (-parse-insn-format-ifield-spec): New proc.
1847 (-parse-insn-format-operand-spec): New proc.
1848 (-parse-insn-format-list): Simplify.
1849 (-parse-insn-format): No longer allow (ifield-object value) spec.
1850 (derived-operand-format?): New proc.
1851 (insn-alias?): New proc.
1852 (non-alias-insns): Rewrite.
1853 (insn-real?): Renamed from real-insn?, all callers updated.
1854 (virutal-insns): Rewrite.
1855 (multi-insns): New proc.
1856 * mach.scm (arch-analyze-insns!): Instantiate multi-insns if present.
1857 * operand.scm (op-ifield): Renamed from op:ifield, all callers updated.
1858 Return #f if operand doesn't have an index or if index is not an
1860 (hw-index-anyof): New proc.
1861 (-operand-parse): Allow integer indices.
1862 (<derived-operand>): New class.
1863 (derived-operand?): New predicate.
1864 (<anyof-operand>): New class.
1865 (<anyof-value>): New class.
1866 (-anyof-parse-value,-anyof-operand-parse): New procs.
1867 (-derived-operand-parse,-derived-operand-read): New procs.
1868 (define-derived-operand,define-full-derived-operand): New procs.
1869 (operand-init!): New reader command define-derived-operand.
1871 * utils.scm (list-take): Handle negative amount.
1872 (element?): Rewrite.
1874 1999-10-10 Doug Evans <devans@casey.cygnus.com>
1876 * dev.scm: quick-utils.scm renamed to ~/.cgenrc.
1878 1999-10-04 Richard Henderson <rth@cygnus.com>
1880 * ia64.cpu: Checkpoint.
1882 1999-09-29 Doug Evans <devans@casey.cygnus.com>
1884 * sim-cpu.scm (-gen-semantic-fn-table): Virtual insns are always valid.
1886 * sim.scm (sim-finish!,x-invalid): Always set pc. Set vpc based on
1887 default-insn-bitsize. Pass vpc to sim_engine_invalid_insn.
1889 Wed Sep 29 14:39:39 1999 Dave Brolley <brolley@cygnus.com>
1891 * sim.scm (sim-finish!): Don't call sim_io_error for invalid insn. Use
1892 PC returned by sim_engine_invalid_insn.
1894 1999-09-28 Doug Evans <devans@casey.cygnus.com>
1896 * ia32.cpu: New file.
1898 1999-09-25 Doug Evans <devans@casey.cygnus.com>
1900 * utils.scm (bit-set?): Fix off by one error.
1902 * rtl-c.scm (s-sequence): Fix non-void-mode result output.
1904 * rtl.scm (hw): Check for valid hardware element before trying to
1907 * arm.cpu (arm7f cpu): Renamed from arm. All users updated.
1908 * arm7.cpu (bx): Fix name of target address operand in assembler spec.
1909 (*): arm_compute_operand2_foo renamed to compute_operand2_foo.
1910 * thumb.cpu (*): arm_compute_operand2_foo renamed to
1911 compute_operand2_foo.
1913 * cgen-sid.scm (sim_arguments): Add support for building defs.h.
1914 * sid.scm (-hw-gen-set-quiet-pc): Handle #:delay modifier.
1915 Call delayed_branch/branch methods instead of assigning to `vpc'.
1916 (<hw-pc>,cxmake-skip): Call skip method.
1917 (-gen-hw-selector): Call rtl-c++ instead of rtl-c.
1918 (<pc>,cxmake-skip): Ditto.
1919 (-create-virtual-insns!): Ditto.
1920 (op:read): Call estate-make-for-normal-c++ instead of estate-...-c.
1922 (op:record-profile): Specify #:output-language "c++".
1923 * sid-cpu.scm (-gen-insn-attr-decls): Rename @cpu@_insn_attr to
1925 (cgen-desc.h): Use @arch@ namespace instead of @cpu@.
1927 (-gen-reg-access-defns): Use rtl-c++ instead of rtl-c.
1928 (gen-semantic-code): Ditto.
1929 (-gen-sem-case,-gen-sfrag-code): Ditto.
1930 (-gen-hardware-types): Delete class @cpu@_cpu_base.
1931 (cgen-cpu.h): File is now #included by main cpu class, rather than
1933 (cgen-defs.h): New proc.
1934 (-gen-scache-semantic-fn): Change result type to sem_status.
1935 New local `status'. Call done_cti_insn/done_insn method at end.
1936 (cgen-semantics.cxx): Include @cpu@.h instead of @arch@-main.h,
1938 (cgen-sem-switch.cxx): Ditto.
1939 * sid-decode.scm (-gen-idesc-decls): Update return type of
1941 (cgen-decode.h): Add using namespace @arch@.
1942 (cgen-decode.cxx): Include @cpu@.h instead of @arch@-main.h.
1944 * rtl-c.scm (<rtl-c-eval-state>): New member output-language.
1945 (estate-output-language-c?,estate-output-language-c++?): New procs.
1946 (<rtl-c-eval-state>,vmake!): Handle #:output-language.
1947 (estate-make-for-normal-rtl-c++): New proc.
1948 (rtl-c++-parsed,rtl-c++): New proc.
1949 (s-c-call): Invoke cpu class method if c++.
1950 (join): Use s-c-raw-call.
1952 * rtl-c.scm (subword): Don't pass current_cpu to SUBWORD.
1955 * rtl-c.scm (delay): Mark the sequence as #:delay'd.
1956 * rtl.scm (<eval-state>): New member `modifiers'.
1957 (<eval-state>,vmake!): Handle #:modifiers.
1958 (estate-with-modifiers): New proc.
1960 * rtl.scm (rtx-side-effects?): New proc.
1961 (rtx-canonical-bool): Don't change expr if it has side effects.
1962 * semantics.scm (-simplify-expr-fn): Handle exprs with side-effects
1965 1999-09-23 Doug Evans <devans@casey.cygnus.com>
1967 * sim.scm (gen-scache-type): Fix typo in last patch.
1969 Tue Sep 21 17:12:55 1999 Dave Brolley <brolley@cygnus.com>
1971 * sim.scm (gen-scache-type): Add last_insn_p flag for parallel support.
1973 1999-09-05 Doug Evans <devans@casey.cygnus.com>
1975 * sid.scm (<hw-pc>,cxmake-skip): New method.
1976 (<pc>,cxmake-skip): New method.
1978 * decode.scm (decode-build-table): Delete args startbit,index-list.
1979 All callers updated.
1980 * utils-sim.scm (gen-decoder): Delete args startbit,index-list.
1981 All callers updated.
1982 * sim-decode.scm (-gen-decode-fn): Always pass 0 for startbit
1983 to decode-get-best-bits.
1984 * sid-decode.scm (-gen-decode-fn): Ditto.
1986 * hardware.scm (hw-bits): New proc.
1987 (-hw-parse): New arg layout. All callers updated.
1988 (define-full-hardware): New arg layout. All callers updated.
1989 (-hw-validate-layout): New proc.
1990 (-hw-create-[gs]etter-from-layout): New procs.
1991 (<hw-register>,parse!): Handle layout spec.
1992 * types.scm (type-bits): New proc.
1994 * sem-frags.scm (-frag-cost-compute!): Fix calculation of
1995 UNARY, BINARY, TRINARY rtxs.
1997 * attr.scm (<enum-attribute>,parse-value): Allow strings.
1998 * enum.scm (parse-enum-vals): Use reverse! instead of reverse.
1999 Support '- as "unused spot" indicator.
2001 1999-09-03 Doug Evans <devans@casey.cygnus.com>
2003 * pgmr-tools.scm (pgmr-pretty-print-insn-format): Fix typo.
2005 1999-09-02 Doug Evans <devans@casey.cygnus.com>
2007 * rtx-funcs.scm (subword): Fix mode spec of `value'.
2009 * rtl.scm (-rtx-traverse-operands): Fix debugging message
2011 (tstate-make): New arg `depth'. All callers updated.
2012 (tstate-depth,tstate-set-depth!): New procs.
2013 (tstate-incr-depth!,tstate-decr-depth!): New procs.
2014 (-rtx-traverse-operands): Indent debugging output by traversal depth.
2015 (-rtx-traverse): Ditto. Keep track of traversal depth.
2017 1999-09-01 Doug Evans <devans@casey.cygnus.com>
2019 * sim-decode.scm (-gen-decoder+supporting cast): Move to utils-sim.scm.
2020 * sid-decode.scm (-gen-decoder+supporting cast): Ditto.
2021 * utils-sim.scm: Decoder generator support moved here.
2022 (-decode-equiv-entries?,-decode-sort-entries): New procs.
2023 (-gen-decoder-switch): Sort entries for more fall-throughs.
2025 * Makefile.am (gas-test,sim-test): Specify ISA when invoking cgen.
2026 * Makefile.in: Rebuild.
2027 * sim-test.scm (build-sim-testcase): Add logging message.
2028 * dev.scm (cload): Recognize SIM-TEST application.
2029 (load-stest): Set APPLICATION to SIM-TEST.
2031 * desc-cpu.scm (-gen-hash-defines): Add \n to output.
2033 * ifield.scm (-ifield-parse): Allow bit numbers up to 127.
2034 * mach.scm (-isa-parse): Allow insn bitsizes from 8 to 128.
2035 * mode.scm (mode-make-int,mode-make-uint): Allow values up to 64 bits.
2037 * insn.scm (syntax-break-out): Handle ${foo}.
2039 Sun Aug 29 11:11:15 1999 Doug Evans <devans@canuck.cygnus.com>
2041 * Makefile.am (noinst_PROGRAMS,noinst_LIBRARIES): Delete.
2042 (bin_PROGRAMS): Define.
2043 (CGEN_HOB_INPUT_FILES): Remove $(srcdir)/.
2044 (cgen-hob.c): Prepend $(srcdir)/ here.
2045 (APPDESCFILES,OPCODESFILES,SIMFILES,pkgdata_SCRIPTS): Define.
2046 (libcpu_a_SOURCES): Delete.
2047 (cgen_DEPENDENCIES,cgen_LDADD): Rewrite.
2048 (CGEN_HOB_OBJ,CGENOBJS): New variables.
2049 * configure.in (LIBS): Replace -Wl,-rpath with -R.
2050 Add AC_CHECK_LIB(guile,main).
2051 * Makefile.in: Rebuild.
2052 * doc/Makefile.in: Rebuild.
2053 * aclocal.m4: Rebuild.
2054 * config.in: Rebuild.
2055 * configure: Rebuild.
2057 1999-08-28 Doug Evans <devans@casey.cygnus.com>
2059 Rename rtx functions from name: to name, accept optional leading
2061 VM -> VOID, DM -> DFLT, use DFLT instead of VM for default mode.
2062 * attr.scm (-attr-eval): Update.
2063 * hardware.scm (hw-mode-ok?): Rename arg mode to new-mode-name.
2064 (<hw-register>,mode-ok?): Disallow VOID.
2065 (<hw-immediate>,mode-ok?): Disallow VOID.
2066 (<hw-address>,mode-ok?): Disallow VOID.
2067 * mode.scm (mode-name?): New proc.
2068 (VOID): Renamed from VM.
2069 (DFLT): Renamed from DM.
2070 (mode-builtin!): Update.
2071 * opcodes.scm (<ifield>,gen-insert): Update.
2072 (<ifield>,gen-extract): Update.
2073 (<multi-ifield>,gen-insert,gen-extract): Update.
2074 * operand.scm (op:mode): Update.
2075 (<pc>,make!): Update.
2076 (op:new-mode): Update.
2077 (-operand-read): Update.
2078 * rtl.scm (-rtx-valid-types): Add OPTIONS, EXPLNUMMODE,
2079 NONVOIDMODE, DFLTMODE. Rename VMMODE to VOIDMODE.
2080 (def-rtx-dual-mode,define-rtx-dual-mode): Delete.
2081 (-rtx-lazy-sem-mode): Renamed from -rtx-mode. All callers updated.
2082 (rtx-make): Call -rtx-munge-mode&options.
2083 (rtx accessors): Rewrite.
2084 (rtx-pretty-name): Update.
2085 (-rtx-traverse-*): Update.
2086 (-rtx-traverse-explnummode,-rtx-traverse-nonvoidmode): New procs.
2087 (-rtx-traverse-voidmode,-rtx-traverse-dfltmode): New procs.
2088 (-rtx-make-traverse-table): Update.
2089 (-rtx-traverse-operands): Update.
2090 (-rtx-option?,-rtx-option-list?): New procs.
2091 (-rtx-munge-mode&options): New proc.
2092 (-rtx-traverse-expr): Call -rtx-munge-mode&options.
2093 (-rtx-traverse): Update.
2094 (rtx-traverse,rtx-traverse-with-locals,rtx-compile): Update.
2095 (rtx-compile-time-constant?): Update.
2096 (rtx-true?,rtx-false?,rtx-true,rtx-false): Update.
2097 (rtx-value): Update.
2098 (hw,reg,mem): Renamed from foo:. Update. All callers updated.
2099 * rtx-funcs.scm (*): Update.
2100 * rtl-c.scm (rtl-c-get): Update.
2101 (rtl-c-set-quiet,rtl-c-set-trace): Update.
2102 (s-c-call,s-c-raw-call): Update.
2103 (s-boolifop,s-convop,s-if,s-cond): Update.
2104 (s-case-vm,-gen-non-vm-case-test,s-case): Update.
2105 (-par-replace-set-dests,-par-replace-set-srcs): Update.
2106 (s-parallel,s-sequence): Update.
2107 (rtl-c-build-table): Update.
2108 * sem-frags.scm (-frag-hash-compute!): Update.
2109 (-frag-cost-compute!): Improperly handle unary,binary,trinary ops
2110 for temporary bug compatibility with previous version.
2111 (-frag-expr-locals,-frag-expr-stmts): Update.
2112 (-frag-compute-desired-frags,-frag-pick-best): Update.
2113 * semantics.scm (-simplify-expr-fn): Update.
2114 (rtx-simplify): Update.
2115 (-rtx-ref-type): Update. Account for modifiers.
2116 (-build-operand!,-build-reg-operand!,-build-mem-operand!): Update.
2117 (-build-ifield-operand!): Update.
2118 (-build-known-values): Update.
2119 (semantic-compile): Update.
2120 (-gen-reg-access-defns): Update.
2121 (gen-semantic-code,-gen-sem-case): Update.
2122 (-gen-sfrag-code,-gen-sfrag-case): Update.
2123 * sim-cpu (gen-semantic-code): Update.
2124 * sim.scm (<hw-pc>,gen-write,cxmake-skip): Update.
2125 (<hw-register>,gen-write,gen-set-macro,cxmake-get-raw): Update.
2126 (-hw-cxmake-get): Update.
2127 (<hw-memory>,cxmake-get,gen-set-quiet,gen-write): Update.
2128 (<hw-index>,cxmake-get): Update.
2129 (<operand>,gen-type,gen-read,cxmake-get): Update.
2130 (<operand>,gen-set-quiet,gen-set-trace): Update.
2131 (<pc>,cxmake-get): Update.
2132 (sim-finish!): Update.
2133 * utils-gen.scm (-gen-ifld-extract-base): Update.
2134 (-gen-ifld-extract-beyond): Update.
2135 (gen-multi-ifld-extract): Update.
2136 * sid-decode.scm (-decode-expr-ifield-values-used): Update.
2137 * sid.scm (<hw-pc>,gen-write): Update.
2138 (-gen-decode-insn-globals): Update.
2139 (-hw-cxmake-get): Update.
2140 (<hw-register>,cxmake-get-raw): Update.
2141 (<hw-memory>,cxmake-get,gen-set-quiet,gen-write): Update.
2142 (<hw-index>,cxmake-get): Update.
2143 (<operand>,gen-type,gen-read,cxmake-get): Update.
2144 (<operand>,gen-set-quiet,gen-set-trace): Update.
2145 (<pc>,cxmake-get): Update.
2146 (-create-virtual-insns!): Update.
2147 (-decode-split-build-assertion): Update.
2149 * simplify.inc: Update.
2151 1999-08-20 Doug Evans <devans@casey.cygnus.com>
2153 * sim.scm (-op-gen-queued-write): Fix memory address calculation.
2154 Prefix queue function name with sim_ instead of @cpu@_.
2156 * sim.scm (-with-parallel-only?): New global.
2157 (option-init!): Initialize it.
2158 (option-set!): Set it.
2159 (with-parallel-only?): New proc.
2160 * sim-decode.scm (-gen-decode-insn-globals): Don't include parallel
2161 and writeback markers if with-parallel-only.
2162 (-gen-idesc-init-fn): Update.
2163 * sim-cpu.scm (cgen-cpu.h): Don't generate struct parexec if
2166 Wed Aug 18 15:04:30 1999 Doug Evans <devans@canuck.cygnus.com>
2168 * sim-cpu.scm (-gen-semantic-fn-table): Handle unsupported insns
2169 with the invalid insn handler.
2171 * utils.scm (list-maybe-ref): New proc.
2173 * mach.scm (-isa-parse): Signal error if isa wasn't specified in
2175 (-mach-parse): Signal error if mach wasn't specified in define-arch.
2177 * i960.cpu (test*-*): Delete `expr' arg.
2178 (test-op,branch-op): Update.
2180 1999-08-09 Doug Evans <devans@casey.cygnus.com>
2182 * sim.scm (gen-reg-getter-fn,gen-reg-setter-fn): New procs.
2183 (gen-reg-access-decl): Replace `name' arg with `hw'. All callers
2185 (gen-reg-access-defn): Ditto.
2186 (-gen-hw-addr): Rewrite.
2187 (-op-gen-queued-write): Rewrite.
2188 * sim-cpu.scm (-gen-cpu-reg-access-decls):
2189 (-gen-scache-semantic-fn): Handle with-generic-write.
2190 (-gen-no-scache-semantic-fn): Ditto.
2192 1999-08-08 Doug Evans <devans@casey.cygnus.com>
2194 * utils-gen.scm (gen-define-ifmt-ifields): Tweak output.
2196 * sim.scm (-with-generic-write?): New global.
2197 (option-init!): Initialize it.
2198 (option-set!): Set it.
2199 (with-generic-write?): New proc.
2200 (-gen-hw-addr): New proc.
2201 (-op-gen-queued-write): New proc.
2202 (-op-gen-set-{quiet,trace}-parallel): Use it if with-generic-write?.
2204 * sim-cpu.scm (-gen-hardware-types): Output code with parallel support
2206 (-gen-sem-switch): Preserve existing with-parallel? value.
2207 (-gen-sem-parallel-switch): Ditto.
2208 (-gen-write-case): Add /indent support.
2209 (cgen-write.c): Rewrite.
2211 * utils.scm (-current-print-state): New global.
2212 (make-print-state): New proc.
2213 (pstate-indent,pstate-set-indent!): New procs.
2214 (pstate-cmd?,pstate-cmd-do): New procs.
2215 (/indent): New global.
2216 (/indent-set,/indent-add): New procs.
2217 (string-write): Set -current-print-state.
2218 (-string-write): New arg pstate, all callers updated.
2219 Handle print-state commands.
2220 (-string-list-flatten): New proc.
2221 (string-list->string): Use it.
2223 * sim-cpu.scm (-gen-sem-fn-name): Move here from sim-decode.scm.
2224 (-gen-sem-fn-table-entry): New proc.
2225 (-gen-semantic-fn-table): New proc.
2226 (-gen-scache-semantic-fn): Make fn static.
2227 (-gen-no-scache-semantic-fn): Ditto.
2228 (cgen-semantics.c): Define macro SEM_FN_NAME.
2229 * sim-decode.scm (-gen-decode-insn-globals): Delete FMT,TYPE,IDX,
2230 FAST,FULL. Update @cpu@_insn_sem contents.
2231 (-gen-semf-fn-name): Delete.
2232 (-gen-sem-fn-decls): Delete.
2233 (-gen-idesc-decls): Output prototypes of @cpu@_sem_init_idesc_table,
2234 @cpu@_semf_init_idesc_table.
2235 (-gen-idesc-init-fn): Update. Don't initialize pointers to semantic
2237 (cgen-decode.h): Print sfmt enum.
2238 * sid-decode.scm (-gen-semf-fn-name): Delete.
2239 * utils-gen.scm (gen-sfmt-enum-decl): New proc.
2241 * iformat.scm (sfmt-build): Rename sformats from fmt-foo to sfmt-foo.
2242 (ifmt-compute!): Ditto.
2243 * sim-decode.scm (-gen-decoder-switch): Ditto.
2244 * sid-decode.scm (-gen-decode-expr-entry): Ditto.
2245 (-gen-decoder-switch): Ditto.
2247 * insn.scm (insn-virtual?): New proc.
2249 * enum.scm (gen-enum-decl): Speed up, build string as list and then
2251 * mach.scm (<arch>): attr-list is now a pair of lists.
2252 (current-attr-list): Rewrite.
2253 (current-attr-add!,current-attr-lookup): Rewrite.
2254 * sim.scm (gen-cpu-insn-enum-decl): Replace append with append!.
2256 1999-08-06 Richard Henderson <rth@cygnus.com>
2258 * ia64.cpu: Initial checkpoint.
2260 1999-08-06 Doug Evans <devans@casey.cygnus.com>
2262 * pmacros.scm (-pmacro-apply): Fix definition, takes only 1 arg.
2263 (pmacros-init!): Update .apply help string.
2265 1999-08-03 Doug Evans <devans@casey.cygnus.com>
2267 * sim.scm (-hw-gen-set-quiet-pc): Update call to SEM_BRANCH_VIA_CACHE.
2268 (<hw-pc>,cxmake-skip): New method.
2269 (<pc>,cxmake-skip): New method.
2270 (-gen-argbuf-fields-union): Add branch_target to `chain' member.
2271 (gen-argbuf-type): New member `skip_count'.
2272 (sim-finish!): Update calls to @cpu@_pbb_cti_chain.
2273 * utils-cgen.scm (atlist-cti?): Don't include SKIP-CTI insns.
2275 * utils-sim.scm: New file.
2276 * dev.scm (load-sim): Load it.
2277 (load-sid): Load it.
2278 * cgen-sid.scm: Load it.
2279 * cgen-sim.scm: Load it.
2280 * iformat.scm (<sformat>): New member sbuf, not initialized by
2282 * rtx-funcs.scm (skip): Rewrite.
2283 * rtl-c.scm (skip): Rewrite.
2284 * m32r.cpu (sc,snc): Update `skip' usage.
2285 * mode.scm (mode-real-mode): New proc.
2286 * sem-frags.scm (-frag-split-by-sbuf): Rename from -frag-split-by-sfmt.
2287 Distinguish fragments by the <sformat-abuf> they use.
2288 * sim.scm (gen-profile-index-type): Delete.
2289 (ifield argbuf support): Move to utils-sim.scm and sim-decode.scm.
2290 (-gen-ifld-decoded-val): Delete, use gen-extracted-ifld-value instead.
2291 (hardware argbuf support): Move to utils-sim.scm and sim-decode.scm.
2292 (operand argbuf support): Move to utils-sim.scm and sim-decode.scm.
2293 (-gen-argbuf-elm): Rewrite.
2294 (-gen-argbuf-hw-elm): Delete.
2295 (-gen-argbuf-fields-union): Generate structs for each sbuf instead
2297 (-sim-sformat-argbuf-list,-sim-insns-analyzed?): New globals.
2298 (sim-init!): Initialize them.
2299 (sim-analyze-insns!): Set them.
2300 (current-sbuf-list): New proc.
2301 * sim-cpu.scm (-gen-no-scache-semantic-fn): Update calls to
2302 gen-sfmt-op-argbuf-defns,gen-sfmt-op-argbuf-assigns.
2303 * sim-model.scm (-gen-model-insn-fn): Ditto.
2304 * sim-decode.scm (-gen-extract-decls): Delete.
2305 (-gen-record-argbuf-ifld,-gen-trace-argbuf-ifld): New procs.
2306 (<hardware-base>,gen-extract,gen-trace-extract): Move here from
2308 (<hw-register,gen-extract,gen-trace-extract): Ditto.
2309 (<hw-address,gen-extract,gen-trace-extract): Ditto.
2310 (-gen-op-extract,-gen-op-trace-extract): New procs.
2311 (gen-sfmt-op-argbuf-defns,gen-sfmt-op-argbuf-assigns): Rename from
2312 gen-sfmt-argvars-foo and rewrite.
2313 (-gen-record-args): Rewrite.
2314 (-gen-extract-case): Tweak.
2315 * sid.scm (gen-profile-index-type): Delete.
2316 (ifield argbuf support): Move to utils-sim.scm.
2317 (-gen-ifld-decoded-val): Delete, use gen-extracted-ifld-value instead.
2318 (hardware argbuf support): Move to utils-sim.scm and sid-decode.scm.
2319 (operand argbuf support): Move to utils-sim.scm and sid-decode.scm.
2320 (-sim-sformat-argbuf-list): New global.
2321 (sim-init!): Initialize it.
2322 (sim-analyze-insns!): Set it.
2323 (current-sbuf-list): New proc.
2324 * sid-decode.scm (-gen-argbuf-elm): Rewrite.
2325 (-gen-argbuf-hw-elm): Delete.
2326 (-gen-argbuf-fields-union): Generate structs for each sbuf instead
2328 (-gen-record-argbuf-ifld,-gen-trace-argbuf-ifld): New procs.
2329 (-gen-extract-decls): Delete.
2330 (<hardware-base>,gen-extract,gen-trace-extract): Move here from
2332 (<hw-register,gen-extract,gen-trace-extract): Ditto.
2333 (<hw-address,gen-extract,gen-trace-extract): Ditto.
2334 (-gen-op-extract,-gen-op-trace-extract): New procs.
2335 (gen-sfmt-op-argbuf-defns,gen-sfmt-op-argbuf-assigns): Rename from
2336 gen-sfmt-argvars-foo and rewrite.
2337 (-gen-record-args): Rewrite.
2338 (-gen-extract-case): Tweak.
2340 * cgen-gh.c (gh_putc,gh_puts): New functions.
2341 * cgen-gh.h (gh_putc,gh_puts): Declare them.
2342 * cos.c (_object_print_elms,_object_print): Use them.
2343 * hob-sup.c (fastcall_print): Use them.
2344 * configure.in: Check for scm_gen_puts, scm_puts.
2345 * config.in: Rebuild.
2346 * configure: Rebuild.
2347 * aclocal.m4: Rebuild.
2348 * Makefile.in: Rebuild.
2350 * dev.scm (load-opc): Use load instead of maybe-load.
2351 (load-gtest,load-sim,load-stest): Ditto.
2354 1999-07-23 Doug Evans <devans@casey.cygnus.com>
2356 * sid-cpu.scm (-gen-sem-switch-engine): Move definition of `count'
2357 up to avoid g++ 'goto crosses initialization' warning.
2358 (-gen-sfrag-engine-fn): Delete vpc arg to NEXT_FRAG.
2359 (-gen-sfrag-case): Update use of NEXT_FRAG.
2361 1999-07-22 Doug Evans <devans@casey.cygnus.com>
2363 * cos.c (cos_init): Protect _make_x_symbol from garbage collection.
2365 * read.scm: Load sem-frags.scm.
2366 * sem-frags.scm (*): Lots rewritten.
2367 * sid.scm (-with-sem-frags?): New global
2368 (with-sem-frags?): New proc.
2369 (option-init!): Initialize -with-sem-frags?.
2370 (option-set!): Recognize with-sem-frags.
2371 (sim-init!): Call sim-sfrag-init! if with-sem-frags.
2372 * sid-cpu.scm (cgen-sem-switch.cxx): Generate semantic frag version
2374 (-gen-sfrag-engine-decls): New proc.
2375 (-gen-sfrag-code,-gen-sfrag-case,-gen-sfrag-enum-decl): New procs.
2376 (-gen-sfrag-engine-frag-table,-gen-sfrag-engine-fn): New procs.
2377 (-gen-sfrag-engine): New proc.
2378 (-gen-sem-case): Emit setup-semantics if specified.
2379 (-gen-sem-switch-engine): Update init/use of computed goto label.
2380 * sid-decode.scm (-gen-decode-expr-entry): Fetch ifield values
2382 (-gen-idesc-decls): Replace sem_address with cgoto.
2383 (-gen-scache-decls): Rewrite definition of `execute' member.
2384 * arm.cpu (arm isa): Enable decode-splits.
2385 * arm7.cpu (multiply insns): Rename result to mul-result.
2387 Rename decode-specialize to decode-split.
2388 * decode.scm (*): Update.
2389 * insn.scm (*): Update.
2390 * mach.scm (*): Update.
2391 * sid.scm (*): Update.
2393 1999-07-19 Doug Evans <devans@casey.cygnus.com>
2395 Record objects as a smob.
2396 * cos.c (scm_tc16_object): New static global.
2397 (cos_init): Initialize it.
2398 (OBJECT_P,OBJECT_ELEMENTS,OBJECT_CLASS_DESC): Update macros.
2399 (OBJECT_CLASS,OBJECT_ELEMENT_OFFSET): Update.
2400 (_object_tag): Delete.
2401 (_object_make_smob): New function.
2402 (_object_make_x,_object_make_with_values_x): Rewrite.
2403 (_object_elements,_object_class_desc): Rewrite.
2404 (_object_copy,object_p): Rewrite.
2405 (_object_specialize): Rewrite.
2406 (_object_print_elms,_object_print): New functions.
2407 (object_smob): New static global.
2408 (default_make_x): Use OBJECT_ELEMENT_OFFSET instead of magic number.
2410 * cos.c (_make_x_symbol): New static global.
2411 (object_make): Use it.
2412 (cos_init): Initialize it.
2414 1999-07-15 Doug Evans <devans@casey.cygnus.com>
2416 * rtl-c.scm (ifield): Back out last patch, use estate-ifield-var?
2417 instead to determine whether to use FLD macro.
2418 (<rtl-c-eval-state>): New member ifield-var?.
2419 (<rtl-c-eval-state>,vmake!): Recognize #:ifield-var?.
2420 * utils-gen.scm (-gen-ifld-extract-base): Specify #:ifield-var? #f.
2421 (-gen-ifld-extract-beyond,gen-multi-ifld-extract): Ditto.
2423 * rtl.scm (rtx-sequence-assq-locals): New proc.
2425 * cos.scm (-object-error): Don't crash on non-objects.
2427 * Makefile.am (CLEANFILES): Add hobbit.
2428 * Makefile.in: Rebuild.
2430 * rtl-c.scm (s-c-call): Delete unnecessary code.
2432 1999-07-14 Doug Evans <devans@casey.cygnus.com>
2434 * rtl-c.scm (ifield): Always reference value via `FLD'.
2436 * cos.c (elm_bound_p): Return problem SCM boolean values.
2438 * utils-cgen.scm (display-argv): New proc.
2439 * cgen-opc.scm (cgen): Call it.
2440 * cgen-sim.scm (cgen): Ditto.
2441 * cgen-gas.scm (cgen): Ditto.
2442 * cgen-stest.scm (cgen): Ditto.
2443 * cgen-sid.scm (cgen): Ditto.
2445 1999-07-05 Doug Evans <devans@casey.cygnus.com>
2447 * opc-asmdis.scm (-gen-parse-switch): New local var `junk'.
2448 * opc-ibld.scm (-gen-insert-switch): Initialize result to NULL.
2449 (-gen-extract-switch): Initialize result to 1.
2450 * opcodes.scm (gen-ifield-default-type): New proc.
2451 (gen-ifield-value-decl): Renamed from gen-ifield-type. All callers
2453 (<hw-index>,gen-insert): Handle non-ifield indices.
2454 (<hw-index>,gen-extract): Ditto.
2455 (<hw-asm>,gen-parse): Ditto.
2456 (<hw-asm>,gen-print): Ditto.
2457 (<keyword>,gen-parse): Ditto.
2458 (<keyword>,gen-print): Ditto.
2459 (<operand>,gen-fget): Ditto.
2460 (<operand>,gen-fset): Ditto.
2462 * sim.scm (-gen-hw-index-raw): Handle scalar indices.
2463 (-gen-hw-index): Ditto.
2464 * sid.scm (-gen-hw-index-raw): Handle scalar indices.
2465 (-gen-hw-index): Ditto.
2467 * sem-frags.scm: New file.
2469 * attr.scm (attr-parse): Add better checking of input.
2471 * hardware.scm (-hw-parse-getter): Renamed from -hw-parse-get.
2473 (-hw-parse-setter): Renamed from -hw-parse-set. All uses updated.
2475 * ifield.scm (ifld-nil?): New proc.
2477 * operand.scm (<operand>): New members getter,setter.
2478 (<operand>,make!): New args getter,setter. All uses updated.
2479 (op:getter,op:setter): New procs.
2480 (<hw-index>,field-start): Return 0 for non-ifield indices.
2481 (<hw-index>,field-length): Return 0 for non-ifield indices.
2482 (-operand-parse-getter,-operand-parse-setter): New procs.
2483 (-operand-parse): New args getter,setter. All callers updated.
2484 Always use hw-index-scalar for scalar operands.
2485 (-operand-read): Handle getter,setter.
2486 (define-full-operand): New args getter,setter. All uses updated.
2487 * semantics.scm (-build-ifield-operand!): Update.
2488 (-build-index-of-operand!): Update.
2489 * sim.scm (<operand>,cxmake-get): If operand has getter, use it.
2490 * simplify.inc (define-normal-operand): Update.
2492 * rtl.scm (abs,sqrt,cos,sin,min,max,umin,umax): New rtx fns.
2493 * rtl-c.scm (s-unop): Indirect fp ops through fpu op vector.
2494 (s-binop,s-cmpop,s-convop): Ditto.
2495 (abs,sqrt,cos,sin,min,max,umin,umax): New rtx fns.
2496 * sparc.cpu (insn-fmt2): Add FPOPS1,FPOPS2.
2497 (fcc-tests): New insn-enum.
2498 (fcc-value): Rename from fcc-type.
2499 * sparcfpu.cpu: New file. All fp support moved here.
2501 * rtl.scm (<rtx-func>): New member class.
2502 (rtx-class-*?): New procs.
2503 (def-rtx-node): New arg class. All callers updated.
2504 (def-rtx-syntax-node,def-rtx-operand-node,def-rtx-dual-node): Ditto.
2505 * rtx-funcs.scm (*): Specify class.
2507 * utils-cgen.scm (context-make-reader): New proc.
2509 * utils.scm (assert-fail-msg): New variable.
2511 (list-drop,list-tail-drop): New procs.
2513 1999-06-22 Doug Evans <devans@casey.cygnus.com>
2515 * desc-cpu.scm (-gen-hash-defines): Restore generation of
2516 CGEN_MIN_INSN_SIZE deleted on March 22.
2518 * ifield.scm (<ifield>,needed-iflds): New method.
2519 (<multi-ifield>,needed-iflds): New method.
2520 (ifld-needed-iflds): New proc.
2521 (multi-ifield?): New proc.
2522 * iformat.scm (<sfmt>): Delete member ifmt. New members length,iflds.
2523 (-sfmt-search-key): Include insn length in key.
2524 (-sfmt-order-iflds,-sfmt-used-iflds): New procs.
2525 (<fmt-desc>): Delete members ifmt-key,sfmt-key. New member used-iflds.
2526 (-ifmt-lookup-ifmt!): Compute key here.
2527 (-ifmt-lookup-sfmt!): Compute key here. Delete arg ifmt.
2528 All callers updated.
2529 (ifmt-build): Delete arg desc. New args search-key,iflds.
2530 All callers updated.
2531 (sfmt-build): Delete args desc,ifmt. New args search-key,cti?,
2532 in-ops,out-ops,sorted-used-iflds. All callers updated.
2533 * minsn.scm (minsn-make-alias): Use insn-set-ifmt!. Update call
2535 * operand.scm (op-iflds-used): New proc.
2536 * utils-gen.scm (gen-ifld-type): Move here from sim.scm
2538 And from sid.scm,sid-cpu.scm as well.
2539 (gen-ifld-extract-decl,-gen-ifld-extract-base): Ditto.
2540 (-gen-extract-word,-gen-ifld-extract-beyond): Ditto.
2541 (gen-ifld-extract,gen-multi-ifld-extract): Ditto.
2542 (gen-extracted-ifld-value): Ditto.
2543 (-extract-chunk-specs): Ditto.
2544 (gen-define-ifields,gen-define-ifmt-ifields): Ditto.
2545 (-extract-chunk,-gen-extract-beyond-var-list): Ditto.
2546 (gen-extract-ifields,gen-extract-ifmt-ifields): Ditto.
2547 (-extract-insert-subfields): New function.
2548 * sim.scm (gen-record-argbuf-ifld): Renamed from gen-ifld-extract.
2549 (gen-record-argvar-ifld): Renamed from gen-ifld-extract-argvar.
2550 * sim-cpu.scm (-gen-extract-ifmt-macro): Replace calls to
2551 gen-define-ifields with gen-define-ifmt-ifields. Ditto for
2553 (-gen-no-scache-semantic-fn): Ditto.
2554 (-gen-sem-case): Ditto.
2555 (-gen-read-case): Update calls to gen-define-ifields,
2556 gen-extract-ifields.
2557 * sim-decode.scm (-gen-record-args): Update.
2558 (-gen-sfmt-argvars-assigns): Update.
2559 (-gen-extract-case): Update.
2560 * sim-model.scm (-gen-model-insn-fn): Replace calls to
2561 gen-define-ifields with gen-define-ifmt-ifields. Ditto for
2563 * sid.scm (gen-ifld-argbuf-defn): Use gen-ifld-type.
2564 (gen-record-argbuf-ifld): Rename from gen-ifld-extract.
2565 (gen-record-argvar-ifld): Rename from gen-ifld-extract-argvar.
2566 * sid-decode.scm (-gen-decode-expr-entry): Update calls to
2567 gen-define-ifields, gen-extract-ifields.
2568 (-gen-record-args): Update.
2569 (gen-sfmt-argvars-assigns): Update.
2570 (-gen-extract-case): Replace calls to gen-define-ifmt-ifields
2571 with gen-define-ifields. Ditto for gen-extract-foo.
2572 (-gen-decode-fn): Use gen-ifld-extract-decl/gen-ifld-extract
2573 procs rather than method calls.
2575 1999-06-18 Doug Evans <devans@casey.cygnus.com>
2577 * sid.scm (-create-virtual-insns!): New local `context', pass it
2580 * rtl.scm (-rtx-traverse): Output symbol shortcuts in source form,
2581 (operand name) not (operand object), (local name) not (local object).
2582 (rtx-traverse-with-locals): New proc.
2583 (-compile-expr-fn): New proc.
2584 (rtx-compile): Rewrite.
2585 * rtl-c.scm (rtl-c-get): Handle operand/local names for src arg.
2586 (rtl-c-set-quiet): Don't accept operand/local names for dest arg.
2587 (rtl-c-set-trace): Ditto.
2588 (operand define-fn): Recognize operand name argument.
2589 (local define-fn): Recognize sequence temp name argument.
2590 * rtx-funcs.scm (operand): Argument is operand name, not object,
2591 so call current-op-lookup.
2592 (local): Similarily, so call rtx-temp-lookup.
2594 * rtl.scm (rtx-field?): Use rtx-name instead of car.
2595 (rtx-operand?): Ditto.
2596 (rtx-pretty-name): Ditto.
2597 (rtx-local-obj): Flag symbol argument as an error.
2598 (rtx-local-name): New proc.
2599 (rtx-sequence-locals,rtx-sequence-exprs): New procs.
2601 * rtl.scm (-rtx-traverse-operands): Fix debugging output of arg-types.
2603 * read.scm (debug-repl): Renamed from -debug-repl. All callers
2606 * arm7.cpu (do-word/byte-store): Use (trunc: QI rd) rather than
2609 * hobbit.scm (*reckless-s->c-fun-table*): Add fastcall4, fastcall6.
2610 (*floats-s->c-fun-table*): Ditto.
2611 * hobbit.c,hobbit.h: Rebuild.
2612 * rtl.scm (-rtx-traverse-expr): Use fastcall6.
2613 * semantics.scm (rtx-simplify): Use /fastcall-make.
2615 * iformat.scm (-sfmt-search-key): Don't include memory modes.
2617 * insn.scm (<insn>): Delete members condition, compiled-condition.
2618 (<insn>,make!): Update
2619 (<insn> getters,setters): Update.
2620 (-insn-parse,insn-read,define-full-insn): Update.
2621 * minsn.scm (minsn-make-alias): Update.
2622 * iformat.scm (ifmt-analyze): Delete insn-condition reference.
2623 (ifmt-compute!): Ditto.
2624 * sim.scm (sim-finish!): Update.
2625 * simplify.inc: (define-normal-insn): Update.
2626 * sid-cpu.scm (gen-semantic-code): Update.
2628 * iformat.scm (-ifmt-lookup-ifmt!): Use insn-set-ifmt!.
2629 (-ifmt-lookup-sfmt!): Use insn-set-sfmt!.
2630 (ifmt-compute!): Ditto.
2632 1999-06-16 Doug Evans <devans@casey.cygnus.com>
2634 * minsn.scm (minsn-compute-iflds): Print better error message for
2637 1999-06-12 Doug Evans <devans@casey.cygnus.com>
2639 * rtl.scm (tstate->estate): Don't copy over expr-fn.
2641 * Makefile.am (HOBFLAGS): New variable.
2642 (cgen-hob.c): Use it.
2644 (libcpu_a_SOURCES): Add hob-sup.c.
2645 (hob-sup.o): New rule.
2646 * Makefile.in: Rebuild.
2647 * cgen.c: #include hob-sup.h.
2648 (cgen_init_c): Call hobbit_init_support.
2649 * hobbit.scm (*fastcall-make*,*c-symbol*): New variables.
2650 (*special-scm->c-functions*): Add them.
2651 (display-c-expression): Handle *c-symbol*.
2652 (*reckless-s->c-fun-table*): Add *fastcall-make*, fastcall5.
2653 (*floats-s->c-fun-table*): Ditto.
2654 (normalize): Recognize /fastcall-make.
2655 (normalize-fastcall-make): New proc.
2656 * hobbit.c,hobbit.h: Rebuild.
2657 * hob-sup.scm: New file.
2658 * hob-sup.c: New file.
2659 * hob-sup.h: New file.
2660 * read.scm: Load hob-sup.scm.
2661 * rtl.scm (-rtx-name-list): New variable.
2662 (rtx-name-list): New proc.
2663 (rtx-lookup): Try symbol first.
2664 (def-rtx-node): Add name to -rtx-name-list.
2665 (def-rtx-syntax-node,def-rtx-operand-node,def-rtx-macro-node): Ditto.
2666 (-rtx-traverse-anymode): New proc.
2667 (-rtx-traverse-{emode,intmode,floatmode,nummode,vmmode}): New procs.
2668 (-rtx-traverse-{rtx,setrtx,testrtx,condrtx,casertx}): New procs.
2669 (-rtx-traverse-{locals,env,attrs,symbol,string,number}): New procs.
2670 (-rtx-traverse-{symornum,object}): New procs.
2671 (-rtx-make-traverse-table): Rewrite.
2672 (-rtx-traverse-operands): Rewrite arg-types handling.
2673 Handle #f result of traverser.
2674 (-rtx-traverse): Renamed from -rtx-traverse-normal.
2675 Move debug handling here.
2676 (-rtx-traverse-debug): Delete.
2677 (rtl-finish!): Change -rtx-traverse-table into list of handlers
2679 * semantics.scm (semantic-compile:process-expr!): Fix call to
2681 * utils.scm (map1-improper): New proc.
2683 1999-06-08 Doug Evans <devans@casey.cygnus.com>
2685 * arm.sim (h-tbit): Replace FUN-ACCESS with FUN-SET.
2687 * sid.scm (-hw-cxmake-get): s/FUN-ACCESS/FUN-GET/.
2688 (-hw-gen-set-quiet): s/FUN-ACCESS/FUN-SET/.
2689 (<operand>,cxmake-get): Tweak.
2690 (sim-finish!): Delete FUN-ACCESS attribute. Create FUN-GET,FUN_SET.
2692 1999-06-07 Doug Evans <devans@casey.cygnus.com>
2694 * thumb.cpu (dnti): Delete timing spec.
2697 * arm.cpu (arm isa): New fields condition, setup-semantics.
2698 (thumb isa): New field setup-semantics.
2699 (h-gr): Add attribute CACHE-ADDR.
2700 * arm7.cpu (dnai): Delete condition.
2701 (eval-cond): Delete.
2703 * mach.scm (<isa>): New member setup-semantics.
2704 (-isa-parse-setup-semantics): New proc.
2705 (-isa-parse): New arg setup-semantics.
2706 (-isa-read): Recognize setup-semantics.
2708 * sid-cpu.scm (gen-extract-fields): Split into two:
2709 gen-extract-ifields, gen-extract-ifmt-ifields.
2710 (-gen-scache-semantic-fn): Delete `taken_p'. Delete
2711 tracing begin/end messages (done by caller now).
2712 (-gen-sem-case): Delete `taken_p'. Add npc,br_status. Delete
2713 tracing begin/end messages (done by x-before,x-after virtual insns).
2714 (-gen-sem-switch-engine): Redo vpc initialization. Save vpc at
2715 end so don't have to look it up again next time.
2716 * sid-decode.scm (-decode-expr-ifield-values): New proc.
2717 (-decode-expr-ifield-tracking-key): New proc.
2718 (-decode-expr-ifield-tracking): New proc.
2719 (-decode-expr-ifield-values-used): New proc.
2720 (-decode-expr-ifield-mark-used!): New proc.
2721 (-gen-decode-expr-set-itype): New proc.
2722 (-gen-decode-expr-entry): Rewrite.
2723 (-gen-decode-table-entry): New proc.
2724 (-gen-decoder-switch): Use it.
2725 (-gen-virtual-insn-finder): New proc.
2726 (-gen-argbuf-elm): Move here from sid.scm.
2727 (-gen-argbuf-hw-elm): Ditto.
2728 (-gen-argbuf-fields-union): Add entries for chain,before insns.
2729 (-gen-scache-decls): Add `cond' member to @prefix@_scache for
2730 conditional-execution isas.
2731 (-gen-decode-fn): Record conditional-exec ifield.
2732 * sid.scm (-current-pbb-engine?): New global.
2733 (current-pbb-engine?,set-current-pbb-engine?!): New procs.
2734 (<ifield>,gen-ifld-extract): New arg `indent'.
2735 (<multi-ifield>,gen-ifld-extract): Ditto.
2736 (-hw-gen-set-quiet-pc): Add pbb support. Delete `taken_p'.
2737 (-op-gen-set-trace): Don't print tracing messages for pbb engine.
2738 (-gen-arch-model-decls): Only scan real insns.
2739 (scache-engine-insns,pbb-engine-insns): New procs.
2740 (-create-virtual-insns!): New proc.
2741 (sim-finish!): Call it.
2742 (-decode-specialize-insn?): New proc.
2743 (-decode-specialize-build-assertion): New proc.
2744 (-decode-specialize-insn-1): New proc.
2745 (-decode-specialize-insn): New proc.
2746 (-fill-sim-insn-list!): New proc.
2747 (sim-analyze!): Create copies of insns to be specialized.
2748 * utils-cgen.scm (obj-set-name!): New proc.
2750 * attr.scm (-attr-eval): Rewrite calls to rtx-simplify/rtx-compile.
2751 * iformat.scm (ifmt-analyze): Pass `insn' to semantic-compile,
2753 (ifmt-compute!): Delete arg `arch'. Result is list of iformats,
2755 * mach.scm (arch-analyze-insns!): Update call to ifmt-compute!.
2756 * rtl-c.scm (rtl-c-get): Use DM for default mode instead of VM.
2757 Avoid infinite loop when rtx-eval-with-estate leaves expr alone.
2758 (attr): Rewrite test for insn owner.
2759 (member): New rtx function.
2760 * rtl.scm (rtx-* accessors): Define as cxr directly rather than
2761 as separate function.
2762 (rtx-ifield?,rtx-ifield-name): New procs.
2763 (rtx-operand-obj): Rewrite.
2764 (rtx-operand-name): New proc.
2765 (rtx-cmp-op-mode,rtx-cmp-op-arg): New procs.
2766 (rtx-number-list-values,rtx-member-value,rtx-member-set): New procs.
2767 (tstate-make): New args owner, known. All callers updated.
2768 (tstate-known-lookup): New proc.
2769 (rtx-traverse): New arg owner. All callers updated.
2770 (rtx-make-bool): New proc.
2771 (rtl-find-ifields): Rewrite.
2772 (rtx-simplify,rtx-simplify-eq-attr-{insn,mach}): Moved to ...
2773 * semantics.scm: ... here.
2774 (rtx-const-equal,rtx-const-list-equal): New procs.
2775 (-build-known-values): New proc.
2776 (semantic-compile): New arg `insn'. Call rtx-simplify.
2777 (semantic-attrs): Ditto.
2778 * rtx-funcs.scm (member,number-list): New rtx functions.
2780 * attr.scm (attr-remove-meta-attrs-alist): Delete leading '-' in name.
2781 Rewrite. Delete arg `all-attrs'. All callers updated.
2782 (attr-remove-meta-attrs): Delete leading '-' in name. All callers
2784 * utils-cgen.scm (gen-bool-attrs): Remove meta attrs.
2786 * decode.scm (subdtable-add): Handle `expr' entries.
2787 (exprtable-entry-make): Use vector. Record ifields refered to by expr.
2788 (exprtable-entry-*): Update.
2789 (exprtable-entry-iflds): New proc.
2790 (exprentry-cost): New proc.
2791 (exprtable-sort,-gen-exprtable-name): New procs.
2792 (exprtable-make): New arg `name'. All callers updated. use vector.
2793 (exprtable-*): Update.
2794 (-build-decode-table-entry): Don't issue collision warning if all are
2795 specialized insns. Sort exprtable entries before building table.
2797 * read.scm (-reader-process-expanded-1): Move pretty printing of
2798 input to logging level 4.
2800 * utils.scm (string-list->string): New proc.
2802 * insn.scm (<insn>): Define setters for ifield-assertion, condition,
2804 (insn-read): Delete leading '-' in name. All callers updated.
2805 (real-insn?): New proc.
2806 (real-insns): Rewrite.
2807 (insn-has-ifield?): New proc.
2808 (insn-builtin!): Create insn attribute SPECIALIZED.
2810 * mach.scm (<arch>): Delete member app-data.
2811 (current-raw-insn-list): New proc.
2812 (insn-list-car,insn-list-splice!): New procs.
2813 (<decode-specialize>): New class.
2814 (-isa-parse-decode-specialize): New proc.
2815 (-isa-parse-decode-specializes): New proc.
2816 (<isa>): New members `condition', `decode-specializes'.
2817 (-isa-parse-condition): New proc.
2818 (-isa-parse): New args condition, decode-specializes.
2819 (-isa-read): Recognize condition, decode-specializes.
2820 (-isa-add-decode-specialize!): New proc.
2821 (modify-isa): New proc.
2822 (isa-conditional-exec?,state-conditional-exec?): New procs.
2823 (arch-init!): New reader command `modify-isa'.
2825 * mode.scm (mode-class-signed?,mode-class-unsigned?): New procs.
2826 (mode-signed,mode-unsigned?): New procs.
2828 Thu Jun 3 16:00:40 1999 Doug Evans <devans@canuck.cygnus.com>
2830 * types.scm (<array>): New method get-shape.
2831 * hardware.scm (<hardware-base>): Forward get-shape,get-num-elms
2833 (hw-shape,hw-num-elms): New procs.
2834 * sim.scm (<hw-register>,gen-profile-index-type): Use "unsigned short"
2835 if there's more than 255 registers.
2836 * sid.scm (<hw-register>,gen-profile-index-type): Ditto.
2838 * hardware.scm (-hw-parse): Flag as error CACHE-ADDR specified
2841 1999-05-21 Doug Evans <devans@casey.cygnus.com>
2843 * cgen-sid.scm (sim-arguments): Add -X.
2844 * sid-cpu.scm (-gen-hardware-types): Comment out scache vars.
2845 (-gen-all-semantic-fns): Don't include PBB support virtual insns.
2846 (-gen-sem-case): Use CASE/NEXT macros again. Tweak indenting.
2847 Simplify by supporting pbb engine only.
2848 (-gen-sem-switch-init): New proc.
2849 (-gen-sem-switch-engine): Rename from -gen-sem-switch-fn.
2850 (cgen-sem-switch.cxx): New proc.
2851 * sid-decode.scm (-gen-decode-insn-globals): Replace with-sem-switch?
2852 with with-pbb?. Support dual scache/pbb engines.
2853 (-gen-idesc-decls): Replace with-sem-switch? with with-pbb?.
2854 Support dual scache/pbb engines.
2855 (cgen-decode.h): Generate semantic fn decls if with-scache?.
2856 * sid.scm (*) with-pbb? replaces with-sem-switch?.
2857 (sim-finish!): Create pbb support virtual insns if with-pbb?.
2859 1999-05-10 Ben Elliston <bje@cygnus.com>
2861 * arm7.cpu: Remove coprocessor related fields, operands and insn
2862 definitions for now. Take the undefined instruction trap instead.
2863 (ldmda-wb): New instruction.
2864 (ldmib-wb): Likewise.
2865 (ldmdb-wb): Likewise.
2866 (stmdb-wb): Likewise.
2867 (stmib-wb): Likewise.
2868 (stmda-wb): Likewise.
2870 1999-05-08 Doug Evans <devans@casey.cygnus.com>
2872 * sid.scm (<hw-memory>,cxmake-get): Call GETMEM method, not function.
2873 (<hw-memory>,gen-set-quiet): Call SETMEM method, not function.
2875 * utils-cgen.scm (keyword-list->arg-list): Fix call to substring,
2876 hobbit can't handle optional third arg.
2878 1999-05-07 Doug Evans <devans@casey.cygnus.com>
2880 * arm.cpu (h-tbit): Delete set spec.
2881 (h-mbits): Don't call arm_mbits_set in set spec.
2882 * arm.sim: New file.
2883 * hardware.scm (modify-hardware): New proc.
2884 (hardware-init!): Add modify-hardware command.
2885 * sid.scm (-hw-cxmake-get): Use method call if FUN-ACCESS specified.
2886 (-hw-gen-set-quiet): Ditto.
2887 (sim-finish!): Call invalid_insn method. Define FUN-ACCESS builtin
2888 hardware attribute. Load $arch.sim file if present.
2889 * utils-cgen.scm (keyword-list?): New proc.
2890 (keyword-list->arg-list,arg-list-validate-name): New procs.
2891 (arg-list-check-no-args,arg-list-symbol-arg): New procs.
2893 * arm7.cpu (eval-cond): Pass pc to @cpu@_eval_cond handler.
2895 * sid-cpu.scm (-gen-hardware-types): Rename @cpu@_cpu to
2898 * attr.scm (obj-prepend-atlist!): New proc.
2900 * opc-opinst.scm (cgen-opinst.c): Analyze instructions if necessary.
2902 * sid.scm (<operand>,profilable?): Use op:type.
2903 * sim.scm (<operand>,profilable?): Use op:type.
2905 1999-05-04 Doug Evans <devans@casey.cygnus.com>
2907 * utils.scm (find-index,find): Be more stack friendly.
2909 * arm7.cpu (arith-imm-op): Compute pc before setting cpsr.
2912 1999-05-01 Doug Evans <devans@casey.cygnus.com>
2914 * arm.cpu (h-gr-usr): New hardware element.
2915 (h-gr-fiq,h-gr-svc,h-gr-abt,h-gr-irq,h-gr-und): New hardware elements.
2916 (arm-mode): New keyword.
2917 (h-mbits): Add set spec.
2918 (h-spsr): Implement get/set specs.
2920 * read.scm: Load slib/pp.scm, slib/genwrite.scm.
2921 (-reader-process-expanded-1): Pretty print logging output.
2923 * sid-cpu.scm (-gen-reg-access-defns): Make getters `const'.
2924 (cgen-cpu.h): Print enums before hardware elements.
2925 (cgen-semantics.cxx): @arch@-cgen.h renamed to @arch@-main.h.
2926 * sid-decode.scm (cgen-decode.cxx): Ditto.
2927 * sid-model.scm (cgen-model.cxx): Ditto.
2929 * utils-cgen.scm (context-error): Accept variable number of
2932 * rtx-funcs.scm (error:): New rtx function.
2933 * rtl-c.scm (s-case-vm): New proc.
2934 (-gen-non-vm-case-get,s-case-non-vm): New procs.
2935 (s-case): Simplify, handle non-VM result.
2936 (error:): New rtx function.
2938 1999-04-30 Doug Evans <devans@casey.cygnus.com>
2940 * arm.cpu (h-pc): Add set spec to zero bottom bits.
2941 (test-hi,test-ls): Fix cbit handling.
2942 (shift-type,h-operand2-shifttype): Move here ...
2943 * arm7.cpu: ... from here.
2944 (set-cond,set-cond-maybe,dnix): Delete, unused.
2945 (set-zn-flags,set-logical-cc,set-add-flags,set-sub-flags): Move ...
2946 * arm.cpu: ... to here.
2947 * thumb.cpu (cmp,alu-cmp): Use set-sub-flags.
2948 (alu-cmn): Use set-add-flags.
2949 (alu-tst): Use set-zn-flags.
2950 (alu-cmp): Use set-sub-flags.
2951 (lsl,lsr,asr): Set condition codes.
2952 (add,addi,sub,subi,mov,addi8,subi8): Ditto.
2953 (alu-op): Split into three: alu-logical-op,alu-arith-op,
2955 (hireg-op): Split sem-fn into lo-dest-sem-fn,hi-dest-sem-fn.
2956 All callers updated.
2957 (sub-sp): Rename from add-sp-neg.
2958 (f-lbwl-offset): Delete.
2959 (f-lbwl-hi,f-lbwl-lo): New ifields.
2960 (lbwl-hi,lbwl-lo): Update.
2961 (bl-hi): Add 4 to pc.
2962 (push-reg,pop-reg): Simplify.
2963 (push,push-lr): Push registers in correct order.
2964 (pop,pop-pc): Pop registers in correct order.
2965 (save-reg-inc,load-reg-inc): Simplify.
2966 (ldmia): Save registers in correct order.
2968 1999-04-30 Ben Elliston <bje@cygnus.com>
2970 * arm7.cpu (f-op-hdt): Remove; unused.
2971 (f-ror-imm8-value,f-ror-imm-rotate): New fields.
2972 (f-ror-imm8): New multi-ifield.
2973 (f-operand2-bit7): Remove; use the generic `f-bit7' instead. All
2975 (f-uimm12): New field.
2976 (ror-imm8): New operand.
2978 (hdt-offset8): Reinstate operand.
2979 (offset4-hi,offset4-lo): Remove.
2980 (set-cond): Remove macro; unused.
2981 (set-cond-maybe): Likewise.
2982 (load-word/byte): Use uimm12 operand for a true 12-bit immediate.
2983 (store-word/byte): Likewise.
2984 (load-halfword): Use hdt-offset8 multifield operand instead of two
2985 4-bit operands that are explicitly combined by semantic code.
2986 (do-halfword-store): Bug fix. Set address when not preindexing.
2987 (store-halfword): Also use hdt-offset8 operand.
2988 (arith-op): Avoid clobbering source registers when one of them is
2989 the destination register.
2990 (arith-imm-op): Likewise.
2991 (tst-imm): Use ror-imm8 operand. Handle special case of rot 0.
2992 (teq-imm): Likewise.
2993 (ldm-p): Rename to ldmdb.
2994 (stm-pw): Rename to stmdb-wb.
2995 (multi-action): New macro; test reg-list bits and execute a
2996 semantic fn if the bit is set.
2997 (ldmda,ldmib,ldmia,ldmia-wb,ldmdb): New multiple load insns.
2998 (stmdb,stmib,stmia,stmia-wb,stmda,stmdb-wb): Store insns.
2999 (all insns): Use dnai entries for simplicity rather than dni.
3000 (*): Use short-form of (const ..).
3002 1999-04-29 Doug Evans <devans@casey.cygnus.com>
3004 * rtl.scm (<rtx-func>): Rename member type to style. Rename
3005 member eval to evaluator.
3006 (rtx-foo accessors): Rename from rtx:foo. All callers updated.
3007 (tstate-make): Delete arg op-fn. All callers updated.
3008 (tstate-op-fn,tstate-set-op-fn!): Delete.
3009 (rtx-traverse): Delete op-fn arg. All callers updated.
3010 * semantics.scm (-simplify-for-compilation-process-expr): New proc,
3011 split out of -simplify-for-compilation.
3013 * Makefile.am (CGEN_NONHOB_FILES,CGENFILES): New variables.
3014 (cgen_DEPENDENCIES): Add stamp-cgen.
3015 (stamp-cgen): New rule.
3016 * Makefile.in: Rebuild.
3018 * rtl-c.scm (enum:): Define emitter for.
3019 * rtl.scm (rtx-constant?): Rename from rtx-const? and check for
3021 (rtx-constant-value,rtx-enum-value): New procs.
3022 (-rtx-traverse-normal): Expand enum-value to (enum enum-value).
3023 (rtx-compile-time-constant?): Return #t for enums.
3024 (rtx-true?,rtx-false?): Handle enums.
3025 (rtx-simplify-eq-attr-mach): Use rtx-true,rtx-false instead of
3026 building result by hand.
3027 (rtx-simplify-eq-attr-insn): Ditto.
3028 * rtx-funcs.scm (enum:,enum): New rtx functions.
3030 * mach.scm (<arch>): New members insns-analyzed?, semantics-analyzed?,
3032 (arch-analyze-insns!): New proc.
3033 * opcodes.scm (opcodes-analyze!): Call arch-analyze-insns! instead
3034 of calling ifmt-compute! directly.
3035 * sid.scm (-sim-insns-analyzed?): Delete.
3036 (sim-analyze!): Call arch-analyze-insns! instead of calling
3037 ifmt-compute! directly.
3038 * sim.scm (-sim-insns-analyzed?): Delete.
3039 (sim-analyze!): Call arch-analyze-insns! instead of calling
3040 ifmt-compute! directly.
3042 * utils.scm (string-take-with-filler): New proc.
3043 (string-take): Use it.
3045 * pgmr-tools.scm: New file.
3046 * read.scm: Load it.
3047 * insn.scm (pretty-print-insn-format): Move to pgmr.scm.
3049 * insn.scm (insn-base-mask): Renamed from insn:mask.
3050 All callers updated.
3051 (insn-base-mask-length): Renamed from insn:mask-length.
3052 All callers updated.
3053 (insn-foo): Renamed from insn:foo. All callers updated.
3054 * minsn.scm (minsn-foo): Renamed from minsn:foo. All callers updated.
3055 * iformat.scm (compute-insn-base-mask-length): Renamed from
3056 compute-insn-mask-length. All callers updated.
3057 (compute-insn-base-mask): Renamed from compute-insn-mask.
3058 All callers updated.
3060 * enum.scm (-enum-parse-prefix): New proc.
3061 (<enum>,make!): Don't parse enum values here.
3062 (-enum-parse): Do it here. Call -enum-parse-prefix.
3063 (define-full-insn-enum): Ditto.
3064 (enum-vals-upcase): New proc.
3065 * hardware.scm (define-keyword): Make enum prefix uppercase.
3066 * hobscmif.h (CHAR_LOWERP,CHAR_UPPERP,CHAR_WHITEP): New macros.
3068 * ifield.scm (<ifield>,field-mask): Allow container to be #f.
3069 (<ifield>,field-extract): New method.
3070 (<multi-ifield>,field-extract): New method.
3071 (ifld-extract): New proc.
3072 * opcodes.scm (ifld-insert-fn-name): Renamed from ifld-insert.
3073 (ifld-extract-fn-name): Renamed from ifld-extract.
3075 * ifield.scm (ifld-new-value): Renamed from ifield-make.
3076 All callers updated.
3078 * ifield.scm (ifld-lsb0?): New proc.
3079 (sort-ifield-list): New arg up?. All callers updated.
3080 * iformat.scm (compute-insn-mask): Get lsb0? flag from argument,
3081 rather than global state.
3083 1999-04-27 Doug Evans <devans@casey.cygnus.com>
3085 * insn.scm (pretty-print-insn-format): New proc.
3087 * Makefile.in: Rebuild.
3088 * aclocal.m4: Rebuild
3089 * configure: Rebuild.
3091 Mon Apr 26 10:30:18 1999 Doug Evans <devans@canuck.cygnus.com>
3093 * configure.in (AM_INIT_AUTOMAKE): Update version to 0.7.2.
3094 * configure: Rebuild.
3095 * aclocal.m4: Rebuild.
3096 * Makefile.in: Rebuild.
3097 * doc/Makefile.in: Rebuild.
3098 * doc/version.texi: Rebuild.
3100 1999-04-25 Doug Evans <devans@casey.cygnus.com>
3102 * utils.scm (bits->bools): New proc.
3104 1999-04-23 Doug Evans <devans@casey.cygnus.com>
3106 * sid.scm (<multi-ifield>,gen-ifld-extract-decl): Fix call to
3107 subfield's gen-ifld-extract-decl method.
3109 1999-04-23 Ben Elliston <bje@cygnus.com>
3111 * arm7.cpu (ldrsh-pu): Remove.
3112 (do-halfword-load): New pmacro.
3113 (load-halfword): Likewise.
3114 (do-halfword-store): Likewise.
3115 (store-halfword): Likewise.
3116 (strh-*): New instructions.
3117 (ldrsb-*): Likewise.
3119 (ldrsh-*): Likewise.
3121 1999-04-22 Doug Evans <devans@casey.cygnus.com>
3123 * ifield.scm (ifld-constant?): Delete special handling of RESERVED
3126 * arm7.cpu (do-word/byte-store): Fix typo.
3128 1999-04-22 Ben Elliston <bje@cygnus.com>
3130 * arm7.cpu (do-word/byte-load): Handle cases where the destination
3131 register is the program counter (R15).
3133 * arm7.cpu (do-word/byte-store,store-word/byte): New pmacros.
3134 (str-*): Implement using store-word-byte. Remove older versions.
3135 (bic): Use the `inv' rtx for obtaining bitwise complements.
3136 (bic-imm): Likewise.
3138 (mvn-imm): Likewise.
3139 (store-indev-reg): Remove crufty pmacro.
3140 (load-indiv-reg): Likewise.
3141 (ldm-p): Reverse the order of register processing for decrement.
3143 (stbi): Remove; handled by the str-* insns.
3145 1999-04-21 Doug Evans <devans@casey.cygnus.com>
3147 * thumb.cpu (cmp): Fix carry bit computation.
3150 1999-04-20 Doug Evans <devans@casey.cygnus.com>
3152 * arm.cpu (h-tbit): Specify set spec.
3154 * arm7.cpu (bx): Don't call C routine, just set h-tbit.
3155 (set-sub-flags): Interpret "carry bit" as a borrow.
3156 (all sub/cmp insns): Carry bit is actually a borrow bit.
3157 * thumb.cpu (bx-rs,bx-hs): Don't call C routine, just set h-tbit.
3158 (add-carry,sub-carry,thumb-neg,thumb-bic,thumb-inv): Delete. Use
3160 (hireg-add,hireg-cmp,hireg-move): Ditto.
3162 * read.scm (-CGEN-VERSION): Change version to 0.7.2.
3163 (-CGEN-LANG-VERSION): Ditto.
3165 1999-04-18 Doug Evans <devans@casey.cygnus.com>
3167 * pmacros.scm (-pmacro-make): New arg `default-values',
3168 all callers updated.
3169 (-pmacro-default-values): New proc.
3170 (-pmacro-process-keyworded-args): New proc.
3171 (-pmacro-process-args): New proc.
3172 (-pmacro-invoke): Process arguments before expanding macro.
3173 (-pmacro-get-arg-spec,-pmacro-get-default-values): New procs.
3174 (define-pmacro): Handle default values specified in arg list.
3175 * rtl.scm (rtx-alu-op-mode,rtx-alu-op-arg): New procs.
3176 (rtx-boolif-op-arg[01]): New procs.
3177 (rtx-true,rtx-false,rtx-canonical-bool): New procs.
3178 (rtx-simplify): Handle not,orif,andif.
3179 * semantics.scm (-simplify-for-compilation): Simplify not,orif,andif.
3180 * utils.scm (alist-copy): New proc.
3181 * arm7.cpu (do-word/byte-load,load-word/byte): New pmacros.
3183 (swi): Explicitly set pc.
3185 * thumb.cpu (bx-rs,bx-hs): Reverse test for switch to arm mode.
3187 1999-04-17 Ben Elliston <bje@cygnus.com>
3189 * arm7.cpu (ldr-pu): Do not add 8 to R15; the step() method
3190 correctly adjusts the program counter now.
3192 * arm7.cpu (f-halfword?): Rename from `f-hdt-halfword?'.
3193 (f-signed?): Rename from `f-hdt-signed?'.
3194 (f-offset4-hi): Rename from `h-hdt-off4-ms'.
3195 (f-offset4-lo): Rename from `h-hdt-off4-ls'.
3196 (f-hdt-offset8): Use new field names.
3197 (ldr): Use `imm12' field, not `offset12', since we do our own
3199 (str, str-*): Likewise.
3200 (ldu-*): Remove most; better not implemented than broken.
3202 (ldrsh-pu): New insn.
3206 (ldm-p): Likewise; replace (load-indiv-reg) version.
3208 1999-04-15 Doug Evans <devans@casey.cygnus.com>
3210 * arm.cpu (h-pc): Delete VIRTUAL attribute, get/set specs.
3211 * arm7.cpu (*): Fix mode of result of arm_compute_carry_out_*.
3212 (*): Explicitly specify mode in c-call.
3213 (logical-op): Recognize sets of h-gr[15] as sets of pc.
3215 (and-imm,orr-imm,xor-imm,mov-imm,bic-imm,mvn-imm): Ditto.
3216 (arith-imm-op): New pmacro.
3217 (add-imm,adc-imm,sub-imm,sbc-imm,rsb-imm,rsc-imm): Use it.
3218 * thumb.cpu (bx-rs,bx-hs): Rewrite.
3220 1999-04-14 Doug Evans <devans@casey.cygnus.com>
3222 * rtl.scm (rtx-simplify-eq-attr-insn): Fix call to context-error.
3224 * rtl.scm (rtl-find-ifields): Implement.
3226 * utils-gen.scm: New file.
3227 * read.scm: Load it.
3228 * desc.scm: Move generic attribute code to utils-gen.scm.
3229 * Makefile.am (CGEN_HOB_INPUT_FILES): Add it.
3230 * Makefile.in: Rebuild.
3232 * arm7.cpu (R15-OFFSET): New attribute.
3234 (logical-op): Delete arg `result?'. All callers updated. Use dnai.
3235 Delete use of eval-cond (dnai specifies it). Specify R15-OFFSET of 12
3236 for reg-shift version.
3238 (data processing insns): Reorganize. Use dnai.
3240 * attr.scm (attr-kind): New proc.
3241 (attr-list-enum-list): Rewrite.
3242 (-attr-sort): Split result into two lists, bools and non-bools.
3243 (current-attr-list-for): Update.
3245 * cgen-sid.scm (sim-arguments): Add -H -> build desc.h file.
3246 * sid-cpu.scm (-gen-attr-decls): New proc.
3247 (-gen-insn-attr-decls): New proc.
3248 (cgen-desc.h): New proc.
3249 (cgen-cpu.h): Put everything in @cpu@ namespace.
3250 (gen-parallel-exec-type): Change prefix of parexec struct from
3252 (-gen-trace-record-type): Ditto for trace_record struct.
3253 (-gen-write-case): Update.
3254 (-gen-scache-semantic-fn): Change function prefix from @cpu@ to
3255 @prefix@. Update scache struct references.
3256 (-gen-sem-case): Update scache struct references.
3257 (-gen-sem-switch-fn): Update idesc struct reference.
3258 Update insn_type enum reference.
3259 (cgen-write.cxx): Update scache,argbuf references.
3260 (cgen-semantics.cxx): Simplify namespace choice (always @cpu@).
3261 * sid-decode.scm (IDESC-TABLE-VAR): Change prefix of insn_data
3262 from @cpu@ to @prefix@.
3263 (-gen-decode-insn-entry): Use gen-cpu-insn-enum.
3264 (-gen-decode-expr-entry): Ditto. Change prefix of INSN_X_INVALID
3265 from @CPU@ to @PREFIX@.
3266 (-gen-decoder-switch): Change prefix of INSN_X_INVALID
3267 from @CPU@ to @PREFIX@.
3268 (-gen-decode-insn-globals): Generate insn attributes.
3269 (-gen-sem-fn-name): Change function prefix from @cpu@ to @prefix@.
3270 (-gen-sem-fn-decls): Use -gen-sem-fn-name. Add `using' for
3271 semantic fn typedef.
3272 (-gen-idesc-decls): Simplify cpu class name (always @cpu@_cpu).
3273 Change prefix of scache struct from @cpu@ to @prefix@.
3274 Change prefix of semantic fn typedef from @cpu@ to @prefix@.
3275 Change prefix of idesc struct from @cpu@ to @prefix@.
3276 Change prefix of insn_type enum from @cpu@ to @prefix@.
3277 (-gen-argbuf-fields-union): Change prefix of sem_fields union
3278 from @cpu@ to @prefix@.
3279 (-gen-scache-decls): Change prefix of scache struct from
3280 @cpu@ to @prefix@. Update idesc struct name.
3281 Update decode,execute methods.
3282 (-gen-extract-case): Update to type name changes.
3283 (-gen-decode-fn): Ditto.
3284 (cgen-decode.h): Put everything in @cpu@ namespace (except
3285 semantic fn decls). Change prefix of insn_word from @cpu@ to @prefix@.
3286 (cgen-decode.cxx): Add using namespace @cpu@.
3287 * sid-model.scm (-gen-hw-profile-decls): Change prefix of
3288 model_mark_get/set from @cpu@ to @prefix@.
3289 (gen-model-unit-fn-name): Change function prefix from @cpu@ to
3291 (gen-model-fn-decls): Update idesc struct name. Change prefix
3292 of model_insn_before/after from @cpu@ to @prefix@.
3293 (-gen-model-insn-fn): Update scache/idesc/argbuf struct names.
3294 Update insn_word type name.
3295 (-gen-model-timing-table): Update INSN_TIMING struct name.
3296 (-gen-model-init-fn): Update MODEL_DATA struct name.
3297 (-gen-mach-defns): Update name of init_idesc_table fn.
3298 (cgen-model.cxx): Add using namespace @cpu@.
3299 * sid.scm (gen-cpu-class): Delete.
3300 (gen-attr-type): New proc.
3301 (gen-obj-attr-sid-defn): New proc.
3302 (<operand>,gen-profile-code): Update name of model_mark_get/set fn.
3303 (gen-cpu-insn-enum-decl): Change prefix of insn_type enum from
3305 (gen-cpu-insn-enum): Update name of insn enum.
3306 * thumb.cpu (bx-rs): Rename @cpu@_do_bx to @prefix@_do_bx.
3308 (swi): Rename @cpu@_swi to @prefix@_swi.
3310 * decode.scm (-build-decode-table-entry): Remove heuristic for
3311 distinguishing insns, and use insn ifield-assertion specs.
3313 * desc-cpu.scm (gen-A-attr-mask): Simplify.
3314 (gen-ifld-defns): Boolean attributes begin at number 0 now.
3315 (gen-hw-table-defns,gen-operand-table,gen-insn-table): Ditto.
3316 * opc-itab.scm (-gen-macro-insn-table): Ditto.
3317 * utils-cgen.scm (gen-attr-enum-decl): Change type arg to prefix,
3318 all callers updated.
3319 (gen-attr-name): New proc
3320 (gen-attr-mask): Use it. Boolean attributes start at 0 now.
3321 (gen-obj-attr-defn): Delete num_nonbools count.
3323 * iformat.scm (ifmt-analyze): Handle insn-condition.
3324 (ifmt-compute!): Ditto.
3325 * insn.scm (<insn>): Specify default value for condition,
3326 post-cond-trap,compiled-condition,compiled-semantics.
3327 (<insn>,make!): New arg condition.
3328 (<insn>): Add getters for condition,compiled-condition.
3329 (-insn-parse): New arg condition, all callers updated.
3330 (-insn-read): Recognize condition spec.
3331 (define-full-insn): New arg condition.
3332 * minsn.scm (minsn-make-alias): Update call to (make <insn> ...).
3333 * semantics.scm (semantic-compile): Change arg sem-code to
3335 (semantic-attrs): Ditto.
3336 * sim.scm (sim-finish!): Update calls to define-full-insn.
3337 * simplify.inc (define-normal-insn): Update call to define-full-insn.
3338 * sid-cpu.scm (gen-semantic-code): Handle insn-condition.
3339 * sid.scm (sim-finish!): Update call to define-full-insn.
3341 Tue Apr 13 17:04:34 1999 Doug Evans <devans@canuck.cygnus.com>
3343 * Makefile.am (sim-cpu): Allow specification of ISA.
3344 * Makefile.in: Rebuild.
3346 Sun Apr 11 00:37:56 1999 Jim Wilson <wilson@cygnus.com>
3348 * i960.cpu (sll-expr, srl-expr, sra-expr): Handle large shift counts.
3350 1999-04-10 Doug Evans <devans@casey.cygnus.com>
3352 * sparccom.cpu (check-fp-enable): Wrap TRAP32_FP_DIS in c-code.
3354 * arm.cpu (gr-names): Put pc first so it gets prefered in disassembly.
3356 * attr.scm (atlist?): New proc.
3357 (-attr-eval): Rewrite.
3358 (attr-parse): New proc.
3359 (atlist-parse): Use it.
3361 * decode.scm (exprtable-entry-make): New proc.
3362 (exprtable-entry-insn,exprtable-entry-expr): New procs.
3363 (exprtable-make,exprtable-insns): New procs.
3365 * hardware.scm (hw-mode-ok?): Delete argument `set?'.
3367 (hardware-builtin!): Make h-memory a vector.
3369 * iformat.scm (ifmt-ifields): Renamed from ifmt-fields.
3370 All callers updated.
3371 (ifmt-analyze): Use csem-* accessors on result of semantic-compile.
3373 * insn.scm (<insn>). Rename ifld-assertions to ifield-assertion.
3375 (-insn-parse): Set semantics to #f if not specified.
3376 (define-insn,define-full-insn): Take out code that ignores ALIAS's
3378 (-parse-insn-format): Recognize `=' iformat spec.
3380 * mach.scm (isa-min-insn-bitsize): Ignore ALIAS's.
3381 (isa-max-insn-bitsize): Ditto.
3383 * opcodes.scm (<ifield>,gen-insert): Call rtl-c instead of
3385 (<ifield>,gen-extract): Ditto.
3386 (<multi-ifield>,gen-insert,gen-extract): Ditto.
3387 * sid-cpu.scm (-gen-reg-access-defns): Ditto.
3388 (gen-define-ifmt-ifields): New proc.
3389 (gen-semantic-code): Rewrite.
3390 * sid-decode.scm (-gen-decode-expr-entry): New proc.
3391 (-gen-decoder-switch): Handle expression tables.
3392 (-gen-extract-case): Call gen-define-ifmt-ifields instead of
3394 * sid-model.scm (-gen-model-insn-fn): Call gen-define-ifmt-ifields
3395 instead of gen-define-fields.
3396 * sid.scm (<ifield>,gen-ifld-extract-decl): New arg `indent', all
3398 (<multi-ifield,gen-ifld-extract-decl): Ditto.
3399 (-gen-ifld-extract-base): Call rtl-c instead of rtl-c-with-alist.
3400 (-gen-ifld-extract-beyond): Ditto.
3401 (<multi-ifield>,gen-ifld-extract): Ditto.
3402 (<*>,cxmake-get,gen-set-quiet,gen-set-trace,gen-write): Update to new
3403 rtl evaluation code.
3404 (op:read): Build an <eval-state> to pass to gen-read.
3405 (op:write): Build an <eval-state> to pass to gen-write.
3406 (op:record-profile): Build an <eval-state> to pass to
3408 * sim-cpu.scm (gen-semantic-code): Rewrite.
3409 * sim.scm (-gen-ifld-extract-base): Call rtl-c instead of
3411 (-gen-ifld-extract-beyond): Ditto.
3412 (<multi-ifield>,gen-ifld-extract): Ditto.
3413 (<hw-register>,gen-get-macro,gen-set-macro): Ditto.
3414 (<*>,cxmake-get,gen-set-quiet,gen-set-trace,gen-write): Update to new
3415 rtl evaluation code.
3416 (op:read): Build an <eval-state> to pass to gen-read.
3417 (op:write): Build an <eval-state> to pass to gen-write.
3418 (op:record-profile): Build an <eval-state> to pass to
3421 * operand.scm (<operand>): Give `selector' default value of #f.
3422 Give `num' default value of -1. Give `cond?' default value of #f.
3423 (op:new-mode): Delete arg `set?', all uses updated.
3425 * read.scm (reader-error): Handle #f return from port-filename.
3426 (-init-parse-cpu!): Call rtl-c-init!.
3427 (reader-install-builtin!): Call rtl-builtin!.
3429 * rtl-c.scm: New file.
3430 * semantics.scm: New file.
3431 * read.scm: Load them.
3432 * rtl.scm: C generation moved to rtl-c.scm. Semantic analysis moved
3434 (<rtx-func>): Delete members syntax?,macro,c,expr. New members
3436 (rtx-lookup): Renamed from -rtx-func-lookup. All callers updated.
3437 (-rtx-num-text,-rtx-max-num): New globals.
3438 (def-rtx-operand-node,define-rtx-operand-node): New procs.
3439 (-rtx-macro-lookup): New proc.
3440 (rtx-lvalue-mode-name): Renamed from rtx-expr-mode-name.
3441 (rtx-env-stack-empty?,rtx-env-stack-head): New procs.
3442 (rtx-env-var-list,rtx-env-empty-stack,rtx-env-init-stack1): New procs.
3443 (rtx-env-make,rtx-env-empty?,rtx-env-make-locals): New procs.
3444 (rtx-env-push,rtx-temp-lookup,-rtx-closure-make): New procs.
3445 (rtx-make,rtx-kind?,rtx-const?,rtx-const-value,rtx-symbol-name,
3446 rtx-operand?,rtx-operand-obj,rtx-local?,rtx-local-obj, rtx-xop-obj,
3447 rtx-index-of-value,rtx-if-mode,rtx-if-test,rtx-if-then,rtx-if-else,
3448 rtx-eq-attr-owner,rtx-eq-attr-attr,rtx-eq-attr-value): New procs.
3449 (rtx-pretty-name): New proc.
3450 (-rtx-traverser-table,-rtx-make-traverse-table): New procs.
3451 (rtx-traverse-*): Rewrite rtx traversing.
3452 (rtx-eval-*): Rewrite rtx evaluation.
3453 (rtx-compile): New proc.
3454 (rtx-simplify): New proc.
3455 (rtx-simply-eq-attr-mach,rtx-simplify-eq-attr-insn): New procs.
3456 * rtx-funcs.scm: C generation moved to rtl-c.scm.
3457 (ifield,index-of): Rewrite.
3458 (name): Renamed from `operand:'.
3459 (operand,xop,local): New rtx's.
3460 (current-insn): Rewrite.
3461 * Makefile.am (CGEN_HOB_INPUT_FILES): Add rtl-c.scm, semantics.scm.
3462 (cgen-hob.h): Remove rule for.
3463 (cgen-hob.o): Depend on cgen-hob.c only.
3464 * Makefile.in: Rebuild.
3466 * utils-cgen.scm (vmake): New proc.
3467 (<context>): New class.
3468 (context-make-prefix,context-error): New procs.
3470 Fri Apr 9 19:26:28 1999 Jim Wilson <wilson@cygnus.com>
3472 * i960.cpu: Add some ??? comments.
3473 (xnor, ornot): New instructions.
3474 (*): Delete obsolete COND-CTI and UNCOND-CTI attributes.
3476 1999-04-08 Doug Evans <devans@casey.cygnus.com>
3478 * cos.scm (-object-error): Print better error message.
3480 * pmacros.scm (-pmacro-env-make): Renamed from -env-make.
3481 (-pmacro-env-ref): Renamed from -env-ref.
3483 1999-03-31 Doug Evans <devans@casey.cygnus.com>
3485 * hardware.scm (<hw-pc>,parse!): Allow get/set specs.
3487 (hardware-builtin!): Delete h-pc builtin.
3488 * arm.cpu (h-pc): Define.
3489 (h-gr): Delete get,set specs. Make array of 16 regs again.
3490 * arm7.cpu (set-logical-cc-maybe): Delete.
3491 (set-zn-flags,set-add-flags,set-sub-flags): New macros.
3492 (data processing insns): Rewrite.
3493 * m32r.cpu (h-pc): Define.
3494 * fr30.cpu (h-pc): Define.
3495 * i960.cpu (h-pc): Define.
3496 * sparc.cpu (h-pc): Define.
3498 * rtl.scm (-rtx-traverse-operands): Add some error checking to LOCALS.
3499 (s-parallel): Replace do {...} while (0) with {...}.
3500 (s-sequence): Ditto.
3502 * sid-cpu.scm (gen-parallel-exec-type): Make type of `written'
3504 (-gen-write-case,-gen-sem-case): Ditto.
3505 (-gen-sem-case): Only specify `written' if profiling or
3506 parallel-write-back.
3507 (-gen-scache-semantic-fn,-gen-all-semantic-fns): Put procs back in.
3508 (-gen-sem-switch-fn): New proc.
3509 (cgen-semantics.cxx): Emit either semantic fns or semantic switch
3510 based on with-sem-switch option.
3511 * sid-decode.scm (-gen-decode-insn-globals): Only define
3512 idesc_table_initialized_p if with-sem-switch. Record semantic fn
3513 addresses in idesc_table if !with-sem-switch.
3514 (-gen-sem-fn-decls): Rewrite.
3515 (-gen-idesc-decls): Define @cpu@_sem_fn type. Define `execute'
3516 member based on with-sem-switch. Only define
3517 `idesc_table_initialized_p' member if with-sem-switch.
3518 (cgen-decode.h): If !with-sem-switch, declare semantic fns.
3519 * sid.scm (-with-sem-switch?): New variable.
3520 (option-init!): Initialize it.
3521 (option-set!): Set it.
3522 (with-sem-switch?): New proc.
3523 (-op-gen-set-trace): Only emit `written' reference if profiling.
3524 (sim-finish!): Use h_pc_set to set pc.
3526 1999-03-30 Doug Evans <devans@casey.cygnus.com>
3528 * sparccom.cpu (arith-cc-binop): New args s32-set-flags,s64-set-flags.
3529 All callers updated.
3530 (arith-carry-cc-binop): New arg set-flags. All callers updated.
3532 * sid.scm (gen-argbuf-type): Delete.
3533 (-gen-argbuf-fields-union): Move to ...
3534 * sid-decode.scm: ... here.
3536 * read.scm (-reader-process-expanded-1): New proc.
3537 (-reader-process-expanded): Call it to catch nested begin's.
3538 (reader-process): Move `begin' handling to -reader-process-expanded.
3540 * insn.scm (-insn-read): Fix name of `format' spec.
3542 * pmacros.scm (.pmacro): New builtin.
3543 (scan-symbol): If procedure macro, return macro rather than its symbol.
3544 (check-macro): Don't do lookup, instead check if (car expr) is
3546 (scan-list): Handle .pmacro.
3547 (scan): No longer re-examine text for another macro invocation.
3548 (-pmacro-build-lambda): New proc.
3549 (define-pmacro): Rewrite. If defining one pmacro to be an alias of
3550 another, fetch the other's value (rather than doing it during
3553 1999-03-27 Doug Evans <devans@casey.cygnus.com>
3555 * Makefile.am (CGEN_HOB_INPUT_FILES): Add decode.scm.
3556 * Makefile.in: Rebuild.
3558 * decode.scm (decode-get-best-bits): Use memq instead of element?.
3559 (-fill-slot!): Simplify.
3560 (-build-slots): Simplify.
3562 * dev.scm (load-sid): Don't load sid-arch.scm.
3564 * sid-decode.scm: Replace computed goto decoder/extractor with plain
3566 * sim-decode.scm: Replace computed goto decoder/extractor with plain
3569 1999-03-26 Doug Evans <devans@casey.cygnus.com>
3571 * sim-decode.scm: Clean up pass. Move decoder computation into ...
3572 * decode.scm: ... here. New file.
3573 * sid-decode.scm: Use decoder computation code in decode.scm.
3574 * read.scm: Load decode.scm.
3576 * arm.cpu (arm710 model): Add u-exec function unit.
3577 (h-gr): Delete CACHE-ADDR for now. Make array of 15, not 16 regs.
3578 Add get/set specs to redirect reg 15 to h-pc.
3579 (h-*): Indicate for both ARM and THUMB isas.
3580 (cbit,nbit,vbit,zbit): Ditto.
3581 (h-ibit,h-fbit,h-tbit,h-mbits): New hardware elements.
3582 (h-cpsr): Make virtual. Add get/set specs.
3583 (h-spsr-fiq,h-spsr-svc,h-spsr-abt,h-spsr-irq,h-spsr-und): New hw.
3584 (h-spsr): New virtual reg.
3585 * arm7.cpu (shift-type): New explicitly defined keyword.
3586 (h-operand2-shifttype): Use it.
3587 (set-logical-cc-maybe): Delete carry-out arg. New args arg1,arg2.
3588 All callers updated. Don't set cbit.
3589 (logical-op): Add rm to ifield list. Change case to case:. Use
3590 shift-type enum as case choices. Set cbit.
3591 (and,orr,eor,add-imm): Uncomment out.
3592 (undefined): Temporarily comment out.
3593 * thumb.scm (mov,cmp,addi8,subi8,str-sprel,ldr-sprel): s/rd/bit10-rd/.
3594 (lda-pc,lda-sp): Ditto.
3595 (ldr-pc): Rename from ldr.
3596 (cbranch): Mark insns as being thumb insns.
3598 * attr.scm (<bitset-attribute>,parse-value): Recognize strings.
3600 * cgen-sid.scm: Don't load sid-arch.scm.
3601 (sim-arguments): Delete unused entries.
3602 * sid-arch.scm: Delete.
3604 * insn.scm (<insn>,iflds): Renamed from flds. All uses updated.
3605 (<insn>,ifld-assertions): New member.
3606 (<insn>,make!): New arg ifld-assertions, all callers updated.
3607 (<insn> accessors): Change insn:foo to insn-foo. All callers updated.
3608 (insn:fields): Delete.
3609 (-insn-parse): New arg ifld-assertions. All callers updated.
3610 (-insn-read,define-insn): New procs.
3611 (define-full-insn): New arg ifld-assertions. All callers updated.
3612 (insn-init!): New comment define-insn.
3614 * model.scm (-model-parse): Ensure at least one unit specified.
3616 * rtl.scm (-rtx-traverse-operands): Recognize environments.
3617 (<c-expr-temp>,get-name): New method.
3618 (-rtx-make-current-closure,s-closure): New proc.
3619 (hw:): Wrap rtx indices in a closure.
3620 (-gen-case-prefix): New proc.
3622 * rtx-funcs.scm (case:): Fix call to s-case.
3623 (closure): New rtx func.
3625 * hardware.scm (<hardware-base>): New member isas-cache.
3626 (<hardware-base>,get-isas): New method.
3627 (hardware-builtin): Indicate for all isas.
3628 * ifield.scm (-ifield-parse): Only keep if isa+mach are kept.
3629 * mach.scm (current-arch-mach-name-list): Return list of names.
3630 (current-isa-mach-name-list): Ditto.
3631 (define-arch): Install builtin objects here.
3632 * read.scm (keep-atlist?): Only keep if both mach and isa are
3634 (keep-mach-atlist?): New proc.
3635 (keep-isa-multiple?,current-keep-isa-name-list): New proc.
3636 (reader-install-builtin!): Renamed from -install-builtin!.
3637 * sid-cpu.scm (-gen-reg-access-defns): Renamed from
3638 -gen-cpu-reg-access-defns. Rewrite.
3639 (gen-reg-access-defn): Delete.
3640 (-gen-hardware-struct): New proc.
3641 (-gen-hardware-types): Simplify. Add multiple-isa support.
3642 (gen-semantic-fn,-gen-all-semantics): Delete.
3643 (-gen-read-args,-gen-read-case,-gen-read-switch): Delete.
3644 (cgen-cpu.c,cgen-read.c,cgen-sem-switch.c,cgen-mainloop.in): Delete.
3645 (cgen-write.cxx,cgen-semantics.cxx,cgen-decode.cxx): Renamed from *.c.
3646 Call sem-analyze-insns!.
3647 (cgen-semantics.cxx): Add multiple-isa support.
3648 * sid-decode.c (-gen-idesc-decls): Add multiple-isa support.
3649 (-gen-scache-decls,-gen-decode-fn): Ditto.
3650 (cgen-decode.h): Call sem-analyze-insns!.
3651 * sid-model.scm (cgen-model.cxx): Renamed from cgen-model.c.
3652 * sid.scm (-with-multiple-isa?): New variable.
3653 (option-init!): Initialize it.
3654 (option-set!): Set it.
3655 (with-multiple-isa?): New proc.
3656 (gen-cpu-ref): New arg isas. All callers updated.
3657 (gen-cpu-class): New proc.
3658 (*-get-macro,*-set-macro): Delete.
3659 (gen-reg-get-fun-name,gen-reg-set-fun-name): New procs.
3660 (-hw-gen-fun-get): Call gen-reg-get-fun-name.
3661 (-hw-gen-fun-set): Call gen-reg-set-fun-name.
3662 (-gen-hw-index): Call rtx-c instead of rtx-c-with-temps for rtxs.
3663 (-sim-insns-analyzed): New global variable.
3664 (sim-init!): Reset it.
3665 (sim-analyze-insns!): New proc.
3666 (sim-analyze!): Don't do instruction analysis here.
3667 (sim-finish!): Specify isa of x-invalid insn.
3668 * sim.scm (sim-finish!): Specify isa of added x-* virtual insns.
3670 1999-03-22 Doug Evans <devans@casey.cygnus.com>
3672 * thumb.cpu (cpu,mach,model): Delete.
3673 (dntf): New pmacro. Use it for all field definitions.
3674 (dntop): New pmacro. Use it for all operand definitions.
3675 (asr): Correct field list.
3676 (add,addi,sub,subi,add-sp,add-sp-neg): Ditto.
3678 * utils-cgen.scm (define-getters): New macro to simplify
3679 writing class accessors.
3680 (define-setters): Ditto.
3681 (sanitize): Recognize isa elements.
3683 * sid-cpu.scm (*): Replace cpu:parallel-exec? call with
3684 state-parallel-exec?.
3685 * sid-model.scm (*): Ditto.
3686 * sid-decode.scm (*): Ditto. Replace cpu:decode-assist with
3687 state-decode-assist.
3689 * sid-decode.scm (decode-bits): Replace list-reverse! with reverse!.
3690 (-gen-decode-switch): Rewrite to not generate deeply nested lists.
3691 * sim-decode.scm (-gen-decode-switch): Ditto.
3693 * sim-arch.scm (-regs-for-access-fns): Delete.
3694 (-biggest-reg-mode,-gen-arch-reg-access-decls): Delete.
3695 (-gen-arch-reg-access-defns): Delete.
3697 * sim-cpu.scm (*): Replace cpu:liw-insns with state-liw-insns,
3698 cpu:parallel-insns with state-parallel-insns, cpu:parallel-exec?
3699 with state-parallel=exec?.
3700 (cgen-*): Call sim-analyze-insns! here.
3701 * sim-decode.scm (cgen-*): Ditto.
3702 * sim-model.scm (cgen-*): Ditto.
3703 * sim.scm (-sim-insns-analyzed): New global variable.
3704 (sim-init!): Reset it.
3705 (sim-analyze-insns!): Renamed from sim-analyze!. Keep track if we've
3706 already done the analysis.
3708 * sim-model.scm (-gen-mach-defns): Add mach attribute number to
3711 * arm.cpu: Only include arm7.cpu,thumb.cpu if necessary.
3712 (arm arch): Update isa spec.
3713 (arm,thumb isas): Define.
3714 (arm7 cpu): default-insn-bitsize,base-insn-bitsize moved to isas.
3715 (arm7tdmi mach): Add isa spec.
3716 * arm7.cpu (*): Replace subreg: with subword:. Remove unnecessary
3717 `const' on word number.
3718 * fr30.cpu (fr30 arch): Update isa spec.
3720 (fr30bf cpu): default-insn-bitsize,base-insn-bitsize,decode-assist,
3722 * i960.cpu (i960 arch): Update isa spec.
3724 (i960base cpu): default-insn-bitsize,base-insn-bitsize,decode-assist,
3725 liw-insns,parallel-insns moved to isas spec.
3726 * m32r.cpu (m32r arch): Update isas spec.
3728 (m32rbf cpu): default-insn-bitsize,base-insn-bitsize,decode-assist,
3729 liw-insns,parallel-insns moved to isa spec.
3730 * sparc.cpu (sparc arch): Update isas spec.
3731 (sparc isa): Define.
3732 * sparc32.cpu (sparc32 cpu): default-insn-bitsize,base-insn-bitsize,
3733 decode-assist moved to isa spec.
3734 * sparc64.cpu (sparc64 cpu): Ditto.
3735 * sparccom.cpu (trap insns): Correct mode of result of c-call:.
3736 * desc-cpu.scm (-gen-isa-table-defns): New proc.
3737 (-gen-mach-table-defns): Output mach table.
3738 (-gen-hash-defines): Delete insn size macros, except for
3740 (-cgen-cpu-open): Rewrite cpu_open handling. Take stdarg list of args.
3741 (cgen-desc.h): Define MAX_ISAS.
3742 (cgen-desc.c): Include stdarg.h. Call -gen-isa-table-defns.
3743 * mach.scm (<arch>): Rename arch-data to data. New member isa-list.
3744 (arch-* accessors): Renamed from arch:*. All callers updated.
3745 (current-arch-isa-name-list): New proc.
3746 (-arch-parse-isas): Renamed from -arch-parse-isa.
3747 (def-isa-attr!): Rewrite.
3748 (<iframe>): New class.
3749 (<itype>): New class.
3751 (isa-min-insn-bitsize,isa-max-insn-bitsize): New procs.
3752 (isa-integral-insn?,isa-parallel-exec?): New procs.
3753 (-isa-parse,-isa-read,define-isa): New proc.
3754 (<cpu>): Members default-insn-bitsize,base-insn-bitsize,decode-assist,
3755 liw-insns moved to <isa>.
3756 (cpu-* accessors): Renamed from cpu:*. All callers updated.
3757 (-cpu-parse,-cpu-read): Update.
3758 (state-*): Renamed from state:*. All callers updated.
3759 (state-default-insn-bitsize,state-base-insn-bitsize): Use isa spec,
3761 (state-parallel-insns,state-parallel-exec?,state-liw-insns): New procs.
3762 (state-decode-assist): New proc.
3763 (<derived-arch-data>): Delete min-insn-bitsize,max-insn-bitsize.
3764 (-adata-set-derived!): Rewrite.
3765 (adata-integral-insn?): Renamed from adata:integral-insn?. All
3767 (arch-init!): Add define-isa command.
3768 * read.scm (<reader>): Default keep-isa member to (all).
3769 (reader-* accessors): Renamed from reader:*. All callers updated.
3770 (-keep-isa-set!): Call string->symbol on isa name list.
3771 (keep-isa-validate!): Rewrite.
3772 (current-isa): New proc.
3773 (keep-isa?): Recognize "all".
3774 (-init-parse-cpu!): New arg keep-isa. All callers updated.
3775 Call -keep-isa-set!.
3776 (cmd-if): Recognize keep-isa?.
3777 (cpu-load): New arg keep-isa. All callers updated.
3778 (-opt-spec-update): New proc.
3779 (common-arguments): First arg is string, not symbol.
3780 (-cgen): Call -opt-spec-update. Rewrite argument parsing.
3782 * rtl.scm (rtx-get): Default mode of string arg is INT.
3784 * rtl.scm (s-subword): Renamed from s-subreg. All uses updated.
3786 * rtx-funcs.scm (join:): Pass cpu to handler.
3788 * configure.in (guile_include_dir): Delete.
3789 * configure: Rebuild.
3790 * Makefile.in: Rebuild.
3791 * doc/Makefile.in: Rebuild.
3793 * sid-cpu.scm (-extract-chunk-specs): New proc.
3794 (gen-define-fields): Use it.
3795 (-extract-chunk): New proc.
3796 (-gen-extract-beyond-var-list): Use it.
3797 (gen-extract-fields): Simplify.
3799 1999-03-22 Ben Elliston <bje@cygnus.com>
3801 * arm7.cpu (ldri-p): New instruction.
3802 (swi): Do not vector through 0x8 yet--there is nothing there.
3805 (all): Use (const x) in subreg expressions.
3807 1999-03-19 Ben Elliston <bje@cygnus.com>
3809 * arm7.cpu (smull): Use operand field `rs', not `mul-rn'. Thinko.
3812 1999-03-17 Doug Evans <devans@casey.cygnus.com>
3814 * fr30.cpu (define-arch): Specify "forced" default-alignment.
3815 * mach.scm (-parse-alignment): Recognize "forced" alignment.
3816 * sim-cpu.scm (-extract-chunk-specs): New proc.
3817 (gen-define-fields): Use it.
3818 (-extract-chunk): New proc.
3819 (-gen-extract-beyond-var-list): Use it.
3820 (gen-extract-fields): Simplify.
3822 Port to guile 1.3.1.
3823 * Makefile.am (GUILEINCDIR,GUILELDFLAGS,GUILELDADD): Delete.
3824 (LIBIBERTY): New var.
3825 (HOB_OBJS): Add cgen-gh.o.
3826 (hobbit): Delete $(CFLAGS) from link, add $(LIBS) $(LIBIBERTY).
3827 * Makefile.in: Rebuild.
3828 * acconfig.h: Add HAVE_3_ARG_SCM_MAKE_VECTOR.
3829 * config.in: Rebuild.
3830 * configure.in: Add checks for libdl, libreadline, libnsl, libsocket,
3831 libncurses, libtermcap.
3832 Add checks for needed functions in guile 1.2 not in guile 1.3,
3833 and vice versa. Add test for 3 argument scm_make_vector.
3834 * configure: Rebuild.
3835 * cgen-gh.c (scm_list_length,scm_list_append,scm_list_reverse): Provide
3836 definitions if guile doesn't have them.
3837 (gh_make_vector,gh_length,gh_vector_set_x,gh_vector_ref):
3838 (cgh_vector): Replace gh_vector with gh_make_vector. Replace gh_vset
3839 with gh_vector_set_x.
3840 (cgh_qsort): Replace gh_list_length with gh_length.
3841 * cgen-gh.h: Add decls for added functions.
3842 (cgh_qsort): Don't declare if IN_HOBBIT.
3843 * cos.c: Include config.h. Replace gh_vref with gh_vector_ref,
3844 gh_vset with gh_vector_set_x, gh_list_length with gh_length,
3845 scm_make_vector with gh_make_vector.
3846 * cos.scm: Use vector-length instead of length on vectors.
3847 * dev.scm (cload): Make varargs proc with keyword/value args.
3848 * hobscmif.h: Include config.h, cgen-gh.h. Undef make_vector and
3849 provide version that works with guile 1.2 or 1.3.
3850 Include private copy of scmhob.h.
3851 * scmhob.h: New file. Keep our own copy for now.
3853 Tue Mar 16 13:22:01 1999 Doug Evans <devans@canuck.cygnus.com>
3855 * rtl.scm (-rtx-traverse-error): Ensure expression is output in
3857 (-rtx-traverse-operands): Dump cx temp stack if debugging.
3858 (-cx-temp-dump-stack): Pretty up output.
3860 * arm.cpu: comment out thumb.cpu until isa support ready.
3861 * arm7.cpu (bl): Replace lr with (reg h-gr 14).
3862 (f-imm12,f-offset24,swi,undef): Fix thinko, add `const'.
3863 * thumb.cpu (h-gr-t,h-lr-t,h-sp-t,dnti,h-hiregs): s/MACH/ISA/.
3865 * sid-decode.scm (cgen-decode.c): Call rtl-gen-init!.
3867 1999-03-11 Doug Evans <devans@casey.cygnus.com>
3869 * hardware.scm (<hw-immediate>,mode-ok?): Ensure result is boolean.
3870 (<hw-address>,mode-ok?): unsigned/signed are compatible.
3872 * operand (op:new-mode): Improve error message.
3874 * arm.cpu: Move arm isa into arm7.cpu. Include arm7.cpu, thumb.cpu.
3875 * arm7.cpu: New file.
3877 1999-03-12 Ben Elliston <bje@cygnus.com>
3879 * arm.cpu: Lots of minor fixes after desk checking.
3881 1999-03-11 Doug Evans <devans@casey.cygnus.com>
3883 * thumb.cpu: snapshot of current work
3885 * rtl.scm (rtx-get): Tweak error message.
3887 1999-03-10 Doug Evans <devans@casey.cygnus.com>
3889 * Makefile.am (cos.o,cgen.o,cgen-gh.o): Fix dependencies.
3890 * Makefile.in: Rebuild.
3892 * cos.c (cos_vector_copy): New function.
3893 (_object_copy): Use it.
3895 * mode.scm (mode:eq?): Clean up.
3896 * rtl.scm (cx-new-mode): Copy attributes.
3897 (rtx-get): Don't make copy if <c-expr> with identical mode.
3899 * fr30.cpu (define-arch): Delete default-insn-word-bitsize,
3901 (gr-names): h-gr register names moved here.
3903 (cr-names): h-cr register names moved here.
3905 (dr-names): h-dr register names moved here.
3907 (h-ps): Replace FUN-ACCESS attribute with get/set specs.
3908 (h-sbit,h-ccr,h-scr,h-ilm): Ditto.
3909 * i960.cpu (define-arch): Delete default-insn-word-bitsize,
3911 * m32r.cpu (define-arch): Delete default-insn-word-bitsize,
3913 (gr-names): h-gr register names moved here.
3915 (cr-names): h-cr register names moved here.
3917 (h-accum): Replace FUN-ACCESS attribute with get/set specs.
3918 (h-accums,h-psw): Ditto.
3919 * sparc.cpu (define-arch): Delete default-insn-word-bitsize,
3921 (gr-names): h-gr register names moved here.
3922 (h-gr-indices): Delete.
3923 (sparc32 h-gr): Update. Replace FUN-ACCESS with get/set specs.
3924 (sparc64 h-gr): Ditto.
3925 (h-y): Add get/set specs.
3927 (fp operands): Rewrite.
3928 * sparc32.cpu (h-psr): Replace FUN-ACCESS with get/set specs.
3929 (h-tbr,h-cwp,h-wim): Ditto.
3930 * sparc64.cpu (h-fpsr): Add get/set specs.
3931 * sparccom.cpu (ldd-reg+reg): Load value all at once.
3932 (fp-ld-op): New arg `dest', all callers updated.
3933 (*): Replace `make-di' with `join'.
3935 * sid-cpu.scm (-gen-cpu-reg-access-defns): Use get/set specs if
3937 (gen-semantic-code): Save/restore rtl generator state.
3938 (cgen-cpu.h): Call rtl-gen-init!.
3939 * sid.scm (-gen-ifld-extract-base): Update call to rtx-c-with-alist.
3940 (-gen-ifld-extract-beyond): Ditto.
3941 (<multi-ifield>,gen-ifld-extract): Ditto.
3942 (all gen-read,gen-write,cxmake-get,gen-set-* methods): New arg
3944 (-hw-gen-set-quiet-pc): Ditto.
3945 (<hw-pc>,gen-write): Ditto.
3946 (-hw-cxmake-get): Ditto. Call getter function if present.
3947 (<hw-register>,cxmake-get-raw): New method.
3948 (<hw-register>,gen-set-quiet-raw): New method.
3949 (-hw-gen-set-quiet): New arg `gstate'.
3950 (hw-fun-access?): Delete.
3951 (gen-reg-access-defn): Output function contents.
3952 (-gen-hw-index-raw): Update call to rtx-c. Update cxmake-get
3954 (-gen-hw-index): Ditto.
3955 (op:read): Update gen-read invocation.
3956 (op:write): Update gen-write invocation.
3957 (<operand>,cxmake-get,gen-set-quiet,gen-set-trace): Handle raw-reg
3959 (-op-gen-set-quiet,-op-gen-set-quiet-parallel): New arg `gstate'.
3960 (-op-gen-set-trace,-op-gen-set-trace-parallel): Ditto.
3961 (<unit>,gen-profile-code): Update to sim.scm version.
3963 * sim-arch.scm (-regs-for-access-fns): New proc.
3964 (-biggest-reg-mode): New proc.
3965 (-gen-arch-reg-access-decls,-gen-arch-reg-access-defns): Rewrite.
3966 * sim-cpu.scm (-gen-hardware-types): Output get/set handlers for
3967 virtual regs separately.
3968 (-gen-cpu-reg-access-defns): Replace fun-access? with new
3970 (gen-semantic-code): Save/restore rtl generator state.
3971 (cgen-cpu.h): Call rtl-gen-init!.
3972 (cgen-cpu.c): Ditto. #include cgen-ops.h.
3973 * sim-model.scm: mach:cpu renamed to mach-cpu. mach:bfd-name
3974 renamed to mach-bfd-name.
3975 * sim.scm (-gen-ifld-extract-base): Update call to rtx-c-with-alist.
3976 (-gen-ifld-extract-beyond): Ditto.
3977 (<multi-ifield>,gen-ifld-extract): Ditto.
3978 (<scalar>,gen-sym-get-macro): Update call to gen-get-macro.
3979 (<scalar>,gen-sym-set-macro): Update call to gen-set-macro.
3980 (all gen-read,gen-write,cxmake-get,gen-set-* methods): New arg
3982 (hw-fun-access?): Delete.
3983 (-hw-gen-set-quiet-pc): New arg `gstate'.
3984 (<hw-register>,gen-get-macro): Rewrite.
3985 (<hw-register>,gen-set-macro): Rewrite.
3986 (-hw-gen-fun-get,-hw-gen-fun-set): Delete.
3987 (-hw-cxmake-get): New arg `gstate'. Rewrite.
3988 (<hw-register>,cxmake-get-raw): New method.
3989 (-hw-gen-set-quiet): New arg `gstate'. Rewrite.
3990 (<hw-register>,gen-set-quiet-raw): New method.
3991 (-gen-hw-index-raw): Update call to rtx-c. Update cxmake-get
3993 (-gen-hw-index): Ditto.
3994 (<hw-index>): New arg `gstate'.
3995 (-gen-hw-selector): Update call to rtx-c.
3996 (<pc>): New arg `gstate'.
3997 (op:read): Update gen-read invocation.
3998 (op:write): Update gen-write invocation.
3999 (<operand>,cxmake-get): Handle raw-reg.
4000 (-op-gen-set-quiet,-op-gen-set-quiet-parallel): New arg `gstate'.
4001 (-op-gen-set-trace,-op-gen-set-trace-parallel): Ditto.
4002 (<operand>,gen-set-quiet): Handle raw-reg.
4003 (<operand>,gen-set-trace): Handle raw-reg.
4004 (-gen-mach-data): mach:cpu renamed to mach-cpu.
4006 * desc-cpu.scm (gen-operand-decls): Take nub of operands for
4007 cgen_operand_type enum.
4008 (gen-operand-table): Add operand type enum. Replace pointer to
4009 hardware element with its enum. Null terminate table.
4010 (-gen-cpu-open): Add new `isa' argument to @arch@_cgen_cpu_open.
4011 Build operand table.
4012 * ifield.scm (-ifield-parse): Recognize ISA attribute.
4013 * mach.scm (<arch-data>): New member `isas'.
4014 (adata-isas): New accessor.
4016 (isa-default-insn-word-bitsize): New accessor.
4017 (isa-enum): New proc.
4018 (current-arch-default-insn-word-bitsize): Delete.
4019 (current-isa-list,current-isa-lookup): New procs.
4020 (-arch-parse-isa): New proc.
4021 (-arch-parse): Rewrite.
4022 (-arch-read): Recognize `isas'. Delete `default-insn-word-bitsize'.
4023 (define-arch): Define ISA attribute.
4024 (def-isa-attr!,isa-supports?): New procs.
4025 (<mach>): New member `isas'.
4026 (mach-isas): New accessor.
4027 (-mach-parse): New arg `isas', all callers updated.
4028 (-mach-read): Recognize `isas'.
4029 (arch-finish!): Rewrite.
4030 * opc-ibld.scm (-gen-fget-switch): Add `cd' arg to
4031 @arch@_cgen_get_{int,vma}_operand.
4032 (-gen-fset-switch): Add `cd' arg to @arch@_cgen_set_{int,vma}_operand.
4033 * opc-opinst.scm (-gen-operand-instance): Output operand enum instead
4034 of pointer to table entry.
4035 * opcodes.scm (gen-switch): Handle multiply defined operands.
4036 * operand.scm (op-sort): New proc.
4038 * hardware.scm (<hardware-base>): Rename getters/setters to get/set.
4039 (hw-getter,hw-setter): Renamed from hw-getters,hw-setter.
4040 (hw-enum): Accept symbol argument.
4041 (hardware-builtin!): Delete attribute FUN-ACCESS.
4042 * ifield.scm (ifld-encode-mode,ifld-decode-mode): New procs.
4044 * attr.scm (atlist-source-form): New proc.
4045 (attr-builtin!): New attr `PRIVATE'.
4046 * desc.scm (<keyword>,gen-defn): Make keyword entry table static.
4047 * desc-cpu.scm (-gen-hw-defn): Only output index and value tables
4048 if they have `PRIVATE' attribute.
4049 (gen-hw-table-defns): Output definitions of explicitly defined
4051 * hardware.scm (<keyword>): New member print-name. Rename member
4052 `value' to `values', all uses updated.
4053 (kw-mode,kw-print-name,kw-prefix,kw-values): New procs.
4054 (keyword-parse): Rewrite.
4055 (-keyword-read): New proc.
4056 (define-keyword): New proc.
4057 (-hw-parse-keyword): New proc.
4058 (-hw-parse-indices): Rewrite keyword handling, support new index spec
4060 (-hw-parse-values): Ditto.
4061 (-hw-parse-get,-hw-parse-set): Rewrite.
4062 (hardware-init!): Add new comment define-keyword.
4063 * mach.scm (<arch>): New member `kw-list'.
4064 (arch:kw-list,arch_set-kw-list!): New accessors.
4065 (current-kw-list,current-kw-add!,current-kw-lookup): New procs.
4067 * hardware.scm (<hw-register>,mode-ok?): Rewrite.
4068 * mode.scm (mode-class-integral?): New proc.
4069 (mode-class-float?,mode-class-numeric?): New procs.
4070 (mode-integral?,mode-float?,mode-numeric?): New procs.
4071 (mode-compatible?): New proc.
4072 * opcodes.scm (<ifield>,gen-insert): Update alist arg to
4074 (<ifield>,gen-extract): Ditto.
4075 * rtl.scm (-rtl-simulator?,-rtx-current-obj): Delete.
4076 (<gstate>): New class.
4077 (gstate-simulator?,gstate-set-simulator?!): New accessors.
4078 (gstate-context,gstate-set-context!): New accessors.
4079 (gstate-macro?,gstate-set-macro?!): New accessors.
4080 (gstate-make,gstate-copy): New procs.
4081 (-rtl-current-gstate): New global.
4082 (current-gstate-simulator?): New proc.
4083 (current-gstate-context,current-gstate-macro?): New procs.
4084 (current-gstate,current-gstate-set!): New procs.
4085 (rtl-gen-init!): Rewrite.
4086 (-rtx-valid-types): Add INTMODE, FLOATMODE, NUMMODE.
4087 (tstate-make): New arg `gstate', all callers updated.
4088 (tstate-set-expr-fn!,tstate-set-op-fn!): New accessors.
4089 (tstate-set-cond?!,tstate-set?,tstate-set-set?!): New accessors.
4090 (tstate-gstate,tstate-set-gstate!): New accessors.
4091 (tstate-copy): New proc.
4092 (tstate-new-cond?,tstate-new-set?): Rewrite.
4093 (-rtx-traverse-operands): Handle INTMODE, FLOATMODE, NUMMODE.
4094 (rtx-traverse): New arg `gstate', all callers updated.
4095 (rtx-strdump): New proc.
4096 (-simplify-for-compilation): New arg `gstate', all callers updated.
4097 (semantic-in-out-operands): Ditto.
4098 (semantic-attrs): Ditto.
4099 (rtx-eval): Rewrite. New arg `gstate', all callers updated.
4100 (rtx-eval-with-temps,rtx-eval-with-alist): Ditto.
4101 (rtx-value): Rewrite.
4102 (<c-expr>,gen-name): New method.
4103 (<c-expr>,gen-set-quiet): New arg `gstate', all callers updated.
4104 (<c-expr>,gen-set-trace): New arg `gstate', all callers updated.
4105 (cx-new-mode): New proc.
4106 (-rtx-c-with-tstate): New proc.
4107 (rtx-c,rtx-c-with-temps,rtx-c-with-alist): New arg `gstate', all
4109 (-rtx-mode): Rewrite.
4110 (-rtx-mode-compatible?): New proc.
4111 (<c-expr-temp>): New member `value'.
4112 (cx-temp:value): New accessor.
4113 (<c-expr-temp>,make!): Override default method.
4114 (<c-expr-temp>,cxmake-get): Rewrite.
4115 (<c-expr-temp>,gen-set-quiet): Rewrite.
4116 (<c-expr-temp>,gen-set-trace): Rewrite.
4117 (gen-temp-defs): Use cx-temp:value.
4118 (record-temp!): New arg value, all callers updated.
4119 (cx-temp:cx:make): Delete.
4120 (-cx-temp-dump-stack): New proc.
4121 (rtx-get): New arg `gstate', all callers updated. Do mode
4122 compatibility checks. Ensure result has specified mode.
4123 (rtx-set-quiet): New arg `gstate', all callers updated.
4124 (rtx-set-trace): Ditto.
4125 (s-c-call): New arg `tstate', all callers updated.
4126 (s-c-raw-call): Ditto.
4127 (s-unop,s-binop,s-binop-with-with,s-shop,s-boolifop,s-convop): Ditto.
4128 (s-cmpop,s-if,e-if): Ditto.
4129 (s-subreg): New proc.
4130 (-par-new-temp!): New proc.
4131 (-par-next-temp!): Rewrite.
4132 (-par-replace-set-dests): Use -par-new-temp!.
4133 (s-parallel): Rewrite temp handling. Use -rtx-c-with-state.
4134 (s-sequence): Use -rtx-c-with-state.
4135 * rtx-funcs.scm (*): Update.
4136 (raw-reg:): New rtx function.
4138 (join:,subreg:): New rtx functions.
4140 * insn.scm (<insn>): New members pre-cond-trap, condition,
4141 post-cond-trap, compiled-condition.
4143 * insn.scm (syntax-break-out): Replace eval with current-op-lookup.
4145 * opcodes.scm (<pc>,cxmake-get): New arg `selector'.
4147 * utils-cgen.scm (parse-symbol): New proc.
4148 (parse-string): New proc.
4149 (gen-get-macro,gen-set-macro): New arg `index-args'.
4150 (gen-set-macro2): Ditto. Enclose code in do { } while (0).
4151 Prepend \ to newlines.
4153 * utils.scm (alist-remove-duplicates): Delete.
4155 * sid.scm (sim-init!): Delete private debugging code.
4157 1999-03-10 Frank Ch. Eigler <fche@cygnus.com>
4159 * cgen-sid.scm: New file for C++ simulator application.
4160 * sid-arch.scm: Ditto.
4161 * sid-cpu.scm: Ditto.
4162 * sid-decode.scm: Ditto.
4163 * sid-model.scm: Ditto.
4165 * utils-cgen.scm (gen-mach-sid-name): Remove this accident.
4167 1999-03-05 Ben Elliston <bje@cygnus.com>
4169 * arm.cpu: New file.
4171 1999-03-03 Doug Evans <devans@casey.cygnus.com>
4173 * Makefile.am (CGEN_HOB_INPUT_FILES): Add hardware.scm.
4174 * Makefile.in: Rebuild.
4176 * attr.scm (<integer-attribute>,parse-value-def): Tweak.
4177 (-attr-parse): Validate default value.
4179 * read.scm (-CGEN-VERSION): Change to 0.7.1.
4180 (-CGEN-LANG-VERSION): Ditto.
4181 (-keep-all-machs): Renamed from -keep-all, all uses updated.
4182 (<reader>): New member keep-isa plus accessors.
4183 (-keep-isa-set!,keep-isa-validate!): New procs.
4184 (keep-isa?,keep-isa-atlist?,keep-isa-obj?): New procs.
4185 (common-arguments): New variable.
4186 (cgen-usage,getarg,catch-with-backtrace,option-arg): New procs.
4187 (-debug-repl,continue): New procs.
4188 (-cgen,cgen): New procs.
4189 * cgen-gas.scm: Rewrite.
4190 * cgen-opc.scm: Rewrite.
4191 * cgen-sim.scm: Rewrite.
4192 * cgen-stest.scm: Rewrite.
4194 * gas-test.scm (gas-test-init!): Call opcodes-init!.
4195 (gas-test-finish!): Call opcodes-finish!.
4196 (gas-test-analyze!): Call opcodes-analyze!.
4197 (<hw-asm>): New method test-data.
4198 (<operand>,testdata): Rewrite.
4199 * sim-test.scm (sim-test-init!): Call opcodes-init!.
4200 (sim-test-finish!): Call opcodes-finish!.
4201 (sim-test-analyze!): Call opcodes-analyze!.
4202 (<hw-asm>): New method test-data.
4203 (<operand>,testdata): Rewrite.
4205 1999-03-01 Doug Evans <devans@casey.cygnus.com>
4207 * fixup.scm (reverse!): Define if missing.
4208 * *.scm: Use reverse! instead of list-reverse!.
4210 * utils.scm (leading-id-char?): New proc.
4211 (id-char?): Rewrite.
4212 (chars-until-delimiter): New proc.
4213 * opc-itab.scm (extract-syntax-operands): Rewrite.
4214 (strip-mnemonic): Rewrite.
4215 (compute-syntax): Rewrite.
4217 * pmacros.scm (-pmacro-substr): New proc.
4218 (pmacros-init!): Add builtin .substr.
4220 1999-02-26 Doug Evans <devans@casey.cygnus.com>
4222 * thumb.cpu: New file.
4224 1999-02-24 Doug Evans <devans@casey.cygnus.com>
4226 * Makefile.am (CGENCFLAGS): New variable.
4227 (WITH_HOBBIT): Use automake conditional.
4228 (CGEN_HOB_SRC): New variable.
4229 (libcpu_a_SOURCES): Use $(CGEN_HOB_SRC).
4230 (*.o): Compile with CGENCFLAGS.
4231 (cgen-hob.c): Simplify.
4232 (cgen-nohob.c): New rule.
4233 (hobbit): Renamed from hob.x.
4234 (CLEANFILES): Add cgen-nohob.c.
4235 * Makefile.in: Rebuild.
4236 * doc/Makefile.in: Rebuild.
4237 * configure.in (AM_INIT_AUTOMAKE): Update CGEN version to 0.7.1.
4238 (WITH_HOBBIT): Use AM_CONDITIONAL.
4239 * configure: Rebuild.
4240 * aclocal.m4: Rebuild.
4242 * sim-arch.scm (-gen-arch-reg-access-defns): Replace string-map
4243 with string-write-map.
4245 * sim-cpu.scm (hw-need-storage?): New proc.
4246 (-gen-hardware-types): Use it.
4247 (gen-parallel-exec-elm): Call op-save-index?.
4249 * sim-decode.scm (cgen-decode.c): Call rtl-gen-init!.
4251 * sim.scm (-gen-ifld-extract-base): Use mode:class instead of
4253 (-gen-ifld-extract-beyond): Ditto.
4254 (<integer>): Delete all references.
4255 (<sim-hardware>): Delete.
4256 (hw-profilable?): New proc.
4257 (<hardware-base>): New methods gen-get-macro,gen-set-macro.
4258 (<hw-register>): Rename method get-index-mode to save-index?.
4259 (<hw-register>): New methods gen-get-macro,gen-set-macro.
4260 (<hw-register>,gen-sym-decl): Make virtual.
4261 (<hw-memory>,gen-sym-decl): Make virtual.
4262 (<hw-memory>): Rename method get-index-mode to save-index?.
4263 (<hw-address>,gen-sym-decl): Make virtual.
4264 (<operand>): New method save-index?.
4265 (sim-init!): Delete calls to sim-hw-init!,sim-hw-init-parsers!.
4267 * opc-itab.scm (opc-{parse,insert,extract,print}-handlers): opc-
4268 prefix added. All uses updated.
4270 * opc-opinst.scm (-gen-operand-instance): Output hw enum value
4271 rather than pointer to table entry.
4273 * opcodes.scm: Remove all attribute support, lives in desc.scm.
4274 Remove all hw-asm,op-asm support.
4275 (-gen-parse-number,-gen-parse-address): New procs.
4276 (<keyword>,gen-parse): Redo function name computation.
4277 (<keyword>,gen-print): Ditto.
4278 (<operand>,gen-function-name): Rewrite.
4279 (<operand>,gen-fget,gen-fset,gen-parse,gen-print): Ditto.
4280 (opcodes-init!): Delete call to add-parser!.
4282 * desc-cpu.scm (gen-hw-decls): Rename enum hw_type to cgen_hw_type.
4283 Define enum using hardware semantic name.
4284 (-gen-hw-decl,-gen-hw-defn): New procs.
4285 (gen-hw-table-decls): Use -gen-hw-decl.
4286 (gen-hw-table-defns): Use -gen-hw-defn. Rewrite generation of
4287 CGEN_HW_ENTRY structs.
4288 (gen-operand-table): Output hw's enum, not pointer to table entry.
4289 (-gen-cpu-open): Build table of selected hardware elements.
4291 * desc.scm (-hw-asm-specs,-parse-hw-asm): Delete.
4292 (<hardware> support): Delete.
4293 (<hw-asm>): Delete, moved to hardware.scm.
4294 (normal-hw-asm,hw-asm:parse,hw-asm:print): Delete.
4295 (<hw-asm>,gen-table-entry): New method.
4296 (<hw-asm>,parse!): Delete.
4297 (<keyword>,gen-table-entry): New method.
4298 (<keyword>,parse!): Delete.
4299 (<hw-{register,memory,immediate,address}>): Delete forwarding methods
4300 for gen-decl,gen-defn,gen-ref,gen-init.
4301 (desc-init!): Don't create parser for operand asm specs.
4303 * attr.scm (attr-builtin!): Delete UNSIGNED attribute.
4304 * ifield.scm (<ifield>): New member `mode'.
4305 (<ifield>,make!): New arg `mode'.
4306 (ifld-mode): Rewrite.
4307 (ifld-hw-type): Rewrite.
4308 (<ifield>,min-value): Rewrite.
4309 (<ifield>,max-value): Rewrite.
4310 (-ifield-parse): New arg `mode'.
4311 (-ifield-read): Update.
4312 (define-full-ifield): New arg `mode'.
4313 (define-full-multi-ifield): Ditto.
4314 (-multi-ifield-parse): Ditto.
4315 (-multi-ifield-read): Update.
4316 (define-full-multi-ifield): New arg `mode'.
4317 (ifield-builtin!): Update definition of f-nil.
4318 * simplify.inc (define-normal-ifield): Update call to
4320 (define-normal-multi-ifield): Update call to define-full-multi-ifield.
4321 (define-normal-hardware): Delete arg asm. New args indices, values,
4322 handlers. Update call to define-full-hardware.
4323 (define-simple-hardware,dsh): New pmacros.
4324 (define-normal-operand): Update call to define-full-operand.
4325 * fr30.cpu (f-*): Delete UNSIGNED attribute. Default is now UNSIGNED.
4326 Specify INT/UINT mode instead.
4327 (h-gr,h-cr): Use "indices" instead of "asm".
4328 (h-dr,h-ps): Update keyword syntax.
4329 (h-r13,h-r14,h-r15): Ditto.
4330 (h-nbit,h-zbit,h-vbit,h-cbit): Use dsh instead of dnh.
4331 (h-d0bit,h-d1bit,h-ibit,h-sbit,h-tbit,h-ccr,h-scr,h-ilm): Ditto.
4332 (m4): Fix typo on HASH-PREFIX. Use "handlers" instead of "asm".
4333 (reglist_low_ld,reglist_hi_ld,reglist_low_st,reglist_hi_st): Ditto.
4334 * i960.cpu (f-*): Delete UNSIGNED attribute. Default is now UNSIGNED.
4335 Specify INT/UINT mode instead.
4336 (h-gr): Use "indices" instead of "asm".
4337 (h-cc): Update keyword syntax.
4338 * m32r.cpu (f-*): Delete UNSIGNED attribute. Default is now UNSIGNED.
4339 Specify INT/UINT mode instead.
4340 (h-hi16,h-slo16,h-ulo16): Update.
4341 (h-gr,h-cr): Use "indices" instead of "asm".
4342 (h-accum,h-cond,h-psw,h-bpsw,h-bbpsw,h-lock): Use dsh instead of dnh.
4343 (h-accums): Update keyword syntax.
4344 (hash,hi16,slo16,ulo16): Use "indices" instead of "asm".
4345 * sparc.cpu (f-*): Delete UNSIGNED attribute. Default is now UNSIGNED.
4346 Specify INT/UINT mode instead.
4347 (h-gr-indices): New pmacro.
4348 (h-gr32,h-gr64): Split up from h-gr.
4349 (h-a): Update type spec. Use values instead of asm spec.
4350 (h-icc-[cnvz],h-xcc-[cnvz]): Use dsh instead of dnh.
4351 (h-y,h-annul-p): Ditto.
4352 (h-asr): Update keyword spec.
4353 (h-lo10,h-lo13,h-hi22): Update.
4354 (get-freg-spec,set-freg-spec): New pmacros.
4355 (h-fr32,h-fr64): Split up from h-fr.
4356 (rdd): Comment out get/set specs.
4357 (lo10,lo13,hi22): Use "handlers" instead of "asm".
4358 * sparc32.cpu (h-psr): Use dsh instead of dnh.
4359 (h-s,h-ps,h-pil,h-et,h-tbr,h-cwp,h-ag,h-ec,h-ef,h-fsr): Ditto.
4360 * sparc64.cpu (f-*): Delete UNSIGNED attribute. Default is now
4361 UNSIGNED. Specify INT/UINT mode instead.
4362 (h-*): Use dsh instead of dnh where appropriate.
4363 (h-ixcc): Update type spec. Use "values" instead of "asm".
4364 (h-p,h-membarmask): Ditto.
4365 (membarmask): Use "handlers" instead of "asm".
4367 * hardware.scm (<hardware-base>): New member sem-name,type,indices,
4368 values,handlers,getters,setters plus accessors.
4369 (hw-mode-ok?,hw-default-mode): New procs.
4370 (<hardware-base>): Rename method new-mode to mode-ok?
4371 (<hardware-base>): New method get-index-mode.
4372 (hw-index-mode): New proc.
4373 (pc?): Delete, moved to operand.scm.
4374 (address?): New proc.
4375 (<hardware>): Delete.
4376 (<hw-asm>): Definition moved here from desc.scm.
4377 (keyword-parse): New proc.
4378 (hardware-parsers): Delete.
4379 (-parse-hw-type,-parse-hw-asm,-parse-hw-profile): Delete.
4380 (-hw-parse-indices,-hw-parse-values,-hw-parse-handlers): New procs.
4381 (-hw-parse-get,-hw-parse-set): New procs.
4382 (-hw-parse): Delete args aasm,profile,extra. New args semantic-name,
4383 indices,values,handlers,get,set. Rewrite.
4384 (-hw-read-extra): Delete.
4386 (define-hardware): Don't add object if not selected.
4387 (define-full-hardware): Ditto.
4388 (current-hw-sem-lookup,current-hw-sem-lookup-1): New procs.
4389 (<hw-register>): Member `type' moved to baseclass. Delete member
4391 (<hw-register>,parse!): Rewrite.
4392 (<hw-register>): Delete methods get-rank,get-mode.
4393 (<hw-register>): Method new-mode renamed to mode-ok?
4394 (<hw-register>): New method get-index-mode.
4395 (<hw-pc>,parse!): Rewrite.
4396 (<hw-memory>): Member `type' moved to baseclass. Delete member hw-asm.
4397 (<hw-memory>,parse!): Rewrite.
4398 (<hw-memory>): Delete methods get-rank,get-mode.
4399 (<hw-memory>): Method new-mode renamed to mode-ok?
4400 (<hw-memory>): New method get-index-mode.
4401 (<hw-immediate>): Member `type' moved to baseclass. Delete member
4403 (<hw-immediate>,parse!): Rewrite.
4404 (<hw-immediate>): Delete methods get-rank,get-mode.
4405 (<hw-immediate>): Method new-mode renamed to mode-ok?
4406 (<hw-address>): Delete member hw-asm.
4407 (<hw-address>,parse!): Rewrite.
4408 (<hw-address>): Delete methods get-rank,get-mode.
4409 (<hw-address>): Method new-mode renamed to mode-ok?
4410 (hw-profilable?): Delete.
4411 (hardware-init!): Delete hardware-parsers reference.
4412 Update argument specs of command define-full-hardware.
4413 (hardware-builtin!): Update definitions of hardware builtins.
4414 * operand.scm (<operand>): New members hw-name,mode-name.
4415 Delete member op-asm. New member handlers.
4416 (<operand>,make!): Update.
4417 (op:hw-name,op:mode-name,op:handlers): New procs.
4420 (<operand>): New method get-index-mode.
4421 (<pc>,make!): Update.
4422 (op:new-mode): Rewrite.
4423 (operand-parsers): Delete.
4424 (-operand-parse): Rewrite. Return #f if insn not selected.
4425 (-op-read-extra): Delete.
4426 (-operand-read): Update.
4427 (define-operand,define-full-operand): Update.
4428 (operand-init!): Delete operand-parsers reference.
4429 Update syntax of define-full-operand command.
4431 * insn.scm (-insn-parse): Rewrite. Return #f if insn not selected.
4432 (define-full-insn): Update.
4433 * minsn.scm (-minsn-parse): Rewrite. Return #f if insn not selected.
4434 (define-full-minsn): Update.
4436 * mode.scm (<mode>): New member class.
4437 (mode:class): New proc.
4439 (-mode-parse): New arg class.
4440 (define-full-mode): Update.
4441 (mode-find): Rewrite.
4442 (mode-make-int,mode-make-uint): New procs.
4443 (mode-init!): Update syntax of define-full-mode command.
4444 (mode-builtin!): Update definitions of builtin modes.
4446 * model.scm (<profile>): Delete.
4448 * read.scm (keep-atlist?): New proc.
4449 (keep-multiple?): New proc.
4450 (<parser-list>): Delete.
4451 (add-parser!,parse-spec!): Delete.
4453 * rtl.scm (def-rtx-node): Prepend arg *tstate* to all handlers.
4454 (def-rtx-syntax-node): Ditto.
4455 (-rtx-traverse-debug?): New variable.
4456 (tstate-make): New proc.
4457 (tstate-expr-fn,tstate-op-fn,tstate-cond?,tstate-set?): New procs.
4458 (tstate-new-cond?,tstate-new-set?): New procs.
4459 (-rtx-traverse-normal): Delete args cond?,expr-fn,op-fn. New arg
4460 tstate. All callers updated.
4461 (-rtx-traverse-expr,-rtx-traverse-debug): Ditto.
4462 (-rtx-traverse-list,-rtx-traverse-operands): Ditto.
4463 (-build-operand!): Replace arg cond? with tstate.
4464 (-build-reg-operand!,-build-mem-operand!): Ditto.
4465 (-build-index-of-operand!): Update making of <operand> object.
4466 (s-ifield): New arg tstate. All callers updated.
4467 (hw:): New arg tstate. All callers updated. Replace call to
4468 current-hw-lookup with current-hw-sem-lookup-1.
4469 (s-index-of): New arg tstate. All callers updated.
4471 (-rtx-use-sem-fn?): New proc.
4472 (s-unop,s-binop,s-shop): Use it. Only use semantic mode when using
4474 (s-convop): Only use semantic mode when using semantic cover fns.
4475 (s-cmpop): Call -rtx-use-sem-fn?.
4476 (s-cond,s-case): New arg tstate. All callers updated.
4477 (s-parallel,s-sequence): Ditto.
4479 * rtx-funcs.scm (set,set-quiet:): Use SETRTX to mark the set dest.
4481 * types.scm (<scalar>): Rewrite implementation.
4482 (<integer>): Delete.
4483 (parse-type): Rewrite.
4485 * utils-cgen.scm (parse-handlers): New proc.
4487 * utils.scm (!=): New proc.
4489 Tue Feb 23 12:10:29 1999 Doug Evans <devans@canuck.cygnus.com>
4491 * pmacros.scm (-pmacro-expand): Fix typo.
4493 1999-02-12 Doug Evans <devans@casey.cygnus.com>
4495 * pmacros.scm (-pmacro-hex,-pmacro-upcase,-pmacro-downcase): New procs.
4496 (pmacros-init!): Install builtins .hex, .upcase, .downcase.
4497 * i960.cpu (build-hex2): New pmacro.
4498 (insn-opcode): Simplify.
4499 (insn-opcode2): Ditto.
4501 * cgen-sim.scm (catch-with-backtrace): Comment out debugging printf.
4502 * cgen-stest.scm (catch-with-backtrace): Ditto.
4504 1999-02-11 Doug Evans <devans@casey.cygnus.com>
4506 * pmacros.scm (-pmacro-lookup): Renamed from -pmacro-ref.
4507 All callers updated.
4508 (-pmacro-invoke): New proc.
4509 (-pmacro-sym,-pmacro-str): New procs.
4510 (-pmacro-iota,-pmacro-map,-pmacro-apply): New procs.
4511 (pmacros-init!): Install builtins .iota, .map, .apply.
4512 * sparc.cpu (cc-tests): Add CC_NZ,CC_Z,CC_GEU,CC_LU aliases.
4513 (h-fr): Simplify register name spec.
4514 * sparc64.cpu (cond-move-1): New arg mnemonic. All callers updated.
4515 * utils.scm (num-args-ok?): New proc.
4517 1999-02-10 Doug Evans <devans@casey.cygnus.com>
4519 * pmacros.scm (-pmacro-error): New proc.
4520 (-pmacro-expand): Use it.
4521 (-pmacro-splice): New proc.
4522 (pmacros-init!): Install new builtin .splice.
4524 * sparc.cpu: Include sparc64.cpu when appropriate.
4525 (f-mmask,f-simm11): Moved to sparc64.cpu.
4526 (insn-fmt2): Add FLUSH,FLUSHW,IMPDEP1,IMPDEP2,MEMBAR,MOVCC.
4527 (ANNUL attribute): Delete.
4528 (test-* pmacros): New arg cc, all callers updated.
4529 (uncond-br-sem,cond-br-sem): New arg cc, all callers updated.
4530 * sparc32.cpu (atom-op): Moved to sparccom.cpu and renamed to
4532 (ldstub,swap): Moved to sparccom.cpu.
4533 * sparc64.cpu: Add more insns.
4535 1999-02-09 Doug Evans <devans@casey.cygnus.com>
4537 * sim-cpu.scm (cgen-semantics.c): Replace CGEN_INSN_ATTR with
4539 (cgen-sem-switch.c): Ditto.
4540 * sim-decode.scm (-gen-idesc-decls): struct idesc definition
4541 moved to cgen-engine.h.
4542 (-gen-insn-sem-type): Delete, struct insn_sem mvoed to cgen-engine.h.
4543 (-gen-idesc-init-fn,init_idesc): Lookup insn table via descriptor, not
4544 global. Cache attributes and insn length in IDESC.
4545 * sim-model.scm (-gen-cpu-defns): Generate new func @cpu@_prepare_run.
4546 @cpu@_opcode renamed to @cpu@_get_idata.
4547 (-gen-mach-defns,@mach@_init_cpu): Don't initialize IDESC table here,
4548 done later underneath sim_resume.
4549 (@mach@_mach): Record @cpu@_prepare_run.
4550 * sim.scm (<hardware-base>,cxmake-get): New arg selector, all callers
4552 (-hw-gen-set-quiet-pc): Ditto.
4553 (-hw-cxmake-get,-hw-gen-set-quiet): Ditto.
4554 (<hw-memory>,cxmake-get,gen-set-quiet): Ditto.
4555 (<hw-addr>,cxmake-get): Ditto.
4556 (<hw-iaddr>,cxmake-get): Ditto.
4557 (<pc>,cxmake-get): Ditto.
4558 (<operand>,cxmake-get,gen-set-quiet,gen-set-trace): Ditto.
4559 (-op-gen-set-quiet,-op-gen-set-quiet-parallel): Ditto.
4560 (-op-gen-set-trace,-op-gen-set-trace-parallel): Ditto.
4561 (<hw-pc>,gen-write): Use hw-selector-default.
4562 (<hw-register>,gen-write): Ditto.
4563 (<hw-memory>,gen-write): Ditto.
4564 (-gen-hw-index-raw,-gen-hw-index): Handle selector.
4565 (-gen-hw-selector): New proc.
4567 * desc.scm: New file.
4568 * desc-cpu.scm: New file.
4569 * opcodes.scm: Split up into several smaller files.
4570 * opc-asmdis.scm: New file.
4571 * opc-ibld.scm: New file.
4572 * opc-itab.scm: New file.
4573 * opc-opinst.scm: New file.
4574 * Makefile.am (desc): New target.
4575 (opcodes): Update args to cgen-opc.scm.
4576 * Makefile.in: Rebuild.
4577 * aclocal.m4: Rebuild.
4578 * config.in: Rebuild.
4579 * configure.in: Update arg to AC_INIT.
4580 Update version number to 0.7.0. Change AM_EXEEXT to AC_EXEEXT.
4581 Update AC_PREREG arg to 2.13. Change AM_PROG_INSTALL to
4583 * configure: Rebuild.
4584 * cgen-gas.scm: Update files to load.
4585 * cgen-opc.scm: Ditto. Reorganize option letters.
4586 * cgen-sim.scm: Update files to load.
4587 * cgen-stest.scm: Ditto.
4588 * dev.scm (cload): New app "DESC".
4589 (load-opc): Update files to load.
4590 (load-gtest,load-sim,load-stest): Ditto.
4592 * attr.scm (bool-attr?): New proc.
4593 (attr-list-enum-list): New proc.
4594 (-attr-sort): Rewrite.
4595 (attr-builtin!): Give ALIAS attribute a fixed index.
4596 * utils-cgen.scm (gen-attr-enum-decl): Call attr-list-enum-list to
4597 calculate attribute enum list.
4598 (gen-attr-mask): Subtract CGEN_ATTR_BOOL_OFFSET from attribute's enum.
4600 * insn.scm (-insn-parse): Renamed from parse-insn.
4602 * hardware.scm (-hw-parse): New arg errtxt, all callers updated.
4605 * mode.scm (-mode-parse): Renamed from parse-mode.
4607 * operand.scm (<operand>): New member `selector'.
4608 (<operand>,make!): Use default selector.
4609 (hw-selector-default): New variable.
4610 (hw-selector-default?): New proc.
4612 * pmacros.scm (pmacros-init!): New proc.
4613 (-pmacro-{make,name,arg-spec,transformer,comment}): New procs.
4614 (-env-set!): Delete.
4615 (-pmacro-expand): New proc apply-macro.
4616 Use it in scan-list,scan. Scan list first, then see if macro
4618 (define-pmacro): Rewrite.
4619 * read.scm (-init-parse-cpu!): Call utils-init!,parse-init!.
4621 * rtl.scm (-simplify-for-compilation): Ensure at least one mach
4622 selected if (current-mach) seen.
4623 (rtx?): Renamed from rtx-uneval?, all callers updated.
4624 (<c-expr>,gen-set-quiet,gen-set-trace): New arg selector, all callers
4626 (<c-expr-temp>,cxmake-get,gen-set-quiet,gen-set-trace): New arg
4627 selector, all callers updated.
4628 (hw:): New arg selector, all callers updated. Delete old comments
4630 (reg:,mem:): Handle selectors
4631 * rtx-funcs.scm (reg:): Handle selectors.
4633 * read.scm: Renamed from cpu.scm.
4634 (<command>): New class.
4635 (<reader>): New member commands.
4636 (reader-add-command!): New proc.
4637 (reader-lookup-command): New proc.
4638 (reader-error,-reader-process-expanded,reader-process): New procs.
4639 (reader-read-file!): New proc.
4640 (include): Call reader-read-file!.
4642 (cpu-load): Call reader-read-file!.
4643 * utils.scm (num-args): New proc.
4644 * simplify.inc: New file.
4645 * *.scm: Delete def-foo procs. Rewrite define-foo/define-full-foo
4646 procs. Move define-normal-foo procs (and abbreviated forms) to
4647 simplify.inc. Install define-foo/define-full-foo commands in foo-init!
4649 * fr30.cpu: Include simplify.inc.
4650 * fr30.opc: CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
4651 * i960.cpu: Include simplify.inc.
4652 * m32r.cpu: Include simplify.inc.
4653 * m32r.opc: CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
4654 (CGEN_PRINT_NORMAL): Use CGEN_BOOL_ATTR.
4655 * sparc.cpu: Include simplify.inc.
4656 * sparc.opc: CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
4657 * utils-cgen.scm (parse-error): Moved to read.scm.
4658 (sanitize): Rewrite.
4659 (utils-init!): New proc.
4661 1999-02-02 Doug Evans <devans@casey.cygnus.com>
4663 * sparc.cpu: New file.
4664 * sparc32.cpu: New file.
4665 * sparc64.cpu: New file.
4666 * sparccom.cpu: New file.
4667 * sparc.opc: New file.
4669 1999-01-27 Frank Eigler <fche@cygnus.com>
4671 * utils.scm (gen-copyright): New proc.
4673 1999-01-27 Doug Evans <devans@casey.cygnus.com>
4675 Parameterize rtl parsing, rather than having lots of little handlers.
4676 * rtl.scm (<rtx-func>): New members arg-types,arg-modes.
4677 Delete member traverse.
4678 (rtx:set-traverse!): Delete.
4679 (-rtx-valid-types,-rtx-valid-matches): New variables.
4680 (-rtx-func-lookup): Take symbol or <rtx-func> object as argument
4681 instead of expression. All callers updated.
4682 (def-rtx-node): New args arg-types,arg-modes.
4683 (def-rtx-syntax-node): Ditto.
4684 (def-rtx-dual-mode): Ditto.
4685 (-rtx-macro-expand-list): Renamed from -rtx-macro-maybe-expand-list.
4686 All callers updated.
4687 (-rtx-macro-expand): Renamed from -rtx-macro-maybe-expand.
4688 All callers updated.
4689 (rtx-macro-expand): New proc.
4690 (-rtx-traverse-check-args): Delete.
4691 (-rtx-traverse-normal): Call -rtx-traverse-expr rather than calling
4692 an rtx specific traverser.
4693 (-rtx-any-mode?,-rtx-symornum?): New procs.
4694 (-rtx-traverse-rtx-list,-rtx-traverse-error): New proc.
4695 (-rtx-traverse-no-mode): Delete.
4696 (-rtx-traverse-syntax-expr,-rtx-traverse-syntax-no-mode): Delete.
4697 (-rtx-traverse-operands): Rewrite.
4698 (-rtx-traverse-expr): Rewrite.
4699 (rtx-traverse): Don't expand macros here, leave for caller to do.
4700 (rtx-simplify): Delete.
4701 (rtx-compile-time-constant?): Rewrite. Handle FALSE/TRUE for boolean
4703 (rtx-true?,rtx-false?): Ditto.
4704 (-rtx-ref-type): Set dest is operand 1 now.
4705 (-simplify-for-compilation): New proc.
4706 (semantic-in-out-operands): Recognize regno as an alias for index-of.
4707 Expand macros before calling rtx-traverse. Sort operands by name
4708 to avoid unnecessary semantic formats.
4709 (semantic-attrs): New proc.
4710 (rtx-uneval?): Handle (<rtx-func> ...).
4711 (s-boolifop): Delete arg mode. All callers updated.
4712 * rtx-funcs.scm (all non-macros): Add arg-type and arg-mode specs.
4713 (eq-attr): New arg obj.
4715 * m32r.cpu (rach): Update calls to andif.
4717 * minsn.scm (-minsn-parse-expansion): Renamed from
4718 parse-minsn-expansion.
4719 (-minsn-parse): Renamed from parse-minsn.
4720 (-minsn-read): Renamed from read-minsn.
4721 (def-minsn): Don't check APPLICATION here.
4722 (def-full-minsn): New proc.
4723 (define-macro-insn): Check APPLICATION here. Expand macros.
4724 (define-normal-macro-insn): Ditto.
4726 * utils.scm (word-value): New arg start-lsb?.
4727 (word-mask,word-extract): Ditto.
4728 (split-bits,powers-of-2): Use integer-expt instead of expt.
4729 (bit-set?): Handle 32 bit values (which are bignums).
4730 (cg-logand,cg-logxor): New functions.
4731 * ifield.scm (<ifield>,field-mask): Update call to word-mask.
4732 (<ifield>,field-value): Update call to word-value.
4733 (<ifield>,min-value): Use integer-expt instead of expt.
4734 (<ifield>,max-value): Ditto.
4736 * hardware.scm (<hw-register>,new-mode): Rename local mode to cur-mode.
4738 * insn.scm (def-full-insn): Discard ALIAS insns if simulator.
4740 Compute raw instruction format in addition to semantic based format.
4741 * iformat.scm: Delete members cti?,sem-in-ops,sem-out-ops.
4742 (<iformat> accessors): Rename accessors to ifmt-*.
4743 (<sformat>): New class.
4744 (fmt-enum): Renamed from fmt:enum.
4745 (-ifmt-search-key): Rewrite.
4746 (-sfmt-search-key): New proc.
4747 (ifmt-analyze): Rename arg include-sem-operands? to compute-sformat?
4748 Compute iformat and sformat search keys.
4749 (ifmt-build): Update.
4750 (sfmt-build): New proc.
4751 (-ifmt-lookup-ifmt!,-ifmt-lookup-sfmt!): New procs.
4752 (ifmt-compute!): Compute instruction format <iformat> based on
4753 instruction fields alone. Compute new semantic format <sformat>
4754 based on instruction fields and semantic information.
4755 (ifmt:lookup): Delete.
4756 * mach.scm (<arch>): New member sfmt-list, plus accessors.
4757 (current-sfmt-list): New proc.
4758 * insn.scm (<insn>): Rename member fmt-tmp to tmp.
4759 Rename member fmt to ifmt. New members fmt-desc, sfmt.
4760 (insn-length,insn-length-bytes): Update.
4761 (insn:mask-length,insn:mask): Update.
4762 (insn-lookup-op): Update.
4763 * gas-test.scm (gas-test-analyze!): Update.
4764 (gen-gas-test): Ditto.
4765 * sim-test.scm (sim-test-analyze!): Update.
4766 (gen-sim-test): Ditto.
4767 * opcodes.scm (gen-operand-instance-table): Update.
4768 (gen-operand-instance-ref): Ditto.
4769 (max-operand-instances): Use heuristic if semantics not parsed.
4770 (ifmt-opcode-operands): Renamed from fmt-opcode-operands.
4771 (opcodes-analyze!): Only scan semantics of building operand instance
4773 * sim-cpu.scm (*) Update calls to <iformat>/<sformat> accessors.
4774 (-gen-extract-ifmt-macro): Renamed from -gen-extract-fmt-macro.
4775 * sim-decode.scm (*) Update calls to <iformat>/<sformat> accessors.
4776 (gen-sfmt-argvars-defns): Renamed from gen-ifmt-argvars-defns.
4777 (gen-sfmt-argvars-assigns): Renamed from gen-ifmt-argvars-assigns.
4778 * sim-model.scm (*) Update calls to <iformat>/<sformat> accessors.
4779 * sim.scm (*) Update calls to <iformat>/<sformat> accessors.
4781 * sim-decode.scm (usable-decode-bit?): Rename from decode-bit?
4782 New arg lsb0? All callers updated.
4783 (decode-bits): New arg lsb0?. All callers updated.
4784 (opcode-slots): Update call to bit-set?. Call integer-expt instead
4786 (-gen-decode-bits): New arg lsb0?. All callers updated.
4787 (build-slots): Call integer-expt instead of expt.
4788 (build-decode-table-entry): Handle crossing word boundaries better.
4789 (-gen-decode-switch): New arg lsb0?. All callers updated.
4790 (-gen-extract-decls): Rename decode format entry from ifmt to sfmt.
4792 * enum.scm (define-enum): Rewrite.
4793 (define-normal-enum): Ditto.
4794 (def-full-insn-enum): New proc.
4795 (define-normal-insn-enum): Rewrite.
4797 * attr.scm (<bitset-attribute>,gen-value-for-defn): Ensure result is
4799 (<{integer,enum}-attribute>,gen-value-for-defn): Ditto.
4801 * dev.scm: Add sid support.
4803 * Makefile.am (opcodes,sim-arch,sim-cpu): New targets.
4804 (CLEANFILES): Add tmp-*.
4805 * Makefile.in: Rebuild.
4807 * doc/Makefile.am: New file.
4808 * doc/Makefile.in: New file.
4809 * doc/cgen.texi: New file.
4810 * Makefile.am (SUBDIRS): Define.
4811 * Makefile.in: Rebuild.
4812 * configure.in: Create doc/Makefile.
4813 * configure: Rebuild.
4815 1999-01-18 Doug Evans <devans@casey.cygnus.com>
4817 * insn.scm (insn:syn): Delete.
4819 1999-01-15 Doug Evans <devans@casey.cygnus.com>
4821 * fr30.cpu (model fr30-1): Add state variables load-regs,
4822 load-regs-pending. Delete h-gr. Clean up operand names of all units.
4823 * m32r.cpu (model m32r/d): Clean up operand names of u-exec.
4824 (model m32rx): Ditto.
4825 (addi): Simplify function unit usage spec.
4826 (ld-plus): Rewrite operand names in function unit usage spec.
4827 (mvtachi,mvtachi-a,mvtaclo,mvtaclo-a,st-plus,st-minus): Ditto.
4828 * sim.scm (<unit>,gen-profile-code): Redo how operand names are
4829 overridden. Allow operand to appear in input and output spec.
4830 (<insn>,gen-profile-code): string-append -> string-list.
4832 * ifield.scm (define-ifield): Call pmacro-expand.
4833 (define-full-ifield,define-normal-ifield): Ditto.
4834 (define-multi-ifield,define-normal-multi-ifield): Ditto.
4836 * sim.scm (gen-argbuf-type): Keep leading part of ARGBUF same for
4837 with-scache and without-scache cases.
4839 1999-01-14 Doug Evans <devans@casey.cygnus.com>
4841 * fr30.cpu (fr30-1): Add state variable h-gr.
4842 Add units u-cti, u-load, u-store, u-ldm, u-stm.
4843 (all insns): First pass at providing cycle counts.
4844 * sim.scm (<unit>,gen-profile-code): Only check for output operands
4845 when initializing unit output operands, ditto for input operands.
4847 * insn.scm (insn-length,insn-length-bytes): New procs.
4848 * mach.scm (-adata-set-derived!): Use them.
4849 * sim-cpu.scm (-gen-sem-case): Ditto.
4851 * sim-cpu.scm (-gen-trace-record-type): PCADDR->IADDR.
4852 (-gen-write-case): Ditto.
4853 (gen-semantic-fn): Ditto. Split into two:
4854 -gen-scache-semantic-fn and -gen-no-scache-semantic-fn. Fix bitrot
4856 (-gen-all-semantic-fns): Renamed from -gen-all-semantics. Handle
4857 scache/no-scache appropriately. All callers updated.
4858 (-gen-sem-case): PCADDR->IADDR.
4859 * sim.scm (gen-argbuf-type): PCADDR->IADDR.
4861 * sim-decode.scm (*): Replace string-append,string-map with
4862 string-list,string-list-map where the result is sufficiently large.
4863 (-gen-decode-insn-table): Go back to simple version for non-scache
4864 case: just record IDESC in decoder tables and leave field extraction
4866 (-gen-decode-switch): Ditto.
4867 (-gen-decode-fn): Ditto.
4868 (-gen-extract-decls): Only emit format enum if with-scache?.
4869 * sim-model.scm (-gen-model-insn-fn): Extract ifields here in
4871 (-gen-model-insn-fns): Don't emit model fns for virtual insns.
4872 (-gen-insn-timing): Ditto.
4873 * sim.scm (gen-argbuf-type): Only output sem_fields union in
4876 * sim.scm (-hw-gen-fun-get): Use GET_<H-NAME> macro.
4877 (-hw-gen-fun-set): Use SET_<H-NAME> macro.
4879 1999-01-12 Doug Evans <devans@casey.cygnus.com>
4881 * cpu.scm (keep-mach-validate!): New proc.
4882 (include): New proc.
4884 * mach.scm (current-arch-mach-name-list): New proc.
4885 (-parse-arch-machs): Always return canonical form.
4886 (def-arch): Validate user specified machs to be kept.
4887 (def-mach-attr!): Simplify.
4889 * opcodes.scm (-opcodes-build-operand-instance-table?): New global.
4890 (option-init!): Initialize it.
4891 (option-set!): Set it.
4892 (gen-insn-table-entry): Emit 0 for operand instance ref if not
4893 output operand instance tables.
4894 (cgen-opc.in): Only output operand instance tables if asked to.
4896 * sim.scm (option-init!,option-set!): Clarify returned value.
4898 * sim.scm (gen-mach-bfd-name): Move from here.
4899 * utils-cgen.scm: To here.
4901 1999-01-11 Doug Evans <devans@casey.cygnus.com>
4903 * fr30.cpu (ilm): Fix comment field.
4904 (cond-branch): Remove explicit setting of COND-CTI, let cgen
4907 * rtl.scm (rtx-simplify,rtx-compile-time-constant?): New procs.
4908 (rtx-true?, rtx-false?): New procs.
4909 * rtx-funcs.scm (annul): Rename vpc to pc.
4910 (-rtx-traverse-if): Improve determination of whether then/else parts
4911 are conditionally executed.
4913 * sim.scm (-gen-argbuf-fields-union): Move definition of union to
4915 (gen-argbuf-type): Simplify generated definition (big sem_fields
4916 union moved outside).
4918 1999-01-11 Ben Elliston <bje@cygnus.com>
4920 * doc/porting.texi: New file.
4922 * doc/intro.texi: New file.
4923 (Layout): Use @example to insert preformatted ASCII text (such as
4924 diagrams). @code is inappropriate here.
4926 1999-01-06 Doug Evans <devans@casey.cygnus.com>
4928 * ifield.scm (-multi-ifield-read): Fix handling of insert/extract.
4930 * m32r.opc (print_hash): Cast dis_info.
4932 * sim-cpu.scm (-gen-hardware-types): Sanitize get/set macros.
4933 * sim.scm (<sim-hardware>,make!): Emit a comment for user-written
4936 1999-01-05 Doug Evans <devans@casey.cygnus.com>
4938 * i960.cpu (f-br-disp): Remove RELOC attribute.
4939 (f-ctrl-disp): Ditto.
4940 (callx-disp): set-quiet -> set for (reg h-gr 2).
4941 (callx-indirect,callx-indirect-offset): Ditto.
4943 * Makefile.am (gas-test): Fix dependencies.
4944 * Makefile.in: Rebuild.
4945 * cgen-gas.asm: File creation args are -<uppercase-letter>.
4946 * gas-test.scm (break-out-syntax,make-file-name): Delete.
4947 (gas-test-analyze!): Use syntax-break-out.
4948 * sim-test.scm (break-out-syntax,make-file-name): Delete.
4949 (sim-test-analyze!): Use syntax-break-out.
4950 (cgen-build.sh): Use gen-file-name.
4951 (cgen-allinsn.exp): Compute and pass all machs to run_sim_test.
4952 * insn.scm (syntax-break-out): New proc.
4953 * utils.scm (gen-file-name): New proc.
4955 * fixup.scm (nil,<?,<=?,>?): Delete.
4957 * utils.scm (count-true): Rewrite.
4959 * slib/sort.scm: Move sort.scm to slib directory.
4962 * iformat.scm (ifmt-compute!): Record empty format.
4964 * rtl.scm (semantic-in-out-operands): Simplify by moving several
4965 internal procs outside. Handle expression register numbers.
4968 * rtx-funcs.scm (annul): Rename new_pc to vpc.
4970 * sim-cpu.scm (-gen-cpu-reg-access-defns): Define access fns for
4972 (-gen-write-case): Pass vpc to SEM_BRANCH_FINI.
4973 (gen-semantic-fn,-gen-sem-case): Ditto.
4974 (cgen-cpu.c): Define WANT_CPU to @cpu@.
4975 (cgen-semantics.c): Ditto.
4976 * sim-decode.scm (-gen-extract-decls): Handle non-with-scache case.
4977 (gen-ifmt-argvars-defns): New proc.
4978 (gen-ifmt-argvars-assigns): New proc.
4979 (-gen-all-extractors): Delete FMT_EMPTY case, now handled like others.
4980 (-gen-decode-fn): Handle non-with-scache case.
4981 (cgen-decode.c): Define WANT_CPU to @cpu@.
4982 * sim-models.scm (-gen-mach-defns): Emit bfd name.
4983 (cgen-model.c): Define WANT_CPU to @cpu@.
4984 * sim.scm (gen-ifld-extract-argvar): New proc.
4985 (<sim-hardware>,make!): Don't emit [GS]ET_H_FOO macros for elements
4986 with FUN-ACCESS specified.
4987 (hw-fun-access?): New proc, as <hardware-base>:fun-access? method.
4988 (<hw-register>,gen-extract): New arg local?.
4989 (<hw-address>,gen-extract): Ditto.
4990 (-hw-cxmake-get): Handle non-with-scache case.
4991 (-hw-gen-set-quiet): Ditto.
4992 (<hw-address>,cxmake-get): Handle non-with-scache case.
4993 (gen-op-extract-argvar): New proc.
4994 (<operand>,gen-record-profile): Rewrite.
4995 (<operand>,gen-profile-code): Rewrite.
4996 (<unit>,gen-profile-code): Use -gen-argfld-ref.
4997 (gen-argbuf-fields-union): New proc.
4998 (gen-argbuf-type): Use it. Handle non-scache case.
5000 * *.scm: class:foo procs renamed to class-foo.
5001 * attr.scm (<attribute>): New member `for'.
5002 (-attr-parse): New first value in list for default if
5004 (non-bool-attr-list,attr:add!): Delete.
5005 (def-attr): Use current-attr-add!.
5006 (atlist-attr-value-no-default): New proc.
5007 (attr-lookup-default): Handle boolean attributes.
5008 (gen-attr-enum): New proc.
5009 (-attr-remove-meta-attrs-alist): New proc.
5010 (attr-nub): New proc.
5011 (current-attr-list-for): New proc.
5012 (current-{ifld,hw,op,insn}-attr-list): New procs.
5013 (attr-builtin!): New proc.
5014 * cpu.scm (keep-obj?): Rewrite.
5015 (-init-parse-cpu!): Call arch-init!.
5016 (-install-builtin!): Call {attr,mode,ifield,insn}-builtin!.
5017 (-finish-parse-cpu!): Call arch-finish!.
5018 * enum.scm (enum-list,enum:add,enum:lookup): Delete.
5019 (def-enum,def-full-enum): Use current-enum-add!.
5020 (gen-obj-list-enums): New proc.
5021 * hardware.scm (hw:add!,hw:lookup): Delete.
5022 (def-hardware,def-hardware-ext): Use current-hw-add!.
5023 (hw:std-attrs,hw:attr-list): Delete.
5024 (hardware-builtin!): Define builtin hardware attributes.
5025 * ifield.scm (ifld:add!,ifld:lookup): Delete.
5026 (def-ifield,def-full-ifield): Use current-ifld-add!.
5027 (ifld:std-attrs,ifld:attr-list): Delete.
5028 (ifield-builtin!): New proc.
5029 * insn.scm (insn:add!,insn:lookup): Delete.
5030 (def-full-insn): Use current-insn-add!.
5031 (insn:std-attrs): Delete.
5032 (insn-builtin!): New proc.
5033 * mach.scm (<arch>): New members attr-list,enum-list,op-list,
5035 (<arch-data>): New member machs.
5036 (current-attr-list,current-enum-list): New procs.
5037 (current-op-list,current-minsn-list): New procs.
5038 (current-{attr,enum,ifld,op,hw,insn,minsn,cpu,mach,model}-add!): Ditto.
5039 (current-{attr,enum,ifld,op,hw,insn,minsn,cpu,mach,model}-lookup):
5041 (-parse-arch-machs): New proc.
5042 (-arch-parse): New arg machs, all callers updated.
5043 (-arch-read): Handle machs spec.
5044 (def-arch): Define MACH attribute here.
5045 (mach-init!,mach-finish!): Not here.
5046 (cpu:add!,cpu:lookup): Delete.
5047 (def-cpu): Use current-cpu-add!.
5048 (<mach>): New member bfd-name.
5049 (-mach-parse): New arg bfd-name, all callers updated.
5050 (-mach-read): Handle bfd-name spec.
5051 (mach:add!,mach:lookup): Delete.
5052 (def-mach): Use current-mach-add!.
5053 (def-mach-attr!): New proc.
5054 (arch-init!): New proc.
5055 (arch-finish!): New proc. Reverse all object lists here.
5056 * minsn.scm (minsn-list,minsn-add!,minsn:lookup): Delete.
5057 (def-minsn): Use current-minsn-add!. Ignore minsn if mach not kept.
5058 (define-normal-macro-insn): Ignore minsn if mach not kept.
5059 * mode.scm (mode-builtin!): New proc.
5060 * model.scm (model:add!,model:lookup): Delete.
5061 (def-model): Use current-model-add!.
5062 * opcodes.scm (insn:attr-list): Delete.
5063 (attr-bool-gen-decl,attr-bool-gen-defn): New procs.
5064 (gen-attr-table-defn): Emit value for default.
5065 (gen-attr-table-defns): Emit bool_attr. Emit ifield attr table.
5066 (op:attr-list): Delete.
5067 (gen-operand-decls,gen-insn-decls): New proc.
5068 (compute-insn-attr-list): Delete.
5069 (cgen-opc.h): Reorganize and simplify.
5070 * operand.scm (-operand-list,operand-list,op:add,op:lookup): Delete.
5071 (def-operand,def-full-operand): Use current-op-add!.
5072 (op:std-attrs): Delete.
5073 (operand-enum): Delete.
5074 (operand-builtin!): Define builtin operand attrs.
5075 * utils-cgen.scm (sanitize): Update calls to lookup procs.
5076 (gen-attr-enum-decl): Use gen-obj-list-enums.
5077 (gen-obj-attr-defn): Renamed from gen-attr-defn, all callers updated.
5079 * fr30.cpu (define-arch): Add machs spec.
5080 (f-i4): SIGNED attribute -> !UNSIGNED.
5081 (f-disp8,f-disp9,f-disp10,f-s10,f-rel9,f-rel12): Ditto.
5082 (HASH-PREFIX): Define operand attribute.
5083 (NOT-IN-DELAY-SLOT): Define insn attribute.
5084 * i960.cpu (define-arch): Add machs spec.
5085 * m32r.cpu (define-arch): Add machs spec.
5086 (h-hi16): Remove UNSIGNED,SIGN-OPT attributes.
5087 (HASH-PREFIX): Define operand attribute.
5088 (FILL-SLOT): Define insn attribute.
5090 Thu Dec 17 17:15:06 1998 Dave Brolley <brolley@cygnus.com>
5092 * fr30.cpu (stilm): Correct mask for and operation.
5094 1998-12-17 Doug Evans <devans@casey.cygnus.com>
5096 * sim-test.scm (cgen-build.sh): Use `mach' to specify machs, not `cpu'.
5097 Replace START/EXIT with start/pass.
5098 (gen-sim-test): Delete ".text".
5100 Wed Dec 16 16:16:39 1998 Dave Brolley <brolley@cygnus.com>
5102 * fr30.cpu (cond-branch): Conditional branches not allowed in delay slots.
5104 Tue Dec 15 17:30:01 1998 Dave Brolley <brolley@cygnus.com>
5106 * fr30.cpu: Add NOT-IN-DELAY-SLOT as appropriate.
5107 (h-sbit): Make it FUN-ACCESS.
5108 (h-gr): Reorder so that general regs are always printed by number.
5110 1998-12-14 James E Wilson <wilson@wilson-pc.cygnus.com>
5112 * i960.cpu (flushreg): Use nop.
5114 1998-12-14 Doug Evans <devans@casey.cygnus.com>
5116 * m32r.cpu (default-alignment): Specify.
5117 * mach.scm (<arch-data>): New member default-alignment.
5118 (adata:default-alignment): New proc.
5119 (current-arch-default-alignment): New proc.
5120 (-arch-parse): New arg default-alignment.
5121 (parse-alignment): New proc.
5122 (-arch-read): Handle default-alignment spec.
5124 * rtx-funcs.scm (attr:): Pass attr-name through gen-c-symbol.
5126 * insn.scm (f-%): Delete.
5127 * sim-cpu.scm (gen-define-fields): Delete support for f-%. Can
5128 be readded if proved useful.
5129 (gen-extract-fields): Ditto. Use gen-ifetch.
5130 * sim.scm (<hw-memory>,cxmake-get): Pass pc to GETMEM*.
5131 (<hw-memory>,gen-set-quiet): Pass pc to SETMEM*.
5133 Mon Dec 14 16:20:59 1998 Dave Brolley <brolley@cygnus.com>
5135 * fr30.cpu (div2): Set zbit properly when remainder not zero.
5137 1998-12-14 Dave Brolley <brolley@cygnus.com>
5139 * fr30.cpu: Remove stub macros.
5140 (div1): Shift bits from mdl into mdh. Don't use addc/subc.
5141 (div2): Don't use addc/subc.
5143 1998-12-11 Doug Evans <devans@casey.cygnus.com>
5145 * utils-cgen.scm (gen-obj-sanitize): Only catch spelling errors
5148 Thu Dec 10 18:37:34 1998 Dave Brolley <brolley@cygnus.com>
5150 * fr30.cpu (div0s,div0u,div1,div2,div3,div4s): Implemented.
5152 Thu Dec 10 12:28:53 1998 Doug Evans <devans@canuck.cygnus.com>
5154 * cpu.scm (keep-all?): New proc.
5155 (assert-keep-all): Use it.
5156 * opcodes.scm (gen-ifmt-table-1): Use gen-obj-sanitize.
5157 * utils-cgen.scm (gen-obj-sanitize): Handle macro-insns.
5158 Check for spelling errors.
5160 1998-12-09 Doug Evans <devans@casey.cygnus.com>
5162 * rtl.scm (s-convop): Call -rtx-sem-mode.
5164 Tue Dec 8 10:58:38 1998 Doug Evans <devans@canuck.cygnus.com>
5166 * hardware.scm (-parse-hw-type): parse! no longer returns a result.
5167 (-parse-hw-profile): Ditto.
5168 (<hw-register>, parse!): Return `void' result.
5169 (<hw-pc>, parse!): Ditto.
5170 (<hw-memory>, parse!): Ditto.
5171 (<hw-immediate>, parse!): Ditto.
5172 (<hw-address>, parse!): Ditto.
5174 * ifield.scm (-ifield-parse): Validate encode/decode fields.
5175 (-ifld-parse-encode-decode): New proc.
5176 (-ifld-parse-encode,-ifld-parse-decode): New proc.
5177 (-multi-ifield-parse): Set encode/decode to #f.
5178 (ifld:decode-mode): New proc.
5179 * utils.scm (nub): Rewrite.
5180 * operand.scm (op-nub): Rewrite.
5181 * sim.scm (<ifield>, gen-type): Rewrite.
5182 (-gen-ifld-argbuf-defn): New proc.
5183 (gen-ifld-extract,gen-ifld-trace-extract): New procs.
5184 (<sim-hardware>): Forward gen-trace-extract onto `type'.
5185 Ditto for needed-iflds. gen-argbuf-defn renamed from gen-argbuf-elm.
5186 (<hardware-base>): New method needed-iflds. gen-argbuf-defn
5187 renamed from gen-argbuf-elm, return "". Rewrite gen-extract.
5188 New method gen-trace-extract.
5189 (<hw-register>): New method needed-iflds. gen-argbuf-defn renamed
5190 from gen-argbuf-elm, return "" if not caching register address.
5191 Rewrite gen-extract. New method gen-trace-extract.
5192 (<hw-address>): New methods needed-iflds, gen-argbuf-defn,
5193 gen-extract, gen-trace-extract, cxmake-get.
5194 (<hw-iaddress>): New method cxmake-get.
5195 (op-needed-iflds): New proc.
5196 (<operand>): Delete methods gen-argbuf-elm, gen-extract.
5197 (-gen-op-argbuf-defn): New proc.
5198 (gen-op-extract): Renamed from op:extract.
5199 (gen-op-trace-extract): Renamed from op:trace-extract.
5200 (fmt-extractable-operands): Renamed from fmt-semantic-operands
5202 (gen-argbuf-elm): Rewrite.
5203 * sim-decode.scm (-gen-record-args): Update.
5205 * sim.scm (c-cpu-macro): Renamed from cpu-deref. All uses changed.
5207 * pmacros.scm (-pmacro-expand): Handle procedural macros in
5208 argument position. Flag symbolic macros in function position as
5210 (define-pmacro): Handle quoting in definition of symbolic macros.
5211 (pmacro-trace): Call -pmacro-expand, not -pmacro-ref.
5213 Tue Dec 8 13:06:44 1998 Dave Brolley <brolley@cygnus.com>
5215 * fr30.opc (parse_register_list): Account for reverse masks
5217 (print_register_list): Ditto.
5218 (parse_low_register_list_ld): New function.
5219 (parse_hi_register_list_ld): New function.
5220 (parse_low_register_list_st): New function.
5221 (parse_hi_register_list_st): New function.
5222 (print_hi_register_list_ld): New function.
5223 (print_hi_register_list_st): New function.
5224 (print_low_register_list_ld): New function.
5225 (print_low_register_list_st): New function.
5226 * fr30.cpu (ldr15dr): Implement workaround.
5227 (ldm0,ldm1,stm0,stm1): Implemented.
5229 1998-12-08 Doug Evans <devans@casey.cygnus.com>
5231 * configure.in: Rename --with-hobbit to --with-cgen-hobbit.
5232 * configure: Regenerate.
5233 * Makefile.am (WITH_HOBBIT): Update.
5234 (cgen-hob.c): Remove Makefile dependency.
5235 (cgen.o): Depend on cgen-gh.h, config.h.
5236 * Makefile.in: Regenerate.
5237 * aclocal.m4: Regenerate.
5239 1998-12-07 James E Wilson <wilson@wilson-pc.cygnus.com>
5241 * i960.cpu, i960.opc: New files.
5243 Mon Dec 7 14:30:24 1998 Dave Brolley <brolley@cygnus.com>
5245 * fr30.opc (parse_register_number): New function.
5246 (parse_register_list): New function.
5247 (parse_low_register_list): Use parse_register_list.
5248 (parse_hi_register_list): Use parse_register_list.
5249 * fr30.cpu (sth): Fix assembler syntax. Implement more
5252 Fri Dec 4 16:07:13 1998 Doug Evans <devans@canuck.cygnus.com>
5254 * sim-cpu.scm (cgen-sem-switch.c): Update definition of TRACE_RESULT.
5255 * sim-decode.scm (-gen-record-args): Update call to TRACE_EXTRACT.
5256 * sim.scm (-op-gen-set-trace): Update call to TRACE_RESULT.
5257 (-op-gen-set-trace-parallel): Ditto.
5258 (gen-argbuf-type): New ARGBUF members trace_p,profile_p;
5260 * fr30.cpu (call,calld): Fix setting of pc.
5261 (f-op5): Fix start bit number.
5263 Fri Dec 4 17:06:28 1998 Dave Brolley <brolley@cygnus.com>
5265 * fr30.cpu (st): Fix operand ordering. Implement more
5268 Thu Dec 3 23:59:40 1998 Doug Evans <devans@canuck.cygnus.com>
5270 * ifield.scm (ifld:mode,ifld:hw-type): New procs.
5271 * iformat.scm (fmt-opcode-operands): Move to opcodes.scm.
5272 (fmt-semantic-operands): Move to sim.scm.
5273 * opcodes.scm (fmt-opcode-operands): Moved here from iformat.scm.
5274 * operand.scm (<hw-index>): New member `name'. All builders updated.
5275 (<hw-index>): New method get-name.
5276 (op-profilable?): Moved to sim.scm.
5278 * sim.scm (fmt-semantic-operands): Moved here from iformat.scm.
5279 (op-profilable?): Moved here from operand.scm.
5280 (gen-extract-type): Delete.
5281 (c-argfld-macro): Renamed from c-ifield-macro. All uses updated.
5282 (-gen-argfld-ref): New proc.
5283 (-gen-ifld-argfld-name): New proc.
5284 (gen-ifld-argfld-ref): Renamed from -gen-ifld-ref. All uses updated.
5285 (-gen-ifld-decoded-val): Renamed from -gen-ifld-raw-val.
5286 (-gen-hw-index-argfld-name,-gen-hw-index-argfld-ref): New procs.
5287 (<hardware-base>): Delete method gen-extract-type. New method
5289 (<hw-register): Ditto. Update method gen-extract.
5290 (<operand>, method gen-argbuf-elm): Rewrite.
5291 * rtl.scm (semantic-in-out-operands): Handle (ifield f-name).
5292 (s-cmpop): Fix handling of eq,ne for unsigned modes.
5293 * rtx-funcs.scm (eq,ne,lt,le,gt,ge,ltu,leu,gtu,geu): Update.
5295 * sim-decode.scm (-gen-record-args): Tweak.
5297 * sim.scm (gen-argbuf-elm): Handle case of all constant opcode fields.
5299 Thu Dec 3 14:23:27 1998 Dave Brolley <brolley@cygnus.com>
5301 * doc/porting: Fix typo: gas->sim.
5302 * fr30.opc (print_m4): New function.
5303 * fr30.cpu: Implemented many insns.
5305 Thu Dec 3 00:03:16 1998 Doug Evans <devans@canuck.cygnus.com>
5307 * rtl.scm (build-reg-operand!): Remove redundant setting of hw-name.
5309 * fr30.cpu (f-rel9): Delete RELOC attribute.
5310 (f-rel12): Add PCREL-ADDR attribute.
5311 (label9): Make an h-iaddr, not h-uint. Delete asm print spec.
5312 (label12): Delete PCREL-ADDR attribute. Make an h-iaddr, not h-sint.
5313 * fr30.opc (print_label9): Delete.
5315 * iformat.scm (ifmt-analyze): Check attributes derived from semantic
5316 code for CTI indicators.
5317 * insn.scm (insn-cti?): Simplify.
5318 * utils-cgen.scm (atlist:cti?): New proc.
5320 1998-11-30 Doug Evans <devans@casey.cygnus.com>
5322 * fr30.cpu (arch): default-insn-bitsize -> default-insn-word-bitsize.
5323 (f-i20-4,f-i20-16,f-i20): New fields.
5329 * fr30.opc (CGEN_DIS_HASH_SIZE,CGEN_DIS_HASH): Define in opc.h.
5330 * m32r.cpu (arch): default-insn-bitsize -> default-insn-word-bitsize.
5331 * mach.scm (arch-data): Ditto.
5332 (current-arch-default-insn-word-bitsize): Renamed from
5333 current-arch-default-insn-bitsize [ya, that's a pretty long name].
5334 (-arch-read): Update.
5336 * hardware.scm (hw:attr-list): Move here ...
5337 * opcodes.scm: ... from here.
5339 * ifield.scm (fld:bitrange): Delete.
5340 (fld:word-offset,fld:word-length): New procs.
5341 (ifield?): Use class-instance.
5342 (<ifield>, method field-start): Rewrite.
5343 (ifld:enum): New proc.
5344 (<ifield>, methods field-mask,field-value): Rewrite.
5345 (-ifield-parse): Rewrite.
5346 (<multi-ifield> support): Rewrite.
5347 (ifld-beyond-base?): Rewrite.
5348 (ifld:std-attrs): New variable.
5349 (ifld:attr-list): New proc.
5350 * iformat.scm (-compute-insn-mask): Rewrite.
5351 * insn.scm (-parse-insn-format): New arg errtxt, all callers updated.
5353 (-parse-insn-format-symbol,-parse-insn-format-list): New procs.
5354 * opcodes.scm (<hardware>): No longer forward gen-insert,gen-extract
5356 (<operand>): Ditto. Forward onto index instead.
5357 (gen-ifld-decls,gen-ifld-defns): New procs.
5358 (ifld:insert,ifld:extract): New procs.
5359 (<ifield>): New methods gen-insert, gen-extract.
5360 (<multi-ifield>): Ditto.
5361 (<hw-index>): Forward gen-insert,gen-extract onto value.
5362 (<hw-asm>): Delete insert/extract support.
5363 (<hw-register,hw-memory,hw-immediate>): Ditto.
5364 (gen-hash-defines): Use string-list.
5365 Define CGEN_MAX_IFMT_OPERANDS.
5366 (gen-switch): Use string-list,string-list-map.
5367 (gen-fget-switch,gen-fset-switch): Use string-list.
5368 (gen-parse-switch,gen-insert-switch): Ditto.
5369 (gen-extract-switch,gen-print-switch): Ditto.
5370 (gen-insert-switch,gen-extract-switch): New local `total_length'.
5371 (gen-ifmt-table-1,gen-ifmt-table): New procs.
5372 (gen-ifmt-entry): Renamed from gen-iformat-entry, rewrite.
5373 (gen-ivalue-entry): New proc.
5374 (gen-insn-table-entry): Use string-list. Update iformat,ivalue
5375 computation. Use 0 for operand ref table if ALIAS insn.
5376 (gen-minsn-table-entry): Use string-list.
5377 (gen-macro-insn-table): Temporarily emit format tables for ALIAS insns.
5378 (gen-opcode-open): Record address of ifield table.
5379 (cgen-opc.h): Call gen-ifld-decls.
5380 (cgen-opc.in): Call gen-ifld-defns, gen-ifmt-table.
5381 * types.scm (<bitrange>): New members word-offset,word-length.
5382 Delete member total-length. Delete methods start,mask,value.
5383 (bitrange:word-offset,bitrange:word-length): New procs.
5384 * sim-cpu.scm (gen-define-fields): Simplify.
5385 (gen-extract-fields): Simplify.
5386 * sim.scm (<ifield>, gen-ifld-extract): Rewrite.
5387 (<ifield>): New methods gen-ifld-extract-decl.
5388 Delete method gen-ifld-extract-beyond.
5389 (<multi-ifield>): New methods gen-ifld-extract-decl.
5390 (<multi-ifield>, method gen-ifld-extract): Implement.
5391 (-gen-ifld-extract-base,-gen-ifld-extract-beyond): New procs.
5392 (gen-ifld-exttact,gen-ifld-extract-beyond): Delete.
5394 * rtl.scm (-rtx-traverse-no-mode): Process operands.
5395 (-rtx-traverse-syntax-no-mode): New proc.
5396 (semantic-in-out-operands): Watch for `delay' and add DELAY-SLOT attr.
5397 (s-ifield): New proc.
5398 (s-shop): Don't prepend `unsigned' for unsigned modes.
5399 * rtx-funcs.scm (ifield): New rtx function.
5400 (ref,symbol): Use standard -rtx-traverse-syntax-no-mode.
5401 (delay): New rtx function.
5402 * insn.scm (insn:std-attrs): Add DELAY-SLOT.
5404 * cos.scm (-elm-make-method-getter): Fix typo.
5406 * utils.scm (backslash): Handle lists of strings.
5408 Thu Nov 26 11:47:29 1998 Dave Brolley <brolley@cygnus.com>
5410 * fr30.cpu (f-rel9): Correct for pc+2.
5411 (label9): Use print_label9.
5412 * fr30.opc (print_label9): New function.
5414 Tue Nov 24 11:19:35 1998 Dave Brolley <brolley@cygnus.com>
5416 * fr30.cpu: Change $r13,$r14,$r15 to uppercase.
5417 * fr30.opc (parse_low_register_list): Renamed.
5418 (parse_hi_register_list): Renamed.
5419 (print_hi_register_list): Renamed.
5420 (print_low_register_list): Renamed.
5422 Mon Nov 23 18:26:36 1998 Dave Brolley <brolley@cygnus.com>
5424 * fr30.cpu (f-rel9): Now a pc relative offset.
5426 1998-11-23 Doug Evans <devans@casey.cygnus.com>
5428 * opcodes.scm (op-asm): Move to here, from operands.scm.
5429 (<op-asm>, method parse!): Validate arguments.
5430 (<operand>, method gen-function-name): Fix thinko.
5431 * operand.scm (<operand>, method make!): Don't set op-asm here.
5432 * utils.scm (list-elements-ok?): New proc.
5434 * opcodes.scm: Clean up pass.
5436 1998-11-20 Doug Evans <devans@tobor.to.cygnus.com>
5438 * fr30.cpu (int): Defer saving of ps,pc and setting ibit,sbit to
5439 the fr30_int function.
5440 (h-cr): Remove PROFILE,CACHE-ADDR attributes.
5441 (h-dr): Add FUN-ACCESS attribute.
5443 1998-11-20 James E Wilson <wilson@wilson-pc.cygnus.com>
5445 * sim-model.scm (-gen-mach-defns): Use gen-sym instead of obj:name
5446 for C symbol for models array.
5448 Thu Nov 19 15:57:45 1998 Dave Brolley <brolley@cygnus.com>
5450 * fr30.opc (parse_reglist_low): New function.
5451 (parse_reglist_hi): New function.
5452 (print_reglist_low): New function.
5453 (print_reglist_hi): New function.
5454 * fr30.cpu: Finish remaining insn stubs.
5456 1998-11-19 Doug Evans <devans@tobor.to.cygnus.com>
5458 * sim.scm (-gen-extract-word): Handle fields shorter than entire word.
5460 * fr30.cpu (ldi32m): Don't use for disassembly.
5462 Wed Nov 18 21:34:41 1998 Dave Brolley <brolley@cygnus.com>
5464 * fr30.cpu (int): Implement it.
5466 1998-11-18 Doug Evans <devans@casey.cygnus.com>
5468 * rtx-funcs.scm (nop): Fix C code.
5470 * rtl.scm (semantic-in-out-operands): Fix setting of sem-attrs.
5472 * fr30.cpu (f-i32): New ifield.
5475 (ldi32m): New macro insn.
5476 (inte): Provide simple version for now.
5478 * sim-arch.scm: New file.
5479 * sim.scm: Move architecture support generation to sim-arch.scm.
5480 * cgen-sim.scm: Load sim-arch.scm.
5483 * hardware.scm (pc?) New proc.
5484 (class <hardware-base>): Rewrite method 'pc?.
5485 (class <hardware>): Forward 'pc? to the hardware type.
5486 (class <hw-pc>): New method 'pc?.
5488 Add support for variable length ISAs.
5489 * ifield.scm (ifld-beyond-base?): New proc.
5490 * m32r.cpu: Remove integral-insn? spec.
5491 * mach.scm (arch:derived,arch:set-derived!): New procs.
5492 (arch:app-data,arch:set-app-data!): New procs.
5493 (class <arch>): New members derived, app-data.
5494 (class <cpu>): Delete member integral-insn?.
5495 (cpu:integral-insn?): Delete.
5496 (-cpu-parse): Delete arg integral-insn?. All callers updated.
5497 (-cpu-read): Delete integral-insn? support.
5498 (state:decode-assist): Delete.
5499 (state:int-insn?): Delete.
5500 (<derived-arch-data>): New class.
5501 (-adata-set-derived!): New proc.
5502 (mach-finish!): Call it.
5503 * opcodes.scm (<hw-asm>, method gen-extract): Pass pc to C handler.
5504 (gen-operand-instance): Add COND_REF support.
5505 (gen-operand-instance-table): Ditto.
5506 (gen-hash-defines): Update.
5507 (gen-extract-switch): Update type of `insn_value' arg.
5508 (gen-opcode-open): Update type of `value' arg of dis_hash_insn.
5509 * rtl.scm (-rtx-ref-type): Renamed from -rtx-set?. All callers
5511 (semantic-in-out-operands): Compute UNCOND-CTI,COND-CTI from rtl.
5512 * sim-cpu.scm (gen-define-fields): Create vars to hold insn value
5513 beyond the base insn (for large insns).
5514 (-gen-extract-beyond-var-list): New proc.
5515 (gen-extract-fields): Handle large insns.
5516 (-gen-write-case): Update sem_arg computation.
5517 Update initial vpc computation.
5518 (gen-semantic-fn): Ditto. Update type of `insn'.
5519 (-gen-sem-case): Update sem_arg computation.
5520 Update initial vpc computation.
5521 * sim.scm (<ifield>, gen-ifld-extract): Renamed from `extract'.
5522 (-gen-extract-word): New proc.
5523 (<ifield>): New method gen-ifld-extract-beyond.
5524 (gen-ifld-extract-beyond): New proc.
5525 * types.scm (bitrange-overlap?): New proc.
5527 * utils.scm (bits->bytes): New proc.
5528 (bytes->bits): New proc.
5530 Move extraction support into decoder.
5531 * sim-cpu.scm (-gen-record-args,-gen-record-profile-args,
5532 -gen-extractor,-gen-all-extractors,cgen-extract.c): Move extraction
5533 support to sim-decode.scm.
5534 * sim-decode.scm (-gen-decode-insn-table): Change decoder data to
5535 be array of IDESC,FMT entries. Make the array const.
5536 (-gen-gcc-label-table): Make array const.
5537 (-gen-decode-switch): Branch to extraction code after insn has been
5539 (-gen-decode-insn-globals): Delete extract handler from
5541 (gen-decode-fn): Add extraction support.
5542 (-gen-sem-fn-decls): Delete extraction fn decls.
5543 (-gen-idesc-decls): Update @cpu@_decode decl.
5544 (-gen-idesc-init-fn): Delete extraction support.
5545 (-gen-extract-decls): New proc.
5547 * sim-cpu.scm (cgen-sem-switch.c): Update switch test.
5548 (sim-finish!): Surround pbb only code with #if WITH_SCACHE_PBB.
5550 * sim-decode.scm (build-decode-table-entry): New arg invalid insn.
5551 All callers updated.
5552 (table-entry:make): Record insn value as insn object, not name.
5555 * hobbit.scm (path_basename): Renamed from `basename' to avoid
5556 collision with C function.
5557 (path_dirname): Similarily.
5558 * hobbit.c,hobbit.h: Rebuild.
5560 Wed Nov 18 11:26:17 1998 Dave Brolley <brolley@cygnus.com>
5562 * fr30.cpu (dir2r15-predec-stub): Reference to R15 must be indirect.
5564 Mon Nov 16 19:19:50 1998 Dave Brolley <brolley@cygnus.com>
5566 * fr30.cpu: Implement more instruction stubs.
5568 Thu Nov 12 19:20:28 1998 Dave Brolley <brolley@cygnus.com>
5570 * fr30.cpu: Implement more instruction stubs.
5572 Tue Nov 10 10:53:55 1998 Doug Evans <devans@canuck.cygnus.com>
5574 * rtl.scm (-rtx-expr-mode-name): Handle sequence locals.
5576 * rtx-funcs.scm (zflag:,zflag,nflag:,nflag): New rtx fns.
5578 * operand.scm (<pc>, method make!): FAKE renamed to SEM-ONLY.
5579 (op:std-attrs): Ditto.
5580 * opcodes.scm (gen-operand-instance): Ditto.
5581 (gen-switch): Ditto.
5582 * m32r.cpu (condbit,accum): Update.
5583 * fr30.cpu (nbit,vbit,zbit,cbit): Update.
5585 Mon Nov 9 14:30:51 1998 Doug Evans <devans@seba.cygnus.com>
5587 * enum.scm (-enum-read): Fix typo.
5589 * iformat.scm (-ifmt-search-key): Simplify a little.
5591 Mon Nov 9 12:07:56 1998 Dave Brolley <brolley@cygnus.com>
5593 * doc/porting: semantics.c -> sem.c.
5594 * Makefile.in: Regenerate.
5595 * fr30.cpu (add): Change ADD to add. Add more registers and set
5596 status bits on 'add' instruction.
5598 Fri Nov 6 18:15:05 1998 James E Wilson <wilson@wilson-pc.cygnus.com>
5600 * sim.scm (-gen-arch-model-decls): Default MAX_UNITS to 1 instead
5603 Fri Nov 6 17:43:16 1998 Doug Evans <devans@seba.cygnus.com>
5605 * minsn.scm (minsn:enum): Update, call current-arch-name.
5607 * pmacros.scm (-pmacro-expand): Make `cep' a variable.
5609 * Makefile.am (CGEN_HOB_INPUT_FILES): Add pmacros.scm,enum.scm,
5610 mach.scm,model.scm,types.scm,ifield.scm,minsn.scm.
5611 (ARCH,CGEN,CGENFLAGS): New variables.
5612 (gas-test,sim-test): New rules.
5613 * Makefile.in: Rebuild.
5614 * configure.in (arch): Define.
5615 * configure: Rebuild.
5617 * cgen-hob.scm (*UNSPECIFIED*): Renamed from UNSPECIFIED.
5618 * All .scm files: Ditto.
5620 * dev.scm: Fix gas-test call to cpu-load.
5621 * gas-test.scm: Clean up pass to remove bit-rot.
5622 * sim-test.scm: Ditto.
5624 * enum.scm (read-enum): Fix typo in `vals' handling.
5626 * hardware.scm (-parse-hw-type): Fix typo.
5627 (parse-hardware): Rename `asm' to `aasm' to avoid GCC reserved word.
5628 (def-hardware,define-normal-hardware): Ditto.
5630 * hobbit.scm (*case-sensitive-flag*): New configuration variable.
5631 (display-var): Use it.
5632 * hobbit.c: Rebuild.
5633 * hobbit.h: Rebuild.
5635 * ifield.scm (-ifield-read): Rename local `length' to `length-' to
5636 avoid hobbit problem.
5637 * mach.scm (-cpu-read): Rename local `parallel-insns' to
5638 `parallel-insns-' to avoid hobbit problem.
5640 Fri Nov 6 17:19:12 1998 Doug Evans <devans@canuck.cygnus.com>
5642 * m32r.opc (parse_hi16): Fix call to cgen_parse_address.
5643 (parse_slo16,parse_ulo16): Ditto.
5644 * opcodes.scm (<hw-address>, method gen-parse): Ditto.
5646 Thu Nov 5 13:04:53 1998 Doug Evans <devans@canuck.cygnus.com>
5648 * Makefile.am (GUILELDFLAGS,GUILELDADD): New variables.
5649 (cgen_LDFLAGS,cgen_LDADD,hob.x): Use them.
5650 * Makefile.in: Rebuild.
5651 * insn.scm (define-normal-insn): Expand pmacros.
5652 * mode.scm (<mode>): New member `host?'. All uses updated.
5653 (mode:host?): New proc.
5654 * rtl.scm (define-rtx-node): Make a syntax proc, not a macro.
5655 (define-rtx-syntax-node,define-rtx-macro-node): Ditto.
5656 (define-rtx-dual-mode): Ditto.
5657 (s-index-of): New proc.
5658 (s-unop): Use plain C for host mode operations.
5659 (s-binop,s-shop,s-boolifop,s-cmpop): Ditto.
5660 * rtx-funcs.scm (index-of): New rtx function.
5661 * sim.scm (<hw-index>): New method cxmake-get.
5663 Wed Nov 4 23:58:08 1998 Doug Evans <devans@seba.cygnus.com>
5665 * sim-cpu.scm (-gen-engine-decls): Delete.
5667 Wed Nov 4 18:40:47 1998 Dave Brolley <brolley@cygnus.com>
5669 * doc/rtl (Example): Correct Typo.
5670 * doc/porting: Add 'make dep' step to opcodes port instructions.
5671 * fr30.opc: New file.
5672 * fr30.cpu: New file.
5674 Wed Oct 28 13:36:15 1998 Doug Evans <devans@canuck.cygnus.com>
5676 * configure.in: Handle guile $exec_prefix = $prefix/foo.
5677 * Makefile.am (GUILEINCDIR): New variable.
5679 * configure: Regenerate.
5680 * Makefile.in: Ditto.
5681 * aclocal.m4: Ditto.
5683 Mon Oct 19 13:19:34 1998 Doug Evans <devans@seba.cygnus.com>
5685 * sim-cpu.scm (cgen-extract.c): Delete #include cpu-sim.h
5686 (cgen-semantics.c): Ditto.
5687 * sim-decode.scm (cgen-decode.c): Delete #include cpu-sim.h,cpu-opc.h.
5688 * sim-model.scm (cgen-model.c): Ditto.
5689 * sim.scm (cgen-arch.h): Delete #include @arch@-opc.h.
5690 (cgen-arch.c): Delete #include cpu-sim.h,cpu-opc.h.
5692 * opcodes.scm (read-cpu.opc): Handle empty file.
5694 * cos.scm (-elm-make-method-setter): Fix typo.
5696 * cpu.scm (-init-parse-cpu!): Call types-init!.
5697 (-finish-parse-cpu!): Call types-finish!.
5698 * ifield.scm (<ifield>): Delete members start,length.
5699 New member bitrange.
5700 (<ifield>, methods field-start,field-length): Update.
5701 (fld:start): New arg insn-len. All callers updated.
5702 (<ifield>, methods field-mask,field-value): Update.
5703 (-ifield-parse): Update.
5704 (ifield-init!): Update.
5705 * iformat.scm (compute-insn-length): Simplify.
5706 (compute-insn-mask): Update.
5707 * insn.scm (insn:value): Update.
5708 * mach.scm (<arch-data>): New members default-insn-bitsize,insn-lsb0?.
5709 (current-arch-default-insn-bitsize): New proc.
5710 (current-arch-insn-lsb0?): New proc.
5711 (-arch-parse,-arch-read): Update.
5712 (<cpu>): New member file-transform.
5713 (-cpu-parse,-cpu-read): Update.
5714 * opcodes.scm (<hw-asm>, method gen-extract): Pass ex_info to handler.
5715 (gen-hash-defines): Define CGEN_INSN_LSB0_P.
5716 (CGEN_INT_INSN_P): Renamed from CGEN_INT_INSN.
5717 (gen-insert-switch): Update args of @arch@_cgen_insert_operand.
5718 (gen-extract-switch): Update args of @arch@_cgen_extract_operand.
5719 (gen-opcode-open): Set CGEN_OPCODE_INSN_ENDIAN.
5720 * operand.scm (op:start): Update call to field-start method.
5721 * sim-decode.scm (opcode-slots): New arg lsb0?.
5722 (fill-slot!,build-slots): Ditto.
5723 (build-decode-table-entry,build-decode-table-guts): Ditto.
5724 (gen-decoder-table,gen-decoder-switch,gen-decoder): Ditto.
5725 (gen-decode-fn): Ditto.
5726 (cgen-decode.c): Update call to gen-decode-fn.
5727 * sim.scm (gen-argbuf-type): Move `semantic' to cpu specific part.
5728 (-gen-cpu-header,-gen-cpuall-includes): New procs.
5729 (cgen-cpuall.h): Call -gen-cpuall-includes.
5730 * types.scm (<bitrange>): New class.
5731 (types-init!,types-finish!): New procs.
5732 * utils-cgen.scm (parse-number): New proc.
5733 (parse-boolean): New proc.
5734 * utils.scm (word-value): Renamed from shift-bits, rewrite.
5735 (word-mask): Rewrite.
5736 * m32r.cpu (define-arch): New fields default-insn-bitsize,insn-lsb0?.
5737 (m32rxf): New field `file-transform'.
5738 * m32r.opc (my_print_insn): print_int_insn -> print_insn.
5740 * hobbit.h: Fix include file name.
5742 Fri Oct 9 16:58:10 1998 Doug Evans <devans@seba.cygnus.com>
5744 * slib: New directory of slib files used by cgen/hobbit.
5745 * hobbit.scm: New file.
5746 * hobbit.c: New file.
5747 * hobbit.h: New file.
5748 * hobscmif.h: New file.
5749 * hob-main.c: New file.
5750 * hobslib.scm: New file.
5752 * Makefile.am: Add support for compiling hobbit, and using compiled
5753 version of hobbit to compile cgen.
5754 * Makefile.in: Regenerate.
5755 * configure.in: Support --with-hobbit.
5756 * configure: Regenerate.
5757 * acconfig.h (WITH_HOBBIT): Add.
5758 * config.in: Regenerate.
5760 * rtl.scm: New file, was cdl-c.scm.
5761 Definition of rtx funcs moved to rtx-funcs.scm.
5762 (semantic-in-out-operands): Rewrite to compute object form of
5764 * rtx-funcs.scm: New file.
5766 * cgen-gh.c: #include "config.h".
5767 (gh_cadddr,gh_cddddr): New fns.
5768 (cgh_vector_to_list): New fn.
5769 (cgh_map1,cgh_map2,cgh_map1_fn2): Rewrite.
5770 (cgh_init): Prefix qsort procs with "cgh-".
5771 * cgen-gh.h (gh_cadddr,gh_cddddr,cgh_vector_to_list): Declare.
5772 * cgen.c: #include "config.h".
5774 * attr.scm (bitset-attr?): New proc.
5775 (<bitset-attribute>, method parse-value): Value syntax changed from
5776 (val1 val2 ...) to val1,val2,....
5777 (<bitset-attribute>): New method gen-value.
5778 (<integer-attribute>): New method gen-value.
5779 (<enum-attribute>): New method gen-value.
5780 * cpu.scm: Disable debugging evaluator if (not (defined? 'DEBUG-EVAL)).
5781 (<reader>): New class.
5782 (CURRENT-ARCH,CURRENT-READER): New globals.
5783 (keep-mach?): Move here from mach.scm.
5784 * mach.scm (arch,arch-comment,arch-default-mach): Delete.
5785 (<arch>): New class.
5786 (<arch-data>): New class.
5787 (<cpu>): Make subclass of <ident>.
5788 (*ENDIAN* variables): Delete.
5789 (process-state-vars): Delete.
5790 (mach-finish!): Add `base' value to MACH attribute.
5791 * hardware.scm (<hardware>): Make subclass of <ident>.
5792 (hw:std-attrs): New global.
5793 (hw-profilable?): New proc.
5794 * ifield.scm (<ifield>): Make subclass of <ident>.
5795 (sort-ifield-list): Move here from iformat.scm.
5796 * iformat.scm (<iformat>): Renamed from <insn-format>.
5797 Make subclass of <ident>.
5798 (-ifmt-search-key): Include cti? in categorization of formats.
5799 (ifmt-analyze): Compile semantics (turn to object form).
5800 * insn.scm (<insn>): Make subclass of <ident>.
5801 New member compiled-semantics.
5802 (insn:std-attrs): Add SKIP-CTI, VIRTUAL.
5803 * mode.scm (<mode>): Make subclass of <ident>.
5805 * model.scm (<unit>): Make subclass of <ident>.
5806 New members inputs,outputs.
5807 (<model>): Make subclass of <ident>. New member state.
5808 (-unit-parse): Parse inputs,outputs.
5809 (<iunit>): New class.
5810 (-insn-timing-parse-model): New proc.
5811 (parse-insn-timing): Function unit spec rewritten.
5812 * operand.scm (<operand>): Make subclass of <ident>.
5813 New members sem-name,num,cond? New method gen-pretty-name.
5814 (hw-index-scalar): New global.
5815 (op-nub-hw): Move here from rtl.scm.
5816 (op:lookup-sem-name,op-profilable?): New procs.
5817 * pmacros.scm: Rewrite to pass through hobbit.
5818 * utils-cgen.scm (gen-attr-defn): Simplify using new gen-value method.
5819 * utils.scm (logit): Make a macro.
5820 (bit-set?): Rewrite.
5821 (high-part): Rewrite.
5823 * m32r.cpu (define-arch): Move to top of file.
5824 (cpu family m32rbf): Renamed from m32rb.
5825 (model m32r/d): Function unit spec rewritten.
5826 (all insns): Ditto. Replace UBI with BI.
5828 * opcodes.scm (gen-attr-table-decls): Declare
5829 @arch@_cgen_hw_attr_table.
5830 (gen-attr-table-defns): Generate hw attribute table.
5832 * sim-cpu.scm (-gen-engine-decls): New proc.
5833 (-gen-model-decls): New proc.
5834 (gen-parallel-exec-type): Add new member `written' to struct parexec.
5835 (-gen-record-args): Add SEM_BRANCH_INIT_EXTRACT if cti insn.
5836 (-gen-record-profile-args): Simplify.
5837 (-gen-parallel-sem-case): Delete.
5838 (gen-semantic-fn): Emit SEM_BRANCH_{INIT,FINI} if cti insn.
5839 New local `written'. Delete profiling code.
5840 (-gen-sem-case): Ditto.
5841 (-uncond-written-mask,-any-cond-written?): New procs.
5842 (cgen-sem-switch.c): Include duplicates of insns that can be executed
5843 parallelly or serially, and write-back handlers for all parallel insns.
5844 * sim-decode.scm (-gen-decode-insn-globals): Add parallel write-back
5845 support to initialization of struct insn_sem.
5846 (-gen-idesc-decls): Add parallel write-back support to struct idesc.
5847 (-gen-insn-sem-type): Add parallel write-back support to struct
5849 (-gen-idesc-init-fn): Add support for virtual insns.
5850 Add parallel write-back support.
5851 * sim-model.scm (gen-model-profile-fn): Delete
5852 (-gen-model-fn-decls): New proc.
5853 (-gen-model-insn-fn,-gen-model-insn-fns): New procs.
5854 (-gen-model-init-fn): New proc.
5855 (-gen-mach-defns): Initialize insn-name lookup and fast/full engine_fn
5856 members in @mach@_init_cpu.
5857 (cgen-model.c): Generate model handlers for each insn.
5858 * sim.scm (gen-define-field-macro): Cti insns handled differently.
5859 (<hw-pc>): New method gen-write.
5860 (<hw-register>, method gen-write): New arg `mode'.
5861 (<hw-register>): Delete method gen-record-profile!.
5862 New method gen-profile-index-type.
5863 (<hw-memory>, method gen-write): New arg `mode'.
5864 (<hw-address>, method gen-extract): Delete.
5865 (<hw-address>, method gen-write): New arg `mode'.
5866 (<hw-index>, method get-write-index): Rewrite.
5867 (<pc>, method cxmake-get-direct): Delete.
5868 (<pc>): New method cxmake-get. Comment out methods
5869 gen-set-quiet,gen-set-trace.
5870 (<operand>): New methods gen-argbuf-elm,gen-profile-argbuf-elm,
5871 gen-profile-index-type,gen-profile-code.
5872 Delete method gen-pretty-name. Rewrite method gen-write.
5873 Delete method cxmake-get-direct.
5874 (-op-gen-set-trace): Update `written'.
5875 (-op-gen-set-trace-parallel): Ditto.
5876 (-gen-hw-index-raw,-gen-hw-index): Handle strings.
5877 (gen-cpu-insn-enum-decl): Add extra entries for parallel
5878 insns and their write-back handlers.
5879 (insn-op-lookup): New proc.
5880 (<unit>): New method gen-profile-code.
5881 (<iunit>): New method gen-profile-code.
5882 (gen-argbuf-elm): Add profiling elements.
5883 (gen-argbuf-type): Define cti insns separately in their own struct.
5884 Add member `addr_cache' to this struct. Add entries for pbb virtual
5885 insns. Move semantic entries here from struct scache.
5886 Delete everything from struct scache except argbuf.
5887 (<insn>, method gen-profile-locals): Rewrite.
5888 (<insn>, method gen-profile-code): Rewrite.
5889 (sim-finish!): Create virtual pbb insns.
5891 Tue Sep 15 15:22:02 1998 Doug Evans <devans@canuck.cygnus.com>
5893 * m32r.cpu (h-cr): Add bbpc,bbpsw.
5894 (h-sm,h-bsm,h-ie,h-bie,h-bcond,h-bpc): Delete.
5895 (h-psw,h-bpsw,h-bbpsw): Define.
5896 (rte,trap): Handle bbpc,bbpsw.
5897 * opcodes.scm (max-operand-instances): Fix typo.
5898 * sim.scm (<hardware-base>, method 'fun-access?): Don't force virtual
5899 hardware elements to be fun-access.
5900 (-hw-gen-fun-get,-hw-gen-fun-set): Fix handling of scalars.
5902 Wed Sep 9 15:28:55 1998 Doug Evans <devans@canuck.cygnus.com>
5904 * m32r.cpu (trap): Pass `pc' to m32r_trap.
5906 Mon Aug 10 14:29:33 1998 Doug Evans <devans@canuck.cygnus.com>
5908 * opcodes.scm (gen-insn-table-entry): Comment out generation of cdx.
5910 Mon Aug 3 11:51:04 1998 Doug Evans <devans@seba.cygnus.com>
5912 * m32r.cpu (cpu m32rb): Renamed from m32r to distinguish from
5914 (mach m32r): Update.
5916 * mach.scm (mach:supports?): New proc.
5917 * sim-cpu.scm (gen-cpu-reg-access-{decls,defns}): Renamed from
5918 gen-reg-access-{decls,defns}.
5919 * sim.scm (gen-reg-access-{decl,defn}): New procs.
5920 (gen-mach-bfd-name): New proc.
5921 (gen-arch-reg-access-{decls,defns}): New procs.
5922 (cgen-arch.[ch]): Output register access cover fns.
5924 * hardware.scm (hardware-builtin!): Set print handlers for
5926 * m32r.opc (parse_hash,parse_hi16,parse_slo16,parse_ulo16): New arg
5928 (CGEN_PRINT_NORMAL,print_hash): Ditto.
5929 (my_print_insn): Ditto. Delete args buf, buflen.
5930 * opcodes.scm: Pass `od' (opcode-descriptor) to all C handlers.
5931 (-hw-asm-specs): Add `handlers' spec.
5932 (-parse-hw-asm): Lookup class at runtime. If no asm-spec, use
5934 (<hw-asm>): Renamed from <opval>. New elements parse,insert,extract,
5936 (<hw-asm>, gen-insert,gen-extract,gen-print): Use them.
5937 (<hw-asm>, parse!): New method.
5938 (gen-insn-table-entry): Print semantics.
5939 (gen-opcode-open): Renamed from gen-opcode-table.
5941 * utils.scm (string-write): No longer a macro.
5942 (-string-write): Handle procedure args.
5943 * opcodes.scm: Update all calls to string-write.
5944 * sim-cpu.scm: Ditto.
5945 * sim-decode.scm: Ditto.
5946 * sim-model.scm: Ditto.
5949 Fri Jul 31 14:40:38 1998 Doug Evans <devans@seba.cygnus.com>
5951 * opcodes.scm (cgen-ibd.h,gen-extra-ibd.h): New procs.
5952 (-gen-insn-builders,-gen-insn-builder): New procs.
5954 Fri Jul 24 11:38:59 1998 Doug Evans <devans@canuck.cygnus.com>
5956 * opcodes.scm (gen-syntax-entry): Fix bracketing for -Wall.
5957 (gen-opcode-table): Properly terminate comment.
5959 Tue Jul 21 10:51:42 1998 Doug Evans <devans@seba.cygnus.com>
5962 Clean up pass over everything, so starting fresh.