]> Git Repo - qemu.git/commit
target/riscv: Add PMP state description
authorYifei Jiang <[email protected]>
Mon, 26 Oct 2020 11:55:27 +0000 (19:55 +0800)
committerAlistair Francis <[email protected]>
Tue, 3 Nov 2020 15:17:23 +0000 (07:17 -0800)
commit24beb03e46de8602b318d5f234ce0ba489a7dbfc
treeb1a80f07b811ad94bd25ecf49fda8159c6197cf5
parentf7697f0e629eb75d411bc6f314c6fff68fa4c238
target/riscv: Add PMP state description

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_update_rule_nums() to update
'vmstate_pmp_addr' and 'num_rules' respectively.

Signed-off-by: Yifei Jiang <[email protected]>
Signed-off-by: Yipeng Yin <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Message-id: 20201026115530[email protected]
Signed-off-by: Alistair Francis <[email protected]>
target/riscv/machine.c
target/riscv/pmp.c
target/riscv/pmp.h
This page took 0.025437 seconds and 4 git commands to generate.