Re: [PATCH V3 3/6] target/riscv: Add PMP state description

2020-10-23 Thread Alistair Francis
On Fri, Oct 23, 2020 at 2:16 AM Yifei Jiang wrote: > > In the case of supporting PMP feature, add PMP state description > to vmstate_riscv_cpu. > > 'vmstate_pmp_addr' and 'num_rules' could be regenerated by > pmp_update_rule(). But there exists the problem of updating > num_rules repeatedly in pmp

[PATCH V3 3/6] target/riscv: Add PMP state description

2020-10-23 Thread Yifei Jiang
In the case of supporting PMP feature, add PMP state description to vmstate_riscv_cpu. 'vmstate_pmp_addr' and 'num_rules' could be regenerated by pmp_update_rule(). But there exists the problem of updating num_rules repeatedly in pmp_update_rule(). So here extracts pmp_update_rule_addr() and pmp_u