mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
hw/intc/loongarch_extioi: Add reset support
Add reset support with extioi 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
36ad84ecb2
commit
86e4a64751
2 changed files with 42 additions and 0 deletions
|
@ -94,6 +94,7 @@ struct LoongArchExtIOICommonClass {
|
|||
SysBusDeviceClass parent_class;
|
||||
|
||||
DeviceRealize parent_realize;
|
||||
ResettablePhases parent_phases;
|
||||
int (*pre_save)(void *s);
|
||||
int (*post_load)(void *s, int version_id);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue