* utils-gen.scm (attr-int-gen-defn): Define.
-2003-01-09 Ben Elliston <bje@redhat.com>
+2003-01-09 Graydon Hoare <graydon@redhat.com>
- From Graydon Hoare <graydon@redhat.com>:
* utils-sim.scm (-gen-decoder-switch): Fix edge condition for
empty ISAs.
+2003-01-07 Graydon Hoare <graydon@redhat.com>
+
+ * utils-gen.scm (attr-int-gen-defn): Define.
+
2002-12-21 Doug Evans <dje@sebabeach.org>
* ifield.scm (-ifield-parse): Rewrite <bitrange> computation.
(define (attr-int-gen-decl attr) "")
-(define (attr-int-gen-defn attr) "")
+(define (attr-int-gen-defn attr)
+ (string-append
+ "static const CGEN_ATTR_ENTRY " (gen-sym attr)
+ "_attr [] = \n{\n {\"integer\", " (number->string (attr-default attr)) "},\n { 0, 0 }\n};\n\n" ))
(define (attr-gen-decl attr)
(gen-enum-decl (symbol-append (obj:name attr) '-attr)