Lines Matching refs:cpus
103 static qemu_irq get_cpu_irq(OpenRISCCPU *cpus[], int cpunum, int irq_pin) in get_cpu_irq() argument
105 return qdev_get_gpio_in_named(DEVICE(cpus[cpunum]), "IRQ", irq_pin); in get_cpu_irq()
108 static qemu_irq get_per_cpu_irq(OpenRISCCPU *cpus[], int num_cpus, int irq_pin) in get_per_cpu_irq() argument
117 qdev_connect_gpio_out(splitter, i, get_cpu_irq(cpus, i, irq_pin)); in get_per_cpu_irq()
121 return get_cpu_irq(cpus, 0, irq_pin); in get_per_cpu_irq()
201 OpenRISCCPU *cpus[], int irq_pin) in openrisc_virt_ompic_init() argument
215 sysbus_connect_irq(s, i, get_cpu_irq(cpus, i, irq_pin)); in openrisc_virt_ompic_init()
232 OpenRISCCPU *cpus[], int irq_pin) in openrisc_virt_serial_init() argument
236 qemu_irq serial_irq = get_per_cpu_irq(cpus, num_cpus, irq_pin); in openrisc_virt_serial_init()
296 OpenRISCCPU *cpus[], int irq_pin) in openrisc_virt_rtc_init() argument
300 qemu_irq rtc_irq = get_per_cpu_irq(cpus, num_cpus, irq_pin); in openrisc_virt_rtc_init()
371 int num_cpus, OpenRISCCPU *cpus[], in openrisc_virt_pcie_init() argument
413 pcie_irq = get_per_cpu_irq(cpus, num_cpus, irq_base + i); in openrisc_virt_pcie_init()
445 OpenRISCCPU *cpus[], int irq_pin) in openrisc_virt_virtio_init() argument
451 qemu_irq virtio_irq = get_per_cpu_irq(cpus, num_cpus, irq_pin); in openrisc_virt_virtio_init()
474 OpenRISCCPU *cpus[VIRT_CPUS_MAX] = {}; in openrisc_virt_init() local
479 unsigned int smp_cpus = machine->smp.cpus; in openrisc_virt_init()
484 cpus[n] = OPENRISC_CPU(cpu_create(machine->cpu_type)); in openrisc_virt_init()
485 if (cpus[n] == NULL) { in openrisc_virt_init()
490 cpu_openrisc_clock_init(cpus[n]); in openrisc_virt_init()
492 qemu_register_reset(main_cpu_reset, cpus[n]); in openrisc_virt_init()
505 smp_cpus, cpus, VIRT_OMPIC_IRQ); in openrisc_virt_init()
510 smp_cpus, cpus, VIRT_UART_IRQ); in openrisc_virt_init()
516 virt_memmap[VIRT_RTC].size, smp_cpus, cpus, in openrisc_virt_init()
525 smp_cpus, cpus, in openrisc_virt_init()
532 smp_cpus, cpus, VIRT_VIRTIO_IRQ + n); in openrisc_virt_init()