forked from riscv/riscv-debug-spec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathriscv-debug-spec.tex
executable file
·176 lines (146 loc) · 3.5 KB
/
riscv-debug-spec.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
\documentclass[twoside,11pt,openany]{book}
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}
% Fix copy/pasting of ligatures in Acrobat
\input{glyphtounicode.tex}
\pdfgentounicode=1 %
\input{preamble}
% All registers are named here. That way when we rename one we'll get errors if
% there are still references to the old name.
\usepackage{makeidx}
\makeindex
\usepackage{xspace}
\newcommand{\defregname}[2]{\providecommand{#1}{{\tt #2}\xspace}}
\newcommand{\deffieldname}[2]{\providecommand{#1}{{$|#2|$}\xspace}}
\deffieldname{\FcsrMcontrolMprv}{MPRV}
\deffieldname{\FcsrMcontrolMie}{MIE}
\deffieldname{\Fmxl}{MXL}
\defregname{\Rmisa}{misa}
\defregname{\Rmstatus}{mstatus}
\defregname{\Rmcause}{mcause}
\defregname{\Rmie}{mie}
\deffieldname{\Fasid}{ASID}
\defregname{\Rsatp}{satp}
\defregname{\Rvsatp}{vsatp}
\defregname{\Azero}{a0}
\defregname{\Aone}{a1}
\defregname{\Rzero}{zero}
\defregname{\Szero}{s0}
\defregname{\Sone}{s1}
\defregname{\Tzero}{t0}
\defregname{\Xzero}{x0}
\defregname{\Xone}{x1}
\defregname{\Xeight}{x8}
\defregname{\Xnine}{x9}
\defregname{\Xten}{x10}
\defregname{\Xeleven}{x11}
\defregname{\Xthirtyone}{x31}
\defregname{\Fone}{f1}
\defregname{\Rpc}{pc}
\defregname{\Rmhartid}{mhartid}
\defregname{\Rmepc}{mepc}
\defregname{\Rdataone}{data1}
\input{hwbp_registers.tex.inc}
\input{core_registers.tex.inc}
\input{jtag_registers.tex.inc}
\input{dm_registers.tex.inc}
\input{sample_registers.tex.inc}
\input{abstract_commands.tex.inc}
\input{sw_registers.tex.inc}
\deffieldname{\Fhartsel}{\hyperref[hartsel]{hartsel}}
\deffieldname{\Fsize}{\hyperref[sizelo]{size}}
\deffieldname{\Faction}{action}
\deffieldname{\Fresethaltreq}{\hyperref[resethaltreq]{resethaltreq}}
\deffieldname{\Fkeepalive}{\hyperref[keepalive]{keepalive}}
\input{vc.tex}
\newcommand{\versionnum}{1.0.0\ifrelease\else-\releasename\fi}
\begin{document}
\title{RISC-V Debug Support\\
Version \versionnum\\
\GITHash
}
\author{Editors: \\
Ernie Edgar \textless [email protected]\textgreater, SiFive, Inc. \\
Tim Newsome \textless [email protected]\textgreater, SiFive, Inc.}
\date{\GITAuthorDate}
\maketitle
Contributors to all versions of the spec in alphabetical order (please contact
editors to suggest corrections):
Bruce Ableidinger,
Krste Asanovi\'{c},
Peter Ashenden,
Allen Baum,
Mark Beal,
Alex Bradbury,
Chuanhua Chang,
Zhong-Ho Chen,
Monte Dalrymple,
Paul Donahue,
Vyacheslav Dyachenko,
Peter Egold,
Marc Gauthier,
Markus Goehrle,
Robert Golla,
John Hauser,
Richard Herveille,
Yung-ching Hsiao,
Po-wei Huang,
Scott Johnson,
L. J. Madar,
Grigorios Magklis,
Jan Matyas,
Kai Meinhard,
Jean-Luc Nagel,
Aram Nahidipour,
Rishiyur Nikhil,
Gajinder Panesar,
Deepak Panwar,
Antony Pavlov,
Klaus Kruse Pedersen,
Ken Pettit,
Darius Rad,
Joe Rahmeh,
Gavin Stark,
Ben Staveley,
Wesley Terpstra,
Megan Wachs,
Jan-Willem van de Waerdt,
Philipp Wagner,
Stefan Wallentowitz,
Ray Van De Walker,
Andrew Waterman,
Thomas Wicki,
Andy Wright,
and Bryan Wyatt.
\markboth{RISC-V Debug Support Version \versionnum}
{RISC-V Debug Support Version \versionnum}
\thispagestyle{empty}
\frontmatter
\input{preface.tex}
\tableofcontents
\listoffigures
\listoftables
\mainmatter
\newpage
\input{introduction}
\input{overview}
\input{debug_module}
\input{core_debug}
\input{trigger}
\input{dtm}
\newpage
\appendix
\include{implementations}
\include{debugger_implementation}
\clearpage
\addcontentsline{toc}{chapter}{Index}
\label{index}
\printindex
\ifrelease
\else
\chapter{Change Log}
\begin{versionhistory}
\input{changelog.tex}
\end{versionhistory}
\fi
\end{document}