RISC-V: Support debug and float CSR as the unprivileged ones.
[deliverable/binutils-gdb.git] / gas / testsuite / gas / riscv / priv-reg.s
CommitLineData
d9be0c18
JW
1 .macro csr val
2 csrr a0,\val
3 .endm
d1a89da5
NC
4
5 # Supported the current priv spec 1.11.
d9be0c18
JW
6 csr ustatus
7 csr uie
8 csr utvec
9
10 csr uscratch
11 csr uepc
12 csr ucause
d1a89da5 13 csr utval # Added in 1.10
d9be0c18
JW
14 csr uip
15
d9be0c18
JW
16 csr cycle
17 csr time
18 csr instret
19 csr hpmcounter3
20 csr hpmcounter4
21 csr hpmcounter5
22 csr hpmcounter6
23 csr hpmcounter7
24 csr hpmcounter8
25 csr hpmcounter9
26 csr hpmcounter10
27 csr hpmcounter11
28 csr hpmcounter12
29 csr hpmcounter13
30 csr hpmcounter14
31 csr hpmcounter15
32 csr hpmcounter16
33 csr hpmcounter17
34 csr hpmcounter18
35 csr hpmcounter19
36 csr hpmcounter20
37 csr hpmcounter21
38 csr hpmcounter22
39 csr hpmcounter23
40 csr hpmcounter24
41 csr hpmcounter25
42 csr hpmcounter26
43 csr hpmcounter27
44 csr hpmcounter28
45 csr hpmcounter29
46 csr hpmcounter30
47 csr hpmcounter31
48 csr cycleh
49 csr timeh
50 csr instreth
51 csr hpmcounter3h
52 csr hpmcounter4h
53 csr hpmcounter5h
54 csr hpmcounter6h
55 csr hpmcounter7h
56 csr hpmcounter8h
57 csr hpmcounter9h
58 csr hpmcounter10h
59 csr hpmcounter11h
60 csr hpmcounter12h
61 csr hpmcounter13h
62 csr hpmcounter14h
63 csr hpmcounter15h
64 csr hpmcounter16h
65 csr hpmcounter17h
66 csr hpmcounter18h
67 csr hpmcounter19h
68 csr hpmcounter20h
69 csr hpmcounter21h
70 csr hpmcounter22h
71 csr hpmcounter23h
72 csr hpmcounter24h
73 csr hpmcounter25h
74 csr hpmcounter26h
75 csr hpmcounter27h
76 csr hpmcounter28h
77 csr hpmcounter29h
78 csr hpmcounter30h
79 csr hpmcounter31h
80
81 csr sstatus
82 csr sedeleg
83 csr sideleg
84 csr sie
85 csr stvec
d1a89da5 86 csr scounteren # Added in 1.10
d9be0c18
JW
87
88 csr sscratch
89 csr sepc
90 csr scause
d1a89da5 91 csr stval # Added in 1.10
d9be0c18
JW
92 csr sip
93
d1a89da5 94 csr satp # Added in 1.10
d9be0c18
JW
95
96 csr mvendorid
97 csr marchid
98 csr mimpid
99 csr mhartid
100
101 csr mstatus
d1a89da5 102 csr misa # 0xf10 in 1.9, but changed to 0x301 since 1.9.1.
d9be0c18
JW
103 csr medeleg
104 csr mideleg
105 csr mie
106 csr mtvec
d1a89da5 107 csr mcounteren # Added in 1.10
d9be0c18
JW
108
109 csr mscratch
110 csr mepc
111 csr mcause
d1a89da5 112 csr mtval # Added in 1.10
d9be0c18
JW
113 csr mip
114
d1a89da5
NC
115 csr pmpcfg0 # Added in 1.10
116 csr pmpcfg1 # Added in 1.10
117 csr pmpcfg2 # Added in 1.10
118 csr pmpcfg3 # Added in 1.10
119 csr pmpaddr0 # Added in 1.10
120 csr pmpaddr1 # Added in 1.10
121 csr pmpaddr2 # Added in 1.10
122 csr pmpaddr3 # Added in 1.10
123 csr pmpaddr4 # Added in 1.10
124 csr pmpaddr5 # Added in 1.10
125 csr pmpaddr6 # Added in 1.10
126 csr pmpaddr7 # Added in 1.10
127 csr pmpaddr8 # Added in 1.10
128 csr pmpaddr9 # Added in 1.10
129 csr pmpaddr10 # Added in 1.10
130 csr pmpaddr11 # Added in 1.10
131 csr pmpaddr12 # Added in 1.10
132 csr pmpaddr13 # Added in 1.10
133 csr pmpaddr14 # Added in 1.10
134 csr pmpaddr15 # Added in 1.10
d9be0c18
JW
135
136 csr mcycle
137 csr minstret
138 csr mhpmcounter3
139 csr mhpmcounter4
140 csr mhpmcounter5
141 csr mhpmcounter6
142 csr mhpmcounter7
143 csr mhpmcounter8
144 csr mhpmcounter9
145 csr mhpmcounter10
146 csr mhpmcounter11
147 csr mhpmcounter12
148 csr mhpmcounter13
149 csr mhpmcounter14
150 csr mhpmcounter15
151 csr mhpmcounter16
152 csr mhpmcounter17
153 csr mhpmcounter18
154 csr mhpmcounter19
155 csr mhpmcounter20
156 csr mhpmcounter21
157 csr mhpmcounter22
158 csr mhpmcounter23
159 csr mhpmcounter24
160 csr mhpmcounter25
161 csr mhpmcounter26
162 csr mhpmcounter27
163 csr mhpmcounter28
164 csr mhpmcounter29
165 csr mhpmcounter30
166 csr mhpmcounter31
167 csr mcycleh
168 csr minstreth
169 csr mhpmcounter3h
170 csr mhpmcounter4h
171 csr mhpmcounter5h
172 csr mhpmcounter6h
173 csr mhpmcounter7h
174 csr mhpmcounter8h
175 csr mhpmcounter9h
176 csr mhpmcounter10h
177 csr mhpmcounter11h
178 csr mhpmcounter12h
179 csr mhpmcounter13h
180 csr mhpmcounter14h
181 csr mhpmcounter15h
182 csr mhpmcounter16h
183 csr mhpmcounter17h
184 csr mhpmcounter18h
185 csr mhpmcounter19h
186 csr mhpmcounter20h
187 csr mhpmcounter21h
188 csr mhpmcounter22h
189 csr mhpmcounter23h
190 csr mhpmcounter24h
191 csr mhpmcounter25h
192 csr mhpmcounter26h
193 csr mhpmcounter27h
194 csr mhpmcounter28h
195 csr mhpmcounter29h
196 csr mhpmcounter30h
197 csr mhpmcounter31h
198
d1a89da5 199 csr mcountinhibit # Added in 1.11
d9be0c18
JW
200 csr mhpmevent3
201 csr mhpmevent4
202 csr mhpmevent5
203 csr mhpmevent6
204 csr mhpmevent7
205 csr mhpmevent8
206 csr mhpmevent9
207 csr mhpmevent10
208 csr mhpmevent11
209 csr mhpmevent12
210 csr mhpmevent13
211 csr mhpmevent14
212 csr mhpmevent15
213 csr mhpmevent16
214 csr mhpmevent17
215 csr mhpmevent18
216 csr mhpmevent19
217 csr mhpmevent20
218 csr mhpmevent21
219 csr mhpmevent22
220 csr mhpmevent23
221 csr mhpmevent24
222 csr mhpmevent25
223 csr mhpmevent26
224 csr mhpmevent27
225 csr mhpmevent28
226 csr mhpmevent29
227 csr mhpmevent30
228 csr mhpmevent31
229
d1a89da5
NC
230 # Supported in previous priv spec, but dropped now.
231 csr ubadaddr # 0x043 in 1.9.1, but the value is utval since 1.10
232 csr sbadaddr # 0x143 in 1.9.1, but the value is stval since 1.10
233 csr sptbr # 0x180 in 1.9.1, but the value is satp since 1.10
234 csr mbadaddr # 0x343 in 1.9.1, but the value is mtval since 1.10
235 csr mucounteren # 0x320 in 1.9.1, dropped in 1.10, but the value is mcountinhibit since 1.11
d9be0c18 236
d1a89da5
NC
237 csr hstatus # 0x200, dropped in 1.10
238 csr hedeleg # 0x202, dropped in 1.10
239 csr hideleg # 0x203, dropped in 1.10
240 csr hie # 0x204, dropped in 1.10
241 csr htvec # 0x205, dropped in 1.10
242 csr hscratch # 0x240, dropped in 1.10
243 csr hepc # 0x241, dropped in 1.10
244 csr hcause # 0x242, dropped in 1.10
245 csr hbadaddr # 0x243, dropped in 1.10
246 csr hip # 0x244, dropped in 1.10
247 csr mbase # 0x380, dropped in 1.10
248 csr mbound # 0x381, dropped in 1.10
249 csr mibase # 0x382, dropped in 1.10
250 csr mibound # 0x383, dropped in 1.10
251 csr mdbase # 0x384, dropped in 1.10
252 csr mdbound # 0x385, dropped in 1.10
253 csr mscounteren # 0x321, dropped in 1.10
254 csr mhcounteren # 0x322, dropped in 1.10
08ccfccf
NC
255
256 # Unprivileged CSR which are not controlled by privilege spec.
257
258 # Float
259 csr fflags
260 csr frm
261 csr fcsr
262
263 # Core debug
264 csr dcsr
265 csr dpc
266 csr dscratch0
267 csr dscratch1
268 csr dscratch # 0x7b2, alias to dscratch0
269
270 # Trigger debug
271 csr tselect
272 csr tdata1
273 csr tdata2
274 csr tdata3
275 csr tinfo
276 csr tcontrol
277 csr mcontext
278 csr scontext
279 csr mcontrol # 0x7a1, alias to tdata1
280 csr icount # 0x7a1, alias to tdata1
281 csr itrigger # 0x7a1, alias to tdata1
282 csr etrigger # 0x7a1, alias to tdata1
283 csr textra32 # 0x7a3, alias to tdata3
284 csr textra64 # 0x7a3, alias to tdata3
This page took 0.148691 seconds and 4 git commands to generate.