Lines Matching full:machine
89 static void ppc_heathrow_init(MachineState *machine) in ppc_heathrow_init() argument
91 const char *bios_name = machine->firmware ?: PROM_FILENAME; in ppc_heathrow_init()
92 MachineClass *mc = MACHINE_GET_CLASS(machine); in ppc_heathrow_init()
113 for (i = 0; i < machine->smp.cpus; i++) { in ppc_heathrow_init()
114 cpu = POWERPC_CPU(cpu_create(machine->cpu_type)); in ppc_heathrow_init()
123 if (machine->ram_size > 2047 * MiB) { in ppc_heathrow_init()
124 error_report("Too much memory for this machine: %" PRId64 " MB, " in ppc_heathrow_init()
125 "maximum 2047 MB", machine->ram_size / MiB); in ppc_heathrow_init()
129 memory_region_add_subregion(get_system_memory(), 0, machine->ram); in ppc_heathrow_init()
156 if (machine->kernel_filename) { in ppc_heathrow_init()
158 kernel_size = load_elf(machine->kernel_filename, NULL, in ppc_heathrow_init()
162 kernel_size = load_aout(machine->kernel_filename, kernel_base, in ppc_heathrow_init()
163 machine->ram_size - kernel_base, in ppc_heathrow_init()
167 kernel_size = load_image_targphys(machine->kernel_filename, in ppc_heathrow_init()
169 machine->ram_size - kernel_base); in ppc_heathrow_init()
173 machine->kernel_filename); in ppc_heathrow_init()
177 if (machine->initrd_filename) { in ppc_heathrow_init()
180 initrd_size = load_image_targphys(machine->initrd_filename, in ppc_heathrow_init()
182 machine->ram_size - initrd_base); in ppc_heathrow_init()
185 machine->initrd_filename); in ppc_heathrow_init()
195 for (i = 0; machine->boot_config.order[i] != '\0'; i++) { in ppc_heathrow_init()
202 if (machine->boot_config.order[i] >= 'a' && in ppc_heathrow_init()
203 machine->boot_config.order[i] <= 'f') { in ppc_heathrow_init()
204 ppc_boot_device = machine->boot_config.order[i]; in ppc_heathrow_init()
208 if (machine->boot_config.order[i] >= 'c' && in ppc_heathrow_init()
209 machine->boot_config.order[i] <= 'd') { in ppc_heathrow_init()
210 ppc_boot_device = machine->boot_config.order[i]; in ppc_heathrow_init()
216 error_report("No valid boot device for G3 Beige machine"); in ppc_heathrow_init()
261 for (i = 0; i < machine->smp.cpus; i++) { in ppc_heathrow_init()
269 error_report("Bus model not supported on OldWorld Mac machine"); in ppc_heathrow_init()
294 if (machine_usb(machine)) { in ppc_heathrow_init()
308 object_property_add_child(OBJECT(machine), TYPE_FW_CFG, OBJECT(fw_cfg)); in ppc_heathrow_init()
314 fw_cfg_add_i16(fw_cfg, FW_CFG_NB_CPUS, (uint16_t)machine->smp.cpus); in ppc_heathrow_init()
315 fw_cfg_add_i16(fw_cfg, FW_CFG_MAX_CPUS, (uint16_t)machine->smp.max_cpus); in ppc_heathrow_init()
316 fw_cfg_add_i64(fw_cfg, FW_CFG_RAM_SIZE, (uint64_t)machine->ram_size); in ppc_heathrow_init()
320 if (machine->kernel_cmdline) { in ppc_heathrow_init()
323 machine->kernel_cmdline); in ppc_heathrow_init()
399 static int heathrow_kvm_type(MachineState *machine, const char *arg) in heathrow_kvm_type() argument