Home
last modified time | relevance | path

Searched refs:smp_cpus (Results 1 – 21 of 21) sorted by relevance

/openbmc/qemu/hw/openrisc/
H A Dopenrisc_sim.c296 unsigned int smp_cpus = machine->smp.cpus; in openrisc_sim_init() local
298 assert(smp_cpus >= 1 && smp_cpus <= OR1KSIM_CPUS_MAX); in openrisc_sim_init()
299 for (n = 0; n < smp_cpus; n++) { in openrisc_sim_init()
315 openrisc_create_fdt(state, or1ksim_memmap, smp_cpus, machine->ram_size, in openrisc_sim_init()
320 smp_cpus, cpus, in openrisc_sim_init()
323 if (smp_cpus > 1) { 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()
H A Dvirt.c479 unsigned int smp_cpus = machine->smp.cpus; in openrisc_virt_init() local
482 assert(smp_cpus >= 1 && smp_cpus <= VIRT_CPUS_MAX); in openrisc_virt_init()
483 for (n = 0; n < smp_cpus; n++) { in openrisc_virt_init()
499 openrisc_create_fdt(state, virt_memmap, smp_cpus, machine->ram_size, in openrisc_virt_init()
502 if (smp_cpus > 1) { 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()
/openbmc/qemu/hw/arm/
H A Dhighbank.c185 unsigned int smp_cpus = machine->smp.cpus; in calxeda_init() local
205 for (n = 0; n < smp_cpus; n++) { in calxeda_init()
262 qdev_prop_set_uint32(dev, "num-cpu", smp_cpus); in calxeda_init()
267 for (n = 0; n < smp_cpus; n++) { in calxeda_init()
269 sysbus_connect_irq(busdev, n + smp_cpus, cpu_fiq[n]); in calxeda_init()
270 sysbus_connect_irq(busdev, n + 2 * smp_cpus, cpu_virq[n]); in calxeda_init()
271 sysbus_connect_irq(busdev, n + 3 * smp_cpus, cpu_vfiq[n]); in calxeda_init()
H A Dfsl-imx7.c171 unsigned int smp_cpus = ms->smp.cpus; in fsl_imx7_realize() local
173 if (smp_cpus > FSL_IMX7_NUM_CPUS) { in fsl_imx7_realize()
175 TYPE_FSL_IMX7, FSL_IMX7_NUM_CPUS, smp_cpus); in fsl_imx7_realize()
182 for (i = 0; i < smp_cpus; i++) { in fsl_imx7_realize()
186 if (smp_cpus > 1) { in fsl_imx7_realize()
206 object_property_set_int(OBJECT(&s->a7mpcore), "num-cpu", smp_cpus, in fsl_imx7_realize()
214 for (i = 0; i < smp_cpus; i++) { in fsl_imx7_realize()
221 sysbus_connect_irq(sbd, i + smp_cpus, irq); in fsl_imx7_realize()
223 sysbus_connect_irq(sbd, i + 2 * smp_cpus, irq); in fsl_imx7_realize()
225 sysbus_connect_irq(sbd, i + 3 * smp_cpus, irq); in fsl_imx7_realize()
H A Dsbsa-ref.c102 int smp_cpus; member
262 for (cpu = sms->smp_cpus - 1; cpu >= 0; cpu--) { in create_fdt()
435 unsigned int smp_cpus = MACHINE(sms)->smp.cpus; in create_gic() local
456 redist0_count = MIN(smp_cpus, redist0_capacity); in create_gic()
476 for (i = 0; i < smp_cpus; i++) { in create_gic()
509 sysbus_connect_irq(gicbusdev, i + smp_cpus, in create_gic()
511 sysbus_connect_irq(gicbusdev, i + 2 * smp_cpus, in create_gic()
513 sysbus_connect_irq(gicbusdev, i + 3 * smp_cpus, in create_gic()
714 unsigned int smp_cpus = machine->smp.cpus; in sbsa_ref_init() local
756 sms->smp_cpus = smp_cpus; in sbsa_ref_init()
[all …]
H A Dfsl-imx6.c117 unsigned int smp_cpus = ms->smp.cpus; in fsl_imx6_realize() local
119 if (smp_cpus > FSL_IMX6_NUM_CPUS) { in fsl_imx6_realize()
121 TYPE_FSL_IMX6, FSL_IMX6_NUM_CPUS, smp_cpus); in fsl_imx6_realize()
125 for (i = 0; i < smp_cpus; i++) { in fsl_imx6_realize()
128 if (smp_cpus > 1) { in fsl_imx6_realize()
144 object_property_set_int(OBJECT(&s->a9mpcore), "num-cpu", smp_cpus, in fsl_imx6_realize()
155 for (i = 0; i < smp_cpus; i++) { in fsl_imx6_realize()
158 sysbus_connect_irq(SYS_BUS_DEVICE(&s->a9mpcore), i + smp_cpus, in fsl_imx6_realize()
H A Dxilinx_zynq.c211 unsigned int smp_cpus = machine->smp.cpus; in zynq_init() local
219 for (n = 0; n < smp_cpus; n++) { in zynq_init()
272 qdev_prop_set_uint32(dev, "num-cpu", smp_cpus); in zynq_init()
278 for (n = 0; n < smp_cpus; n++) { in zynq_init()
283 sysbus_connect_irq(busdev, smp_cpus + n, in zynq_init()
H A Dvexpress.c216 unsigned int smp_cpus = ms->smp.cpus; in init_cpus() local
219 for (n = 0; n < smp_cpus; n++) { in init_cpus()
243 qdev_prop_set_uint32(dev, "num-cpu", smp_cpus); in init_cpus()
259 for (n = 0; n < smp_cpus; n++) { in init_cpus()
263 sysbus_connect_irq(busdev, n + smp_cpus, in init_cpus()
265 sysbus_connect_irq(busdev, n + 2 * smp_cpus, in init_cpus()
267 sysbus_connect_irq(busdev, n + 3 * smp_cpus, in init_cpus()
H A Drealview.c91 unsigned int smp_cpus = machine->smp.cpus; in realview_init() local
118 for (n = 0; n < smp_cpus; n++) { in realview_init()
189 qdev_prop_set_uint32(dev, "num-cpu", smp_cpus); in realview_init()
193 for (n = 0; n < smp_cpus; n++) { in realview_init()
H A Dvirt.c420 int smp_cpus = ms->smp.cpus; in fdt_add_cpu_nodes() local
435 for (cpu = 0; cpu < smp_cpus; cpu++) { in fdt_add_cpu_nodes()
448 for (cpu = smp_cpus - 1; cpu >= 0; cpu--) { in fdt_add_cpu_nodes()
503 for (cpu = smp_cpus - 1; cpu >= 0; cpu--) { in fdt_add_cpu_nodes()
770 unsigned int smp_cpus = ms->smp.cpus; in create_gic() local
863 for (i = 0; i < smp_cpus; i++) { in create_gic()
899 sysbus_connect_irq(gicbusdev, i + smp_cpus, in create_gic()
901 sysbus_connect_irq(gicbusdev, i + 2 * smp_cpus, in create_gic()
903 sysbus_connect_irq(gicbusdev, i + 3 * smp_cpus, in create_gic()
2103 unsigned int smp_cpus = machine->smp.cpus; in machvirt_init() local
[all …]
/openbmc/qemu/hw/alpha/
H A Ddp264.c64 unsigned int smp_cpus = machine->smp.cpus; in clipper_init() local
68 for (i = 0; i < smp_cpus; ++i) { in clipper_init()
84 cpus[0]->env.trap_arg2 = smp_cpus | (!machine->enable_graphics << 6); in clipper_init()
155 for (i = 0; i < smp_cpus; ++i) { in clipper_init()
/openbmc/qemu/hw/loongarch/
H A Dfw_cfg.c24 int smp_cpus = ms->smp.cpus; in virt_fw_cfg_init() local
30 fw_cfg_add_i16(fw_cfg, FW_CFG_NB_CPUS, (uint16_t)smp_cpus); in virt_fw_cfg_init()
H A Dvirt.c325 int smp_cpus = ms->smp.cpus; in fdt_add_cpu_nodes() local
332 for (num = smp_cpus - 1; num >= 0; num--) { in fdt_add_cpu_nodes()
354 for (num = smp_cpus - 1; num >= 0; num--) { in fdt_add_cpu_nodes()
/openbmc/qemu/hw/hppa/
H A Dmachine.c276 unsigned int smp_cpus = machine->smp.cpus; in machine_HP_common_init_cpus() local
282 for (unsigned int i = 0; i < smp_cpus; i++) { in machine_HP_common_init_cpus()
300 for (unsigned int i = 0; i < smp_cpus; i++) { in machine_HP_common_init_cpus()
347 unsigned int smp_cpus = machine->smp.cpus; in machine_HP_common_init_tail() local
526 cpu[0]->env.gr[21] = smp_cpus; in machine_HP_common_init_tail()
647 unsigned int smp_cpus = ms->smp.cpus; in hppa_machine_reset() local
655 for (i = 0; i < smp_cpus; i++) { in hppa_machine_reset()
675 cpu[0]->env.gr[21] = smp_cpus; in hppa_machine_reset()
/openbmc/qemu/hw/ppc/
H A De500.c374 unsigned int smp_cpus = machine->smp.cpus; in ppce500_load_device_tree() local
493 for (i = smp_cpus - 1; i >= 0; i--) { in ppce500_load_device_tree()
813 unsigned int smp_cpus = machine->smp.cpus; in ppce500_init_mpic_qemu() local
819 qdev_prop_set_uint32(dev, "nb_cpus", smp_cpus); in ppce500_init_mpic_qemu()
825 for (i = 0; i < smp_cpus; i++) { in ppce500_init_mpic_qemu()
925 unsigned int smp_cpus = machine->smp.cpus; in ppce500_init() local
938 irqs = g_new0(IrqLines, smp_cpus); in ppce500_init()
939 for (i = 0; i < smp_cpus; i++) { in ppce500_init()
H A Dspapr.c2721 unsigned int smp_cpus = machine->smp.cpus; in spapr_init_cpus() local
2724 int boot_cores_nr = smp_cpus / smp_threads; in spapr_init_cpus()
2729 if (smp_cpus % smp_threads) { in spapr_init_cpus()
2731 smp_cpus, smp_threads); in spapr_init_cpus()
2740 if (max_cpus != smp_cpus) { in spapr_init_cpus()
2769 if ((i + 1) * smp_threads >= smp_cpus) { in spapr_init_cpus()
2770 nr_threads = smp_cpus - i * smp_threads; in spapr_init_cpus()
4422 unsigned int smp_cpus = machine->smp.cpus; in spapr_possible_cpu_arch_ids() local
4428 spapr_max_cores = QEMU_ALIGN_UP(smp_cpus, smp_threads) / smp_threads; in spapr_possible_cpu_arch_ids()
/openbmc/qemu/hw/xtensa/
H A Dxtfpga.c239 unsigned int smp_cpus = machine->smp.cpus; in xtfpga_init() local
241 if (smp_cpus > 1) { in xtfpga_init()
245 for (n = 0; n < smp_cpus; n++) { in xtfpga_init()
272 if (smp_cpus > 1) { in xtfpga_init()
/openbmc/qemu/migration/
H A Dpostcopy-ram.c152 unsigned int smp_cpus = ms->smp.cpus; in blocktime_context_new() local
154 ctx->page_fault_vcpu_time = g_new0(uint32_t, smp_cpus); in blocktime_context_new()
155 ctx->vcpu_addr = g_new0(uintptr_t, smp_cpus); in blocktime_context_new()
156 ctx->vcpu_blocktime = g_new0(uint32_t, smp_cpus); in blocktime_context_new()
909 unsigned int smp_cpus = ms->smp.cpus; in mark_postcopy_blocktime_end() local
923 for (i = 0; i < smp_cpus; i++) { in mark_postcopy_blocktime_end()
938 qatomic_fetch_add(&dc->smp_cpus_down, 0) == smp_cpus) { in mark_postcopy_blocktime_end()
/openbmc/qemu/hw/sparc/
H A Dsun4m.c835 unsigned int smp_cpus = machine->smp.cpus; in sun4m_hw_init() local
848 for(i = 0; i < smp_cpus; i++) { in sun4m_hw_init()
852 for (i = smp_cpus; i < MAX_CPUS; i++) in sun4m_hw_init()
965 slavio_timer_init_all(hwdef->counter_base, slavio_irq[19], slavio_cpu_irq, smp_cpus); in sun4m_hw_init()
1073 fw_cfg_add_i16(fw_cfg, FW_CFG_NB_CPUS, (uint16_t)smp_cpus); in sun4m_hw_init()
/openbmc/qemu/hw/mips/
H A Dmalta.c972 unsigned int smp_cpus = ms->smp.cpus; in malta_mips_config() local
979 smp_cpus * cs->nr_threads - 1); in malta_mips_config()
981 CP0MVPC0_PVPE, 4, smp_cpus - 1); in malta_mips_config()
/openbmc/qemu/target/arm/
H A Dcpu.c2527 unsigned int smp_cpus = ms->smp.cpus; in arm_cpu_realizefn() local
2561 cpu->core_count = smp_cpus; in arm_cpu_realizefn()