Lines Matching full:machine

88 static void ppc_heathrow_init(MachineState *machine)  in ppc_heathrow_init()  argument
90 const char *bios_name = machine->firmware ?: PROM_FILENAME; in ppc_heathrow_init()
91 MachineClass *mc = MACHINE_GET_CLASS(machine); in ppc_heathrow_init()
112 for (i = 0; i < machine->smp.cpus; i++) { in ppc_heathrow_init()
113 cpu = POWERPC_CPU(cpu_create(machine->cpu_type)); in ppc_heathrow_init()
122 if (machine->ram_size > 2047 * MiB) { in ppc_heathrow_init()
123 error_report("Too much memory for this machine: %" PRId64 " MB, " in ppc_heathrow_init()
124 "maximum 2047 MB", machine->ram_size / MiB); in ppc_heathrow_init()
128 memory_region_add_subregion(get_system_memory(), 0, machine->ram); in ppc_heathrow_init()
155 if (machine->kernel_filename) { in ppc_heathrow_init()
162 kernel_size = load_elf(machine->kernel_filename, NULL, in ppc_heathrow_init()
166 kernel_size = load_aout(machine->kernel_filename, kernel_base, in ppc_heathrow_init()
167 machine->ram_size - kernel_base, in ppc_heathrow_init()
171 kernel_size = load_image_targphys(machine->kernel_filename, in ppc_heathrow_init()
173 machine->ram_size - kernel_base); in ppc_heathrow_init()
177 machine->kernel_filename); in ppc_heathrow_init()
181 if (machine->initrd_filename) { in ppc_heathrow_init()
184 initrd_size = load_image_targphys(machine->initrd_filename, in ppc_heathrow_init()
186 machine->ram_size - initrd_base); in ppc_heathrow_init()
189 machine->initrd_filename); in ppc_heathrow_init()
199 for (i = 0; machine->boot_config.order[i] != '\0'; i++) { in ppc_heathrow_init()
206 if (machine->boot_config.order[i] >= 'a' && in ppc_heathrow_init()
207 machine->boot_config.order[i] <= 'f') { in ppc_heathrow_init()
208 ppc_boot_device = machine->boot_config.order[i]; in ppc_heathrow_init()
212 if (machine->boot_config.order[i] >= 'c' && in ppc_heathrow_init()
213 machine->boot_config.order[i] <= 'd') { in ppc_heathrow_init()
214 ppc_boot_device = machine->boot_config.order[i]; in ppc_heathrow_init()
220 error_report("No valid boot device for G3 Beige machine"); in ppc_heathrow_init()
265 for (i = 0; i < machine->smp.cpus; i++) { in ppc_heathrow_init()
273 error_report("Bus model not supported on OldWorld Mac machine"); in ppc_heathrow_init()
298 if (machine_usb(machine)) { in ppc_heathrow_init()
312 object_property_add_child(OBJECT(machine), TYPE_FW_CFG, OBJECT(fw_cfg)); in ppc_heathrow_init()
318 fw_cfg_add_i16(fw_cfg, FW_CFG_NB_CPUS, (uint16_t)machine->smp.cpus); in ppc_heathrow_init()
319 fw_cfg_add_i16(fw_cfg, FW_CFG_MAX_CPUS, (uint16_t)machine->smp.max_cpus); in ppc_heathrow_init()
320 fw_cfg_add_i64(fw_cfg, FW_CFG_RAM_SIZE, (uint64_t)machine->ram_size); in ppc_heathrow_init()
324 if (machine->kernel_cmdline) { in ppc_heathrow_init()
327 machine->kernel_cmdline); in ppc_heathrow_init()
403 static int heathrow_kvm_type(MachineState *machine, const char *arg) in heathrow_kvm_type() argument