[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH 1/8] mach-virt: move GIC inside mach-virt struct
From: |
Alvise Rigo |
Subject: |
[Qemu-devel] [RFC PATCH 1/8] mach-virt: move GIC inside mach-virt structure |
Date: |
Fri, 11 Jul 2014 09:21:03 +0200 |
Signed-off-by: Alvise Rigo <address@hidden>
---
hw/arm/virt.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 7122e99..ed9fc7a 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -83,6 +83,7 @@ typedef struct VirtBoardInfo {
void *fdt;
int fdt_size;
uint32_t clock_phandle;
+ qemu_irq pic[NUM_IRQS];
} VirtBoardInfo;
/* Addresses and sizes of our components.
@@ -440,7 +441,6 @@ static void *machvirt_dtb(const struct arm_boot_info
*binfo, int *fdt_size)
static void machvirt_init(MachineState *machine)
{
- qemu_irq pic[NUM_IRQS];
MemoryRegion *sysmem = get_system_memory();
int n;
MemoryRegion *ram = g_new(MemoryRegion, 1);
@@ -452,6 +452,7 @@ static void machvirt_init(MachineState *machine)
}
vbi = find_machine_info(cpu_model);
+ qemu_irq *pic = vbi->pic;
if (!vbi) {
error_report("mach-virt: CPU %s not supported", cpu_model);
--
1.9.1
- [Qemu-devel] [RFC PATCH 0/8] Add Generic PCI host device update, Alvise Rigo, 2014/07/11
- [Qemu-devel] [RFC PATCH 1/8] mach-virt: move GIC inside mach-virt structure,
Alvise Rigo <=
- [Qemu-devel] [RFC PATCH 2/8] mach-virt: improve PCI memory topology definition, Alvise Rigo, 2014/07/11
- [Qemu-devel] [RFC PATCH 3/8] QEMUMachine: finalize_dt function, Alvise Rigo, 2014/07/11
- [Qemu-devel] [RFC PATCH 4/8] generic_pci: create header file, Alvise Rigo, 2014/07/11
- [Qemu-devel] [RFC PATCH 5/8] generic_pci: create own map irq function, Alvise Rigo, 2014/07/11
- [Qemu-devel] [RFC PATCH 6/8] generic_pci: generate dt node after devices init, Alvise Rigo, 2014/07/11
- [Qemu-devel] [RFC PATCH 7/8] generic_pci: realize device with machine data, Alvise Rigo, 2014/07/11
- [Qemu-devel] [RFC PATCH 8/8] generic_pci: add interrupt map structures, Alvise Rigo, 2014/07/11
- Re: [Qemu-devel] [RFC PATCH 0/8] Add Generic PCI host device update, Peter Maydell, 2014/07/11