diff options
| author | Bibo Mao <maobibo@loongson.cn> | 2025-03-07 10:12:09 +0800 |
|---|---|---|
| committer | Bibo Mao <maobibo@loongson.cn> | 2025-05-06 09:17:32 +0800 |
| commit | 86e4a64751a728aae24fa95d76d6c313aa82cf82 (patch) | |
| tree | 31e374eec9b0bfb3308d1c160c4dd1541b21c045 /include/hw/intc/loongarch_extioi_common.h | |
| parent | 36ad84ecb26d6a28c78d079dc51063d972600592 (diff) | |
| download | focaccia-qemu-86e4a64751a728aae24fa95d76d6c313aa82cf82.tar.gz focaccia-qemu-86e4a64751a728aae24fa95d76d6c313aa82cf82.zip | |
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>
Diffstat (limited to 'include/hw/intc/loongarch_extioi_common.h')
| -rw-r--r-- | include/hw/intc/loongarch_extioi_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/intc/loongarch_extioi_common.h b/include/hw/intc/loongarch_extioi_common.h index 22d7880977..735bfee80a 100644 --- a/include/hw/intc/loongarch_extioi_common.h +++ b/include/hw/intc/loongarch_extioi_common.h @@ -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); }; |