]> sourceware.org Git - cgen.git/log
cgen.git
17 years ago2007-02-05 Dave Brolley <brolley@redhat.com>
Dave Brolley [Mon, 5 Feb 2007 19:46:38 +0000 (19:46 +0000)]
2007-02-05  Dave Brolley  <brolley@redhat.com>

        * *mep*: New cpu description for Toshiba Media Processor (MeP).

17 years ago2007-02-05 Dave Brolley <brolley@redhat.com>
Dave Brolley [Mon, 5 Feb 2007 19:43:30 +0000 (19:43 +0000)]
2007-02-05  Dave Brolley  <brolley@redhat.com>

        * opc-asmdis.scm (-gen-init-asm-fn): Include CGEN_ASM_INIT_HOOK
        in the generated code for @arch@_cgen_init_asm if it is defined.

        * Contribute the following changes:
        2005-04-05  Richard Sandiford  <rsandifo@redhat.com>

        * attr.scm (<string-attribute>): New attribute class.
        (attr-kind): Handle <string-attribute>.
        (parse-simple-attribute): New function.
        (<boolean-attribute> 'parse-value): Use parse-simple-attribute.
        (<bitset-attribute> 'parse-value): Likewise.
        (<boolean-attribute> 'parse-value): Likewise.
        (<enum-attribute> 'parse-value): Likewise.
        (<string-attribute> 'parse-value): New function.
        (-attr-parse): Handle <string-attribute>.
        (-attr-read): Likewise.
        (<string-attribute> 'gen-value-for-defn-raw): New function.
        (<string-attribute> 'gen-value-for-defn): New function.

18 years ago2006-11-07 Dave Brolley <brolley@redhat.com>
Dave Brolley [Tue, 7 Nov 2006 21:12:08 +0000 (21:12 +0000)]
2006-11-07  Dave Brolley  <brolley@redhat.com>

        * sid-model.scm (gen-model-unit-fn-decl): Use symbol->string where
        necessary.

18 years ago2006-10-18 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 18 Oct 2006 18:04:40 +0000 (18:04 +0000)]
2006-10-18  Dave Brolley  <brolley@redhat.com>

        * Contribute the following changes:

        2006-07-11  Dave Brolley  <brolley@redhat.com>

        * cpu/sh64-compact.cpu (movual, movual2): New insns.
        (movcol): New insn.
        * cpu/sh.cpu (sh4a-nofpu-models): New pmacro.
        * sid.scm (-op-gen-delayed-set-maybe-trace): If delay used, note the
        hardware or memory mode which was used.
        * sid-cpu.scm (hw-need-write-stack?): New function.
        (-gen-hw-stream-and-destream-fns): Compute stack-regs. Use it to
        identify hardware which uses write stacks.
        (useful-mode-names): Renamed to write-stack-memory-mode-names.
        Initialized to an empty list.
        (-gen-writestacks, -gen-reset-fn, -gen-unified-write-fn): Use
        hw-need-write-stack?.
        * hardware.scm (used-in-delay-rtl?): New member of <hardware-base>.
        (define-getters <hardware-base>): Define used-in-delay-rtl?.
        (used-in-delay-rtl?): New method of <hardware-base>.
        (hw-used-in-delay-rtl?): New function.

        2006-06-20  Dave Brolley  <brolley@redhat.com>

        * sid.scm (gen-attr-type): Removed.
        * cpu/sh.cpu (SH2a-nofpu-MACH): Add sh5.
        (SH2a-MACH): Add sh5.
        (sh2a-nofpu-models): Add units for sh5.
        (sh2a-fpu-models): Likewise.

        2006-06-15  Dave Brolley  <brolley@redhat.com>

        * cpu/sh-sim.cpu: New file.
        * cpu/sh-sid.cpu: New file.
        * cpu/sh64-media.cpu (dshci): Add xtiming argument and splice it in.
        (All fields): Remap for (insn-lsb0? #f)
        (All insns): Add timing specs.
        * cpu/sh64-compact.cpu (dshcf,dshcop): Replace 'ignored' argument with
        'xattrs' and .splice it in.
        (32-BIT-INSN,SH4-GROUP,SH4A-GROUP): New insn attributes.
        (h-frc,h-drc): Add PROFILE attribute.
        (h-fpccr): Removed.
        (h-vbr): New hardware.
        (All fields): Remap for (insn-lsb0? #f)
        (f-imm20-hi,f-imm20-lo,f-imm20): New fields.
        (fr0,fmovm,fmovn,imm20,imm12x4,imm12x8,vbr): New operands.
        (fpscr): Use h-fpscr.
        (fsdm,fsdn): Use h-fsd.
        (dshci): Add xtiming argument and splice it in.
        (dr,xd): pmacros removed.
        (All insns): Add timing specs, *-MACH attribibutes,
        SH4{A}-GROUP attributes.
        (divu,mulr,ldc-vbr,ldc-sr,ldcl-vbr,movl12,movl13,stcl-vbr): New insns.
        * cpu/sh.cpu): Include sh-sid.cpu or sh-sim.cpu depending on whether
        we're being processed for sim or sid.
        (define-arch): Change insn-lsb0? for #f. Add machs sh2e, sh2a-fpu,
        sh2a-nofpu, sh4-nofpu, sh4a-nofpu, sh4a, sh4al.
        (define-isa compact): Add (isa-parallel-insns 2).
        (define-isa media): Add (isa-parallel-insns 2). Add
        (default-insn-word-bitsize 32). Change base-insn-bitsize to 32.
        (define-mach): Add sh2e, sh2a-fpu, sh2a-nofpu, sh4-nofpu, sh4a-nofpu,
        sh4a, sh4al
        (SH2-MACH, SH2e-MACH, SH2a-nofpu-MACH, SH2a-MACH, SH3-MACH)
        (SH3e-MACH, SH4-nofpu-MACH, SH4-MACH, SH4a-nofpu-MACH, SH4a-MACH)
        (SH4al-MACH, SH5-MACH): New pmacros.
        (common-units, common-fp-units, sh2a-nofpu-units, sh2a-fpu-units)
        (sh4-nofpu-units, sh4-common-fp-units, sh5-media-units)
        (sh5-media-fp-units, common-model, common-model-with-fp)
        (sh3-model, sh3e-model): New pmacros.
        (define-model sh2): New model.
        (define-model sh2e): New model.
        (define-model sh3): New model.
        (define-model sh3e): New model.
        (define-model sh2a-nofpu): New model.
        (define-model sh2a-fpu): New model.
        (define-model sh4-nofpu): New model.
        (define-model sh4): New model.
        (define-model sh4a-nofpu): New model.
        (define-model sh4a): New model.
        (define-model sh4al): New model.
        (define-model sh5-media): New model.
        (define-model sh5): Add all units.
        (all-models, sh2e-models, sh2a-nofpu-models, sh2a-fpu-models)
        (sh3-models, sh3e-models, sh4-nofpu-models, sh4-models)
        (sh5-media-models, shad-models, fsqrt-models): New pmacros.
        (h-pc): Add PROFILE attribute.
        (h-fr): Likewise.
        (h-tr): Likewise.
        (h-gr,h-grc): Likewise.
        (h-cr): Set h-sr in setter.
        (h-frbit): Get/Set h-fpscr.
        (h-szbit,h-prbit): Likewise.
        (h-fp): Add PROFILE attribute. Now indexed by even indices 0-62.
        Add getter and setter.
        (h-fc): Add PROFILE attribute. Now indexed by quad indices 0-60.
        Adjust getter and setter.
        (h-fmtx): Add PROFILE attribute. Now indexed by 0, 16, 32 and 48.
        Adjust getter and setter.
        (h-dr): Add PROFILE attribute. Now indexed by even indices 0-62.
        (h-fsd,h-fmov): New hardware.

18 years agoFix spelling typos
Nick Clifton [Mon, 24 Jul 2006 13:49:48 +0000 (13:49 +0000)]
Fix spelling typos

18 years ago2006-07-14 Dave Brolley <brolley@redhat.com>
Dave Brolley [Fri, 14 Jul 2006 18:49:32 +0000 (18:49 +0000)]
2006-07-14  Dave Brolley  <brolley@redhat.com>

        * sid.scm (-op-gen-delayed-set-maybe-trace): If delay used, note the
        hardware or memory mode which was used.
        * sid-cpu.scm (hw-need-write-stack?): New function.
        (-gen-hw-stream-and-destream-fns): Compute stack-regs. Use it to
        identify hardware which uses write stacks.
        (useful-mode-names): Renamed to write-stack-memory-mode-names.
        Initialized to an empty list.
        (-gen-writestacks, -gen-reset-fn, -gen-unified-write-fn): Use
        hw-need-write-stack?.
        * hardware.scm (used-in-delay-rtl?): New member of <hardware-base>.
        (define-getters <hardware-base>): Define used-in-delay-rtl?.
        (used-in-delay-rtl?): New method of <hardware-base>.
        (hw-used-in-delay-rtl?): New function.

18 years ago2006-06-20 Dave Brolley <brolley@redhat.com>
Dave Brolley [Tue, 20 Jun 2006 19:51:11 +0000 (19:51 +0000)]
2006-06-20  Dave Brolley  <brolley@redhat.com>

        * sid.scm (gen-attr-type): Removed.

18 years ago2006-05-10 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 10 May 2006 17:49:38 +0000 (17:49 +0000)]
2006-05-10  Dave Brolley  <brolley@redhat.com>

        * read.scm (cmd-if): Provide the correct argument to reader-error. Add
        support for (if (application-is? <appname>) (...) (...)).

18 years ago2006-05-10 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 10 May 2006 16:24:53 +0000 (16:24 +0000)]
2006-05-10  Dave Brolley  <brolley@redhat.com>

        * read.scm (-cgen): Add trailing "/" to arch-path.
        * utils.scm (dirname): Removed. dirname is a primitive function.

18 years ago2006-05-09 Dave Brolley <brolley@redhat.com>
Dave Brolley [Tue, 9 May 2006 19:00:12 +0000 (19:00 +0000)]
2006-05-09  Dave Brolley  <brolley@redhat.com>

        * sid-cpu.scm (-gen-hw-stream-and-destream-fns): Use symbol->string instead of
        object->string om the mode.
        (-hw-gen-write-stack-decl): Likewise.

18 years ago2006-05-09 Dave Brolley <brolley@redhat.com>
Dave Brolley [Tue, 9 May 2006 18:41:13 +0000 (18:41 +0000)]
2006-05-09  Dave Brolley  <brolley@redhat.com>

        * utils-sim.scm (-gen-decode-insn-entry): Generated code should shift
        'entire_insn' not 'base_insn'.

18 years ago2006-05-09 Dave Brolley <brolley@redhat.com>
Dave Brolley [Tue, 9 May 2006 18:33:04 +0000 (18:33 +0000)]
2006-05-09  Dave Brolley  <brolley@redhat.com>

        * sid-model.scm (-gen-model-class-decls): Handle the case where insn-timing
        is null.
        * sim.scm (-gen-arch-model-decls): Likewise.

18 years ago2006-05-09 Dave Brolley <brolley@redhat.com>
Dave Brolley [Tue, 9 May 2006 18:24:22 +0000 (18:24 +0000)]
2006-05-09  Dave Brolley  <brolley@redhat.com>

        * utils.scm (dirname): New function.

18 years ago2006-05-09 Dave Brolley <brolley@redhat.com>
Dave Brolley [Tue, 9 May 2006 18:07:51 +0000 (18:07 +0000)]
2006-05-09  Dave Brolley  <brolley@redhat.com>

        * sid-cpu.scm (-gen-scache-semantic-fn): Generate code to set
        abuf->written if profiling.

18 years ago2006-05-09 Dave Brolley <brolley@redhat.com>
Dave Brolley [Tue, 9 May 2006 16:17:07 +0000 (16:17 +0000)]
2006-05-09  Dave Brolley  <brolley@redhat.com>

        * read.scm (include): Use arch-path as file location.
        (arch-path): Define it with a default setting.
        (-cgen): Update arch-path when "-a" option is specified.

18 years ago * configure.in: Remove AC_ARG_PROGRAM.
Steve Ellcey [Fri, 5 May 2006 17:18:25 +0000 (17:18 +0000)]
* configure.in: Remove AC_ARG_PROGRAM.
* configure: Regenerate with autoconf 2.59.

18 years ago * dev.scm (cload) <SID-SIMULATOR>: New case, duplicated from
Hans-Peter Nilsson [Tue, 14 Mar 2006 12:48:21 +0000 (12:48 +0000)]
* dev.scm (cload) <SID-SIMULATOR>: New case, duplicated from
SIMULATOR.

18 years agoFix parseing functions to return an error message if the parse failed
Nick Clifton [Fri, 3 Mar 2006 15:57:44 +0000 (15:57 +0000)]
Fix parseing functions to return an error message if the parse failed

18 years agoAdd support for the Infineon XC16X.
Nick Clifton [Fri, 17 Feb 2006 14:36:22 +0000 (14:36 +0000)]
Add support for the Infineon XC16X.

18 years agoFix %hi() operator for 64-bit hosts.
Nick Clifton [Fri, 10 Feb 2006 12:05:12 +0000 (12:05 +0000)]
Fix %hi() operator for 64-bit hosts.

18 years ago * sid-cpu.scm (-gen-hw-stream-and-destream-fns): Stringize mode
Nathan Sidwell [Wed, 28 Dec 2005 18:59:24 +0000 (18:59 +0000)]
* sid-cpu.scm (-gen-hw-stream-and-destream-fns): Stringize mode
for concatenation.
(-hw-gen-write-stack-decl): Likewise.

18 years ago * utils-sim.scm (-gen-decode-insn-entry): Correct last change for
Hans-Peter Nilsson [Mon, 5 Dec 2005 01:27:23 +0000 (01:27 +0000)]
* utils-sim.scm (-gen-decode-insn-entry): Correct last change for
non-(adata-integral-insn? CURRENT-ARCH) case.

19 years ago2005-10-28 Dave Brolley <brolley@redhat.com>
Dave Brolley [Fri, 28 Oct 2005 19:30:02 +0000 (19:30 +0000)]
2005-10-28  Dave Brolley  <brolley@redhat.com>

        Contribute the following changes:
        2005-09-19  Dave Brolley  <brolley@redhat.com>

        * attr.scm (gen-value-for-defn-raw): New methods.
        (gen-value-for-defn): Don't test for 'SID-SIMULATOR. Call
        gen-value-for-defn-raw.
        * sid.scm (gen-obj-attr-sid-defn): Call gen-value-for-defn-raw.

        2002-12-13  Dave Brolley  <brolley@redhat.com>

        * utils-cgen.scm (gen-attr-type): Moved from sid.scm.
        (-gen-attr-accessors): New function.
        (gen-obj-attr-defn): Update terminating initializer.
        (gen-obj-attr-end-defn): New function.
        * sid.scm (gen-attr-type): Moved to utils-cgen.scm.
        * sid-cpu.scm (cgen-desc.h): Generate code to include
        "opcode/cgen-bitset.h"
        * intrinsics.scm (kept-insn-isas): Correct the extraction of the isa
        name.
        * desc.scm ('gen-defn): Update terminating initializer.
        * desc-cpu.scm (gen-ifld-decls): Call -gen-attr-accessors. Update
        terminatinig initializer.
        (gen-hw-decls): Ditto.
        (gen-operand-decls): Ditto.
        (gen-insn-decls): Ditto.
        (-gen-hash-defines): Generate code to include "opcde/cgen-bitset.h"
        (gen-insn-table): Update terminating initializer.
        (-gen-cpu-open): Update generation of @arch@_cgen_rebuild_tables,
        @arch@_cgen_cpu_open, @arch@_cgen_cpu_close.
        * attr.scm (charmask-bytes): New function.
        (bitset-attr->charmask): New function.
        (<bitset-attribute>): Handle isa-attributes specially. Also handle
        differences for SID-SIMULATOR.
        (<integer-attribute>): Handle differences for SID-SIMULATOR.
        (<enum-attribute>): Ditto.

19 years ago * cpu/m32r.opc (parse_hi16): Do not assume a 32-bit host word size.
Alan Modra [Thu, 27 Oct 2005 06:57:56 +0000 (06:57 +0000)]
* cpu/m32r.opc (parse_hi16): Do not assume a 32-bit host word size.

19 years ago* operand.scm (-anyof-merge-syntax): Print a more useful error
DJ Delorie [Mon, 24 Oct 2005 22:56:45 +0000 (22:56 +0000)]
* operand.scm (-anyof-merge-syntax): Print a more useful error
message.

19 years ago* m32r.opc (parse_slo16): Fix bad application of previous patch.
Nick Clifton [Wed, 19 Oct 2005 14:44:16 +0000 (14:44 +0000)]
* m32r.opc (parse_slo16): Fix bad application of previous patch.

19 years agom32r.opc (parse_slo16): Better version of previous patch.
Nick Clifton [Tue, 18 Oct 2005 07:53:17 +0000 (07:53 +0000)]
m32r.opc (parse_slo16): Better version of previous patch.

19 years agom32r.opc (parse_slo16): Do not assume a 32-bit host word size.
Nick Clifton [Fri, 14 Oct 2005 08:33:27 +0000 (08:33 +0000)]
m32r.opc (parse_slo16): Do not assume a 32-bit host word size.

19 years ago2005-08-02 Dave Brolley <brolley@redhat.com>
Dave Brolley [Tue, 2 Aug 2005 19:30:10 +0000 (19:30 +0000)]
2005-08-02  Dave Brolley  <brolley@redhat.com>

        * rtl-c.scm (s-unop): Don't dereference
        CGEN_CPU_FPU (current_cpu)->ops->xxxxx in the generated code.
        (s-binop, s-convop, s-cmpop): Likewise.

19 years ago2005-07-29 Dave Brolley <brolley@redhat.com>
Dave Brolley [Fri, 29 Jul 2005 19:25:33 +0000 (19:25 +0000)]
2005-07-29  Dave Brolley  <brolley@redhat.com>

        * sid-cpu.scm (-gen-scache-semantic-fn): Generate a declation of 'writte
n'
        if with-profile or with-parallel-write.
        (cgen-semantics.cxx): Make the @prefix@ namespace available if with-para
llel.

19 years ago2005-07-29 Dave Brolley <brolley@redhat.com>
Dave Brolley [Fri, 29 Jul 2005 18:51:24 +0000 (18:51 +0000)]
2005-07-29  Dave Brolley  <brolley@redhat.com>

        * operand.scm (op:new-mode): Convert (obj:name op) to a string for
        string-append.

19 years ago * cpu/fr30.opc (print_register_list): Correct format strings.
Alan Modra [Fri, 15 Jul 2005 13:57:38 +0000 (13:57 +0000)]
* cpu/fr30.opc (print_register_list): Correct format strings.
* cpu/ip2k.opc: Likewise.

19 years agoFix compile time warnings from a GCC 4.0 compiler
Nick Clifton [Tue, 5 Jul 2005 15:07:45 +0000 (15:07 +0000)]
Fix compile time warnings from a GCC 4.0 compiler

19 years agoUpdate function declarations to ISO C90 formatting
Nick Clifton [Fri, 1 Jul 2005 11:16:30 +0000 (11:16 +0000)]
Update function declarations to ISO C90 formatting

19 years ago2005-06-15 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 15 Jun 2005 21:28:19 +0000 (21:28 +0000)]
2005-06-15  Dave Brolley  <brolley@redhat.com>

        * sid-cpu.scm (-gen-hw-stream-and-destream-fns): New function.
        (cgen-cpu.h): Call it.

        Contributed on behalf of Graydon Hoare
        2001-06-05  graydon hoare  <graydon@redhat.com>

        * utils.scm (foldl): Define.
        (foldr): Define.
        (filter): Define.
        (union): Define.
        (intersection): Simplify.
        * sid.scm : Set APPLICATION to SID-SIMULATOR.
        (-op-gen-delayed-set-maybe-trace): Define.
        (<operand> 'gen-set-{quiet,trace}): Delegate to
        op-gen-delayed-set-quiet etc. Note: this is still a little tangled
        up and needs cleaning.
        (-with-parallel?): Hardwire with-parallel to #t.
        (<operand> 'cxmake-get): Replace with lookahead-aware code
        * sid-decode.scm: Remove per-insn writeback fns.
        (-gen-idesc-decls): Redefine sem_fn type.
        * sid-cpu.scm (gen-write-stack-structure): Replace parexec stuff
        with write stack stuff.
        (cgen-write.cxx): Replace per-insn writebacks with single write
        stack writeback. Add write stack reset function.
        (-gen-scache-semantic-fn insn): Replace parexec stuff with write
        stack stuff.
        * rtl-c.scm (xop): Clone operand into delayed operand if #:delayed
        estate attribute set.
        (delay): Set #:delayed attribute to calculated delay, update
        maximum delay of cpu, check (delay ...) usage.
        * operand.scm (<operand>): Add delayed slot to <operand>.
        * mach.scm (<cpu>): Add max-delay slot to <cpu>.
        * dev.scm (load-sid): Set APPLICATION to SID-SIMULATOR.
        * doc/rtl.texi (Expressions): Add section on (delay ...).

19 years ago* pmacros.scm (-pmacro-upcase, -pmacro-downcase): Handle symbols
Jim Blandy [Mon, 13 Jun 2005 22:28:30 +0000 (22:28 +0000)]
* pmacros.scm (-pmacro-upcase, -pmacro-downcase): Handle symbols
as well as strings.

19 years agogas:
Zack Weinberg [Tue, 7 Jun 2005 17:54:14 +0000 (17:54 +0000)]
gas:
* cgen.c, cgen.h, tc.h, write.c, config/obj-coff.c
* config/tc-a29k.c, config/tc-alpha.c, config/tc-alpha.h
* config/tc-arc.c, config/tc-arc.h, config/tc-arm.c
* config/tc-arm.h, config/tc-avr.c, config/tc-avr.h
* config/tc-cris.c, config/tc-crx.c, config/tc-d10v.c
* config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h
* config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.h
* config/tc-frv.c, config/tc-frv.h, config/tc-h8300.c
* config/tc-h8500.c, config/tc-hppa.c, config/tc-hppa.h
* config/tc-i370.c, config/tc-i370.h, config/tc-i386.c
* config/tc-i386.h, config/tc-i860.c, config/tc-i860.h
* config/tc-i960.c, config/tc-i960.h, config/tc-ia64.c
* config/tc-ip2k.c, config/tc-ip2k.h, config/tc-iq2000.c
* config/tc-iq2000.h, config/tc-m32r.c, config/tc-m32r.h
* config/tc-m68hc11.c, config/tc-m68hc11.h, config/tc-m68k.c
* config/tc-m68k.h, config/tc-m88k.c, config/tc-maxq.c
* config/tc-mcore.c, config/tc-mcore.h, config/tc-mips.c
* config/tc-mips.h, config/tc-mmix.c, config/tc-mn10200.c
* config/tc-mn10300.c, config/tc-msp430.c, config/tc-ns32k.c
* config/tc-openrisc.h, config/tc-or32.c, config/tc-or32.h
* config/tc-pdp11.c, config/tc-pj.c, config/tc-pj.h
* config/tc-ppc.c, config/tc-ppc.h, config/tc-s390.c
* config/tc-s390.h, config/tc-sh64.c, config/tc-sh.c
* config/tc-sh.h, config/tc-sparc.c, config/tc-sparc.h
* config/tc-tahoe.c, config/tc-tic30.c, config/tc-tic4x.c
* config/tc-tic54x.c, config/tc-tic80.c, config/tc-v850.c
* config/tc-v850.h, config/tc-vax.c, config/tc-vax.h
* config/tc-w65.c, config/tc-xstormy16.c, config/tc-xstormy16.h
* config/tc-xtensa.c, config/tc-z8k.c:
Replace all instances of the string "_apply_fix3" with
"_apply_fix".
* po/POTFILES.in, po/gas.pot: Regenerate.
bfd:
* coff-i386.c: Change md_apply_fix3 to md_apply_fix in comment.
cgen:
* doc/porting.texi: Change all mention of md_apply_fix3 and
gas_cgen_md_apply_fix3 to md_apply_fix and gas_cgen_md_apply_fix
respectively.

19 years ago2005-05-18 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 18 May 2005 21:52:57 +0000 (21:52 +0000)]
2005-05-18  Dave Brolley  <brolley@redhat.com>

        * utils-sim.scm (-gen-decode-default-entry): New function.
        (-gen-decode-insn-entry): Now takes 'invalid-insn' argument. Generate
        code to check that all opcodes bits match.
        (-gen-decoder-switch): Use -gen-decode-default-entry.

19 years ago* sid.scm (gen-ifetch): Require BITSIZE to be exactly the size
Jim Blandy [Tue, 17 May 2005 01:47:16 +0000 (01:47 +0000)]
* sid.scm (gen-ifetch): Require BITSIZE to be exactly the size
fetched by one of our GETIMEM* methods.
* utils-gen.scm (-extract-chunk-specs): Always fetch full
base-insn-sized chunks.

19 years agoUpdate the address and phone number of the FSF organization
Nick Clifton [Tue, 10 May 2005 10:21:04 +0000 (10:21 +0000)]
Update the address and phone number of the FSF organization

19 years ago* pprint.scm, cos-pprint.scm: Add documentation.
Jim Blandy [Fri, 6 May 2005 22:54:37 +0000 (22:54 +0000)]
* pprint.scm, cos-pprint.scm: Add documentation.

* pprint.scm (pprint): Don't wipe out elide-table after each call.

19 years ago* pprint.scm, cos-pprint.scm: New files.
Jim Blandy [Fri, 6 May 2005 21:43:40 +0000 (21:43 +0000)]
* pprint.scm, cos-pprint.scm: New files.

19 years agoInitialise value to zero to avoid a compile time warning.
Nick Clifton [Mon, 4 Apr 2005 10:09:54 +0000 (10:09 +0000)]
Initialise value to zero to avoid a compile time warning.

19 years agoChange wording of error message to "percent-operand" from "%operand" as the
Nick Clifton [Fri, 18 Mar 2005 16:12:36 +0000 (16:12 +0000)]
Change wording of error message to "percent-operand" from "%operand" as the
latter confuses xgettext into thinking that it is a C printf formating directive,
which prevents proper translation.

19 years agoFix compile time warnings generated by gcc 4.0
Nick Clifton [Wed, 23 Feb 2005 16:04:38 +0000 (16:04 +0000)]
Fix compile time warnings generated by gcc 4.0

19 years ago * desc-cpu.scm (gen-ifld-decls): Move cgen_ifld_table from here..
Alan Modra [Tue, 22 Feb 2005 00:31:31 +0000 (00:31 +0000)]
* desc-cpu.scm (gen-ifld-decls): Move cgen_ifld_table from here..
(cgen-desc.h): ..to here, after opcode/cgen.h include.

19 years ago2005-02-16 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 16 Feb 2005 21:52:33 +0000 (21:52 +0000)]
2005-02-16  Dave Brolley  <brolley@redhat.com>

        * utils.scm: Update copyright years.
        * utils-gen.scm (gen-ifld-extract): Pass base-length to -gen-ifld-extrac
t-base.
        * sid.scm (gen-ifetch): Handle the case where bitsize == 24.

19 years ago2005-02-16 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 16 Feb 2005 19:45:36 +0000 (19:45 +0000)]
2005-02-16  Dave Brolley  <brolley@redhat.com>

        * operand.scm (-derived-operand-parse): Move logit message from level 1
        to level 2.

19 years agoFix compile time warning messages
Nick Clifton [Tue, 15 Feb 2005 12:52:01 +0000 (12:52 +0000)]
Fix compile time warning messages

19 years ago* guile.scm (cgen-call-with-debugging): Doc fix.
Jim Blandy [Tue, 15 Feb 2005 09:03:59 +0000 (09:03 +0000)]
* guile.scm (cgen-call-with-debugging): Doc fix.

19 years agoMake backtraces work more reliably.
Jim Blandy [Tue, 15 Feb 2005 09:01:49 +0000 (09:01 +0000)]
Make backtraces work more reliably.
* guile.scm: Set up debugging parameters, and enable debugging and
source positions while loading.
(cgen-call-with-debugging, cgen-debugging-stack-start): New
functions.
* read.scm: Don't set debugging parameters here.
(catch-with-backtrace): Function deleted.
(-cgen): Simply note the presence or absence of the -b option.
Pass the flag to cgen-call-with-debugging, so debugging is turned
off here if the user didn't request it, for faster computation.
(cgen): Call cgen-debugging-stack-start here, instead of
catch-with-backtrace.

* Makefile.am (GUILE): Explicitly load guile.scm here, and leave a
trailing -s.
(desc, html, opcodes, sim-arch, sim-cpu, gas-test, sim-test):
Don't write out the trailing -s here.
* Makefile.in: Regenerated.
* cgen-doc.scm, cgen-gas.scm, cgen-stest.scm): Don't load
fixup.scm here; let the caller decide which Scheme's customization
file to preload.
* dev.scm: Load guile.scm, not fixup.scm.
* fixup.scm: Deleted; contents have all moved to guile.scm.
* README: Doc fix.

* guile.scm (debug-write): New function.

19 years ago* pmacros.scm (pmacros-init!): For .eval macros, use eval1 as the
Jim Blandy [Mon, 14 Feb 2005 17:48:25 +0000 (17:48 +0000)]
* pmacros.scm (pmacros-init!): For .eval macros, use eval1 as the
transformer procedure, not eval.  Transformer procedures take one
argument.

19 years agoFix compile time warning building iq2000-asm.c
Nick Clifton [Fri, 11 Feb 2005 16:09:29 +0000 (16:09 +0000)]
Fix compile time warning building iq2000-asm.c

19 years agocgen/ChangeLog:
Jim Blandy [Wed, 9 Feb 2005 22:04:03 +0000 (22:04 +0000)]
cgen/ChangeLog:
2005-02-09  Jim Blandy  <jimb@redhat.com>

* cgen-sim.scm (load-files): Don't load fixup.scm.  (See
corresponding change in the sim/common directory.)

sim/common/ChangeLog:
2005-02-09  Jim Blandy  <jimb@redhat.com>

* Make-common.in (CGEN): Load guile.scm, and include a trailing
'-s' argument.
(CGEN_FLAGS_TO_PASS): Include single quotes around the reference
to $(CGEN), to ensure that the command substitution happens where
the variable is referenced in the submake, not when the submake's
arguments are expanded.
(cgen.sh): Be prepared for the 'cgen' argument to contain spaces.
(arch, cpu, decode, cpu-decode, defs, desc): Place the name of the
application Scheme script directly after ${cgen}; don't precede it
with a -s.

19 years agocgen/ChangeLog:
Jim Blandy [Tue, 8 Feb 2005 04:52:23 +0000 (04:52 +0000)]
cgen/ChangeLog:
2005-02-07  Jim Blandy  <jimb@redhat.com>

* cgen-opc.scm: Don't load fixup.scm here.  (See corresponding
changes in the opcodes directory.)

opcodes/ChangeLog:
2005-02-07  Jim Blandy  <jimb@redhat.com>

* Makefile.am (CGEN): Load guile.scm before calling the main
application script.
* Makefile.in: Regenerated.
* cgen.sh: Be prepared for the 'cgen' argument to contain spaces.
Simply pass the cgen-opc.scm path to ${cgen} as its first
argument; ${cgen} itself now contains the '-s', or whatever is
appropriate for the Scheme being used.

19 years agocgen/ChangeLog:
Jim Blandy [Mon, 7 Feb 2005 18:51:31 +0000 (18:51 +0000)]
cgen/ChangeLog:
2005-02-07  Jim Blandy  <jimb@redhat.com>

* guile.scm: New file, containing Guile-specific definitions and
adaptations.  This is loaded by the app-specific shell scripts.
Initially identical to fixup.scm.
* cgen-sid.scm: Don't load fixup.scm here.

sid/component/cgen-cpu/ChangeLog:
2005-02-02  Jim Blandy  <jimb@redhat.com>

* CGEN.sh.in: Request on the command line that cgen/guile.scm be
loaded before cgen-sid.scm; cgen-sid.scm no longer loads fixup.scm.

19 years ago* cos.scm: Profile elm-xset! when requested, not elm-set!; the
Jim Blandy [Mon, 7 Feb 2005 18:36:44 +0000 (18:36 +0000)]
* cos.scm: Profile elm-xset! when requested, not elm-set!; the
latter is a macro.

19 years ago* utils.scm (string/symbol->append): Renamed from 'concat'.
Jim Blandy [Thu, 27 Jan 2005 20:31:12 +0000 (20:31 +0000)]
* utils.scm (string/symbol->append): Renamed from 'concat'.
* opcodes.scm (gen-switch): Use new name.
* insn.scm (-sub-insn-make!): Same.
* rtl.scm (rtx-dump): Same.
* semantics.scm (semantic-compile): Same.

19 years ago* opcodes.scm (gen-switch): Use concat instead of string-map.
Jim Blandy [Thu, 20 Jan 2005 23:12:50 +0000 (23:12 +0000)]
* opcodes.scm (gen-switch): Use concat instead of string-map.

19 years ago* utils.scm (concat): New function.
Jim Blandy [Thu, 20 Jan 2005 22:57:10 +0000 (22:57 +0000)]
* utils.scm (concat): New function.
* insn.scm (-sub-insn-make!): Use concat instead of string-map.
* rtl.scm (rtx-dump): Same.
* semantics.scm (semantic-compile): Same.

19 years ago* utils-cgen.scm (parse-name): Don't assume that string-map can be
Jim Blandy [Thu, 16 Dec 2004 21:24:07 +0000 (21:24 +0000)]
* utils-cgen.scm (parse-name): Don't assume that string-map can be
applied to symbols.  Process everything as strings, and then
convert to a symbol at the end.

19 years ago* read.scm (debug-repl): Temporarily redirect input and output to
Jim Blandy [Thu, 16 Dec 2004 21:23:13 +0000 (21:23 +0000)]
* read.scm (debug-repl): Temporarily redirect input and output to
/dev/tty while we debug, so we don't interfere with whatever CGEN
is reading or writing.
* utils.scm (setter-getter-fluid-let, with-input-and-output-to):
New functions.

19 years agoAdded quotes around macro arguments so that they will work with newer versions
Nick Clifton [Mon, 15 Nov 2004 14:30:13 +0000 (14:30 +0000)]
Added quotes around macro arguments so that they will work with newer versions
 of guile.

20 years agoAdd an index operand to some of the iq2000 co-processor instructions
Nick Clifton [Wed, 27 Oct 2004 09:30:07 +0000 (09:30 +0000)]
Add an index operand to some of the iq2000 co-processor instructions

20 years ago* cpu/xstormy16.cpu (movhmemgr): Use hmem8, not lmem8.
DJ Delorie [Thu, 22 Jul 2004 01:49:27 +0000 (01:49 +0000)]
* cpu/xstormy16.cpu (movhmemgr): Use hmem8, not lmem8.

20 years ago * cpu/iq2000.opc (parse_jtargq10): Add ATTRIBUTE_UNUSED on unused args.
Stan Cox [Wed, 14 Apr 2004 21:29:33 +0000 (21:29 +0000)]
* cpu/iq2000.opc (parse_jtargq10): Add ATTRIBUTE_UNUSED on unused args.
(parse_jtargq10, iq2000_cgen_isa_register, parse_mlo16): Declare.

20 years agoFix bug parsing shigh(0xffff8000)
Nick Clifton [Tue, 30 Mar 2004 09:29:16 +0000 (09:29 +0000)]
Fix bug parsing shigh(0xffff8000)

20 years ago2004-03-22 Dave Brolley <brolley@redhat.com>
Dave Brolley [Mon, 22 Mar 2004 20:44:16 +0000 (20:44 +0000)]
2004-03-22  Dave Brolley  <brolley@redhat.com>

        * utils.scm (copyright-fsf): Update copyright years.
        (copyright-red-hat): Ditto.
        * sid.scm (-op-gen-set-trace): Generate trace code before semantic
        code.
        (-op-gen-set-trace-parallel): Ditto.

20 years ago2004-02-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.dot.com>
Ben Elliston [Fri, 13 Feb 2004 02:55:15 +0000 (02:55 +0000)]
2004-02-10  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.dot.com>

* cpu/m32r.opc (my_print_insn): Fixed incorrect output when
disassembling codes for 0x*2 addresses.

20 years ago2004-01-29 Dave Brolley <brolley@redhat.com>
Dave Brolley [Thu, 29 Jan 2004 20:20:48 +0000 (20:20 +0000)]
2004-01-29  Dave Brolley  <brolley@redhat.com>

        * decode.scm (-opcode-slots): For short insns, generate 'opcode' with
        zeroes in the extra bit positions and generate 'opcode-mask' with ones
        in the extra bit positions.

20 years agooops - omitted from previous delta
Nick Clifton [Mon, 15 Dec 2003 15:00:20 +0000 (15:00 +0000)]
oops - omitted from previous delta

20 years agoAdd PIPE_O attribute to "pop" instruction.
Nick Clifton [Mon, 15 Dec 2003 12:19:12 +0000 (12:19 +0000)]
Add PIPE_O attribute to "pop" instruction.

20 years ago * cpu/openrisc.opc (openrisc_sign_extend_16bit): Don't rely on
Alan Modra [Thu, 4 Dec 2003 08:33:25 +0000 (08:33 +0000)]
* cpu/openrisc.opc (openrisc_sign_extend_16bit): Don't rely on
"short" being 16 bit.
(parse_hi16): Likewise.  Fix type-punned pointer warnings too, and
internationalize error message.
(parse_lo16): Likewise.  Remove useless code.

20 years agoAdd support for the M32R2 processor.
Nick Clifton [Wed, 3 Dec 2003 17:38:50 +0000 (17:38 +0000)]
Add support for the M32R2 processor.

21 years ago2003-10-26 Dave Brolley <brolley@redhat.com>
Dave Brolley [Sun, 26 Oct 2003 19:40:30 +0000 (19:40 +0000)]
2003-10-26  Dave Brolley  <brolley@redhat.com>

        * sid-decode.scm (-gen-record-profile-args): Test trace_counter_p
        and final_insn_count_p. Don't test WITH_PROFILE_MODEL_P.
        (-gen-extract-fn): Call -gen-record-profile-args.

21 years ago2003-10-26 Dave Brolley <brolley@redhat.com>
Dave Brolley [Sun, 26 Oct 2003 18:57:19 +0000 (18:57 +0000)]
2003-10-26  Dave Brolley  <brolley@redhat.com>

        * sid-decode.scm (-gen-record-profile-args): Test trace_counter_p
        and final_insn_count_p.
        (-gen-extract-fn): Call -gen-record-profile-args.

21 years ago2003-10-21 Dave Brolley <brolley@redhat.com>
Dave Brolley [Tue, 21 Oct 2003 16:42:01 +0000 (16:42 +0000)]
2003-10-21  Dave Brolley  <brolley@redhat.com>

        * sid-model.scm (-gen-model-class-decls): Generate MAX_UNITS as
        a static const int.
        * decode.scm (-opcode-slots): Correct typo in logit call.

21 years ago* desc-cpu.scm (gen-hw-table-decls): Emit an 'extern' declaration
Jim Blandy [Thu, 9 Oct 2003 20:53:42 +0000 (20:53 +0000)]
* desc-cpu.scm (gen-hw-table-decls): Emit an 'extern' declaration
for @arch@_cgen_hw_table.  GDB needs to be able to find this.

21 years ago* mach.scm (def-isa-attr!): hardware can have ISA attributes, too.
Jim Blandy [Thu, 9 Oct 2003 20:49:24 +0000 (20:49 +0000)]
* mach.scm (def-isa-attr!): hardware can have ISA attributes, too.

21 years ago2003-10-06 Dave Brolley <brolley@redhat.com>
Dave Brolley [Wed, 8 Oct 2003 17:54:13 +0000 (17:54 +0000)]
2003-10-06  Dave Brolley  <brolley@redhat.com>

        * gen-all-doc: Add fr550.

21 years ago * Makefile.am (ARCHFILE): New var.
Doug Evans [Thu, 11 Sep 2003 19:14:37 +0000 (19:14 +0000)]
* Makefile.am (ARCHFILE): New var.
(desc): Pass $(ARCHFILE) for -a parm, not $(ARCH).
(html,opcodes,sim-arch,sim-cpu,gas-test,sim-test): Ditto.
* Makefile.in: Regenerate.

21 years ago2003-09-08 Dave Brolley <brolley@redhat.com>
Dave Brolley [Mon, 8 Sep 2003 17:17:22 +0000 (17:17 +0000)]
2003-09-08  Dave Brolley  <brolley@redhat.com>

        On behalf of Doug Evans <dje@sebabeach.org>
        Pass in paths to input files, instead of assuming they live in
        $srcdir/cpu.  Plus misc. option processing cleanup.
        * cgen-doc.scm (doc-arguments): Make options strings not symbols.
        Add pre-process pass to all options.
        * cgen-gas.scm (gas-arguments): Ditto.
        * cgen-sid.scm (sim-arguments): Ditto.
        * cgen-sim.scm (sim-arguments): Ditto.
        * cgen-stest.scm (stest-arguments): Ditto.
        * cgen-opc.scm (opc-arguments): Ditto.  New argument -OPC.
        (-opc-file-path): New global.
        (opc-file-path): New fn.
        * opcodes.scm (read-cpu.opc): Replace srcdir,cpu args with opc-file.
        All callers updated.
        (gen-extra-cpu.h,gen-extra-cpu.c,gen-extra-opc.h,gen-extra-opc.c,
        gen-extra-asm.c,gen-extra-dis.c,gen-extra-ibld.h,gen-extra-ibld.c):
        Replace srcdir arg with opc-file.  All callers updated.
        * read.scm (-opt-spec-update): Delete.
        (opt-get-first-pass,opt-get-second-pass): New fns.
        (-cgen): Process application-specific arguments in two passes.

21 years ago2003-08-29 Dave Brolley <brolley@redhat.com>
Dave Brolley [Fri, 29 Aug 2003 16:51:08 +0000 (16:51 +0000)]
2003-08-29  Dave Brolley  <brolley@redhat.com>

        * cpu/frv.cpu: Removed.
        * cpu/frv.opc: Removed.

21 years agoRemoved. Official version is in src/cpu.
Dave Brolley [Fri, 29 Aug 2003 16:50:38 +0000 (16:50 +0000)]
Removed. Official version is in src/cpu.

21 years ago(mbtoh): Replace input parameter to u-media-dual-expand and u-media-dual-btoh
Nick Clifton [Thu, 21 Aug 2003 13:37:02 +0000 (13:37 +0000)]
(mbtoh): Replace input parameter to u-media-dual-expand and u-media-dual-btoh
with output parameter.
(cmbtoh): Add profiling hack.

21 years agoFix typo, Frintkeven -> FRintkeven
Nick Clifton [Wed, 20 Aug 2003 08:27:05 +0000 (08:27 +0000)]
Fix typo, Frintkeven -> FRintkeven

21 years ago From Michael Meissner.
Doug Evans [Thu, 7 Aug 2003 15:53:58 +0000 (15:53 +0000)]
From Michael Meissner.
* opc-opinst.scm (-gen-operand-instance-table): Initialize all of
the elements for the END record of CGEN_OPINST, silencing warnings.

21 years agoformat some code and comments to 80 char width
Doug Evans [Thu, 17 Jul 2003 06:19:35 +0000 (06:19 +0000)]
format some code and comments to 80 char width

21 years ago Add guile 1.6.4 support.
Doug Evans [Wed, 16 Jul 2003 05:35:48 +0000 (05:35 +0000)]
Add guile 1.6.4 support.
- empty list must be quoted
- string functions have stricter type checking
- eval now takes a second argument
- symbol-bound? is deprecated
* attr.scm (-attr-parse): Use stringsym-append to build errtxt.
(bitset-attr->list): Ensure arg to string-cut is a string.
(attr-parse): Ensure args to string-ref and string-drop1 are strings.
(<enum-attribute>,gen-value-for-defn): Fetch string name of self.
* cos.scm (-class-list): Must quote empty list.
(-class-parent-classes,-class-compute-class-desc): Ditto.
(class-make,make,object-reset!): Ditto.
(method-make-make!): Call eval1 instead of eval.
(method-make-forward!,method-make-virtual-forward!): Ditto.
* decode.scm (subdtable-add): Use stringsym-append instead of
string-append.
(-gen-exprtable-name): Fetch string name of exprtable-entry-insn.
(-build-decode-table-entry): Fetch string name of insn.
* desc-cpu.scm (-gen-isa-table-defns): Fetch string name of isa.
(-gen-mach-table-defns): Ditto for mach.
(gen-ifld-defns): Ditto for ifld.
(gen-hw-table-defns): Ditto for hw.
(gen-operand-table): Ditto for op.
(gen-insn-table-entry): Ditto for insn.
* desc.scm (gen-attr-table-defn): Ditto for attr.
(<keyword>,gen-defn): Don't pass symbols to string-append.
* enum.scm (parse-enum-vals): Use symbolstr-append instead of
symbol-append.
(enum-vals-upcase): Use symbol-upcase to build result.
(-enum-parse): Use stringsym-append to build errtxt.
* fixup.scm (*guile-major-version*,*guile-minor-version*): New globals.
(eval1): New function.
(symbol-bound?): Provide own version if >= guile 1.6.
* hardware.scm (define-keyword): Use string-append instead of
symbol-append.
* html.scm (gen-html-header,gen-table-of-contents,gen-arch-intro,
cgen.html,cgen-insn.html): Convert current-arch-name to a string
before using.
(gen-list-entry): Handle either symbol or string `name' arg.
(gen-obj-doc-header): Fetch string name of `o' arg.
(define-cpu-intro): Ditto for cpu.
(gen-mach-intro): Ditto for mach.
(gen-model-intro): Ditto for model.
(gen-isa-intro): Ditto for isa.
(gen-machine-doc-1): Ditto for isa.
(gen-reg-doc-1): Convert mach to string first.
(gen-insn-doc-1): Ditto.  Convert model/unit names to strings first.
(gen-insn-doc-list): Fetch string name of mach.  Convert insn name
to string first.
(gen-insn-categories): Fetch string name of mach.  Convert
enum-val-name to string first.
(gen-insn-docs): Fetch string name of mach.
* ifield.scm (ifld-ilk): Result is a string.
* iformat.scm (-ifmt-search-key): Convert attr value to string first.
Fetch string name of ifld.
(-sfmt-search-key): Similarily for ifld and op.
* insn.scm (syntax-make): Fetch string name of syntax element.
* mach.scm (-cpu-parse): Use stringsym-append to build errtxt.
* minsn.scm (minsn-make-alias): Fetch string name of minsn.
* mode.scm (mode:c-type): Result is a string.
(mode:enum): Fetch string name of mode.
(-mode-parse): Use stringsym-append to build errtxt.
* model.scm (model:enum): Fetch string name of model.
(-model-parse): Use stringsym-append to build errtxt.
(parse-insn-timing): Must quote empty list.
* opc-itab.scm (-gen-minsn-table-entry): Fetch string name of minsn.
(-gen-minsn-opcode-entry): Ditto.
* opcodes.scm (<operand>,gen-function-name): `what' arg is a symbol,
convert to string.
(read-cpu.opc): Convert current-arch-name to a string before using.
* operand.scm (<operand>,gen-pretty-name): Ensure `name' is a string.
(<derived-operand>): Must quote empty list.
(op-sort): Simplify, call alpha-sort-obj-list to do sort.
* pgmr-tools.scm (pgmr-pretty-print-insn-value): Fetch string name
of ifld.
* pmacros.scm (-pmacro-build-lambda): Use eval1 instead of eval.
(-pmacro-sym): Must convert symbols to strings before passing to
string-append.
(-pmacro-str): Ditto.
(pmacros-init!): Use eval1 instead of eval.
* read.scm (keep-mach-atlist?): Simplify, use bitset-attr->list.
(keep-isa-atlist?): Ditto.
(cmd-if): Use eval1 instead of eval.
* rtl-c.scm (<c-expr>,get-name): Fetch string name of self.
(-rtl-c-get): Fetch string name of src.
(s-unop): Ditto for mode.
(s-binop,s-binop-with-bit,s-shop,s-convop,s-cmpop): Ditto.
(-gen-par-temp-defns,subword): Ditto.
(join): Use stringsym-append instead of string-append.
* rtl-traverse.scm (rtx-option?): Convert option to string first.
(rtx-traverse-debug): Fetch string name of rtx-obj.
* rtl.scm (def-rtx-node): Use eval1 instead of eval.
(def-rtx-syntax-node,def-rtx-operand-node,def-rtx-macro-node): Ditto.
(rtx-pretty-name): Result is a string.
(-rtx-hw-name): Use symbolstr-append instead of symbol-append.
* semantics.scm (semantic-compile): Simplify, use alpha-sort-obj-list.
* sid-cpu.scm (cgen-write.cxx): Convert current-arch-name to a string
before using.
(-gen-sfrag-case): Fetch string name of user.
* sid-model.scm (unit:enum): Fetch string name of unit.
* sid.scm (<hw-memory>,cxmake-get): Fetch string name of mode.
(<hw-memory>,gen-set-quiet): Ditto.
(gen-mode-defs): Ditto.
(sim-finish!): Convert current-arch-name to a string before using.
* sim-cpu.scm (-gen-scache-semantic-fn): Fetch string name of insn.
(-gen-no-scache-semantic-fn): Ditto.
(cgen-defs.h): Fetch string name of isa.
(cgen-read.c): Convert current-arch-name to a string before using.
(cgen-write.c): Ditto.
* sim-model.scm (unit:enum): Fetch string name of unit.
(gen-model-fn-decls): Use stringsym-append instead of string-append.
(-gen-model-timing-table): Fetch string name of model.
(-gen-mach-model-table): Ditto.
(-gen-mach-defns): Fetch string name of mach.
* sim.scm (gen-reg-access-defn): Fetch string name of hw.
(<hw-memory>,cxmake-get): Fetch string name of mode.
(<hw-memory>,gen-set-quiet): Ditto.
(gen-mode-defs): Ditto.
(sim-finish!): Must quote empty list.
* utils-cgen.scm (<ident>): Must quote empty list.
(obj:str-name): New fn.
(parse-comment): Result is a string.
(parse-symbol): Result is a symbol.
(parse-string): Result is a string.
(keyword-list?): Convert arg to string before calling string-ref.
(keyword-list->arg-list): Ditto.
(gen-attr-name): Convert attr-name to string first.
(alpha-sort-obj-list): Use symbol<? instead of string<?.
* utils-gen.scm (attr-gen-decl): Fetch string name of attr.
(gen-define-ifmt-ifields): Ditto for fld.
* utils.scm (gen-c-symbol): Ensure str is a string before calling
map-over-string.
(gen-file-name): Ditto.
(symbol-downcase,symbol-upcase,symbol<?): New fns.
(stringsym-append,symbolstr-append,->string,->symbol): New fns.
(reduce): Call eval1 instead of eval.
* cpu/m32r.cpu (addi): Don't use `#.'.

21 years ago * gen-all-sim: Fix some typos.
Doug Evans [Wed, 16 Jul 2003 01:13:07 +0000 (01:13 +0000)]
* gen-all-sim: Fix some typos.

21 years ago * gen-all-doc: Ensure run from cgen src dir.
Doug Evans [Tue, 8 Jul 2003 16:23:56 +0000 (16:23 +0000)]
* gen-all-doc: Ensure run from cgen src dir.
* gen-all-opcodes: Build in ./tmp-opcodes.  Don't delete dir when done.
* gen-all-sid: Similarily, in ./tmp-sid.
* gen-all-sim: Similarily, in ./tmp-sim.

21 years agomisc. whitespace and comment cleanup
Doug Evans [Tue, 8 Jul 2003 16:19:35 +0000 (16:19 +0000)]
misc. whitespace and comment cleanup

21 years ago * gen-all-sim: Add fr30,sh64 support. Only generate m32r by default.
Doug Evans [Fri, 20 Jun 2003 21:09:00 +0000 (21:09 +0000)]
* gen-all-sim: Add fr30,sh64 support.  Only generate m32r by default.

21 years ago * mach.scm (-ifld-already-defined?): New proc.
Doug Evans [Fri, 20 Jun 2003 05:17:50 +0000 (05:17 +0000)]
* mach.scm (-ifld-already-defined?): New proc.
(current-ifld-add!): Use it.
(-op-already-defined?): New proc.
(current-op-add!): Use it.
(-insn-already-defined?): New proc.
(current-insn-add!): Use it.
(-minsn-already-defined?): New proc.
(current-minsn-add!): Use it.
(obj-isa-list): New proc.
(isa-supports?): Use it.

21 years agochange build directory to ./tmp-doc
Doug Evans [Wed, 11 Jun 2003 07:25:25 +0000 (07:25 +0000)]
change build directory to ./tmp-doc

21 years agoupdate
Doug Evans [Tue, 10 Jun 2003 22:09:43 +0000 (22:09 +0000)]
update
- operand RELAX attribute staying named as RELAX
- insn RELAX attribute renamed to RELAXED

21 years agoback out RELAX part of previous patch and instead implement FIXME:
Doug Evans [Tue, 10 Jun 2003 21:58:33 +0000 (21:58 +0000)]
back out RELAX part of previous patch and instead implement FIXME:
rename insn RELAX to RELAXED.

* insn.scm (insn-builtin!): RELAX renamed to RELAXABLE.
* cpu/m32r.cpu (all insns): Ditto.

21 years ago * mach.scm (current-*-add!): Disallow redefinition. Make result
Doug Evans [Tue, 10 Jun 2003 21:22:04 +0000 (21:22 +0000)]
* mach.scm (current-*-add!): Disallow redefinition.  Make result
"unspecified".
* insn.scm (insn-builtin!): Don't define relaxable here, now defined in
operand.scm.
* operand.scm (operand-builtin!): Define RELAXABLE for insns too.
* cpu/m32r.cpu (disp8,disp24): RELAX renamed to RELAXABLE.

* gen-all-doc: Split arm and frv docs up a bit.

* cpu/arm.cpu: Add IDOC attribute.
* cpu/frv.cpu: Ditto.
* cpu/i960.cpu: Ditto.
* cpu/openrisc.cpu: Ditto.
* cpu/xstormy16.cpu: Ditto.
* cpu/m32r.cpu: Ditto.
(all insns): Explicitly specify IDOC attribute.

* Makefile.am (MACH,ISAS,INSN_FILE_NAME): New vars.
(desc,opcodes,sim-arch,sim-cpu,gas-test,sim-test): Use MACH,ISAS.
(html): Use MACH,ISAS,INSN_FILE_NAME.  Generate insn.html separately.
* Makefile.in: Regenerate.
* attr.scm (<integer-attribute>:parse-value-def): Implement.
(-attr-read): Defer computing default value until we know the type.
(attr-has-attr?): Delete, move contents to <attr-list>:has-attr?.
(<attr-list>:attr-present?): New method.
(atlist-attr-present?,obj-attr-present?): New fns.
(obj-has-attr-value?,obj-has-attr-value-no-default?): New fns.
(attr-builtin!): New insn attr IDOC.
* cgen-doc.scm (doc-arguments): New args -I,-N.
* enum.scm (parse-enum-vals): New arg errtxt, all callers updated.
Support comment as fourth element of enum value.
(enum-val-name,enum-val-value,enum-val-attrs,enum-val-comment): New fns.
* html.scm (gen-html-header): New arg kind, all callers updated.
(gen-table-of-contents): New arg insn-file, all callers updated.
(gen-list-entry,gen-doc-header): New fn.
(get-operands): Delete.
(gen-iformat-table): Rewrite.
(gen-insn-doc-1): Print constant-folded and trimmed semantics.
(gen-insn-doc-list): New args name, comment, insns.  All callers updated.
(get-insn-properties,guess-insn-idoc-attr!): New fn.
(insn-sets-pc?,insn-refs-mem?,insn-uses-fpu?): New fns.
(get-insns-for-category,gen-categories-insn-lists): New fns.
(gen-insn-docs): Simplify each insn's semantics first.
Print insn tables sorted by IDOC categories.
(*insn-html-file-name*): New global.
(cgen-insn.html): New fn.
(cgen-all): Update.
* insn.scm (<insn>): Create a setter for the `tmp' member.
* semantics.scm (insn-build-known-values): Renamed from
-build-known-values.  All callers updated.

* rtl.scm: Move traveral/evaluation support to ...
* rtl-traverse.scm: New file.
* read.scm: Maybe-load rtl-traverse.scm.

* rtl.scm (-rtx-valid-types): Add SETRTX.

* rtx-funcs.scm (nop,parallel): Fix mode.

* utils.scm (eqv-lookup-index): New fn.
(assq-lookup-index): Renamed from lookup-index.  All callers updated.

* dev.scm (load-doc): Set APPLICATION.

21 years ago2003-06-10 Dave Brolley <brolley@redhat.com>
Dave Brolley [Tue, 10 Jun 2003 18:26:02 +0000 (18:26 +0000)]
2003-06-10  Dave Brolley  <brolley@redhat.com>

        * sid-cpu.scm: Generate #include of config.h into @prefix@-sem.cxx.
        * sid-decode.scm: Generate #include of config.h into
        @prefix@-decode.cxx.
        * sid-model.scm: Generate #include of config.h into @prefix@-model.cxx.

21 years ago * gen-all-sid: New file.
Doug Evans [Sat, 7 Jun 2003 18:22:02 +0000 (18:22 +0000)]
* gen-all-sid: New file.
* gen-all-opcodes: New file.

This page took 0.064123 seconds and 5 git commands to generate.