forked from riscv/riscv-arch-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsail.json
More file actions
474 lines (474 loc) · 11.4 KB
/
Copy pathsail.json
File metadata and controls
474 lines (474 loc) · 11.4 KB
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
{
"$schema": "/opt/riscv/share/sail-riscv/sail_riscv_config_schema.json",
"base": {
"xlen": 64,
"E": false,
"writable_misa": false,
"writable_fiom": true,
"writable_hpm_counters": {
"len": 32,
"value": "0xFFFF_FFFF"
},
// These settings control whether the specified exceptions
// cause information to be written into the appropriate
// `xtval` registers.
"xtval_nonzero": {
"illegal_instruction": true,
"software_breakpoint": true,
"hardware_breakpoint": true,
"load_address_misaligned": true,
"load_access_fault": true,
"load_page_fault": true,
"samo_address_misaligned": true,
"samo_access_fault": true,
"samo_page_fault": true,
"fetch_address_misaligned": true,
"fetch_access_fault": true,
"fetch_page_fault": true,
"software_check": true,
"reserved_exceptions": false
},
"reserved_behavior": {
// The configuration option determines how to handle the reserved behavior `amocas_odd_registers`.
// "AMOCAS_Fatal" – raise a Sail exception, stopping execution.
// "AMOCAS_Illegal" – treat it as an illegal instruction.
"amocas_odd_register": "AMOCAS_Illegal",
// The configuration option determines how to handle execution of a floating-point
// instruction with DYN (dynamic) rounding mode when `fcsr.FRM` contains a
// reserved value (0b101, 0b110, 0b111).
// This does not affect the execution of floating-point instructions that have a
// reserved rounding mode statically encoded in the instruction.
// "Fcsr_RM_Fatal" – raise a Sail exception, stopping execution.
// "Fcsr_RM_Illegal" – treat it as an illegal instruction.
"fcsr_rm": "Fcsr_RM_Illegal",
// The configuration option determines how to handle the reserved behavior `pmpcfg_with_R0W1`.
// "PMP_Fatal" – raise a Sail exception, stopping execution.
// "PMP_ClearPermissions" – convert a PMP entry with R=0, W=1 to R=0, W=0, X=0.
"pmpcfg_write_only": "PMP_ClearPermissions",
// The configuration option determines how to handle the reserved behavior `xenvcfg.CBIE` with 0b10.
// "Xenvcfg_Fatal" – raise a Sail exception, stopping execution.
// "Xenvcfg_ClearPermissions" – convert CBIE with 0b10 to 0b00.
"xenvcfg_cbie": "Xenvcfg_ClearPermissions",
// The configuration option determines how to handle the reserved behavior: Odd-numbered registers for RV32Zdinx.
// "Zdinx_Fatal" – raise a Sail exception, stopping execution.
// "Zdinx_Illegal" – treat it as an illegal instruction.
"rv32zdinx_odd_register": "Zdinx_Illegal"
}
},
"memory": {
"pmp": {
"grain": 4,
// This specifies the number of PMP entries present.
// The value must be one of 0, 16, or 64.
"count": 16,
// This specifies the number of usable PMP entries.
// Entries higher than this are read-only-zero.
// The value must be less than or equal to `count`.
"usable_count": 16,
"tor_supported": true,
"na4_supported": false,
"napot_supported": true
},
// This controls global support for misaligned access so it is
// checked before address translation. `misaligned_fault` in
// `regions` is checked after address translation.
"misaligned": {
"supported": true,
"byte_by_byte": false,
"order_decreasing": false,
"allowed_within_exp": 0
},
"translation": {
"dirty_update": false
},
// Address to write DTB to (if provided).
"dtb_address": {
"len": 64,
"value": "0x1000"
},
"regions": [
// ROM
{
"base": {
"len": 64,
"value": "0x1000"
},
"size": {
"len": 64,
"value": "0x1000"
},
"attributes": {
"cacheable": true,
"coherent": true,
"executable": false,
"readable": true,
"writable": false,
"read_idempotent": true,
"write_idempotent": true,
"misaligned_fault": "NoFault",
"reservability": "RsrvNone",
"supports_cbo_zero": false
},
"include_in_device_tree": false
},
// MMIO
{
"base": {
"len": 64,
"value": "0x2000000"
},
"size": {
"len": 64,
"value": "0x2000000"
},
"attributes": {
"cacheable": false,
"coherent": true,
"executable": false,
"readable": true,
"writable": true,
"read_idempotent": false,
"write_idempotent": false,
"misaligned_fault": "AlignmentFault",
"reservability": "RsrvNone",
"supports_cbo_zero": false
},
"include_in_device_tree": false
},
// RAM
{
"base": {
"len": 64,
"value": "0x80000000"
},
"size": {
"len": 64,
"value": "0x80000000"
},
"attributes": {
"cacheable": true,
"coherent": true,
"executable": true,
"readable": true,
"writable": true,
"read_idempotent": true,
"write_idempotent": true,
"misaligned_fault": "NoFault",
"reservability": "RsrvEventual",
"supports_cbo_zero": true
},
"include_in_device_tree": true
}
]
},
"platform": {
"vendorid": 1538,
"archid": 36,
"impid": 256,
"hartid": 0,
// Cache block size, specified as a power of 2.
"cache_block_size_exp": 6,
// This specifies both the size and alignment of the reservation set, specified as a power of 2.
// It must be at least 2 on RV32 and 3 on RV64 to support Zalrsc. It must not be more than
// 6 for Za64rs and 7 for Za128rs. In all cases, it must be less than or equal to 12.
"reservation_set_size_exp": 3,
"clint": {
// This must be in a suitable memory region (see `memory.regions`).
"base": 33554432,
"size": 786432
},
"clock_frequency": 1000000000,
"instructions_per_tick": 2,
"wfi_is_nop": true
},
"extensions": {
"M": {
"supported": true
},
"A": {
"supported": true
},
"F": {
"supported": true
},
"D": {
"supported": true
},
"V": {
// `support_level` must be one of the below strings:
// . "Disabled" for no vector extension support
// . "Integer" for Zve*x support
// . "Float_single" for Zve*f support
// . "Float_double" for Zve*d support
// . "Full" for the full V extension
// Note that `support_level` requires compatible
// values for `vlen_exp` and `elen_exp` below.
// For e.g. Zve32x and Zve32f require `elen_exp` >= 5,
// Zve64x, Zve64f, and Zve64d require `elen_exp` >= 6,
// and V requires `elen_exp` >= 6 and `vlen_exp` >= 7.
"support_level": "Disabled",
"vlen_exp": 8,
"elen_exp": 6,
"vl_use_ceil": false
},
"B": {
"supported": true
},
"S": {
"supported": true
},
"U": {
"supported": true
},
"Zibi": {
"supported": false
},
"Zicbom": {
"supported": true
},
"Zicbop": {
"supported": true
},
"Zicboz": {
"supported": true
},
// This extension just asserts that the cache block size is 64 bytes.
// If you enable this you also need to ensure `platform.cache_block_size_exp`
// is 6, otherwise you will get a config validation error.
"Zic64b": {
"supported": true
},
"Zicfilp": {
"supported": false
},
"Zicond": {
"supported": true
},
"Zicntr": {
"supported": true
},
"Zicsr": {
"supported": true
},
"Zifencei": {
"supported": true
},
"Zihintntl": {
"supported": true
},
"Zihintpause": {
"supported": true
},
"Zihpm": {
"supported": true
},
"Zimop": {
"supported": false
},
"Zmmul": {
"supported": false
},
"Zaamo": {
"supported": false
},
"Zabha": {
"supported": false
},
"Zacas": {
"supported": false
},
"Zalrsc": {
"supported": false
},
"Zawrs": {
"supported": false,
"nto": {
"is_nop": false
},
"sto": {
"is_nop": false
}
},
"Zfa": {
"supported": true
},
"Zfbfmin": {
"supported": false
},
"Zfh": {
"supported": true
},
"Zfhmin": {
"supported": false
},
"Zfinx": {
"supported": false
},
"Zdinx": {
"supported": false
},
"Zca": {
"supported": true
},
"Zcf": {
"supported": false
},
"Zcd": {
"supported": true
},
"Zcb": {
"supported": true
},
"Zcmop": {
"supported": false
},
"Zba": {
"supported": false
},
"Zbb": {
"supported": false
},
"Zbs": {
"supported": false
},
"Zbc": {
"supported": true
},
"Zbkb": {
"supported": true
},
"Zbkc": {
"supported": true
},
"Zbkx": {
"supported": true
},
"Zknd": {
"supported": true
},
"Zkne": {
"supported": true
},
"Zknh": {
"supported": true
},
"Zkr": {
"supported": false,
"sseed_reset_value": false,
"useed_reset_value": false,
"sseed_read_only_zero": false,
"useed_read_only_zero": false
},
"Zksed": {
"supported": false
},
"Zksh": {
"supported": false
},
"Zkt": {
"supported": true
},
"Zhinx": {
"supported": false
},
"Zhinxmin": {
"supported": false
},
"Zvabd": {
"supported": false
},
"Zvfbfmin": {
"supported": false
},
"Zvfbfwma": {
"supported": false
},
"Zvfh": {
"supported": false
},
"Zvfhmin": {
"supported": false
},
"Zvbb": {
"supported": false
},
"Zvbc": {
"supported": false
},
"Zvkb": {
"supported": false
},
"Zvkg": {
"supported": false
},
"Zvkned": {
"supported": false
},
"Zvknha": {
"supported": false
},
"Zvknhb": {
"supported": false
},
"Zvksed": {
"supported": false
},
"Zvksh": {
"supported": false
},
"Zvkt": {
"supported": false
},
"Sscofpmf": {
"supported": false
},
"Sstc": {
"supported": true
},
// Enabling Sstvala requires that the exceptions specified in the extension
// have their appropriate settings under `base.xtval_nonzero`.
"Sstvala": {
"supported": true
},
"Svinval": {
"supported": true
},
"Svrsw60t59b": {
"supported": false
},
"Smcntrpmf": {
"supported": false
},
"Svbare": {
"supported": true,
"sfence_vma_illegal_if_svbare_only": true
},
"Sv32": {
"supported": false
},
"Sv39": {
"supported": true
},
"Sv48": {
"supported": true
},
"Sv57": {
"supported": true
},
"Stateen": {
"Smstateen": {
"supported": false
},
"Ssstateen": {
"supported": false
},
"C_readonly_zero": true,
"SE0_readonly_zero": false
},
"Ssqosid": {
"supported": false,
"rcid_length": 12,
"mcid_length": 12
}
}
}