diff options
| author | Bibo Mao <maobibo@loongson.cn> | 2025-03-07 14:20:13 +0800 |
|---|---|---|
| committer | Bibo Mao <maobibo@loongson.cn> | 2025-05-06 09:17:32 +0800 |
| commit | a41a74ca5323f4d30ac7eb48ec1d54a09fae5baa (patch) | |
| tree | 02d7c98abdb5e9db43b8edf419a4abd19f97bdf2 /include/hw/intc | |
| parent | 5101435e6d784c6d5bb267ca019b721a028dbc47 (diff) | |
| download | focaccia-qemu-a41a74ca5323f4d30ac7eb48ec1d54a09fae5baa.tar.gz focaccia-qemu-a41a74ca5323f4d30ac7eb48ec1d54a09fae5baa.zip | |
hw/intc/loongarch_pch: Replace legacy reset callback with new api
Replace legacy reset callback register device_class_set_legacy_reset() with new function resettable_class_set_parent_phases(). With new API, it will call reset callback of parent object. The internal state has been cleared in parent object LOONGARCH_PIC_COMMON, here parent_phases.hold() is directly called. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'include/hw/intc')
| -rw-r--r-- | include/hw/intc/loongarch_pch_pic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/intc/loongarch_pch_pic.h b/include/hw/intc/loongarch_pch_pic.h index 481cc58aed..839a59a43b 100644 --- a/include/hw/intc/loongarch_pch_pic.h +++ b/include/hw/intc/loongarch_pch_pic.h @@ -22,6 +22,7 @@ struct LoongarchPICClass { LoongArchPICCommonClass parent_class; DeviceRealize parent_realize; + ResettablePhases parent_phases; }; #endif /* HW_LOONGARCH_PCH_PIC_H */ |