* sim-decode.scm (-gen-extract-case): Do not emit a definition for
"insn" when there are zero ifields to extract.
+2000-12-07 Ben Elliston <bje@redhat.com>
+
+ * sim-decode.scm (-gen-extract-case): Do not emit a definition for
+ "insn" when there are zero ifields to extract.
+
2000-12-04 Frank Ch. Eigler <fche@redhat.com>
* utils-sim.scm (gen-define-argbuf-macro): Handle sfmt=#f case, to be
" extract_" (gen-sym sfmt) ":\n"
" {\n"
" const IDESC *idesc = &" IDESC-TABLE-VAR "[itype];\n"
- " CGEN_INSN_INT insn = "
- (if (adata-integral-insn? CURRENT-ARCH)
- "entire_insn;\n"
- "base_insn;\n")
+ (if (< (length (sfmt-iflds sfmt)) 0)
+ (string-append
+ " CGEN_INSN_INT insn = "
+ (if (adata-integral-insn? CURRENT-ARCH)
+ "entire_insn;\n"
+ "base_insn;\n"))
+ "")
(gen-define-field-macro sfmt)
(gen-define-ifields (sfmt-iflds sfmt) (sfmt-length sfmt) " " #f)
"\n"