@@ -111,7 +111,7 @@ static void leon3_generic_hw_init(MachineState *machine)
MemoryRegion *address_space_mem = get_system_memory();
MemoryRegion *ram = g_new(MemoryRegion, 1);
MemoryRegion *prom = g_new(MemoryRegion, 1);
- int ret;
+ int ret, i;
char *filename;
qemu_irq *cpu_irqs = NULL;
int bios_size;
@@ -214,6 +214,13 @@ static void leon3_generic_hw_init(MachineState *machine)
if (serial_hds[0]) {
grlib_apbuart_create(0x80000100, serial_hds[0], cpu_irqs[3]);
}
+
+ for (i = 0; i < MAX_PILS; i++) {
+ if ((i != 3) || (i != 6) || (i != 7)) {
+ qemu_free_irq(cpu_irqs[i]);
+ }
+ }
+ g_free(cpu_irqs);
}
static QEMUMachine leon3_generic_machine = {