This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[RFA]: sim-decode.scm


Hi,

This patch corrects a logic thinko that broke the si decoder for the 
m32r port. Without the patch, the declaration for the variable 'insn' 
never gets generated.

OK to commit?

Dave
Index: cgen/sim-decode.scm
===================================================================
RCS file: /cvs/src/src/cgen/sim-decode.scm,v
retrieving revision 1.4
diff -c -p -r1.4 sim-decode.scm
*** sim-decode.scm	2001/01/06 12:11:09	1.4
--- sim-decode.scm	2001/03/02 22:15:17
*************** void
*** 433,439 ****
     " extract_" (gen-sym sfmt) ":\n"
     "  {\n"
     "    const IDESC *idesc = &" IDESC-TABLE-VAR "[itype];\n"
!    (if (< (length (sfmt-iflds sfmt)) 0)
         (string-append
  	"    CGEN_INSN_INT insn = "
  	(if (adata-integral-insn? CURRENT-ARCH)
--- 433,439 ----
     " extract_" (gen-sym sfmt) ":\n"
     "  {\n"
     "    const IDESC *idesc = &" IDESC-TABLE-VAR "[itype];\n"
!    (if (> (length (sfmt-iflds sfmt)) 0)
         (string-append
  	"    CGEN_INSN_INT insn = "
  	(if (adata-integral-insn? CURRENT-ARCH)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]