aboutsummaryrefslogtreecommitdiff
path: root/include/hw/intc
diff options
context:
space:
mode:
authorYifei Jiang <jiangyifei@huawei.com>2020-10-26 19:55:30 +0800
committerAlistair Francis <alistair.francis@wdc.com>2020-11-03 07:17:23 -0800
commitdbd3ec548ae9ada6e6a5c1f5b6359521fd29fd4b (patch)
tree30ce53b17009db1f1f7f44ff9b3a5c752474dcfb /include/hw/intc
parentbb02edcd86755a15535b3f8956e6f75df41770ad (diff)
downloadqemu-dbd3ec548ae9ada6e6a5c1f5b6359521fd29fd4b.zip
qemu-dbd3ec548ae9ada6e6a5c1f5b6359521fd29fd4b.tar.gz
qemu-dbd3ec548ae9ada6e6a5c1f5b6359521fd29fd4b.tar.bz2
target/riscv: Add sifive_plic vmstate
Add sifive_plic vmstate for supporting sifive_plic migration. Current vmstate framework only supports one structure parameter as num field to describe variable length arrays, so introduce num_enables. Signed-off-by: Yifei Jiang <jiangyifei@huawei.com> Signed-off-by: Yipeng Yin <yinyipeng1@huawei.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20201026115530.304-7-jiangyifei@huawei.com Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'include/hw/intc')
-rw-r--r--include/hw/intc/sifive_plic.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/intc/sifive_plic.h b/include/hw/intc/sifive_plic.h
index b75b1f1..1e451a2 100644
--- a/include/hw/intc/sifive_plic.h
+++ b/include/hw/intc/sifive_plic.h
@@ -52,6 +52,7 @@ struct SiFivePLICState {
uint32_t num_addrs;
uint32_t num_harts;
uint32_t bitfield_words;
+ uint32_t num_enables;
PLICAddr *addr_config;
uint32_t *source_priority;
uint32_t *target_priority;