Lines Matching refs:machine
230 static void ibm_40p_init(MachineState *machine) in ibm_40p_init() argument
232 const char *bios_name = machine->firmware ?: "openbios-ppc"; in ibm_40p_init()
233 MachineClass *mc = MACHINE_GET_CLASS(machine); in ibm_40p_init()
250 MACHINE_GET_CLASS(machine)->name); in ibm_40p_init()
255 cpu = POWERPC_CPU(cpu_create(machine->cpu_type)); in ibm_40p_init()
291 qdev_prop_set_uint32(dev, "ram-size", machine->ram_size); in ibm_40p_init()
314 if (machine->audiodev) { in ibm_40p_init()
315 qdev_prop_set_string(dev, "audiodev", machine->audiodev); in ibm_40p_init()
355 if (machine->kernel_filename) { in ibm_40p_init()
358 kernel_size = load_image_targphys(machine->kernel_filename, in ibm_40p_init()
360 machine->ram_size - kernel_base); in ibm_40p_init()
363 machine->kernel_filename); in ibm_40p_init()
369 if (machine->initrd_filename) { in ibm_40p_init()
371 initrd_size = load_image_targphys(machine->initrd_filename, in ibm_40p_init()
373 machine->ram_size - initrd_base); in ibm_40p_init()
376 machine->initrd_filename); in ibm_40p_init()
382 if (machine->kernel_cmdline && *machine->kernel_cmdline) { in ibm_40p_init()
385 machine->kernel_cmdline); in ibm_40p_init()
387 machine->kernel_cmdline); in ibm_40p_init()
389 strlen(machine->kernel_cmdline) + 1); in ibm_40p_init()
393 boot_device = machine->boot_config.order[0]; in ibm_40p_init()
396 fw_cfg_add_i16(fw_cfg, FW_CFG_MAX_CPUS, (uint16_t)machine->smp.max_cpus); in ibm_40p_init()
397 fw_cfg_add_i64(fw_cfg, FW_CFG_RAM_SIZE, (uint64_t)machine->ram_size); in ibm_40p_init()
410 PPC_NVRAM_set_params(m48t59, NVRAM_SIZE, "PREP", machine->ram_size, in ibm_40p_init()
413 machine->kernel_cmdline, in ibm_40p_init()