* sid-model.scm (-gen-model-class-decls): Generate MAX_UNITS as
a static const int.
* decode.scm (-opcode-slots): Correct typo in logit call.
+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.
+
2003-10-09 Jim Blandy <jimb@redhat.com>
* desc-cpu.scm (gen-hw-table-decls): Emit an 'extern' declaration
(opcode-mask (compute (insn-base-mask insn) insn-len decode-len bitnums))
(indices (missing-bit-indices opcode-mask (- (integer-expt 2 decode-len) 1))))
(logit 3 "insn =" (obj:name insn)
- " insn-base-value=" (insn-base-value insn)
+ " insn-value=" (insn-value insn)
" insn-base-mask=" (insn-base-mask insn)
" insn-len=" insn-len
" decode-len=" decode-len
" };\n\n"
; FIXME: revisit MAX_UNITS
- " #define MAX_UNITS ("
+ " static const int MAX_UNITS = "
(number->string
(let ((insn-list (non-multi-insns (real-insns (current-insn-list)))))
(if (null? insn-list)
(length (timing:units (cdr insn-timing))))
timing))))
insn-list))))))
- ")\n"
+ ";\n"
)
)