This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
[RFA]: sim-decode.scm
- To: cgen <cgen at sources dot redhat dot com>
- Subject: [RFA]: sim-decode.scm
- From: Dave Brolley <brolley at redhat dot com>
- Date: Fri, 02 Mar 2001 17:26:19 -0500
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)