]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/intc/loongarch_pch: Replace legacy reset callback with new api
authorBibo Mao <maobibo@loongson.cn>
Fri, 7 Mar 2025 06:20:13 +0000 (14:20 +0800)
committerBibo Mao <maobibo@loongson.cn>
Tue, 6 May 2025 01:17:32 +0000 (09:17 +0800)
commita41a74ca5323f4d30ac7eb48ec1d54a09fae5baa
tree02d7c98abdb5e9db43b8edf419a4abd19f97bdf2
parent5101435e6d784c6d5bb267ca019b721a028dbc47
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>
hw/intc/loongarch_pch_pic.c
include/hw/intc/loongarch_pch_pic.h