diff options
author | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-11 14:44:28 +0000 |
---|---|---|
committer | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-11 14:44:28 +0000 |
commit | 0d913fdb62765554d613e2fe99b7812ed1c95122 (patch) | |
tree | 6dec3d5dd3cdd8c9b89537d0950b3c1d9a74fc15 /hw/ppc_chrp.c | |
parent | be98f1f82290118e176b704fd270f552c3d6a35a (diff) |
Fix PowerPC boot device selection.
Fix gcc warning in PowerPC PreP machine init routine.
Add second IDE channel to Heathrow Mac machine (still not handled by OHW).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3586 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ppc_chrp.c')
-rw-r--r-- | hw/ppc_chrp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hw/ppc_chrp.c b/hw/ppc_chrp.c index a2d07c8fe5..8fb8e5d205 100644 --- a/hw/ppc_chrp.c +++ b/hw/ppc_chrp.c @@ -179,10 +179,11 @@ static void ppc_core99_init (int ram_size, int vga_ram_size, /* 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') + for (i = 0; boot_device[i] != '\0'; i++) { + if (boot_device[i] >= 'c' && boot_device[i] <= 'f') { + ppc_boot_device = boot_device[i]; break; + } } if (ppc_boot_device == '\0') { fprintf(stderr, "No valid boot device for Mac99 machine\n"); |