Revision 9e2c1298 hw/ppc/e500.c

b/hw/ppc/e500.c
34 34
#include "hw/sysbus.h"
35 35
#include "exec-memory.h"
36 36
#include "host-utils.h"
37
#include "hw/ppce500_pci.h"
37 38

  
38 39
#define BINARY_DEVICE_TREE_FILE    "mpc8544ds.dtb"
39 40
#define UIMAGE_LOAD_BASE           0
......
72 73
    int i = 0;
73 74
    int slot;
74 75
    int pci_irq;
76
    int host_irq;
75 77
    int last_slot = first_slot + nr_slots;
76 78
    uint32_t *pci_map;
77 79

  
......
85 87
            pci_map[i++] = cpu_to_be32(0x0);
86 88
            pci_map[i++] = cpu_to_be32(pci_irq + 1);
87 89
            pci_map[i++] = cpu_to_be32(mpic);
88
            pci_map[i++] = cpu_to_be32(((pci_irq + slot) % 4) + 1);
90
            host_irq = ppce500_pci_map_irq_slot(slot, pci_irq);
91
            pci_map[i++] = cpu_to_be32(host_irq + 1);
89 92
            pci_map[i++] = cpu_to_be32(0x1);
90 93
        }
91 94
    }

Also available in: Unified diff