2009-06-18 Doug Evans <dje@sebabeach.org>
+ * html.scm (doc-analyze!): Provide defualt IDOC attribute if missing.
+
* dev.scm (cload): Change #:arch argument to take the path to the
.cpu file instead of just the name of the architecture.
* read.scm (arch-path): Remove trailing '/'.
\f
; Documentation init,finish,analyzer support.
-; Initialize any opcodes specific things before loading the .cpu file.
+; Initialize any doc specific things before loading the .cpu file.
(define (doc-init!)
(desc-init!)
*UNSPECIFIED*
)
-; Finish any opcodes specific things after loading the .cpu file.
+; Finish any doc specific things after loading the .cpu file.
; This is separate from analyze-data! as cpu-load performs some
; consistency checks in between.
(define (doc-analyze!)
(desc-analyze!)
+ ; If the IDOC attribute isn't defined, provide a default one.
+ (if (not (current-attr-lookup 'IDOC))
+ (define-attr
+ '(for insn)
+ '(type enum)
+ '(name IDOC)
+ '(comment "insn kind for documentation")
+ '(attrs META)
+ '(values
+ (MEM - () "Memory")
+ (ALU - () "ALU")
+ (FPU - () "FPU")
+ (BR - () "Branch")
+ (MISC - () "Miscellaneous"))))
+
; Initialize the rtl->c translator.
(rtl-c-config!)