Re: [PATCH] target/riscv: Fix pmp range wraparound on zero

2025-07-07 Thread Alistair Francis
On Sun, Jul 6, 2025 at 11:04 PM Vac Chen wrote: > > pmp_is_in_range() prefers to match addresses within the interval > [start, end]. To archieve this, pmpaddrX is decremented during the end > address update. > > In TOR mode, a rule is ignored if its start address is greater than or > equal to its

Re: [PATCH] target/riscv: Fix pmp range wraparound on zero

2025-07-07 Thread Alistair Francis
On Sun, Jul 6, 2025 at 11:04 PM Vac Chen wrote: > > pmp_is_in_range() prefers to match addresses within the interval > [start, end]. To archieve this, pmpaddrX is decremented during the end > address update. > > In TOR mode, a rule is ignored if its start address is greater than or > equal to its

[PATCH] target/riscv: Fix pmp range wraparound on zero

2025-07-06 Thread Vac Chen
pmp_is_in_range() prefers to match addresses within the interval [start, end]. To archieve this, pmpaddrX is decremented during the end address update. In TOR mode, a rule is ignored if its start address is greater than or equal to its end address. However, if pmpaddrX is set to 0, this decrement