You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.
Let's say PMP address range is 0x1000-0x1fff,
ea will be 0x1fff so 0x2000 should not included in the range.
However, since addr + size - 1 is 0x2000 + 0 - 1 = 0x1fff, it will be considered as in-range, which is not the case.
The text was updated successfully, but these errors were encountered:
I found that sometimes
tlb_fill
getssize=0
, which I don't understand,and if
size=0
, PMP breaks on boundary addresses.https://github.com/riscv/riscv-qemu/blob/riscv-qemu-3.1/target/riscv/pmp.c#L187
Let's say PMP address range is 0x1000-0x1fff,
ea will be 0x1fff so 0x2000 should not included in the range.
However, since
addr + size - 1
is 0x2000 + 0 - 1 = 0x1fff, it will be considered as in-range, which is not the case.The text was updated successfully, but these errors were encountered: