We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 36d558f + 5b605b2 commit e83c4bcCopy full SHA for e83c4bc
arch/csr/hstatus.yaml
@@ -133,10 +133,10 @@ hstatus:
133
When `hstatus.VGEIN` != 0, it selects which bit of `hgeip` is currently active in VS-mode.
134
135
type(): |
136
- # if NUM_EXTERNAL_GUEST_INTERRUPTS+1 is a power of two (beacuse indexing in `hgeip` starts at 1),
+ # if NUM_EXTERNAL_GUEST_INTERRUPTS+1 is 63 (beacuse indexing in `hgeip` starts at 1),
137
# then the field accepts any value.
138
# Otherwise, it accepts a restricted set of values
139
- if (power_of_2?<6>(NUM_EXTERNAL_GUEST_INTERRUPTS + 1)) {
+ if (NUM_EXTERNAL_GUEST_INTERRUPTS == 63) {
140
return CsrFieldType::RW;
141
} else {
142
return CsrFieldType::RWR;
0 commit comments