Re: [PATCH v3 3/3] target/riscv: Fix the translation of physical address

2020-07-22 Thread Zong Li
On Wed, Jul 22, 2020 at 5:08 PM Alexander Richardson wrote: > > On Tue, 21 Jul 2020 at 13:43, Zong Li wrote: > > > > The real physical address should add the 12 bits page offset. It also > > causes the PMP wrong checking due to the minimum granularity of PMP is > > 4 byte, but we always get the p

Re: [PATCH v3 3/3] target/riscv: Fix the translation of physical address

2020-07-22 Thread Alexander Richardson
On Tue, 21 Jul 2020 at 13:43, Zong Li wrote: > > The real physical address should add the 12 bits page offset. It also > causes the PMP wrong checking due to the minimum granularity of PMP is > 4 byte, but we always get the physical address which is 4KB alignment, > that means, we always use the s