Skip to content

Commit 9c71ef7

Browse files
committed
[#61174] Add comments for CLIC registers
1 parent 2f8dc48 commit 9c71ef7

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

arch/riscv/cpu.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ struct CPUState {
118118
target_ulong medeleg;
119119

120120
target_ulong stvec;
121-
target_ulong stvt; /* since: priv-?.??.? */
122-
target_ulong sintthresh; /* since: priv-?.??.? */
121+
target_ulong stvt; /* unratified as of 2024-06; ssclic extension */
122+
target_ulong sintthresh; /* unratified as of 2024-06; ssclic extension */
123123
target_ulong sepc;
124124
target_ulong scause;
125125
target_ulong stval; /* renamed from sbadaddr since: priv-1.10.0 */
@@ -128,8 +128,8 @@ struct CPUState {
128128
target_ulong sideleg;
129129

130130
target_ulong mtvec;
131-
target_ulong mtvt; /* since: priv-?.??.? */
132-
target_ulong mintthresh; /* since: priv-?.??.? */
131+
target_ulong mtvt; /* unratified as of 2024-06; smclic extension */
132+
target_ulong mintthresh; /* unratified as of 2024-06; smclic extension */
133133
target_ulong mepc;
134134
target_ulong mcause;
135135
target_ulong mtval; /* renamed from mbadaddr since: priv-1.10.0 */
@@ -142,7 +142,7 @@ struct CPUState {
142142

143143
target_ulong sscratch;
144144
target_ulong mscratch;
145-
target_ulong mintstatus; /* since: priv-?.??.? */
145+
target_ulong mintstatus; /* unratified as of 2024-06; smclic extension */
146146

147147
target_ulong vstart;
148148
target_ulong vxsat;

arch/riscv/cpu_bits.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@
3535
#define CSR_SIE 0x104
3636
#define CSR_STVEC 0x105
3737
#define CSR_SCOUNTEREN 0x106
38-
#define CSR_STVT 0x107 /* since: priv-?.??.? */
38+
#define CSR_STVT 0x107 /* unratified as of 2024-06; ssclic extension */
3939
#define CSR_SSCRATCH 0x140
4040
#define CSR_SEPC 0x141
4141
#define CSR_SCAUSE 0x142
4242
#define CSR_SBADADDR 0x143 /* until: priv-1.9.1 */
4343
#define CSR_STVAL 0x143 /* since: priv-1.10 */
4444
#define CSR_SIP 0x144
45-
#define CSR_SNXTI 0x145 /* since: priv-?.??.? */
46-
#define CSR_SINTTHRESH 0x147 /* since: priv-?.??.? */
47-
#define CSR_SSCRATCHCSW 0x148 /* since: priv-?.??.? */
48-
#define CSR_SSCRATCHCSWL 0x149 /* since: priv-?.??.? */
45+
#define CSR_SNXTI 0x145 /* unratified as of 2024-06; ssclic extension */
46+
#define CSR_SINTTHRESH 0x147 /* unratified as of 2024-06; ssclic extension */
47+
#define CSR_SSCRATCHCSW 0x148 /* unratified as of 2024-06; ssclic extension */
48+
#define CSR_SSCRATCHCSWL 0x149 /* unratified as of 2024-06; ssclic extension */
4949
#define CSR_SPTBR 0x180 /* until: priv-1.9.1 */
5050
#define CSR_SATP 0x180 /* since: priv-1.10 */
5151
#define CSR_MSTATUS 0x300
@@ -55,7 +55,7 @@
5555
#define CSR_MIE 0x304
5656
#define CSR_MTVEC 0x305
5757
#define CSR_MCOUNTEREN 0x306
58-
#define CSR_MTVT 0x307 /* since: priv-?.??.? */
58+
#define CSR_MTVT 0x307 /* unratified as of 2024-06; smclic extension */
5959
#define CSR_MCOUNTINHIBIT 0x320 /* since: priv-1.11 */
6060
#define CSR_MUCOUNTEREN 0x320 /* until: priv-1.10 */
6161
#define CSR_MSCOUNTEREN 0x321
@@ -94,10 +94,10 @@
9494
#define CSR_MBADADDR 0x343 /* until: priv-1.9.1 */
9595
#define CSR_MTVAL 0x343 /* since: priv-1.10 */
9696
#define CSR_MIP 0x344
97-
#define CSR_MNXTI 0x345 /* since: priv-?.??.? */
98-
#define CSR_MINTTHRESH 0x347 /* since: priv-?.??.? */
99-
#define CSR_MSCRATCHCSW 0x348 /* since: priv-?.??.? */
100-
#define CSR_MSCRATCHCSWL 0x349 /* since: priv-?.??.? */
97+
#define CSR_MNXTI 0x345 /* unratified as of 2024-06; smclic extension */
98+
#define CSR_MINTTHRESH 0x347 /* unratified as of 2024-06; smclic extension */
99+
#define CSR_MSCRATCHCSW 0x348 /* unratified as of 2024-06; smclic extension */
100+
#define CSR_MSCRATCHCSWL 0x349 /* unratified as of 2024-06; smclic extension */
101101
#define CSR_PMPCFG0 0x3a0
102102
#define CSR_PMPCFG1 0x3a1
103103
#define CSR_PMPCFG2 0x3a2
@@ -262,8 +262,8 @@
262262
#define CSR_VL 0xc20
263263
#define CSR_VTYPE 0xc21
264264
#define CSR_VLENB 0xc22
265-
#define CSR_SINTSTATUS 0xdb1 /* since: priv-?.??.? */
266-
#define CSR_MINTSTATUS 0xfb1 /* since: priv-?.??.? */
265+
#define CSR_SINTSTATUS 0xdb1 /* unratified as of 2024-06; ssclic extension */
266+
#define CSR_MINTSTATUS 0xfb1 /* unratified as of 2024-06; smclic extension */
267267
#define CSR_UNHANDLED 0xffff
268268

269269
/* mstatus bits */

0 commit comments

Comments
 (0)