mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
More generic boot devices specification, allowing more devices to be specified
and avoiding per-target hardcoded limitations. The machine implementations can then check if the given devices match the actual hardware implementation and firmware API. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3577 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
aba9ee8726
commit
28c5af54c6
5 changed files with 125 additions and 51 deletions
|
@ -74,7 +74,7 @@ static void ppc_core99_init (int ram_size, int vga_ram_size,
|
|||
qemu_irq *dummy_irq;
|
||||
int pic_mem_index, dbdma_mem_index, cuda_mem_index;
|
||||
int ide_mem_index[2];
|
||||
int ppc_boot_device = boot_device[0];
|
||||
int ppc_boot_device;
|
||||
|
||||
linux_boot = (kernel_filename != NULL);
|
||||
|
||||
|
@ -175,6 +175,19 @@ static void ppc_core99_init (int ram_size, int vga_ram_size,
|
|||
kernel_size = 0;
|
||||
initrd_base = 0;
|
||||
initrd_size = 0;
|
||||
ppc_boot_device = '\0';
|
||||
/* We consider that NewWorld PowerMac never have any floppy drive
|
||||
* For now, OHW cannot boot from the network.
|
||||
*/
|
||||
for (i = 0; i < boot_device[i] != '\0'; i++) {
|
||||
ppc_boot_device = boot_device[i];
|
||||
if (ppc_boot_device >= 'c' && ppc_boot_device <= 'f')
|
||||
break;
|
||||
}
|
||||
if (ppc_boot_device == '\0') {
|
||||
fprintf(stderr, "No valid boot device for Mac99 machine\n");
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
isa_mem_base = 0x80000000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue