mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
hw/intc/loongarch_pch_msi: Remove gpio input handler
MSI interrupt is triggered by writing message on specified memory address. In generic it is used by PCI devices, and no device is connected pch MSI irqchip with GPIO pin line method, here remove gpio input setting for MSI controller. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Song Gao <gaosong@loongson.cn> Tested-by: Song Gao <gaosong@loongson.cn> Message-Id: <20250410085004.3577627-1-maobibo@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
This commit is contained in:
parent
91d0d16b44
commit
9d7a951e35
1 changed files with 0 additions and 9 deletions
|
@ -42,13 +42,6 @@ static const MemoryRegionOps loongarch_pch_msi_ops = {
|
|||
.endianness = DEVICE_LITTLE_ENDIAN,
|
||||
};
|
||||
|
||||
static void pch_msi_irq_handler(void *opaque, int irq, int level)
|
||||
{
|
||||
LoongArchPCHMSI *s = LOONGARCH_PCH_MSI(opaque);
|
||||
|
||||
qemu_set_irq(s->pch_msi_irq[irq], level);
|
||||
}
|
||||
|
||||
static void loongarch_pch_msi_realize(DeviceState *dev, Error **errp)
|
||||
{
|
||||
LoongArchPCHMSI *s = LOONGARCH_PCH_MSI(dev);
|
||||
|
@ -59,9 +52,7 @@ static void loongarch_pch_msi_realize(DeviceState *dev, Error **errp)
|
|||
}
|
||||
|
||||
s->pch_msi_irq = g_new(qemu_irq, s->irq_num);
|
||||
|
||||
qdev_init_gpio_out(dev, s->pch_msi_irq, s->irq_num);
|
||||
qdev_init_gpio_in(dev, pch_msi_irq_handler, s->irq_num);
|
||||
}
|
||||
|
||||
static void loongarch_pch_msi_unrealize(DeviceState *dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue