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()
172 int num_cpus, OpenRISCCPU *cpus[], in openrisc_sim_net_init() argument
193 qdev_connect_gpio_out(splitter, i, get_cpu_irq(cpus, i, irq_pin)); in openrisc_sim_net_init()
197 sysbus_connect_irq(s, 0, get_cpu_irq(cpus, 0, irq_pin)); in openrisc_sim_net_init()
216 OpenRISCCPU *cpus[], int irq_pin) in openrisc_sim_ompic_init() argument
230 sysbus_connect_irq(s, i, get_cpu_irq(cpus, i, irq_pin)); in openrisc_sim_ompic_init()
247 OpenRISCCPU *cpus[], int irq_pin, in openrisc_sim_serial_init() argument
261 qdev_connect_gpio_out(splitter, i, get_cpu_irq(cpus, i, irq_pin)); in openrisc_sim_serial_init()
265 serial_irq = get_cpu_irq(cpus, 0, irq_pin); in openrisc_sim_serial_init()
291 OpenRISCCPU *cpus[OR1KSIM_CPUS_MAX] = {}; in openrisc_sim_init() local
296 unsigned int smp_cpus = machine->smp.cpus; in openrisc_sim_init()
300 cpus[n] = OPENRISC_CPU(cpu_create(machine->cpu_type)); in openrisc_sim_init()
301 if (cpus[n] == NULL) { in openrisc_sim_init()
306 cpu_openrisc_clock_init(cpus[n]); in openrisc_sim_init()
308 qemu_register_reset(main_cpu_reset, cpus[n]); in openrisc_sim_init()
320 smp_cpus, cpus, in openrisc_sim_init()
326 smp_cpus, cpus, OR1KSIM_OMPIC_IRQ); in openrisc_sim_init()
333 smp_cpus, cpus, OR1KSIM_UART_IRQ, n); in openrisc_sim_init()