-
Notifications
You must be signed in to change notification settings - Fork 45
/
schema_isa.yaml
14110 lines (14052 loc) · 568 KB
/
schema_isa.yaml
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
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
###
#Vendor
#------
#
# - **Description**: A string capturing the vendor name.
#
# - **Examples**:
#
# .. code-block:: yaml
#
# Vendor: Shakti
# Vendor: Incoresemi
Vendor: {type: string}
###
#Device
#------
#
# - **Description**: A string capturing the device name.
#
# - **Examples**:
#
# .. code-block:: yaml
#
# Device: E-Class
# Device: C-Class
Device: {type: string}
hart_schema:
type : dict
schema:
###
#ISA
#---
#
# - **Description**: Takes input a string representing the ISA supported by the implementation. All extension names
# (other than Zext) should be mentioned in upper-case. Z extensions should begin with an upper-case
# 'Z' followed by lower-case extension name (without Camel casing)
# - **Default**: This is a required field to be set by the user. No defaults exist.
# - **Constraints**:
#
# - Certain extensions are only valid in certain user-spec version. For, eg. Zifencei is available only in user-spec 2.3 and above.
# - The ISA string must be specified as per the convention mentioned in the specifications(like subsequent Z extensions must be separated with an '_')
#
# - **Examples**:
#
# .. code-block:: yaml
#
# ISA: RV32IMA
# ISA: RV64IMAFDCZifencei
ISA: { type: string, required: true, check_with: capture_isa_specifics}
###
#User_Spec_Version
#-----------------
#
# - **Description**: Version number of User/Non-priveleged ISA specification as string. Please enclose the version in "" to avoid type mismatches.
# - **Default**: 2.2
# - **Constraints**: should be a valid version later than 2.2
# - **Examples**:
#
# .. code-block:: yaml
#
# User_Spec_Version: "2.2"
# User_Spec_Version: "2.3"
User_Spec_Version: {type: string, default: '2.2', required: true, allowed: ["2.2", "2.3"]}
###
#Privilege_Spec_Version
#----------------------
#
# - **Description**: Version number of Priveleged ISA specification as string. Please enclose the version in "" to avoid type mismatches.
# - **Default**: "1.10"
# - **Constraints**: should be a valid version later than 1.10
# - **Examples**:
#
# .. code-block:: yaml
#
# Privilege_Spec_Version: "1.10"
# Privilege_Spec_Version: "1.11"
Privilege_Spec_Version: { type: string, default: '1.10', required: true,
allowed: ["1.10", "1.11", "0"] }
###
#hw_data_misaligned_support
#--------------------------
#
# - **Description**: A boolean value indicating whether hardware support for misaligned load/store requests exists.
# - **Default**: False
# - **Constraints**: None
# - **Examples**:
#
# .. code-block:: yaml
#
# hw_data_misaligned_support: True
# hw_data_misaligned_support: False
hw_data_misaligned_support: {type: boolean, default: false}
###
#supported_xlen
#--------------
#
# - **Description**: list of supported xlen on the target
# - **Default**: This is a required field to be set by the user. No defaults exist.
# - **Constraints**: list should include integers from: 32, 64 and/or 128. XLEN=128 is not fully supported though.
# - **Examples**:
#
# .. code-block:: yaml
#
# supported_xlen : [32]
# supported_xlen : [64, 32]
# supported_xlen : [64]
supported_xlen:
type: list
schema: { type: integer, allowed: [ 32, 64, 128] }
required: true
check_with: isa_xlen
###
#pmp_granularity
#---------------
#
# - **Description**: Granularity of pmps
# - **Default**: 0
# - **Constraints**: None
# - **Examples**:
#
# .. code-block:: yaml
#
# pmp_granularity : 2
# pmp_granularity : 4
pmp_granularity:
type: integer
min: 0
default: 0
###
#physical_addr_sz
#----------------
#
# - **Description**: size of the physical address
# - **Default**: This is a required field to be set by the user. No defaults exist.
# - **Constraints**: cannot exceed 56 bits
# - **Examples**:
#
# .. code-block:: yaml
#
# physical_addr_sz : 32
physical_addr_sz:
type: integer
max: 56
required: true
check_with: phy_addr
###
#custom_exceptions
#-----------------
#
# - **Description**: A dictionary of custom exceptions implemented by the device. Each node in the
# dictionary contains 3 fields:
#
# - cause_val: and integer indicating the cause value associated with that exception. Cannot
# be a reserved cause value.
# - cause_name: a string containing the name of the exception
# - priv_mode: a string containing one-of M, S or U indicating the privilege mode to which the
# exception is associated with.
# - **Default**: null dictionary indicating no custom exceptions exist.
# - **Constraints**: Reserved encodings cannot be used in cause_val
# - **Examples**:
#
# .. code-block:: yaml
#
# custom_exceptions:
# - cause_val: 25
# cause_name: mycustom
# priv_mode: M
# - cause_val: 26
# cause_name: mycustom2
# priv_mode: M
custom_exceptions:
type: list
schema:
type: dict
schema:
cause_val: {type: integer, min: 24, max: 63, forbidden: [16,17,18,19,20,21,22,23,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47]}
cause_name: {type: string}
priv_mode: {type: string, default: 'M', allowed: ['M','S','U']}
nullable: True
nullable: True
default:
###
#custom_interrupts
#-----------------
#
# - **Description**: A dictionary of custom interrupts implemented by the device. Each node in the
# dictionary contains 4 fields:
#
# - cause_val: and integer indicating the cause value associated with that interrupt. Cannot
# be a reserved cause value.
# - cause_name: a string containing the name of the interrupt
# - priv_mode: a string containing one-of M, S or U indicating the privilege mode to which the
# exception is associated with.
# - on_reset_enable: an integer which be 0 or 1, indicating the whether the interrupt is
# enable on reset or not.
# - **Default**: null dictionary indicating no custom exceptions exist.
# - **Constraints**: Reserved encodings cannot be used in cause_val
# - **Examples**:
#
# .. code-block:: yaml
#
# custom_interrupts:
# - cause_val: 25
# cause_name: mycustom
# priv_mode: M
# on_reset_enable: 1
# - cause_val: 26
# cause_name: mycustom2
# priv_mode: S
# on_reset_enable: 0
custom_interrupts:
type: list
schema:
type: dict
schema:
cause_val: {type: integer, min: 16}
cause_name: {type: string}
on_reset_enable: {type: integer, min: 0, max: 1, default: 0}
priv_mode: {type: string, default: 'M', allowed: ['M','S','U']}
nullable: True
nullable: True
default:
###
#pte_ad_hw_update
#-----------------
#
# - **Description**: This is a boolean field indicating that when a virtual page is accessed
# and the A bit is clear, or is written and the D bit is clear, the implementation sets
# the corresponding bit(s) in the PTE in the hardware itself and does not raise an exception
# for this particular scenario. When set to False, a corresponding page-fault exception needs
# to be raised.
# - **Default**: False
# - **Constraints**: Can be set to True only if 'S' mode is implemented in the ISA and if
# stap.mode can be set to one of the virtualization modes.
# - **Examples**:
#
# .. code-block:: yaml
#
# pte_ad_hw_update: False
# pte_ad_hw_update: True
pte_ad_hw_update: {type: boolean, default: False, check_with: s_exists}
###
#mtval_update
#------------
#
# - **Description**: This field a basically a bitmap. If bit `n` is set, it indicates
# that the device will update the mtval CSR with a non-zero value when an exception corresponding to
# cause `n` occurs. A value of zero will indicate that the exception `n` will update the mtval
# with value 0.
# - **Default**: 255 (set for exception cause values 0-7)
# - **Constraints**:
#
# - reserved bits [10, 11, 16-23, 32-47, >=64] must be zeros always
# - bits corresponding to page-faults can only be set if 'S' mode is implemented
# - bits corresponding to guest-page faults can only be set if 'H' mode is implemented
#
# - **Examples**:
#
# .. code-block:: yaml
#
# mtval_update: 0b1110
mtval_update: {type: integer, default: 0b11111111, check_with: mtval_update}
schema_node:
type: dict
allow_unknown: false
noneof:
- schema:
warl: &ref_warl
type: dict
schema:
dependency_fields:
type: list
empty: true
schema:
type: string
nullable: true
legal:
type: list
schema:
type: string
wr_illegal:
type: list
schema:
type: string
-
schema:
wlrl: &ref_wlrl
type: list
schema:
type: string
regex: (^0x[012456789abcdef]+:0x[0123456789abcdef]+$)|(^[0-9]+:[0-9]+$)|(^[0-9]+$)|(^0x[012456789abcdef]+$)
gen_flatschema_machine:
schema: &gen_flatschema_machine
priv_mode: {type: string, default: M, allowed: [M]}
reset-val: {type: integer, default: 0}
rv32:
type: dict
schema:
fields: {type: list, default: []}
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 31, allowed: [31]}
lsb: {type: integer, default: 0, allowed: [0]}
type:
type: dict
oneof:
- schema: {ro_constant: {type: integer, max: 0xFFFFFFFF}}
- schema: { warl: *ref_warl }
- schema: { wlrl: *ref_wlrl }
default:
ro_constant: 0
accessible:
type: boolean
default: true
check_with: rv32_check
default: {accessible: False}
rv64:
type: dict
schema:
fields: {type: list, default: []}
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 63, allowed: [63]}
lsb: {type: integer, default: 0, allowed: [0]}
type:
type: dict
oneof:
- schema: {ro_constant: {type: integer, max: 0xFFFFFFFFFFFFFFFF}}
- schema: { warl: *ref_warl }
- schema: { wlrl: *ref_wlrl }
default:
ro_constant: 0
accessible:
default: true
check_with: rv64_check
default: {accessible: False}
gen_flatschema_machine32:
schema: &gen_flatschema_machine32
priv_mode: {type: string, default: M, allowed: [M]}
reset-val:
type: integer
default: 0
rv32:
type: dict
schema:
fields: {type: list, default: []}
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 31, allowed: [31]}
lsb: {type: integer, default: 0, allowed: [0]}
type:
type: dict
oneof:
- schema: {ro_constant: {type: integer, max: 0xFFFFFFFF }}
- schema: { warl: *ref_warl }
default:
ro_constant: 0
accessible:
type: boolean
default: true
check_with: rv32_check
default: {accessible: False}
rv64:
type: dict
schema:
accessible:
default: False
default: {accessible: False}
misa:
type: dict
schema:
description: {type: string, default: misa is a read-write register reporting the ISA supported by the hart.}
address: { type: integer, default: 769, allowed: [769] }
priv_mode: { type: string, allowed: [M], default: M }
reset-val: { type: integer, default: 0, check_with: [max_length, reset_ext] }
rv32:
type: dict
schema:
fields: { type: list, default: [] }
mxl:
type: dict
schema:
description: {type: string, default: Encodes the native base integer ISA width.}
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: { type: integer, default: 31, allowed: [31] }
lsb: { type: integer, default: 30, allowed: [30] }
implemented: { type: boolean, default: false }
type:
type: dict
oneof:
- schema: {ro_constant: {type: integer, max: 0x3, min: 0x1}}
- schema: {ro_variable: {type: boolean}}
- schema: { warl: *ref_warl }
default:
warl:
dependency_fields: []
legal:
- mxl[1:0] in [0x1]
wr_illegal:
- unchanged
default: {implemented: true}
extensions:
type: dict
schema:
description:
type: string
default: Encodes the presence of the standard extensions, with a single
bit per letter of the alphabet.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 25, allowed: [25]}
lsb: {type: integer, default: 0, allowed: [0]}
implemented: {type: boolean, default: false}
type:
type: dict
oneof:
- schema: {ro_constant: {type: integer, max: 0x3ffffff}}
- schema: {ro_variable: {type: boolean}}
- schema: { warl: *ref_warl }
default:
warl:
dependency_fields: []
legal:
- extensions[25:0] bitmask [0x3FFFFFFF, 0x00000000]
wr_illegal:
- unchanged
default: {implemented: true}
accessible:
type: boolean
default: true
check_with: [rv32_check, cannot_be_false_rv32]
default: {accessible: false}
rv64:
type: dict
schema:
fields: {type: list, default: []}
mxl:
type: dict
schema:
description:
type: string
default: Encodes the native base integer ISA width.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 63, allowed: [63]}
lsb: {type: integer, default: 62, allowed: [62]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: {ro_constant: {type: integer, max: 3, min: 1}}
- schema: {ro_variable: {type: boolean}}
- schema: { warl: *ref_warl }
default:
warl:
dependency_fields: []
legal:
- mxl[1:0] in [0x2]
wr_illegal:
- unchanged
default: {implemented: true}
extensions:
type: dict
schema:
description:
type: string
default: Encodes the presence of the standard extensions, with a single
bit per letter of the alphabet.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 25, allowed: [25]}
lsb: {type: integer, default: 0, allowed: [0]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: {ro_constant: {type: integer, max: 0x3ffffff}}
- schema: {ro_variable: {type: boolean}}
- schema: { warl: *ref_warl }
default:
warl:
dependency_fields: []
legal:
- extensions[25:0] bitmask [0x3FFFFFFF, 0x00000000]
wr_illegal:
- unchanged
default: {implemented: true}
accessible:
type: boolean
default: true
check_with: [rv64_check, cannot_be_false_rv64]
default: {accessible: false}
mstatus:
type: dict
schema:
description:
type: string
default: The mstatus register keeps track of and controls the hart’s current
operating state.
address: {type: integer, default: 768, allowed: [768]}
priv_mode: {type: string, default: M, allowed: [M]}
reset-val:
type: integer
check_with: max_length
default: 0
rv32:
type: dict
schema:
fields: {type: list, default: []}
uie:
type: dict
schema:
description: {type: string, default: Stores the state of the user mode interrupts.}
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 0, allowed: [0]}
lsb: {type: integer, default: 0, allowed: [0]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: { warl: *ref_warl }
- schema: {ro_constant: {type: integer, max: 0 , min : 0}}
- schema: { wlrl: *ref_wlrl }
default:
wlrl:
- 0:1
default: {implemented: false}
check_with: n_check
sie:
type: dict
schema:
description: { type: string, default: Stores the state of the supervisor mode interrupts.}
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 1, allowed: [1]}
lsb: {type: integer, default: 1, allowed: [1]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: { warl: *ref_warl }
- schema: {ro_constant: {type: integer, max: 0 , min : 0}}
- schema: { wlrl: *ref_wlrl }
default:
wlrl:
- 0:1
default: {implemented: false}
check_with: s_check
mie:
type: dict
schema:
description:
type: string
default: Stores the state of the machine mode interrupts.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 3, allowed: [3]}
lsb: {type: integer, default: 3, allowed: [3]}
implemented: {type: boolean, default: true}
type:
type: dict
schema: { wlrl: *ref_wlrl }
default: { wlrl: [0:1] }
default: {implemented: true}
upie:
type: dict
schema:
description:
type: string
default: Stores the state of the user mode interrupts prior to the trap.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 4, allowed: [4]}
lsb: {type: integer, default: 4, allowed: [4]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: { warl: *ref_warl }
- schema: {ro_constant: {type: integer, max: 0 , min : 0}}
- schema: { wlrl: *ref_wlrl }
default:
wlrl:
- 0:1
default: {implemented: false}
check_with: n_check
spie:
type: dict
schema:
description:
type: string
default: Stores the state of the supervisor mode interrupts prior to
the trap.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 5, allowed: [5]}
lsb: {type: integer, default: 5, allowed: [5]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: { warl: *ref_warl }
- schema: {ro_constant: {type: integer, max: 0 , min : 0}}
- schema: { wlrl: *ref_wlrl }
default:
wlrl:
- 0:1
default: {implemented: false}
check_with: s_check
mpie:
type: dict
schema:
description:
type: string
default: Stores the state of the machine mode interrupts prior to the
trap.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 7, allowed: [7]}
lsb: {type: integer, default: 7, allowed: [7]}
implemented: {type: boolean, default: true}
type:
type: dict
schema: { wlrl: *ref_wlrl }
default: { wlrl: [0:1]}
default: {implemented: true}
spp:
type: dict
schema:
description:
type: string
default: Stores the previous priority mode for supervisor.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 8, allowed: [8]}
lsb: {type: integer, default: 8, allowed: [8]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: { warl: *ref_warl }
- schema: {ro_constant: {type: integer, max: 1 , min : 0}}
- schema: { wlrl: *ref_wlrl }
default: {ro_constant: 0}
default: {implemented: false}
check_with: s_check
mpp:
type: dict
schema:
description:
type: string
default: Stores the previous priority mode for machine.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 12, allowed: [12]}
lsb: {type: integer, default: 11, allowed: [11]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: { warl: *ref_warl }
- schema: {ro_constant: {type: integer, max: 3 , min : 0}}
- schema: { wlrl: *ref_wlrl }
default: {ro_constant: 0}
default: {implemented: true}
fs:
type: dict
schema:
description:
type: string
default: Encodes the status of the floating-point unit, including the
CSR fcsr and floating-point data registers.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 14, allowed: [14]}
lsb: {type: integer, default: 13, allowed: [13]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: {ro_constant: {type: integer, max: 3 , min : 0}}
- schema: { warl: *ref_warl }
default:
warl:
dependency_fields: []
legal:
- fs[1:0] in [0x0:0x3]
wr_illegal:
- unchanged
default: {implemented: false}
check_with: fs_check
xs:
type: dict
schema:
description:
type: string
default: Encodes the status of additional user-mode extensions and associated
state.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 16, allowed: [16]}
lsb: {type: integer, default: 15, allowed: [15]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: {ro_constant: {type: integer, max: 3 , min : 0}}
- schema: { warl: *ref_warl }
- schema: {ro_variable: {type: boolean}}
default: {ro_constant: 0}
default: {implemented: false}
mprv:
type: dict
schema:
description:
type: string
default: Modifies the privilege level at which loads and stores execute
in all privilege modes.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 17, allowed: [17]}
lsb: {type: integer, default: 17, allowed: [17]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: {ro_constant: {type: integer, max: 1 , min : 0}}
- schema: { warl: *ref_warl }
- schema: { wlrl: *ref_wlrl }
default:
warl:
dependency_fields: []
legal:
- mprv[0] in [0x0, 0x1]
wr_illegal:
- unchanged
default: {implemented: false}
check_with: u_check
sum:
type: dict
schema:
description:
type: string
default: Modifies the privilege with which S-mode loads and stores access
virtual memory.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 18, allowed: [18]}
lsb: {type: integer, default: 18, allowed: [18]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: {ro_constant: {type: integer, max: 1 , min : 0}}
- schema: { warl: *ref_warl }
- schema: { wlrl: *ref_wlrl }
default:
warl:
dependency_fields: []
legal:
- sum[0] in [0x0]
wr_illegal:
- unchanged
default: {implemented: false}
check_with: s_check
mxr:
type: dict
schema:
description:
type: string
default: Modifies the privilege with which loads access virtual memory.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 19, allowed: [19]}
lsb: {type: integer, default: 19, allowed: [19]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: { wlrl: *ref_wlrl }
- schema: {ro_constant: {type: integer, max: 1 , min : 0}}
- schema: { warl: *ref_warl }
default:
warl:
dependency_fields: []
legal:
- mxr[0] in [0x0]
wr_illegal:
- unchanged
default: {implemented: false}
check_with: s_check
tvm:
type: dict
schema:
description:
type: string
default: Supports intercepting supervisor virtual-memory management
operations.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 20, allowed: [20]}
lsb: {type: integer, default: 20, allowed: [20]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: { wlrl: *ref_wlrl }
- schema: {ro_constant: {type: integer, max: 1 , min : 0}}
- schema: { warl: *ref_warl }
default:
warl:
dependency_fields: []
legal:
- tvm[0] in [0x0]
wr_illegal:
- unchanged
default: {implemented: false}
check_with: s_check
tw:
type: dict
schema:
description:
type: string
default: Supports intercepting the WFI instruction.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 21, allowed: [21]}
lsb: {type: integer, default: 21, allowed: [21]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: { wlrl: *ref_wlrl }
- schema: {ro_constant: {type: integer, max: 1 , min : 0}}
- schema: { warl: *ref_warl }
default: {ro_constant: 0}
default: {implemented: false}
check_with: su_check
tsr:
type: dict
schema:
description:
type: string
default: Supports intercepting the supervisor exception return instruction.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 22, allowed: [22]}
lsb: {type: integer, default: 22, allowed: [22]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: { wlrl: *ref_wlrl }
- schema: {ro_constant: {type: integer, max: 1 , min : 0}}
- schema: { warl: *ref_warl }
default:
warl:
dependency_fields: []
legal:
- tsr[0] in [0x0]
wr_illegal:
- unchanged
default: {implemented: false}
check_with: s_check
spelp:
type: dict
schema:
description:
type: string
default: Supervisor mode previous expected-landing-pad (ELP) state.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 23, allowed: [23]}
lsb: {type: integer, default: 23, allowed: [23]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: { wlrl: *ref_wlrl }
- schema: {ro_constant: {type: integer, max: 1 , min : 0}}
- schema: { warl: *ref_warl }
default:
warl:
dependency_fields: []
legal:
- spelp[0] in [0x0]
wr_illegal:
- unchanged
default: {implemented: false}
check_with: s_check
sd:
type: dict
schema:
description:
type: string
default: Read-only bit that summarizes whether either the FS field or
XS field signals the presence of some dirty state.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 31, allowed: [31]}
lsb: {type: integer, default: 31, allowed: [31]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: {ro_variable: {type: boolean}}
- schema: { warl: *ref_warl }
- schema: { wlrl: *ref_wlrl }
default:
wlrl:
- 0:1
default: {implemented: true}
check_with: fs_check
accessible:
type: boolean
default: false
check_with: rv32_check
rv64:
type: dict
schema:
fields: {type: list, default: []}
uie:
type: dict
schema:
description: {type: string, default: Stores the state of the user mode interrupts.}
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 0, allowed: [0]}
lsb: {type: integer, default: 0, allowed: [0]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: { wlrl: *ref_wlrl }
- schema: { warl: *ref_warl }
- schema: {ro_constant: {type: integer, max: 0 , min : 0}}
default:
wlrl:
- 0:1
default: {implemented: false}
check_with: n_check
sie:
type: dict
schema:
description: { type: string, default: Stores the state of the supervisor mode interrupts.}
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 1, allowed: [1]}
lsb: {type: integer, default: 1, allowed: [1]}
implemented: {type: boolean, default: true}
type:
type: dict
oneof:
- schema: { wlrl: *ref_wlrl }
- schema: { warl: *ref_warl }
- schema: {ro_constant: {type: integer, max: 0 , min : 0}}
default:
wlrl:
- 0:1
default: {implemented: false}
check_with: s_check
mie:
type: dict
schema:
description:
type: string
default: Stores the state of the machine mode interrupts.
shadow: {type: string, default: , nullable: True}
shadow_type: {type: string, default: rw, nullable: True, allowed: ['rw','ro']}
msb: {type: integer, default: 3, allowed: [3]}
lsb: {type: integer, default: 3, allowed: [3]}