mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
hw/intc/loongarch_pch: Add pre_save and post_load interfaces
Add vmstate pre_save and post_load interfaces, which can be used by pic kvm driver in future. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Song Gao <gaosong@loongson.cn>
This commit is contained in:
parent
8bf26a9ea3
commit
36d31cf812
2 changed files with 28 additions and 0 deletions
|
@ -76,5 +76,7 @@ struct LoongArchPICCommonClass {
|
|||
SysBusDeviceClass parent_class;
|
||||
|
||||
DeviceRealize parent_realize;
|
||||
int (*pre_save)(LoongArchPICCommonState *s);
|
||||
int (*post_load)(LoongArchPICCommonState *s, int version_id);
|
||||
};
|
||||
#endif /* HW_LOONGARCH_PIC_COMMON_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue