Hi,
Rev1.10 of the privilege spec says “If PMP entry I’s A field is set to TOR, the entry matches any address a such that pmpaddri-1 <= a < pmpaddri.”
However if PMPi-1’s A field is NAPOT, then it shouldn’t be pmpaddri-1, but the top of the NAPOT range, right?
Richard

Richard Herveille
Managing Director
Phone +31 (45) 405 5681
Cell +31 (6) 5207 2230
Rev1.10 of the privilege spec says “If PMP entry I’s A field is set to TOR, the entry matches any address a such that pmpaddri-1 <= a < pmpaddri.”
However if PMPi-1’s A field is NAPOT, then it shouldn’t be pmpaddri-1, but the top of the NAPOT range, right?
Thinking about this a bit more, the spec is unclear about whether pmpaddr holds the lower or upper bounds for NA4/NAPOT.
So for pmpaddr=aa and NA4, what is the range? {(aa-1)00, (aa-1)01, (aa-1)10, (aa-1)11)} or {(aa-1)01, (aa-1)10, (aa-1)11, aa00 or {aa00, aa01, aa10, aa11} }?
I assume it’s the latter.
Thanks,
Richard
Hi,
Rev1.10 of the privilege spec says “If PMP entry I’s A field is set to TOR, the entry matches any address a such that pmpaddri-1 <= a < pmpaddri.”
However if PMPi-1’s A field is NAPOT, then it shouldn’t be pmpaddri-1, but the top of the NAPOT range, right?
--
You received this message because you are subscribed to the Google Groups "RISC-V HW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hw-dev+unsubscribe@groups.riscv.org.
To post to this group, send email to hw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/hw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/hw-dev/05A4D999-7EA7-4C24-960B-29AAA3827856%40roalogic.com.
--
You received this message because you are subscribed to the Google Groups "RISC-V HW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hw-dev+unsubscribe@groups.riscv.org.
To post to this group, send email to hw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/hw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/hw-dev/739C77F5-15E4-40FE-83B8-CA569D2E7015%40roalogic.com.
When pmpcfgX is NAPOT, pmpaddrX holds the range, and pmpaddr(X-1) plays no role.
Sent from my iPadWhen pmpcfgX is NAPOT, pmpaddrX holds the range, and pmpaddr(X-1) plays no role.Yes, I understand, but what’s the range? I assume starting from aaa00, since that’s the easiest to decode. However range could also mean to end at aaa00
Richard
On Fri, Mar 30, 2018 at 7:35 AM, Richard Herveille <richard....@roalogic.com> wrote:
Rev1.10 of the privilege spec says “If PMP entry I’s A field is set to TOR, the entry matches any address a such that pmpaddri-1 <= a < pmpaddri.”
However if PMPi-1’s A field is NAPOT, then it shouldn’t be pmpaddri-1, but the top of the NAPOT range, right?
Thinking about this a bit more, the spec is unclear about whether pmpaddr holds the lower or upper bounds for NA4/NAPOT.
So for pmpaddr=aa and NA4, what is the range? {(aa-1)00, (aa-1)01, (aa-1)10, (aa-1)11)} or {(aa-1)01, (aa-1)10, (aa-1)11, aa00 or {aa00, aa01, aa10, aa11} }?
I assume it’s the latter.
Thanks,
Richard
Richard
Richard Herveille
Managing Director
Phone +31 (45) 405 5681
Cell +31 (6) 5207 2230
--
You received this message because you are subscribed to the Google Groups "RISC-V HW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hw-dev+un...@groups.riscv.org.
To post to this group, send email to hw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/hw-dev/.