[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 31/43] hw/isa/piix4: Remove unused code
From: |
Bernhard Beschow |
Subject: |
[PATCH v2 31/43] hw/isa/piix4: Remove unused code |
Date: |
Sat, 22 Oct 2022 17:04:56 +0200 |
The Malta board, which is the only user of PIIX4, doesn't connect to the
exported interrupt lines.
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
---
hw/isa/piix4.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/hw/isa/piix4.c b/hw/isa/piix4.c
index 57b0b98bef..d65f486008 100644
--- a/hw/isa/piix4.c
+++ b/hw/isa/piix4.c
@@ -182,12 +182,6 @@ static void piix4_request_i8259_irq(void *opaque, int irq,
int level)
qemu_set_irq(s->cpu_intr, level);
}
-static void piix4_set_i8259_irq(void *opaque, int irq, int level)
-{
- PIIX4State *s = opaque;
- qemu_set_irq(s->isa[irq], level);
-}
-
static void piix4_rcr_write(void *opaque, hwaddr addr, uint64_t val,
unsigned int len)
{
@@ -231,8 +225,6 @@ static void piix4_realize(PCIDevice *dev, Error **errp)
return;
}
- qdev_init_gpio_in_named(DEVICE(dev), piix4_set_i8259_irq,
- "isa", ISA_NUM_IRQS);
qdev_init_gpio_out_named(DEVICE(dev), &s->cpu_intr,
"intr", 1);
--
2.38.1
- Re: [PATCH v2 23/43] hw/isa/piix3: Prefix pci_slot_get_pirq() with "piix3_", (continued)
- [PATCH v2 24/43] hw/isa/piix3: Rename typedef PIIX3State to PIIXState, Bernhard Beschow, 2022/10/22
- [PATCH v2 25/43] hw/mips/malta: Reuse dev variable, Bernhard Beschow, 2022/10/22
- [PATCH v2 26/43] meson: Fix dependencies of piix4 southbridge, Bernhard Beschow, 2022/10/22
- [PATCH v2 27/43] hw/isa/piix4: Add missing initialization, Bernhard Beschow, 2022/10/22
- [PATCH v2 28/43] hw/isa/piix4: Move pci_ide_create_devs() call to board code, Bernhard Beschow, 2022/10/22
- [PATCH v2 29/43] hw/isa/piix4: Make PIIX4's ACPI and USB functions optional, Bernhard Beschow, 2022/10/22
- [PATCH v2 30/43] hw/isa/piix4: Allow board to provide PCI interrupt routes, Bernhard Beschow, 2022/10/22
- [PATCH v2 31/43] hw/isa/piix4: Remove unused code,
Bernhard Beschow <=
- [PATCH v2 32/43] hw/isa/piix4: Use ISA PIC device, Bernhard Beschow, 2022/10/22
- [PATCH v2 33/43] hw/isa/piix4: Reuse struct PIIXState from PIIX3, Bernhard Beschow, 2022/10/22
- [PATCH v2 34/43] hw/isa/piix4: Rename reset control operations to match PIIX3, Bernhard Beschow, 2022/10/22
- [PATCH v2 35/43] hw/isa/piix4: Prefix pci_slot_get_pirq() with "piix4_", Bernhard Beschow, 2022/10/22
- [PATCH v2 37/43] hw/isa/piix: Harmonize names of reset control memory regions, Bernhard Beschow, 2022/10/22
- [PATCH v2 36/43] hw/isa/piix3: Merge hw/isa/piix4.c, Bernhard Beschow, 2022/10/22
- [PATCH v2 38/43] hw/isa/piix: Reuse PIIX3 base class' realize method in PIIX4, Bernhard Beschow, 2022/10/22
- [PATCH v2 39/43] hw/isa/piix: Rename functions to be shared for interrupt triggering, Bernhard Beschow, 2022/10/22