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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
scattered enum extension
val extensionName :
extension <->
string
scattered mapping extensionName
val hartSupports :
extension ->
bool
scattered function hartSupports
val currentlyEnabled :
extension ->
bool
scattered function currentlyEnabled
enum clause extension =
Ext_M
mapping clause extensionName =
Ext_M <->
"m"
function clause hartSupports(
Ext_M) =
config extensions.
M.
supported
enum clause extension =
Ext_A
mapping clause extensionName =
Ext_A <->
"a"
function clause hartSupports(
Ext_A) =
config extensions.
A.
supported
enum clause extension =
Ext_F
mapping clause extensionName =
Ext_F <->
"f"
function clause hartSupports(
Ext_F) =
config extensions.
F.
supported
enum clause extension =
Ext_D
mapping clause extensionName =
Ext_D <->
"d"
function clause hartSupports(
Ext_D) =
constraint(
ext_d_supported)
& hartSupports(
Ext_F)
enum clause extension =
Ext_B
mapping clause extensionName =
Ext_B <->
"b"
function clause hartSupports(
Ext_B) =
config extensions.
B.
supported
enum clause extension =
Ext_V
mapping clause extensionName =
Ext_V <->
"v"
function clause hartSupports(
Ext_V) =
config extensions.
V.
supported
enum clause extension =
Ext_S
mapping clause extensionName =
Ext_S <->
"s"
function clause hartSupports(
Ext_S) =
config extensions.
S.
supported
enum clause extension =
Ext_U
mapping clause extensionName =
Ext_U <->
"u"
function clause hartSupports(
Ext_U) =
config extensions.
U.
supported
enum clause extension =
Ext_H
mapping clause extensionName =
Ext_H <->
"h"
function clause hartSupports(
Ext_H) =
false
enum clause extension =
Ext_Zicbom
mapping clause extensionName =
Ext_Zicbom <->
"zicbom"
function clause hartSupports(
Ext_Zicbom) =
config extensions.
Zicbom.
supported
enum clause extension =
Ext_Zicbop
mapping clause extensionName =
Ext_Zicbop <->
"zicbop"
function clause hartSupports(
Ext_Zicbop) =
config extensions.
Zicbop.
supported
enum clause extension =
Ext_Zicboz
mapping clause extensionName =
Ext_Zicboz <->
"zicboz"
function clause hartSupports(
Ext_Zicboz) =
config extensions.
Zicboz.
supported
enum clause extension =
Ext_Zicfilp
mapping clause extensionName =
Ext_Zicfilp <->
"zicfilp"
function clause hartSupports(
Ext_Zicfilp) =
config extensions.
Zicfilp.
supported
enum clause extension =
Ext_Zicntr
mapping clause extensionName =
Ext_Zicntr <->
"zicntr"
function clause hartSupports(
Ext_Zicntr) =
config extensions.
Zicntr.
supported
enum clause extension =
Ext_Zicond
mapping clause extensionName =
Ext_Zicond <->
"zicond"
function clause hartSupports(
Ext_Zicond) =
config extensions.
Zicond.
supported
enum clause extension =
Ext_Zicsr
mapping clause extensionName =
Ext_Zicsr <->
"zicsr"
function clause hartSupports(
Ext_Zicsr) =
config extensions.
Zicsr.
supported
enum clause extension =
Ext_Zifencei
mapping clause extensionName =
Ext_Zifencei <->
"zifencei"
function clause hartSupports(
Ext_Zifencei) =
config extensions.
Zifencei.
supported
enum clause extension =
Ext_Zihintntl
mapping clause extensionName =
Ext_Zihintntl <->
"zihintntl"
function clause hartSupports(
Ext_Zihintntl) =
config extensions.
Zihintntl.
supported
enum clause extension =
Ext_Zihintpause
mapping clause extensionName =
Ext_Zihintpause <->
"zihintpause"
function clause hartSupports(
Ext_Zihintpause) =
config extensions.
Zihintpause.
supported
enum clause extension =
Ext_Zihpm
mapping clause extensionName =
Ext_Zihpm <->
"zihpm"
function clause hartSupports(
Ext_Zihpm) =
config extensions.
Zihpm.
supported
enum clause extension =
Ext_Zimop
mapping clause extensionName =
Ext_Zimop <->
"zimop"
function clause hartSupports(
Ext_Zimop) =
config extensions.
Zimop.
supported
enum clause extension =
Ext_Zmmul
mapping clause extensionName =
Ext_Zmmul <->
"zmmul"
function clause hartSupports(
Ext_Zmmul) =
config extensions.
Zmmul.
supported
enum clause extension =
Ext_Zaamo
mapping clause extensionName =
Ext_Zaamo <->
"zaamo"
function clause hartSupports(
Ext_Zaamo) =
config extensions.
Zaamo.
supported
enum clause extension =
Ext_Zabha
mapping clause extensionName =
Ext_Zabha <->
"zabha"
function clause hartSupports(
Ext_Zabha) =
config extensions.
Zabha.
supported
enum clause extension =
Ext_Zacas
mapping clause extensionName =
Ext_Zacas <->
"zacas"
function clause hartSupports(
Ext_Zacas) =
config extensions.
Zacas.
supported
enum clause extension =
Ext_Zalrsc
mapping clause extensionName =
Ext_Zalrsc <->
"zalrsc"
function clause hartSupports(
Ext_Zalrsc) =
config extensions.
Zalrsc.
supported
enum clause extension =
Ext_Zawrs
mapping clause extensionName =
Ext_Zawrs <->
"zawrs"
function clause hartSupports(
Ext_Zawrs) =
config extensions.
Zawrs.
supported
enum clause extension =
Ext_Zfa
mapping clause extensionName =
Ext_Zfa <->
"zfa"
function clause hartSupports(
Ext_Zfa) =
config extensions.
Zfa.
supported
enum clause extension =
Ext_Zfbfmin
mapping clause extensionName =
Ext_Zfbfmin <->
"zfbfmin"
function clause hartSupports(
Ext_Zfbfmin) =
config extensions.
Zfbfmin.
supported
enum clause extension =
Ext_Zfh
mapping clause extensionName =
Ext_Zfh <->
"zfh"
function clause hartSupports(
Ext_Zfh) =
config extensions.
Zfh.
supported
enum clause extension =
Ext_Zfhmin
mapping clause extensionName =
Ext_Zfhmin <->
"zfhmin"
function clause hartSupports(
Ext_Zfhmin) =
config extensions.
Zfhmin.
supported
enum clause extension =
Ext_Zfinx
mapping clause extensionName =
Ext_Zfinx <->
"zfinx"
function clause hartSupports(
Ext_Zfinx) =
config extensions.
Zfinx.
supported
enum clause extension =
Ext_Zdinx
mapping clause extensionName =
Ext_Zdinx <->
"zdinx"
function clause hartSupports(
Ext_Zdinx) =
config extensions.
Zfinx.
supported
enum clause extension =
Ext_Zca
mapping clause extensionName =
Ext_Zca <->
"zca"
function clause hartSupports(
Ext_Zca) =
config extensions.
Zca.
supported
enum clause extension =
Ext_Zcb
mapping clause extensionName =
Ext_Zcb <->
"zcb"
function clause hartSupports(
Ext_Zcb) =
config extensions.
Zcb.
supported
enum clause extension =
Ext_Zcd
mapping clause extensionName =
Ext_Zcd <->
"zcd"
function clause hartSupports(
Ext_Zcd) =
config extensions.
Zcd.
supported
enum clause extension =
Ext_Zcf
mapping clause extensionName =
Ext_Zcf <->
"zcf"
function clause hartSupports(
Ext_Zcf) =
config extensions.
Zcf.
supported :
bool & (
xlen == 32)
enum clause extension =
Ext_Zcmop
mapping clause extensionName =
Ext_Zcmop <->
"zcmop"
function clause hartSupports(
Ext_Zcmop) =
config extensions.
Zcmop.
supported
enum clause extension =
Ext_C
mapping clause extensionName =
Ext_C <->
"c"
function clause hartSupports(
Ext_C) =
hartSupports(
Ext_Zca)
& (
hartSupports(
Ext_Zcf)
| not(
hartSupports(
Ext_F))
| xlen != 32)
& (
hartSupports(
Ext_Zcd)
| not(
hartSupports(
Ext_D)))
enum clause extension =
Ext_Zba
mapping clause extensionName =
Ext_Zba <->
"zba"
function clause hartSupports(
Ext_Zba) =
config extensions.
Zba.
supported
enum clause extension =
Ext_Zbb
mapping clause extensionName =
Ext_Zbb <->
"zbb"
function clause hartSupports(
Ext_Zbb) =
config extensions.
Zbb.
supported
enum clause extension =
Ext_Zbc
mapping clause extensionName =
Ext_Zbc <->
"zbc"
function clause hartSupports(
Ext_Zbc) =
config extensions.
Zbc.
supported
enum clause extension =
Ext_Zbkb
mapping clause extensionName =
Ext_Zbkb <->
"zbkb"
function clause hartSupports(
Ext_Zbkb) =
config extensions.
Zbkb.
supported
enum clause extension =
Ext_Zbkc
mapping clause extensionName =
Ext_Zbkc <->
"zbkc"
function clause hartSupports(
Ext_Zbkc) =
config extensions.
Zbkc.
supported
enum clause extension =
Ext_Zbkx
mapping clause extensionName =
Ext_Zbkx <->
"zbkx"
function clause hartSupports(
Ext_Zbkx) =
config extensions.
Zbkx.
supported
enum clause extension =
Ext_Zbs
mapping clause extensionName =
Ext_Zbs <->
"zbs"
function clause hartSupports(
Ext_Zbs) =
config extensions.
Zbs.
supported
enum clause extension =
Ext_Zknd
mapping clause extensionName =
Ext_Zknd <->
"zknd"
function clause hartSupports(
Ext_Zknd) =
config extensions.
Zknd.
supported
enum clause extension =
Ext_Zkne
mapping clause extensionName =
Ext_Zkne <->
"zkne"
function clause hartSupports(
Ext_Zkne) =
config extensions.
Zkne.
supported
enum clause extension =
Ext_Zknh
mapping clause extensionName =
Ext_Zknh <->
"zknh"
function clause hartSupports(
Ext_Zknh) =
config extensions.
Zknh.
supported
enum clause extension =
Ext_Zkr
mapping clause extensionName =
Ext_Zkr <->
"zkr"
function clause hartSupports(
Ext_Zkr) =
config extensions.
Zkr.
supported
enum clause extension =
Ext_Zksed
mapping clause extensionName =
Ext_Zksed <->
"zksed"
function clause hartSupports(
Ext_Zksed) =
config extensions.
Zksed.
supported
enum clause extension =
Ext_Zksh
mapping clause extensionName =
Ext_Zksh <->
"zksh"
function clause hartSupports(
Ext_Zksh) =
config extensions.
Zksh.
supported
enum clause extension =
Ext_Zkt
mapping clause extensionName =
Ext_Zkt <->
"zkt"
function clause hartSupports(
Ext_Zkt) =
config extensions.
Zkt.
supported
function clause currentlyEnabled(
Ext_Zkt) =
hartSupports(
Ext_Zkt)
enum clause extension =
Ext_Zhinx
mapping clause extensionName =
Ext_Zhinx <->
"zhinx"
function clause hartSupports(
Ext_Zhinx) =
config extensions.
Zhinx.
supported
enum clause extension =
Ext_Zhinxmin
mapping clause extensionName =
Ext_Zhinxmin <->
"zhinxmin"
function clause hartSupports(
Ext_Zhinxmin) =
config extensions.
Zhinxmin.
supported
enum clause extension =
Ext_Zvbb
mapping clause extensionName =
Ext_Zvbb <->
"zvbb"
function clause hartSupports(
Ext_Zvbb) =
config extensions.
Zvbb.
supported
enum clause extension =
Ext_Zvbc
mapping clause extensionName =
Ext_Zvbc <->
"zvbc"
function clause hartSupports(
Ext_Zvbc) =
config extensions.
Zvbc.
supported
enum clause extension =
Ext_Zvkb
mapping clause extensionName =
Ext_Zvkb <->
"zvkb"
function clause hartSupports(
Ext_Zvkb) =
config extensions.
Zvkb.
supported
enum clause extension =
Ext_Zvkg
mapping clause extensionName =
Ext_Zvkg <->
"zvkg"
function clause hartSupports(
Ext_Zvkg) =
config extensions.
Zvkg.
supported
enum clause extension =
Ext_Zvkned
mapping clause extensionName =
Ext_Zvkned <->
"zvkned"
function clause hartSupports(
Ext_Zvkned) =
config extensions.
Zvkned.
supported
enum clause extension =
Ext_Zvknha
mapping clause extensionName =
Ext_Zvknha <->
"zvknha"
function clause hartSupports(
Ext_Zvknha) =
config extensions.
Zvknha.
supported
enum clause extension =
Ext_Zvknhb
mapping clause extensionName =
Ext_Zvknhb <->
"zvknhb"
function clause hartSupports(
Ext_Zvknhb) =
config extensions.
Zvknhb.
supported
enum clause extension =
Ext_Zvksed
mapping clause extensionName =
Ext_Zvksed <->
"zvksed"
function clause hartSupports(
Ext_Zvksed) =
config extensions.
Zvksed.
supported
enum clause extension =
Ext_Zvksh
mapping clause extensionName =
Ext_Zvksh <->
"zvksh"
function clause hartSupports(
Ext_Zvksh) =
config extensions.
Zvksh.
supported
enum clause extension =
Ext_Zvkt
mapping clause extensionName =
Ext_Zvkt <->
"zvkt"
function clause hartSupports(
Ext_Zvkt) =
config extensions.
Zvkt.
supported
function clause currentlyEnabled(
Ext_Zvkt) =
hartSupports(
Ext_Zvkt)
enum clause extension =
Ext_Zvkn
mapping clause extensionName =
Ext_Zvkn <->
"zvkn"
function clause hartSupports(
Ext_Zvkn) =
hartSupports(
Ext_Zvkned)
&
hartSupports(
Ext_Zvknhb)
&
hartSupports(
Ext_Zvkb)
&
hartSupports(
Ext_Zvkt)
function clause currentlyEnabled(
Ext_Zvkn) =
hartSupports(
Ext_Zvkn)
enum clause extension =
Ext_Zvknc
mapping clause extensionName =
Ext_Zvknc <->
"zvknc"
function clause hartSupports(
Ext_Zvknc) =
hartSupports(
Ext_Zvkn)
& hartSupports(
Ext_Zvbc)
function clause currentlyEnabled(
Ext_Zvknc) =
hartSupports(
Ext_Zvknc)
enum clause extension =
Ext_Zvkng
mapping clause extensionName =
Ext_Zvkng <->
"zvkng"
function clause hartSupports(
Ext_Zvkng) =
hartSupports(
Ext_Zvkn)
& hartSupports(
Ext_Zvkg)
function clause currentlyEnabled(
Ext_Zvkng) =
hartSupports(
Ext_Zvkng)
enum clause extension =
Ext_Zvks
mapping clause extensionName =
Ext_Zvks <->
"zvks"
function clause hartSupports(
Ext_Zvks) =
hartSupports(
Ext_Zvksed)
&
hartSupports(
Ext_Zvksh)
&
hartSupports(
Ext_Zvkb)
&
hartSupports(
Ext_Zvkt)
function clause currentlyEnabled(
Ext_Zvks) =
hartSupports(
Ext_Zvks)
enum clause extension =
Ext_Zvksc
mapping clause extensionName =
Ext_Zvksc <->
"zvksc"
function clause hartSupports(
Ext_Zvksc) =
hartSupports(
Ext_Zvks)
& hartSupports(
Ext_Zvbc)
function clause currentlyEnabled(
Ext_Zvksc) =
hartSupports(
Ext_Zvksc)
enum clause extension =
Ext_Zvksg
mapping clause extensionName =
Ext_Zvksg <->
"zvksg"
function clause hartSupports(
Ext_Zvksg) =
hartSupports(
Ext_Zvks)
& hartSupports(
Ext_Zvkg)
function clause currentlyEnabled(
Ext_Zvksg) =
hartSupports(
Ext_Zvksg)
enum clause extension =
Ext_Sscofpmf
mapping clause extensionName =
Ext_Sscofpmf <->
"sscofpmf"
function clause hartSupports(
Ext_Sscofpmf) =
config extensions.
Sscofpmf.
supported
enum clause extension =
Ext_Sstc
mapping clause extensionName =
Ext_Sstc <->
"sstc"
function clause hartSupports(
Ext_Sstc) =
config extensions.
Sstc.
supported
enum clause extension =
Ext_Svbare
mapping clause extensionName =
Ext_Svbare <->
"svbare"
function clause hartSupports(
Ext_Svbare) =
config extensions.
Svbare.
supported
enum clause extension =
Ext_Sv32
mapping clause extensionName =
Ext_Sv32 <->
"sv32"
function clause hartSupports(
Ext_Sv32) =
config extensions.
Sv32.
supported :
bool & (
xlen == 32)
enum clause extension =
Ext_Sv39
mapping clause extensionName =
Ext_Sv39 <->
"sv39"
function clause hartSupports(
Ext_Sv39) =
config extensions.
Sv39.
supported :
bool & (
xlen == 64)
enum clause extension =
Ext_Sv48
mapping clause extensionName =
Ext_Sv48 <->
"sv48"
function clause hartSupports(
Ext_Sv48) =
config extensions.
Sv48.
supported :
bool & (
xlen == 64)
enum clause extension =
Ext_Sv57
mapping clause extensionName =
Ext_Sv57 <->
"sv57"
function clause hartSupports(
Ext_Sv57) =
config extensions.
Sv57.
supported :
bool & (
xlen == 64)
enum clause extension =
Ext_Svinval
mapping clause extensionName =
Ext_Svinval <->
"svinval"
function clause hartSupports(
Ext_Svinval) =
config extensions.
Svinval.
supported
enum clause extension =
Ext_Svnapot
mapping clause extensionName =
Ext_Svnapot <->
"svnapot"
function clause hartSupports(
Ext_Svnapot) =
false enum clause extension =
Ext_Svpbmt
mapping clause extensionName =
Ext_Svpbmt <->
"svpbmt"
function clause hartSupports(
Ext_Svpbmt) =
false enum clause extension =
Ext_Svrsw60t59b
mapping clause extensionName =
Ext_Svrsw60t59b <->
"svrsw60t59b"
function clause hartSupports(
Ext_Svrsw60t59b) =
config extensions.
Svrsw60t59b.
supported
enum clause extension =
Ext_Smcntrpmf
mapping clause extensionName =
Ext_Smcntrpmf <->
"smcntrpmf"
function clause hartSupports(
Ext_Smcntrpmf) =
config extensions.
Smcntrpmf.
supported
let extensions_ordered_for_isa_string = [
Ext_M,
Ext_A,
Ext_F,
Ext_D,
Ext_C,
Ext_B,
Ext_V,
Ext_H,
Ext_Zicbom,
Ext_Zicbop,
Ext_Zicboz,
Ext_Zicfilp,
Ext_Zicntr,
Ext_Zicond,
Ext_Zicsr,
Ext_Zifencei,
Ext_Zihintntl,
Ext_Zihintpause,
Ext_Zihpm,
Ext_Zimop,
Ext_Zmmul,
Ext_Zaamo,
Ext_Zabha,
Ext_Zacas,
Ext_Zalrsc,
Ext_Zawrs,
Ext_Zfa,
Ext_Zfbfmin,
Ext_Zfh,
Ext_Zfhmin,
Ext_Zfinx,
Ext_Zdinx,
Ext_Zhinx,
Ext_Zhinxmin,
Ext_Zca,
Ext_Zcb,
Ext_Zcd,
Ext_Zcf,
Ext_Zcmop,
Ext_Zba,
Ext_Zbb,
Ext_Zbc,
Ext_Zbkb,
Ext_Zbkc,
Ext_Zbkx,
Ext_Zbs,
Ext_Zknd,
Ext_Zkne,
Ext_Zknh,
Ext_Zkr,
Ext_Zksed,
Ext_Zksh,
Ext_Zkt,
Ext_Zvbb,
Ext_Zvbc,
Ext_Zvkb,
Ext_Zvkg,
Ext_Zvkn,
Ext_Zvknc,
Ext_Zvkned,
Ext_Zvkng,
Ext_Zvknha,
Ext_Zvknhb,
Ext_Zvks,
Ext_Zvksc,
Ext_Zvksed,
Ext_Zvksg,
Ext_Zvksh,
Ext_Zvkt,
Ext_Sscofpmf,
Ext_Sstc,
Ext_Svinval,
Ext_Svnapot,
Ext_Svpbmt,
Ext_Svrsw60t59b,
Ext_Smcntrpmf,
]