OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-binutils/] [binutils-2.19.1/] [cgen/] [dev.scm] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 jlechner
; CGEN Debugging support.
2
; Copyright (C) 2000, 2009 Red Hat, Inc.
3
; This file is part of CGEN.
4
; See file COPYING.CGEN for details.
5
 
6
; develop and debug CGEN.  The user visible procs are:
7
;
8
; (use-c)
9
; (load-opc)
10
; (load-sim)
11
; (load-sid)
12
; (load-testsuite)
13
; (cload #:arch path-to-cpu-file #:machs "mach-list" #:isas "isa-list"
14
;        #:options "options" #:trace "trace-options")
15
; First load guile.scm to coerce guile into something we've been using.
16
 
17
"guile.scm""."; Utility to enable/disable compiled-in C code.
18
; Also defined in read.scm, but we need it earlier.
19
; Supply the path name and suffic for the .cpu file and delete the analyzer
20
 
21
"all""all"""""; Doesn't check if (cadr args) exists or if #:arch was specified, but
22
; this is a debugging tool!
23
 
24
"unknown option:""application not loaded""unknown application:"; Use the debugging evaluator.
25
 
26
"read""desc""desc-cpu""html"; ??? Necessary for the following case, dunno why.
27
; bash$ guile -l dev.scm
28
 
29
; guile> (cload #:arch "./cpu/m32r.cpu")
30
"read""desc""desc-cpu""opcodes""opc-asmdis""opc-ibld""opc-itab""opc-opinst""gas-test""read""utils-sim""sid""sid-cpu""sid-model""sid-decode""read""desc""desc-cpu""utils-sim""sim""sim-arch""sim-cpu""sim-model""sim-decode""sim-test""read""desc""desc-cpu""testsuite.scm""
31
 
32
 
33
(use-c)
34
 
35
Then choose the application via one of:
36
 
37
(load-doc)
38
(load-opc)
39
(load-gtest)
40
(load-sim)
41
 
42
(load-testsuite)
43
""(load-sid)\n""\
44
 
45
Then load the .cpu file with:
46
 
47
(cload #:arch \"path-to-cpu-file\" #:machs \"keep-mach\" #:isas \"keep-isa\" #:options \"options\" #:trace \"trace-options\")
48
 
49
Only the #:arch parameter is mandatory, the rest are optional.
50
 
51
keep-mach:
52
comma separated list of machs to keep or `all'
53
 
54
keep-isa:
55
comma separated list of isas to keep or `all'
56
 
57
#:options specifies a list of application-specific options
58
 
59
doc options:
60
[none yet]
61
 
62
opcode options:
63
[none yet]
64
Remember to call (set-opc-file-path! \"/path/to/cpu.opc\").
65
 
66
gas test options:
67
[none yet]
68
\n""\
69
sim options:
70
with-scache
71
with-profile=fn
72
 
73
sim test options:
74
[none yet]
75
\n""\
76
sid options:
77
[wip]
78
\n""\
79
trace-options: (comma-separated list of options)
80
commands - trace cgen command invocation
81
pmacros - trace pmacro expansion
82
all - trace everything
83
\n"; If ~/.cgenrc exists, load it.
84
"HOME""/.cgenrc"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.