[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 03/22] pc: Convert GSIState::i8259_irq into array
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] [PATCH 03/22] pc: Convert GSIState::i8259_irq into array |
Date: |
Wed, 28 Sep 2011 13:00:49 +0200 |
Will be required when we no longer let i8259_init allocate the PIC IRQs
but convert that chips to qdev.
Signed-off-by: Jan Kiszka <address@hidden>
---
hw/pc.h | 2 +-
hw/pc_piix.c | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/hw/pc.h b/hw/pc.h
index 4333898..2870be4 100644
--- a/hw/pc.h
+++ b/hw/pc.h
@@ -76,7 +76,7 @@ void irq_info(Monitor *mon);
#define GSI_NUM_PINS IOAPIC_NUM_PINS
typedef struct GSIState {
- qemu_irq *i8259_irq;
+ qemu_irq i8259_irq[ISA_NUM_IRQS];
qemu_irq ioapic_irq[IOAPIC_NUM_PINS];
} GSIState;
diff --git a/hw/pc_piix.c b/hw/pc_piix.c
index e6e280c..c89042f 100644
--- a/hw/pc_piix.c
+++ b/hw/pc_piix.c
@@ -158,7 +158,9 @@ static void pc_init1(MemoryRegion *system_memory,
i8259 = xen_interrupt_controller_init();
}
- gsi_state->i8259_irq = i8259;
+ for (i = 0; i < ISA_NUM_IRQS; i++) {
+ gsi_state->i8259_irq[i] = i8259[i];
+ }
if (pci_enabled) {
ioapic_init(gsi_state);
}
--
1.7.3.4
- Re: [Qemu-devel] [PATCH 22/22] i8259: Move to hw library, (continued)
- [Qemu-devel] [PATCH 20/22] i8259: Fix coding style, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 10/22] i8259: Reorder intack in pic_read_irq, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 16/22] i8259: Replace PicState::pics_state with master flag, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 04/22] pc: Fix and clean up PIC-to-APIC IRQ path, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 18/22] qdev: Add HEX8 property, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 07/22] i8259: Move pic_set_irq1 after pic_update_irq, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 08/22] i8239: Introduce per-PIC output interrupt, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 19/22] i8259: Convert to qdev, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 03/22] pc: Convert GSIState::i8259_irq into array,
Jan Kiszka <=
- [Qemu-devel] [PATCH 14/22] i8259: Clean up pic_ioport_read, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 01/22] pc: Drop useless test from isa_irq_handler, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 21/22] monitor: Restrict pic/irq_info to supporting targets, Jan Kiszka, 2011/09/28
[Qemu-devel] [PATCH 17/22] i8259: Eliminate PicState2, Jan Kiszka, 2011/09/28