mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
hw/intc/loongarch_pch: Add reset support
Add reset support with LoongArch pci irqchip, and register reset callback support with new API resettable_class_set_parent_phases(). Clear internal HW registers and SW state when virt machine resets. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Song Gao <gaosong@loongson.cn>
This commit is contained in:
parent
bba709ff69
commit
5101435e6d
2 changed files with 26 additions and 0 deletions
|
@ -76,6 +76,7 @@ struct LoongArchPICCommonClass {
|
|||
SysBusDeviceClass parent_class;
|
||||
|
||||
DeviceRealize parent_realize;
|
||||
ResettablePhases parent_phases;
|
||||
int (*pre_save)(LoongArchPICCommonState *s);
|
||||
int (*post_load)(LoongArchPICCommonState *s, int version_id);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue