aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2025-07-10 16:21:31 +0800
committerBibo Mao <maobibo@loongson.cn>2025-07-11 14:47:15 +0800
commit90cff30d72d4f63fbfa637140b9e06e9894220c2 (patch)
tree932416463ace0a8ddf2c9dc27351c5d11ba4c384 /include
parentdf6fe2abf2e990f767ce755d426bc439c7bba336 (diff)
downloadqemu-90cff30d72d4f63fbfa637140b9e06e9894220c2.zip
qemu-90cff30d72d4f63fbfa637140b9e06e9894220c2.tar.gz
qemu-90cff30d72d4f63fbfa637140b9e06e9894220c2.tar.bz2
hw/intc/loongarch_extioi: Move unrealize function to common code
Memory about LoongArchExtIOICommonState::cpu is allocated in common code, it had better be freed in common code also. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'include')
-rw-r--r--include/hw/intc/loongarch_extioi.h1
-rw-r--r--include/hw/intc/loongarch_extioi_common.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/intc/loongarch_extioi.h b/include/hw/intc/loongarch_extioi.h
index 9be1d73..4795bdc 100644
--- a/include/hw/intc/loongarch_extioi.h
+++ b/include/hw/intc/loongarch_extioi.h
@@ -22,7 +22,6 @@ struct LoongArchExtIOIClass {
LoongArchExtIOICommonClass parent_class;
DeviceRealize parent_realize;
- DeviceUnrealize parent_unrealize;
ResettablePhases parent_phases;
};
diff --git a/include/hw/intc/loongarch_extioi_common.h b/include/hw/intc/loongarch_extioi_common.h
index dca25ff..c021cce 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;
+ DeviceUnrealize parent_unrealize;
ResettablePhases parent_phases;
int (*pre_save)(void *s);
int (*post_load)(void *s, int version_id);