mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 12:23:53 -06:00

Add reset support with ipi object, register reset callback and clear internal registers when virt machine resets. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Song Gao <gaosong@loongson.cn>
27 lines
619 B
C
27 lines
619 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* LoongArch IPI interrupt header files
|
|
*
|
|
* Copyright (C) 2024 Loongson Technology Corporation Limited
|
|
*/
|
|
|
|
#ifndef HW_LOONGARCH_IPI_H
|
|
#define HW_LOONGARCH_IPI_H
|
|
|
|
#include "qom/object.h"
|
|
#include "hw/intc/loongson_ipi_common.h"
|
|
|
|
#define TYPE_LOONGARCH_IPI "loongarch_ipi"
|
|
OBJECT_DECLARE_TYPE(LoongarchIPIState, LoongarchIPIClass, LOONGARCH_IPI)
|
|
|
|
struct LoongarchIPIState {
|
|
LoongsonIPICommonState parent_obj;
|
|
};
|
|
|
|
struct LoongarchIPIClass {
|
|
LoongsonIPICommonClass parent_class;
|
|
DeviceRealize parent_realize;
|
|
ResettablePhases parent_phases;
|
|
};
|
|
|
|
#endif
|