Re: [PATCH 4/6] target/riscv: Flush TLB only when pmpcfg/pmpaddr really changes

2023-04-18 Thread LIU Zhiwei
On 2023/4/13 17:01, Weiwei Li wrote: TLB needn't be flushed when pmpcfg/pmpaddr don't changes. If we flush the tlb in pmp_update_rules, we don't need this patch. Zhiwei Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang --- target/riscv/pmp.c | 24 1 file

Re: [PATCH 4/6] target/riscv: Flush TLB only when pmpcfg/pmpaddr really changes

2023-04-17 Thread Alistair Francis
On Thu, Apr 13, 2023 at 7:04 PM Weiwei Li wrote: > > TLB needn't be flushed when pmpcfg/pmpaddr don't changes. > > Signed-off-by: Weiwei Li > Signed-off-by: Junqiang Wang Reviewed-by: Alistair Francis Alistair > --- > target/riscv/pmp.c | 24 > 1 file changed, 16 in

[PATCH 4/6] target/riscv: Flush TLB only when pmpcfg/pmpaddr really changes

2023-04-13 Thread Weiwei Li
TLB needn't be flushed when pmpcfg/pmpaddr don't changes. Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang --- target/riscv/pmp.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/target/riscv/pmp.c b/target/riscv/pmp.c index 6d4813806b..aced23c4