Re: [PATCH v3 1/1] target/riscv: Fix PMP propagation for tlb

2021-12-16 Thread LIU Zhiwei
On 2021/11/23 下午5:09, LIU Zhiwei wrote: Only the pmp index that be checked by pmp_hart_has_privs can be used by pmp_get_tlb_size to avoid an error pmp index. Before modification, we may use an error pmp index. For example, we check address 0x4fc, and the size 0x4 in pmp_hart_has_privs. If ther

Re: [PATCH v3 1/1] target/riscv: Fix PMP propagation for tlb

2021-12-16 Thread LIU Zhiwei
On 2021/12/17 上午8:37, Alistair Francis wrote: On Wed, Dec 8, 2021 at 1:23 PM Alistair Francis wrote: On Tue, Nov 23, 2021 at 7:09 PM LIU Zhiwei wrote: Only the pmp index that be checked by pmp_hart_has_privs can be used by pmp_get_tlb_size to avoid an error pmp index. Before modification,

Re: [PATCH v3 1/1] target/riscv: Fix PMP propagation for tlb

2021-12-16 Thread Alistair Francis
On Wed, Dec 8, 2021 at 1:23 PM Alistair Francis wrote: > > On Tue, Nov 23, 2021 at 7:09 PM LIU Zhiwei wrote: > > > > Only the pmp index that be checked by pmp_hart_has_privs can be used > > by pmp_get_tlb_size to avoid an error pmp index. > > > > Before modification, we may use an error pmp index

Re: [PATCH v3 1/1] target/riscv: Fix PMP propagation for tlb

2021-12-07 Thread Alistair Francis
On Tue, Nov 23, 2021 at 7:09 PM LIU Zhiwei wrote: > > Only the pmp index that be checked by pmp_hart_has_privs can be used > by pmp_get_tlb_size to avoid an error pmp index. > > Before modification, we may use an error pmp index. For example, > we check address 0x4fc, and the size 0x4 in pmp_hart_

Re: [PATCH v3 1/1] target/riscv: Fix PMP propagation for tlb

2021-12-07 Thread Alistair Francis
On Tue, Nov 23, 2021 at 7:09 PM LIU Zhiwei wrote: > > Only the pmp index that be checked by pmp_hart_has_privs can be used > by pmp_get_tlb_size to avoid an error pmp index. > > Before modification, we may use an error pmp index. For example, > we check address 0x4fc, and the size 0x4 in pmp_hart_

[PATCH v3 1/1] target/riscv: Fix PMP propagation for tlb

2021-11-23 Thread LIU Zhiwei
Only the pmp index that be checked by pmp_hart_has_privs can be used by pmp_get_tlb_size to avoid an error pmp index. Before modification, we may use an error pmp index. For example, we check address 0x4fc, and the size 0x4 in pmp_hart_has_privs. If there is an pmp rule, valid range is [0x4fc, 0x5