summary refs log tree commit diff stats
path: root/include/hw/intc
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2025-03-07 10:23:21 +0800
committerBibo Mao <maobibo@loongson.cn>2025-05-06 09:17:32 +0800
commitbba709ff694cc6f844ca32d333b6be7adc7bd6b4 (patch)
treecee5230f91a363c1b719e43913a0fde6447a6c52 /include/hw/intc
parent86e4a64751a728aae24fa95d76d6c313aa82cf82 (diff)
downloadfocaccia-qemu-bba709ff694cc6f844ca32d333b6be7adc7bd6b4.tar.gz
focaccia-qemu-bba709ff694cc6f844ca32d333b6be7adc7bd6b4.zip
hw/intc/loongarch_extioi: 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 and then itself.

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_extioi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/intc/loongarch_extioi.h b/include/hw/intc/loongarch_extioi.h
index 351f18afcf..4a6ae903e9 100644
--- a/include/hw/intc/loongarch_extioi.h
+++ b/include/hw/intc/loongarch_extioi.h
@@ -22,6 +22,7 @@ struct LoongArchExtIOIClass {
 
     DeviceRealize parent_realize;
     DeviceUnrealize parent_unrealize;
+    ResettablePhases parent_phases;
 };
 
 #endif /* LOONGARCH_EXTIOI_H */