Re: [PATCH v6 4/4] target/riscv: Change the TLB page size depends on PMP entries.

2020-08-13 Thread Alistair Francis
On Wed, Aug 12, 2020 at 8:04 PM Zong Li wrote: > > On Wed, Aug 12, 2020 at 11:21 PM Alistair Francis > wrote: > > > > On Tue, Jul 28, 2020 at 1:29 AM Zong Li wrote: > > > > > > The minimum granularity of PMP is 4 bytes, it is small than 4KB page > > > size, therefore, the pmp checking would be

Re: [PATCH v6 4/4] target/riscv: Change the TLB page size depends on PMP entries.

2020-08-12 Thread Zong Li
On Wed, Aug 12, 2020 at 11:21 PM Alistair Francis wrote: > > On Tue, Jul 28, 2020 at 1:29 AM Zong Li wrote: > > > > The minimum granularity of PMP is 4 bytes, it is small than 4KB page > > size, therefore, the pmp checking would be ignored if its range doesn't > > start from the alignment of one

Re: [PATCH v6 4/4] target/riscv: Change the TLB page size depends on PMP entries.

2020-08-12 Thread Alistair Francis
On Tue, Jul 28, 2020 at 1:29 AM Zong Li wrote: > > The minimum granularity of PMP is 4 bytes, it is small than 4KB page > size, therefore, the pmp checking would be ignored if its range doesn't > start from the alignment of one page. This patch detects the pmp entries > and sets the small page siz

Re: [PATCH v6 4/4] target/riscv: Change the TLB page size depends on PMP entries.

2020-08-04 Thread Zong Li
On Tue, Jul 28, 2020 at 4:26 PM Zong Li wrote: > > The minimum granularity of PMP is 4 bytes, it is small than 4KB page > size, therefore, the pmp checking would be ignored if its range doesn't > start from the alignment of one page. This patch detects the pmp entries > and sets the small page siz

[PATCH v6 4/4] target/riscv: Change the TLB page size depends on PMP entries.

2020-07-28 Thread Zong Li
The minimum granularity of PMP is 4 bytes, it is small than 4KB page size, therefore, the pmp checking would be ignored if its range doesn't start from the alignment of one page. This patch detects the pmp entries and sets the small page size to TLB if there is a PMP entry which cover the page size