(opc-arguments, -OPC): Call set-opc-file-path!.
* opcodes.scm (-opc-file-path,opc-file-path): Moved here.
(set-opc-file-path!): New function.
* dev.scm: Mention set-opc-file-path!. Mention doc options.
2009-07-07 Doug Evans <dje@sebabeach.org>
+ * cgen-opc.scm (-opc-file-path,opc-file-path): Move to opcodes.scm
+ (opc-arguments, -OPC): Call set-opc-file-path!.
+ * opcodes.scm (-opc-file-path,opc-file-path): Moved here.
+ (set-opc-file-path!): New function.
+ * dev.scm: Mention set-opc-file-path!. Mention doc options.
+
* opc-ibld.scm (gen-insn-builder): Convert symbols to strings
before passing to gen-c-args.
(load (string-append srcdir "/opc-opinst.scm"))
)
-; Records the -OPC arg which specifies the path to the .opc file.
-(define -opc-file-path #f)
-(define (opc-file-path)
- (if -opc-file-path
- -opc-file-path
- (error ".opc file unspecified, missing -OPC argument"))
-)
-
(define opc-arguments
(list
(list "-OPC" "file" "specify path to .opc file"
- (lambda (arg) (set! -opc-file-path arg))
+ (lambda (arg) (set-opc-file-path! arg))
#f)
(list "-H" "file" "generate $arch-desc.h in <file>"
#f
keep-isa:
comma separated list of isas to keep or `all'
+doc options:
+[none yet]
+
opcode options:
[none yet]
+Remember to call (set-opc-file-path! \"/path/to/cpu.opc\").
gas test options:
[none yet]
; Specify which application.
(set! APPLICATION 'OPCODES)
+; Records the -OPC arg which specifies the path to the .opc file.
+(define -opc-file-path #f)
+(define (opc-file-path)
+ (if -opc-file-path
+ -opc-file-path
+ (error ".opc file unspecified, missing -OPC argument"))
+)
+(define (set-opc-file-path! path)
+ (set! -opc-file-path path)
+)
+
; Boolean indicating if we're to build the operand instance table.
; The default is no, since only the m32r uses it at present.
; ??? Simulator tracing support could use it.