Skip to content

Commit f78532a

Browse files
authored
Merge pull request #141 from bilalsakhawat/pmp_bug
TOR pmp matching with same hi and lo pmpaddr
2 parents c33a6f1 + a57cfd5 commit f78532a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model/riscv_pmp_control.sail

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ enum pmpAddrMatch = {PMP_NoMatch, PMP_PartialMatch, PMP_Match}
122122
function pmpMatchAddr(addr: xlenbits, width: xlenbits, rng: pmp_addr_range) -> pmpAddrMatch = {
123123
match rng {
124124
None() => PMP_NoMatch,
125-
Some((lo, hi)) => if hi <_u lo /* to handle mis-configuration */
125+
Some((lo, hi)) => if hi <=_u lo /* to handle mis-configuration */
126126
then PMP_NoMatch
127127
else {
128128
if (addr + width <=_u lo) | (hi <=_u addr)

0 commit comments

Comments
 (0)