Skip to content

Commit 920efeb

Browse files
fixed the syntax error
1 parent 881c2b4 commit 920efeb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spec/std/isa/csr/mseccfg.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ fields:
8383
if ((MSECCFG_MML_TYPE == "read-only-0") || (MSECCFG_MML_TYPE == "read-only-1")) {
8484
return CsrFieldType::RO;
8585
} else if (MSECCFG_MML_TYPE == "sticky") {
86-
return CsrFieldType::RW-R; // restricted: 0→1 allowed, 1→0 not allowed
86+
# Restricted: 0→1 allowed, 1→0 not allowed
87+
return CsrFieldType::RWR;
8788
}
8889
sw_write(csr_value): |
8990
return (MSECCFG_MML_TYPE == "read-only-1") ? 1 : (csr_value.MML | CSR[mseccfg].MML);
@@ -104,7 +105,8 @@ fields:
104105
if ((MSECCFG_MMWP_TYPE == "read-only-0") || (MSECCFG_MMWP_TYPE == "read-only-1")) {
105106
return CsrFieldType::RO;
106107
} else if (MSECCFG_MMWP_TYPE == "sticky") {
107-
return CsrFieldType::RW-R; // restricted: 0→1 allowed, 1→0 not allowed
108+
# Restricted: 0→1 allowed, 1→0 not allowed
109+
return CsrFieldType::RWR;
108110
}
109111
sw_write(csr_value): |
110112
return (MSECCFG_MMWP_TYPE == "read-only-1") ? 1 : (csr_value.MMWP | CSR[mseccfg].MMWP);
@@ -125,7 +127,7 @@ fields:
125127
b. When `mseccfg.RLB` is 0 and `pmpcfg.L` is 1 in any rule or entry (including disabled entries), then
126128
remains 0 and any further modifications to `mseccfg.RLB` are ignored until a PMP reset.
127129
type(): |
128-
return MUTABLE_MSECCFG_RLB ? CsrFieldType::RW : CsrFieldType:RO;
130+
return MUTABLE_MSECCFG_RLB ? CsrFieldType::RW : CsrFieldType::RO;
129131
definedBy: Smepmp
130132
reset_value(): |
131133
return MUTABLE_MSECCFG_RLB ? 0 : UNDEFINED_LEGAL;

0 commit comments

Comments
 (0)